Debian Codegraph @

semconv/v1.39.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.39.0"
7
8 import "go.opentelemetry.io/otel/attribute"
9
10 // Namespace: android
11 const (
12 // AndroidAppStateKey is the attribute Key conforming to the "android.app.state"
13 // semantic conventions. It represents the this attribute represents the state
14 // of the application.
15 //
16 // Type: Enum
17 // RequirementLevel: Recommended
18 // Stability: Development
19 //
20 // Examples: "created"
21 // Note: The Android lifecycle states are defined in
22 // [Activity lifecycle callbacks], and from which the `OS identifiers` are
23 // derived.
24 //
25 // [Activity lifecycle callbacks]: https://developer.android.com/guide/components/activities/activity-lifecycle#lc
26 AndroidAppStateKey = attribute.Key("android.app.state")
27
28 // AndroidOSAPILevelKey is the attribute Key conforming to the
29 // "android.os.api_level" semantic conventions. It represents the uniquely
30 // identifies the framework API revision offered by a version (`os.version`) of
31 // the android operating system. More information can be found in the
32 // [Android API levels documentation].
33 //
34 // Type: string
35 // RequirementLevel: Recommended
36 // Stability: Development
37 //
38 // Examples: "33", "32"
39 //
40 // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
41 AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
42 )
43
44 // AndroidOSAPILevel returns an attribute KeyValue conforming to the
45 // "android.os.api_level" semantic conventions. It represents the uniquely
46 // identifies the framework API revision offered by a version (`os.version`) of
47 // the android operating system. More information can be found in the
48 // [Android API levels documentation].
49 //
50 // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
51 func AndroidOSAPILevel(val string) attribute.KeyValue {
52 return AndroidOSAPILevelKey.String(val)
53 }
54
55 // Enum values for android.app.state
56 var (
57 // Any time before Activity.onResume() or, if the app has no Activity,
58 // Context.startService() has been called in the app for the first time.
59 //
60 // Stability: development
61 AndroidAppStateCreated = AndroidAppStateKey.String("created")
62 // Any time after Activity.onPause() or, if the app has no Activity,
63 // Context.stopService() has been called when the app was in the foreground
64 // state.
65 //
66 // Stability: development
67 AndroidAppStateBackground = AndroidAppStateKey.String("background")
68 // Any time after Activity.onResume() or, if the app has no Activity,
69 // Context.startService() has been called when the app was in either the created
70 // or background states.
71 //
72 // Stability: development
73 AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
74 )
75
76 // Namespace: app
77 const (
78 // AppBuildIDKey is the attribute Key conforming to the "app.build_id" semantic
79 // conventions. It represents the unique identifier for a particular build or
80 // compilation of the application.
81 //
82 // Type: string
83 // RequirementLevel: Recommended
84 // Stability: Development
85 //
86 // Examples: "6cff0a7e-cefc-4668-96f5-1273d8b334d0",
87 // "9f2b833506aa6973a92fde9733e6271f", "my-app-1.0.0-code-123"
88 AppBuildIDKey = attribute.Key("app.build_id")
89
90 // AppInstallationIDKey is the attribute Key conforming to the
91 // "app.installation.id" semantic conventions. It represents a unique identifier
92 // representing the installation of an application on a specific device.
93 //
94 // Type: string
95 // RequirementLevel: Recommended
96 // Stability: Development
97 //
98 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
99 // Note: Its value SHOULD persist across launches of the same application
100 // installation, including through application upgrades.
101 // It SHOULD change if the application is uninstalled or if all applications of
102 // the vendor are uninstalled.
103 // Additionally, users might be able to reset this value (e.g. by clearing
104 // application data).
105 // If an app is installed multiple times on the same device (e.g. in different
106 // accounts on Android), each `app.installation.id` SHOULD have a different
107 // value.
108 // If multiple OpenTelemetry SDKs are used within the same application, they
109 // SHOULD use the same value for `app.installation.id`.
110 // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
111 // `app.installation.id`.
112 //
113 // For iOS, this value SHOULD be equal to the [vendor identifier].
114 //
115 // For Android, examples of `app.installation.id` implementations include:
116 //
117 // - [Firebase Installation ID].
118 // - A globally unique UUID which is persisted across sessions in your
119 // application.
120 // - [App set ID].
121 // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
122 //
123 // More information about Android identifier best practices can be found in the
124 // [Android user data IDs guide].
125 //
126 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
127 // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
128 // [App set ID]: https://developer.android.com/identity/app-set-id
129 // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
130 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
131 AppInstallationIDKey = attribute.Key("app.installation.id")
132
133 // AppJankFrameCountKey is the attribute Key conforming to the
134 // "app.jank.frame_count" semantic conventions. It represents a number of frame
135 // renders that experienced jank.
136 //
137 // Type: int
138 // RequirementLevel: Recommended
139 // Stability: Development
140 //
141 // Examples: 9, 42
142 // Note: Depending on platform limitations, the value provided MAY be
143 // approximation.
144 AppJankFrameCountKey = attribute.Key("app.jank.frame_count")
145
146 // AppJankPeriodKey is the attribute Key conforming to the "app.jank.period"
147 // semantic conventions. It represents the time period, in seconds, for which
148 // this jank is being reported.
149 //
150 // Type: double
151 // RequirementLevel: Recommended
152 // Stability: Development
153 //
154 // Examples: 1.0, 5.0, 10.24
155 AppJankPeriodKey = attribute.Key("app.jank.period")
156
157 // AppJankThresholdKey is the attribute Key conforming to the
158 // "app.jank.threshold" semantic conventions. It represents the minimum
159 // rendering threshold for this jank, in seconds.
160 //
161 // Type: double
162 // RequirementLevel: Recommended
163 // Stability: Development
164 //
165 // Examples: 0.016, 0.7, 1.024
166 AppJankThresholdKey = attribute.Key("app.jank.threshold")
167
168 // AppScreenCoordinateXKey is the attribute Key conforming to the
169 // "app.screen.coordinate.x" semantic conventions. It represents the x
170 // (horizontal) coordinate of a screen coordinate, in screen pixels.
171 //
172 // Type: int
173 // RequirementLevel: Recommended
174 // Stability: Development
175 //
176 // Examples: 0, 131
177 AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
178
179 // AppScreenCoordinateYKey is the attribute Key conforming to the
180 // "app.screen.coordinate.y" semantic conventions. It represents the y
181 // (vertical) component of a screen coordinate, in screen pixels.
182 //
183 // Type: int
184 // RequirementLevel: Recommended
185 // Stability: Development
186 //
187 // Examples: 12, 99
188 AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
189
190 // AppScreenIDKey is the attribute Key conforming to the "app.screen.id"
191 // semantic conventions. It represents an identifier that uniquely
192 // differentiates this screen from other screens in the same application.
193 //
194 // Type: string
195 // RequirementLevel: Recommended
196 // Stability: Development
197 //
198 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3",
199 // "com.example.app.MainActivity", "com.example.shop.ProductDetailFragment",
200 // "MyApp.ProfileView", "MyApp.ProfileViewController"
201 // Note: A screen represents only the part of the device display drawn by the
202 // app. It typically contains multiple widgets or UI components and is larger in
203 // scope than individual widgets. Multiple screens can coexist on the same
204 // display simultaneously (e.g., split view on tablets).
205 AppScreenIDKey = attribute.Key("app.screen.id")
206
207 // AppScreenNameKey is the attribute Key conforming to the "app.screen.name"
208 // semantic conventions. It represents the name of an application screen.
209 //
210 // Type: string
211 // RequirementLevel: Recommended
212 // Stability: Development
213 //
214 // Examples: "MainActivity", "ProductDetailFragment", "ProfileView",
215 // "ProfileViewController"
216 // Note: A screen represents only the part of the device display drawn by the
217 // app. It typically contains multiple widgets or UI components and is larger in
218 // scope than individual widgets. Multiple screens can coexist on the same
219 // display simultaneously (e.g., split view on tablets).
220 AppScreenNameKey = attribute.Key("app.screen.name")
221
222 // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
223 // semantic conventions. It represents an identifier that uniquely
224 // differentiates this widget from other widgets in the same application.
225 //
226 // Type: string
227 // RequirementLevel: Recommended
228 // Stability: Development
229 //
230 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
231 // Note: A widget is an application component, typically an on-screen visual GUI
232 // element.
233 AppWidgetIDKey = attribute.Key("app.widget.id")
234
235 // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
236 // semantic conventions. It represents the name of an application widget.
237 //
238 // Type: string
239 // RequirementLevel: Recommended
240 // Stability: Development
241 //
242 // Examples: "submit", "attack", "Clear Cart"
243 // Note: A widget is an application component, typically an on-screen visual GUI
244 // element.
245 AppWidgetNameKey = attribute.Key("app.widget.name")
246 )
247
248 // AppBuildID returns an attribute KeyValue conforming to the "app.build_id"
249 // semantic conventions. It represents the unique identifier for a particular
250 // build or compilation of the application.
251 func AppBuildID(val string) attribute.KeyValue {
252 return AppBuildIDKey.String(val)
253 }
254
255 // AppInstallationID returns an attribute KeyValue conforming to the
256 // "app.installation.id" semantic conventions. It represents a unique identifier
257 // representing the installation of an application on a specific device.
258 func AppInstallationID(val string) attribute.KeyValue {
259 return AppInstallationIDKey.String(val)
260 }
261
262 // AppJankFrameCount returns an attribute KeyValue conforming to the
263 // "app.jank.frame_count" semantic conventions. It represents a number of frame
264 // renders that experienced jank.
265 func AppJankFrameCount(val int) attribute.KeyValue {
266 return AppJankFrameCountKey.Int(val)
267 }
268
269 // AppJankPeriod returns an attribute KeyValue conforming to the
270 // "app.jank.period" semantic conventions. It represents the time period, in
271 // seconds, for which this jank is being reported.
272 func AppJankPeriod(val float64) attribute.KeyValue {
273 return AppJankPeriodKey.Float64(val)
274 }
275
276 // AppJankThreshold returns an attribute KeyValue conforming to the
277 // "app.jank.threshold" semantic conventions. It represents the minimum rendering
278 // threshold for this jank, in seconds.
279 func AppJankThreshold(val float64) attribute.KeyValue {
280 return AppJankThresholdKey.Float64(val)
281 }
282
283 // AppScreenCoordinateX returns an attribute KeyValue conforming to the
284 // "app.screen.coordinate.x" semantic conventions. It represents the x
285 // (horizontal) coordinate of a screen coordinate, in screen pixels.
286 func AppScreenCoordinateX(val int) attribute.KeyValue {
287 return AppScreenCoordinateXKey.Int(val)
288 }
289
290 // AppScreenCoordinateY returns an attribute KeyValue conforming to the
291 // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
292 // component of a screen coordinate, in screen pixels.
293 func AppScreenCoordinateY(val int) attribute.KeyValue {
294 return AppScreenCoordinateYKey.Int(val)
295 }
296
297 // AppScreenID returns an attribute KeyValue conforming to the "app.screen.id"
298 // semantic conventions. It represents an identifier that uniquely differentiates
299 // this screen from other screens in the same application.
300 func AppScreenID(val string) attribute.KeyValue {
301 return AppScreenIDKey.String(val)
302 }
303
304 // AppScreenName returns an attribute KeyValue conforming to the
305 // "app.screen.name" semantic conventions. It represents the name of an
306 // application screen.
307 func AppScreenName(val string) attribute.KeyValue {
308 return AppScreenNameKey.String(val)
309 }
310
311 // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
312 // semantic conventions. It represents an identifier that uniquely differentiates
313 // this widget from other widgets in the same application.
314 func AppWidgetID(val string) attribute.KeyValue {
315 return AppWidgetIDKey.String(val)
316 }
317
318 // AppWidgetName returns an attribute KeyValue conforming to the
319 // "app.widget.name" semantic conventions. It represents the name of an
320 // application widget.
321 func AppWidgetName(val string) attribute.KeyValue {
322 return AppWidgetNameKey.String(val)
323 }
324
325 // Namespace: artifact
326 const (
327 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
328 // "artifact.attestation.filename" semantic conventions. It represents the
329 // provenance filename of the built attestation which directly relates to the
330 // build artifact filename. This filename SHOULD accompany the artifact at
331 // publish time. See the [SLSA Relationship] specification for more information.
332 //
333 // Type: string
334 // RequirementLevel: Recommended
335 // Stability: Development
336 //
337 // Examples: "golang-binary-amd64-v0.1.0.attestation",
338 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
339 // "file-name-package.tar.gz.intoto.json1"
340 //
341 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
342 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
343
344 // ArtifactAttestationHashKey is the attribute Key conforming to the
345 // "artifact.attestation.hash" semantic conventions. It represents the full
346 // [hash value (see glossary)], of the built attestation. Some envelopes in the
347 // [software attestation space] also refer to this as the **digest**.
348 //
349 // Type: string
350 // RequirementLevel: Recommended
351 // Stability: Development
352 //
353 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
354 //
355 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
356 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
357 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
358
359 // ArtifactAttestationIDKey is the attribute Key conforming to the
360 // "artifact.attestation.id" semantic conventions. It represents the id of the
361 // build [software attestation].
362 //
363 // Type: string
364 // RequirementLevel: Recommended
365 // Stability: Development
366 //
367 // Examples: "123"
368 //
369 // [software attestation]: https://slsa.dev/attestation-model
370 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
371
372 // ArtifactFilenameKey is the attribute Key conforming to the
373 // "artifact.filename" semantic conventions. It represents the human readable
374 // file name of the artifact, typically generated during build and release
375 // processes. Often includes the package name and version in the file name.
376 //
377 // Type: string
378 // RequirementLevel: Recommended
379 // Stability: Development
380 //
381 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
382 // "release-1.tar.gz", "file-name-package.tar.gz"
383 // Note: This file name can also act as the [Package Name]
384 // in cases where the package ecosystem maps accordingly.
385 // Additionally, the artifact [can be published]
386 // for others, but that is not a guarantee.
387 //
388 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
389 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
390 ArtifactFilenameKey = attribute.Key("artifact.filename")
391
392 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
393 // semantic conventions. It represents the full [hash value (see glossary)],
394 // often found in checksum.txt on a release of the artifact and used to verify
395 // package integrity.
396 //
397 // Type: string
398 // RequirementLevel: Recommended
399 // Stability: Development
400 //
401 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
402 // Note: The specific algorithm used to create the cryptographic hash value is
403 // not defined. In situations where an artifact has multiple
404 // cryptographic hashes, it is up to the implementer to choose which
405 // hash value to set here; this should be the most secure hash algorithm
406 // that is suitable for the situation and consistent with the
407 // corresponding attestation. The implementer can then provide the other
408 // hash values through an additional set of attribute extensions as they
409 // deem necessary.
410 //
411 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
412 ArtifactHashKey = attribute.Key("artifact.hash")
413
414 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
415 // semantic conventions. It represents the [Package URL] of the
416 // [package artifact] provides a standard way to identify and locate the
417 // packaged artifact.
418 //
419 // Type: string
420 // RequirementLevel: Recommended
421 // Stability: Development
422 //
423 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
424 // "pkg:npm/[email protected]"
425 //
426 // [Package URL]: https://github.com/package-url/purl-spec
427 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
428 ArtifactPurlKey = attribute.Key("artifact.purl")
429
430 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
431 // semantic conventions. It represents the version of the artifact.
432 //
433 // Type: string
434 // RequirementLevel: Recommended
435 // Stability: Development
436 //
437 // Examples: "v0.1.0", "1.2.1", "122691-build"
438 ArtifactVersionKey = attribute.Key("artifact.version")
439 )
440
441 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
442 // "artifact.attestation.filename" semantic conventions. It represents the
443 // provenance filename of the built attestation which directly relates to the
444 // build artifact filename. This filename SHOULD accompany the artifact at
445 // publish time. See the [SLSA Relationship] specification for more information.
446 //
447 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
448 func ArtifactAttestationFilename(val string) attribute.KeyValue {
449 return ArtifactAttestationFilenameKey.String(val)
450 }
451
452 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
453 // "artifact.attestation.hash" semantic conventions. It represents the full
454 // [hash value (see glossary)], of the built attestation. Some envelopes in the
455 // [software attestation space] also refer to this as the **digest**.
456 //
457 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
458 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
459 func ArtifactAttestationHash(val string) attribute.KeyValue {
460 return ArtifactAttestationHashKey.String(val)
461 }
462
463 // ArtifactAttestationID returns an attribute KeyValue conforming to the
464 // "artifact.attestation.id" semantic conventions. It represents the id of the
465 // build [software attestation].
466 //
467 // [software attestation]: https://slsa.dev/attestation-model
468 func ArtifactAttestationID(val string) attribute.KeyValue {
469 return ArtifactAttestationIDKey.String(val)
470 }
471
472 // ArtifactFilename returns an attribute KeyValue conforming to the
473 // "artifact.filename" semantic conventions. It represents the human readable
474 // file name of the artifact, typically generated during build and release
475 // processes. Often includes the package name and version in the file name.
476 func ArtifactFilename(val string) attribute.KeyValue {
477 return ArtifactFilenameKey.String(val)
478 }
479
480 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
481 // semantic conventions. It represents the full [hash value (see glossary)],
482 // often found in checksum.txt on a release of the artifact and used to verify
483 // package integrity.
484 //
485 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
486 func ArtifactHash(val string) attribute.KeyValue {
487 return ArtifactHashKey.String(val)
488 }
489
490 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
491 // semantic conventions. It represents the [Package URL] of the
492 // [package artifact] provides a standard way to identify and locate the packaged
493 // artifact.
494 //
495 // [Package URL]: https://github.com/package-url/purl-spec
496 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
497 func ArtifactPurl(val string) attribute.KeyValue {
498 return ArtifactPurlKey.String(val)
499 }
500
501 // ArtifactVersion returns an attribute KeyValue conforming to the
502 // "artifact.version" semantic conventions. It represents the version of the
503 // artifact.
504 func ArtifactVersion(val string) attribute.KeyValue {
505 return ArtifactVersionKey.String(val)
506 }
507
508 // Namespace: aws
509 const (
510 // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
511 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
512 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
513 // prevent unwanted behavior from model responses or user messages.
514 //
515 // Type: string
516 // RequirementLevel: Recommended
517 // Stability: Development
518 //
519 // Examples: "sgi5gkybzqak"
520 //
521 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
522 AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
523
524 // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
525 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
526 // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
527 // bank of information that can be queried by models to generate more relevant
528 // responses and augment prompts.
529 //
530 // Type: string
531 // RequirementLevel: Recommended
532 // Stability: Development
533 //
534 // Examples: "XFWUPB9PAW"
535 //
536 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
537 AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
538
539 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
540 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
541 // JSON-serialized value of each item in the `AttributeDefinitions` request
542 // field.
543 //
544 // Type: string[]
545 // RequirementLevel: Recommended
546 // Stability: Development
547 //
548 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
549 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
550
551 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
552 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
553 // value of the `AttributesToGet` request parameter.
554 //
555 // Type: string[]
556 // RequirementLevel: Recommended
557 // Stability: Development
558 //
559 // Examples: "lives", "id"
560 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
561
562 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
563 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
564 // of the `ConsistentRead` request parameter.
565 //
566 // Type: boolean
567 // RequirementLevel: Recommended
568 // Stability: Development
569 //
570 // Examples:
571 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
572
573 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
574 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
575 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
576 //
577 // Type: string[]
578 // RequirementLevel: Recommended
579 // Stability: Development
580 //
581 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
582 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
583 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
584 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
585 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
586 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
587 // "string", "WriteCapacityUnits": number }"
588 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
589
590 // AWSDynamoDBCountKey is the attribute Key conforming to the
591 // "aws.dynamodb.count" semantic conventions. It represents the value of the
592 // `Count` response parameter.
593 //
594 // Type: int
595 // RequirementLevel: Recommended
596 // Stability: Development
597 //
598 // Examples: 10
599 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
600
601 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
602 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
603 // value of the `ExclusiveStartTableName` request parameter.
604 //
605 // Type: string
606 // RequirementLevel: Recommended
607 // Stability: Development
608 //
609 // Examples: "Users", "CatsTable"
610 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
611
612 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
613 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
614 // represents the JSON-serialized value of each item in the
615 // `GlobalSecondaryIndexUpdates` request field.
616 //
617 // Type: string[]
618 // RequirementLevel: Recommended
619 // Stability: Development
620 //
621 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
622 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
623 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
624 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
625 // number } }"
626 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
627
628 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
629 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
630 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
631 // request field.
632 //
633 // Type: string[]
634 // RequirementLevel: Recommended
635 // Stability: Development
636 //
637 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
638 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
639 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
640 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
641 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
642
643 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
644 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
645 // the `IndexName` request parameter.
646 //
647 // Type: string
648 // RequirementLevel: Recommended
649 // Stability: Development
650 //
651 // Examples: "name_to_group"
652 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
653
654 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
655 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
656 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
657 //
658 // Type: string
659 // RequirementLevel: Recommended
660 // Stability: Development
661 //
662 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
663 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
664 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
665 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
666 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
667
668 // AWSDynamoDBLimitKey is the attribute Key conforming to the
669 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
670 // `Limit` request parameter.
671 //
672 // Type: int
673 // RequirementLevel: Recommended
674 // Stability: Development
675 //
676 // Examples: 10
677 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
678
679 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
680 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
681 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
682 // field.
683 //
684 // Type: string[]
685 // RequirementLevel: Recommended
686 // Stability: Development
687 //
688 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
689 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
690 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
691 // "ProjectionType": "string" } }"
692 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
693
694 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
695 // "aws.dynamodb.projection" semantic conventions. It represents the value of
696 // the `ProjectionExpression` request parameter.
697 //
698 // Type: string
699 // RequirementLevel: Recommended
700 // Stability: Development
701 //
702 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
703 // ProductReviews"
704 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
705
706 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
707 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
708 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
709 //
710 // Type: double
711 // RequirementLevel: Recommended
712 // Stability: Development
713 //
714 // Examples: 1.0, 2.0
715 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
716
717 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
718 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
719 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
720 // parameter.
721 //
722 // Type: double
723 // RequirementLevel: Recommended
724 // Stability: Development
725 //
726 // Examples: 1.0, 2.0
727 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
728
729 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
730 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
731 // the `ScanIndexForward` request parameter.
732 //
733 // Type: boolean
734 // RequirementLevel: Recommended
735 // Stability: Development
736 //
737 // Examples:
738 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
739
740 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
741 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
742 // the `ScannedCount` response parameter.
743 //
744 // Type: int
745 // RequirementLevel: Recommended
746 // Stability: Development
747 //
748 // Examples: 50
749 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
750
751 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
752 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
753 // `Segment` request parameter.
754 //
755 // Type: int
756 // RequirementLevel: Recommended
757 // Stability: Development
758 //
759 // Examples: 10
760 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
761
762 // AWSDynamoDBSelectKey is the attribute Key conforming to the
763 // "aws.dynamodb.select" semantic conventions. It represents the value of the
764 // `Select` request parameter.
765 //
766 // Type: string
767 // RequirementLevel: Recommended
768 // Stability: Development
769 //
770 // Examples: "ALL_ATTRIBUTES", "COUNT"
771 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
772
773 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
774 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
775 // items in the `TableNames` response parameter.
776 //
777 // Type: int
778 // RequirementLevel: Recommended
779 // Stability: Development
780 //
781 // Examples: 20
782 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
783
784 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
785 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
786 // the `RequestItems` object field.
787 //
788 // Type: string[]
789 // RequirementLevel: Recommended
790 // Stability: Development
791 //
792 // Examples: "Users", "Cats"
793 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
794
795 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
796 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
797 // of the `TotalSegments` request parameter.
798 //
799 // Type: int
800 // RequirementLevel: Recommended
801 // Stability: Development
802 //
803 // Examples: 100
804 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
805
806 // AWSECSClusterARNKey is the attribute Key conforming to the
807 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
808 // [ECS cluster].
809 //
810 // Type: string
811 // RequirementLevel: Recommended
812 // Stability: Development
813 //
814 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
815 //
816 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
817 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
818
819 // AWSECSContainerARNKey is the attribute Key conforming to the
820 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
821 // Resource Name (ARN) of an [ECS container instance].
822 //
823 // Type: string
824 // RequirementLevel: Recommended
825 // Stability: Development
826 //
827 // Examples:
828 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
829 //
830 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
831 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
832
833 // AWSECSLaunchtypeKey is the attribute Key conforming to the
834 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
835 // for an ECS task.
836 //
837 // Type: Enum
838 // RequirementLevel: Recommended
839 // Stability: Development
840 //
841 // Examples:
842 //
843 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
844 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
845
846 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
847 // semantic conventions. It represents the ARN of a running [ECS task].
848 //
849 // Type: string
850 // RequirementLevel: Recommended
851 // Stability: Development
852 //
853 // Examples:
854 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
855 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
856 //
857 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
858 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
859
860 // AWSECSTaskFamilyKey is the attribute Key conforming to the
861 // "aws.ecs.task.family" semantic conventions. It represents the family name of
862 // the [ECS task definition] used to create the ECS task.
863 //
864 // Type: string
865 // RequirementLevel: Recommended
866 // Stability: Development
867 //
868 // Examples: "opentelemetry-family"
869 //
870 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
871 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
872
873 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
874 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
875 // be extracted from `task.arn`.
876 //
877 // Type: string
878 // RequirementLevel: Recommended
879 // Stability: Development
880 //
881 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
882 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
883 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
884
885 // AWSECSTaskRevisionKey is the attribute Key conforming to the
886 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
887 // the task definition used to create the ECS task.
888 //
889 // Type: string
890 // RequirementLevel: Recommended
891 // Stability: Development
892 //
893 // Examples: "8", "26"
894 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
895
896 // AWSEKSClusterARNKey is the attribute Key conforming to the
897 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
898 // cluster.
899 //
900 // Type: string
901 // RequirementLevel: Recommended
902 // Stability: Development
903 //
904 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
905 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
906
907 // AWSExtendedRequestIDKey is the attribute Key conforming to the
908 // "aws.extended_request_id" semantic conventions. It represents the AWS
909 // extended request ID as returned in the response header `x-amz-id-2`.
910 //
911 // Type: string
912 // RequirementLevel: Recommended
913 // Stability: Development
914 //
915 // Examples:
916 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
917 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
918
919 // AWSKinesisStreamNameKey is the attribute Key conforming to the
920 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
921 // AWS Kinesis [stream] the request refers to. Corresponds to the
922 // `--stream-name` parameter of the Kinesis [describe-stream] operation.
923 //
924 // Type: string
925 // RequirementLevel: Recommended
926 // Stability: Development
927 //
928 // Examples: "some-stream-name"
929 //
930 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
931 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
932 AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
933
934 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
935 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
936 // ARN as provided on the `Context` passed to the function (
937 // `Lambda-Runtime-Invoked-Function-Arn` header on the
938 // `/runtime/invocation/next` applicable).
939 //
940 // Type: string
941 // RequirementLevel: Recommended
942 // Stability: Development
943 //
944 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
945 // Note: This may be different from `cloud.resource_id` if an alias is involved.
946 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
947
948 // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
949 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
950 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
951 // function. It's contents are read by Lambda and used to trigger a function.
952 // This isn't available in the lambda execution context or the lambda runtime
953 // environtment. This is going to be populated by the AWS SDK for each language
954 // when that UUID is present. Some of these operations are
955 // Create/Delete/Get/List/Update EventSourceMapping.
956 //
957 // Type: string
958 // RequirementLevel: Recommended
959 // Stability: Development
960 //
961 // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
962 //
963 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
964 AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
965
966 // AWSLogGroupARNsKey is the attribute Key conforming to the
967 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
968 // Name(s) (ARN) of the AWS log group(s).
969 //
970 // Type: string[]
971 // RequirementLevel: Recommended
972 // Stability: Development
973 //
974 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
975 // Note: See the [log group ARN format documentation].
976 //
977 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
978 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
979
980 // AWSLogGroupNamesKey is the attribute Key conforming to the
981 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
982 // AWS log group(s) an application is writing to.
983 //
984 // Type: string[]
985 // RequirementLevel: Recommended
986 // Stability: Development
987 //
988 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
989 // Note: Multiple log groups must be supported for cases like multi-container
990 // applications, where a single application has sidecar containers, and each
991 // write to their own log group.
992 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
993
994 // AWSLogStreamARNsKey is the attribute Key conforming to the
995 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
996 // AWS log stream(s).
997 //
998 // Type: string[]
999 // RequirementLevel: Recommended
1000 // Stability: Development
1001 //
1002 // Examples:
1003 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
1004 // Note: See the [log stream ARN format documentation]. One log group can
1005 // contain several log streams, so these ARNs necessarily identify both a log
1006 // group and a log stream.
1007 //
1008 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
1009 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
1010
1011 // AWSLogStreamNamesKey is the attribute Key conforming to the
1012 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1013 // AWS log stream(s) an application is writing to.
1014 //
1015 // Type: string[]
1016 // RequirementLevel: Recommended
1017 // Stability: Development
1018 //
1019 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
1020 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
1021
1022 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
1023 // semantic conventions. It represents the AWS request ID as returned in the
1024 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
1025 // `x-amz-request-id`.
1026 //
1027 // Type: string
1028 // RequirementLevel: Recommended
1029 // Stability: Development
1030 //
1031 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
1032 AWSRequestIDKey = attribute.Key("aws.request_id")
1033
1034 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
1035 // semantic conventions. It represents the S3 bucket name the request refers to.
1036 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1037 //
1038 // Type: string
1039 // RequirementLevel: Recommended
1040 // Stability: Development
1041 //
1042 // Examples: "some-bucket-name"
1043 // Note: The `bucket` attribute is applicable to all S3 operations that
1044 // reference a bucket, i.e. that require the bucket name as a mandatory
1045 // parameter.
1046 // This applies to almost all S3 operations except `list-buckets`.
1047 //
1048 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1049 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
1050
1051 // AWSS3CopySourceKey is the attribute Key conforming to the
1052 // "aws.s3.copy_source" semantic conventions. It represents the source object
1053 // (in the form `bucket`/`key`) for the copy operation.
1054 //
1055 // Type: string
1056 // RequirementLevel: Recommended
1057 // Stability: Development
1058 //
1059 // Examples: "someFile.yml"
1060 // Note: The `copy_source` attribute applies to S3 copy operations and
1061 // corresponds to the `--copy-source` parameter
1062 // of the [copy-object operation within the S3 API].
1063 // This applies in particular to the following operations:
1064 //
1065 // - [copy-object]
1066 // - [upload-part-copy]
1067 //
1068 //
1069 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1070 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1071 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1072 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
1073
1074 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
1075 // semantic conventions. It represents the delete request container that
1076 // specifies the objects to be deleted.
1077 //
1078 // Type: string
1079 // RequirementLevel: Recommended
1080 // Stability: Development
1081 //
1082 // Examples:
1083 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
1084 // Note: The `delete` attribute is only applicable to the [delete-object]
1085 // operation.
1086 // The `delete` attribute corresponds to the `--delete` parameter of the
1087 // [delete-objects operation within the S3 API].
1088 //
1089 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1090 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
1091 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
1092
1093 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
1094 // conventions. It represents the S3 object key the request refers to.
1095 // Corresponds to the `--key` parameter of the [S3 API] operations.
1096 //
1097 // Type: string
1098 // RequirementLevel: Recommended
1099 // Stability: Development
1100 //
1101 // Examples: "someFile.yml"
1102 // Note: The `key` attribute is applicable to all object-related S3 operations,
1103 // i.e. that require the object key as a mandatory parameter.
1104 // This applies in particular to the following operations:
1105 //
1106 // - [copy-object]
1107 // - [delete-object]
1108 // - [get-object]
1109 // - [head-object]
1110 // - [put-object]
1111 // - [restore-object]
1112 // - [select-object-content]
1113 // - [abort-multipart-upload]
1114 // - [complete-multipart-upload]
1115 // - [create-multipart-upload]
1116 // - [list-parts]
1117 // - [upload-part]
1118 // - [upload-part-copy]
1119 //
1120 //
1121 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1122 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1123 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1124 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
1125 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
1126 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
1127 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
1128 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
1129 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1130 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1131 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
1132 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1133 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1134 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1135 AWSS3KeyKey = attribute.Key("aws.s3.key")
1136
1137 // AWSS3PartNumberKey is the attribute Key conforming to the
1138 // "aws.s3.part_number" semantic conventions. It represents the part number of
1139 // the part being uploaded in a multipart-upload operation. This is a positive
1140 // integer between 1 and 10,000.
1141 //
1142 // Type: int
1143 // RequirementLevel: Recommended
1144 // Stability: Development
1145 //
1146 // Examples: 3456
1147 // Note: The `part_number` attribute is only applicable to the [upload-part]
1148 // and [upload-part-copy] operations.
1149 // The `part_number` attribute corresponds to the `--part-number` parameter of
1150 // the
1151 // [upload-part operation within the S3 API].
1152 //
1153 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1154 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1155 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1156 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
1157
1158 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
1159 // semantic conventions. It represents the upload ID that identifies the
1160 // multipart upload.
1161 //
1162 // Type: string
1163 // RequirementLevel: Recommended
1164 // Stability: Development
1165 //
1166 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
1167 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
1168 // corresponds to the `--upload-id` parameter
1169 // of the [S3 API] multipart operations.
1170 // This applies in particular to the following operations:
1171 //
1172 // - [abort-multipart-upload]
1173 // - [complete-multipart-upload]
1174 // - [list-parts]
1175 // - [upload-part]
1176 // - [upload-part-copy]
1177 //
1178 //
1179 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1180 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1181 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1182 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1183 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1184 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1185 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
1186
1187 // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
1188 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
1189 // of the Secret stored in the Secrets Mangger.
1190 //
1191 // Type: string
1192 // RequirementLevel: Recommended
1193 // Stability: Development
1194 //
1195 // Examples:
1196 // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
1197 AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
1198
1199 // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
1200 // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
1201 // SNS [topic] is a logical access point that acts as a communication channel.
1202 //
1203 // Type: string
1204 // RequirementLevel: Recommended
1205 // Stability: Development
1206 //
1207 // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
1208 //
1209 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1210 AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
1211
1212 // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
1213 // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
1214 // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
1215 // used to access the queue and perform actions on it.
1216 //
1217 // Type: string
1218 // RequirementLevel: Recommended
1219 // Stability: Development
1220 //
1221 // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
1222 AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
1223
1224 // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
1225 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1226 // of the AWS Step Functions Activity.
1227 //
1228 // Type: string
1229 // RequirementLevel: Recommended
1230 // Stability: Development
1231 //
1232 // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
1233 AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
1234
1235 // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
1236 // "aws.step_functions.state_machine.arn" semantic conventions. It represents
1237 // the ARN of the AWS Step Functions State Machine.
1238 //
1239 // Type: string
1240 // RequirementLevel: Recommended
1241 // Stability: Development
1242 //
1243 // Examples:
1244 // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
1245 AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
1246 )
1247
1248 // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
1249 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
1250 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
1251 // prevent unwanted behavior from model responses or user messages.
1252 //
1253 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
1254 func AWSBedrockGuardrailID(val string) attribute.KeyValue {
1255 return AWSBedrockGuardrailIDKey.String(val)
1256 }
1257
1258 // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
1259 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
1260 // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
1261 // information that can be queried by models to generate more relevant responses
1262 // and augment prompts.
1263 //
1264 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
1265 func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
1266 return AWSBedrockKnowledgeBaseIDKey.String(val)
1267 }
1268
1269 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
1270 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
1271 // the JSON-serialized value of each item in the `AttributeDefinitions` request
1272 // field.
1273 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
1274 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
1275 }
1276
1277 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
1278 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
1279 // of the `AttributesToGet` request parameter.
1280 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
1281 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
1282 }
1283
1284 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
1285 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
1286 // of the `ConsistentRead` request parameter.
1287 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
1288 return AWSDynamoDBConsistentReadKey.Bool(val)
1289 }
1290
1291 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
1292 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
1293 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
1294 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
1295 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
1296 }
1297
1298 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
1299 // "aws.dynamodb.count" semantic conventions. It represents the value of the
1300 // `Count` response parameter.
1301 func AWSDynamoDBCount(val int) attribute.KeyValue {
1302 return AWSDynamoDBCountKey.Int(val)
1303 }
1304
1305 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
1306 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
1307 // value of the `ExclusiveStartTableName` request parameter.
1308 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
1309 return AWSDynamoDBExclusiveStartTableKey.String(val)
1310 }
1311
1312 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
1313 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
1314 // conventions. It represents the JSON-serialized value of each item in the
1315 // `GlobalSecondaryIndexUpdates` request field.
1316 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
1317 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
1318 }
1319
1320 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
1321 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
1322 // represents the JSON-serialized value of each item of the
1323 // `GlobalSecondaryIndexes` request field.
1324 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
1325 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
1326 }
1327
1328 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
1329 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
1330 // `IndexName` request parameter.
1331 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
1332 return AWSDynamoDBIndexNameKey.String(val)
1333 }
1334
1335 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
1336 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
1337 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
1338 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
1339 return AWSDynamoDBItemCollectionMetricsKey.String(val)
1340 }
1341
1342 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1343 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1344 // `Limit` request parameter.
1345 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1346 return AWSDynamoDBLimitKey.Int(val)
1347 }
1348
1349 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1350 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1351 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1352 // field.
1353 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1354 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1355 }
1356
1357 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1358 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1359 // `ProjectionExpression` request parameter.
1360 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1361 return AWSDynamoDBProjectionKey.String(val)
1362 }
1363
1364 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1365 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1366 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1367 // parameter.
1368 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1369 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1370 }
1371
1372 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1373 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1374 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1375 // parameter.
1376 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1377 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1378 }
1379
1380 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1381 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1382 // the `ScanIndexForward` request parameter.
1383 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1384 return AWSDynamoDBScanForwardKey.Bool(val)
1385 }
1386
1387 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1388 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1389 // the `ScannedCount` response parameter.
1390 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1391 return AWSDynamoDBScannedCountKey.Int(val)
1392 }
1393
1394 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1395 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1396 // `Segment` request parameter.
1397 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1398 return AWSDynamoDBSegmentKey.Int(val)
1399 }
1400
1401 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1402 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1403 // `Select` request parameter.
1404 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1405 return AWSDynamoDBSelectKey.String(val)
1406 }
1407
1408 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1409 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1410 // items in the `TableNames` response parameter.
1411 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1412 return AWSDynamoDBTableCountKey.Int(val)
1413 }
1414
1415 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1416 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1417 // `RequestItems` object field.
1418 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1419 return AWSDynamoDBTableNamesKey.StringSlice(val)
1420 }
1421
1422 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1423 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1424 // the `TotalSegments` request parameter.
1425 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1426 return AWSDynamoDBTotalSegmentsKey.Int(val)
1427 }
1428
1429 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1430 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1431 // [ECS cluster].
1432 //
1433 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1434 func AWSECSClusterARN(val string) attribute.KeyValue {
1435 return AWSECSClusterARNKey.String(val)
1436 }
1437
1438 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1439 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1440 // Resource Name (ARN) of an [ECS container instance].
1441 //
1442 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1443 func AWSECSContainerARN(val string) attribute.KeyValue {
1444 return AWSECSContainerARNKey.String(val)
1445 }
1446
1447 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1448 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1449 // [ECS task].
1450 //
1451 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1452 func AWSECSTaskARN(val string) attribute.KeyValue {
1453 return AWSECSTaskARNKey.String(val)
1454 }
1455
1456 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1457 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1458 // the [ECS task definition] used to create the ECS task.
1459 //
1460 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1461 func AWSECSTaskFamily(val string) attribute.KeyValue {
1462 return AWSECSTaskFamilyKey.String(val)
1463 }
1464
1465 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1466 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1467 // be extracted from `task.arn`.
1468 func AWSECSTaskID(val string) attribute.KeyValue {
1469 return AWSECSTaskIDKey.String(val)
1470 }
1471
1472 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1473 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1474 // the task definition used to create the ECS task.
1475 func AWSECSTaskRevision(val string) attribute.KeyValue {
1476 return AWSECSTaskRevisionKey.String(val)
1477 }
1478
1479 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1480 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1481 // cluster.
1482 func AWSEKSClusterARN(val string) attribute.KeyValue {
1483 return AWSEKSClusterARNKey.String(val)
1484 }
1485
1486 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1487 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1488 // request ID as returned in the response header `x-amz-id-2`.
1489 func AWSExtendedRequestID(val string) attribute.KeyValue {
1490 return AWSExtendedRequestIDKey.String(val)
1491 }
1492
1493 // AWSKinesisStreamName returns an attribute KeyValue conforming to the
1494 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
1495 // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
1496 // parameter of the Kinesis [describe-stream] operation.
1497 //
1498 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
1499 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
1500 func AWSKinesisStreamName(val string) attribute.KeyValue {
1501 return AWSKinesisStreamNameKey.String(val)
1502 }
1503
1504 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1505 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1506 // ARN as provided on the `Context` passed to the function (
1507 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1508 // applicable).
1509 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1510 return AWSLambdaInvokedARNKey.String(val)
1511 }
1512
1513 // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
1514 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
1515 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
1516 // function. It's contents are read by Lambda and used to trigger a function.
1517 // This isn't available in the lambda execution context or the lambda runtime
1518 // environtment. This is going to be populated by the AWS SDK for each language
1519 // when that UUID is present. Some of these operations are
1520 // Create/Delete/Get/List/Update EventSourceMapping.
1521 //
1522 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
1523 func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
1524 return AWSLambdaResourceMappingIDKey.String(val)
1525 }
1526
1527 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1528 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1529 // Name(s) (ARN) of the AWS log group(s).
1530 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1531 return AWSLogGroupARNsKey.StringSlice(val)
1532 }
1533
1534 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1535 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1536 // AWS log group(s) an application is writing to.
1537 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1538 return AWSLogGroupNamesKey.StringSlice(val)
1539 }
1540
1541 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1542 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1543 // AWS log stream(s).
1544 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1545 return AWSLogStreamARNsKey.StringSlice(val)
1546 }
1547
1548 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1549 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1550 // AWS log stream(s) an application is writing to.
1551 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1552 return AWSLogStreamNamesKey.StringSlice(val)
1553 }
1554
1555 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1556 // semantic conventions. It represents the AWS request ID as returned in the
1557 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1558 // .
1559 func AWSRequestID(val string) attribute.KeyValue {
1560 return AWSRequestIDKey.String(val)
1561 }
1562
1563 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1564 // semantic conventions. It represents the S3 bucket name the request refers to.
1565 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1566 //
1567 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1568 func AWSS3Bucket(val string) attribute.KeyValue {
1569 return AWSS3BucketKey.String(val)
1570 }
1571
1572 // AWSS3CopySource returns an attribute KeyValue conforming to the
1573 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1574 // the form `bucket`/`key`) for the copy operation.
1575 func AWSS3CopySource(val string) attribute.KeyValue {
1576 return AWSS3CopySourceKey.String(val)
1577 }
1578
1579 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1580 // semantic conventions. It represents the delete request container that
1581 // specifies the objects to be deleted.
1582 func AWSS3Delete(val string) attribute.KeyValue {
1583 return AWSS3DeleteKey.String(val)
1584 }
1585
1586 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1587 // conventions. It represents the S3 object key the request refers to.
1588 // Corresponds to the `--key` parameter of the [S3 API] operations.
1589 //
1590 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1591 func AWSS3Key(val string) attribute.KeyValue {
1592 return AWSS3KeyKey.String(val)
1593 }
1594
1595 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1596 // "aws.s3.part_number" semantic conventions. It represents the part number of
1597 // the part being uploaded in a multipart-upload operation. This is a positive
1598 // integer between 1 and 10,000.
1599 func AWSS3PartNumber(val int) attribute.KeyValue {
1600 return AWSS3PartNumberKey.Int(val)
1601 }
1602
1603 // AWSS3UploadID returns an attribute KeyValue conforming to the
1604 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1605 // identifies the multipart upload.
1606 func AWSS3UploadID(val string) attribute.KeyValue {
1607 return AWSS3UploadIDKey.String(val)
1608 }
1609
1610 // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
1611 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
1612 // the Secret stored in the Secrets Mangger.
1613 func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
1614 return AWSSecretsmanagerSecretARNKey.String(val)
1615 }
1616
1617 // AWSSNSTopicARN returns an attribute KeyValue conforming to the
1618 // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
1619 // Topic. An Amazon SNS [topic] is a logical access point that acts as a
1620 // communication channel.
1621 //
1622 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1623 func AWSSNSTopicARN(val string) attribute.KeyValue {
1624 return AWSSNSTopicARNKey.String(val)
1625 }
1626
1627 // AWSSQSQueueURL returns an attribute KeyValue conforming to the
1628 // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
1629 // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
1630 // (SQS) and is used to access the queue and perform actions on it.
1631 func AWSSQSQueueURL(val string) attribute.KeyValue {
1632 return AWSSQSQueueURLKey.String(val)
1633 }
1634
1635 // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
1636 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1637 // of the AWS Step Functions Activity.
1638 func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
1639 return AWSStepFunctionsActivityARNKey.String(val)
1640 }
1641
1642 // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
1643 // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
1644 // the ARN of the AWS Step Functions State Machine.
1645 func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
1646 return AWSStepFunctionsStateMachineARNKey.String(val)
1647 }
1648
1649 // Enum values for aws.ecs.launchtype
1650 var (
1651 // Amazon EC2
1652 // Stability: development
1653 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1654 // Amazon Fargate
1655 // Stability: development
1656 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1657 )
1658
1659 // Namespace: azure
1660 const (
1661 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1662 // semantic conventions. It represents the unique identifier of the client
1663 // instance.
1664 //
1665 // Type: string
1666 // RequirementLevel: Recommended
1667 // Stability: Development
1668 //
1669 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1670 AzureClientIDKey = attribute.Key("azure.client.id")
1671
1672 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1673 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1674 // cosmos client connection mode.
1675 //
1676 // Type: Enum
1677 // RequirementLevel: Recommended
1678 // Stability: Development
1679 //
1680 // Examples:
1681 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1682
1683 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1684 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1685 // account or request [consistency level].
1686 //
1687 // Type: Enum
1688 // RequirementLevel: Recommended
1689 // Stability: Development
1690 //
1691 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1692 // "Session"
1693 //
1694 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1695 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1696
1697 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1698 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1699 // represents the list of regions contacted during operation in the order that
1700 // they were contacted. If there is more than one region listed, it indicates
1701 // that the operation was performed on multiple regions i.e. cross-regional
1702 // call.
1703 //
1704 // Type: string[]
1705 // RequirementLevel: Recommended
1706 // Stability: Development
1707 //
1708 // Examples: "North Central US", "Australia East", "Australia Southeast"
1709 // Note: Region name matches the format of `displayName` in [Azure Location API]
1710 //
1711 // [Azure Location API]: https://learn.microsoft.com/rest/api/resources/subscriptions/list-locations
1712 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1713
1714 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1715 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1716 // the number of request units consumed by the operation.
1717 //
1718 // Type: double
1719 // RequirementLevel: Recommended
1720 // Stability: Development
1721 //
1722 // Examples: 46.18, 1.0
1723 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1724
1725 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1726 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1727 // request payload size in bytes.
1728 //
1729 // Type: int
1730 // RequirementLevel: Recommended
1731 // Stability: Development
1732 //
1733 // Examples:
1734 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1735
1736 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1737 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1738 // the cosmos DB sub status code.
1739 //
1740 // Type: int
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples: 1000, 1002
1745 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1746
1747 // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
1748 // "azure.resource_provider.namespace" semantic conventions. It represents the
1749 // [Azure Resource Provider Namespace] as recognized by the client.
1750 //
1751 // Type: string
1752 // RequirementLevel: Recommended
1753 // Stability: Development
1754 //
1755 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1756 //
1757 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1758 AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
1759
1760 // AzureServiceRequestIDKey is the attribute Key conforming to the
1761 // "azure.service.request.id" semantic conventions. It represents the unique
1762 // identifier of the service request. It's generated by the Azure service and
1763 // returned with the response.
1764 //
1765 // Type: string
1766 // RequirementLevel: Recommended
1767 // Stability: Development
1768 //
1769 // Examples: "00000000-0000-0000-0000-000000000000"
1770 AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
1771 )
1772
1773 // AzureClientID returns an attribute KeyValue conforming to the
1774 // "azure.client.id" semantic conventions. It represents the unique identifier of
1775 // the client instance.
1776 func AzureClientID(val string) attribute.KeyValue {
1777 return AzureClientIDKey.String(val)
1778 }
1779
1780 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1781 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1782 // conventions. It represents the list of regions contacted during operation in
1783 // the order that they were contacted. If there is more than one region listed,
1784 // it indicates that the operation was performed on multiple regions i.e.
1785 // cross-regional call.
1786 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1787 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1788 }
1789
1790 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1791 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1792 // represents the number of request units consumed by the operation.
1793 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1794 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1795 }
1796
1797 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1798 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1799 // request payload size in bytes.
1800 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1801 return AzureCosmosDBRequestBodySizeKey.Int(val)
1802 }
1803
1804 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1805 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1806 // represents the cosmos DB sub status code.
1807 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1808 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1809 }
1810
1811 // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
1812 // "azure.resource_provider.namespace" semantic conventions. It represents the
1813 // [Azure Resource Provider Namespace] as recognized by the client.
1814 //
1815 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1816 func AzureResourceProviderNamespace(val string) attribute.KeyValue {
1817 return AzureResourceProviderNamespaceKey.String(val)
1818 }
1819
1820 // AzureServiceRequestID returns an attribute KeyValue conforming to the
1821 // "azure.service.request.id" semantic conventions. It represents the unique
1822 // identifier of the service request. It's generated by the Azure service and
1823 // returned with the response.
1824 func AzureServiceRequestID(val string) attribute.KeyValue {
1825 return AzureServiceRequestIDKey.String(val)
1826 }
1827
1828 // Enum values for azure.cosmosdb.connection.mode
1829 var (
1830 // Gateway (HTTP) connection.
1831 // Stability: development
1832 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1833 // Direct connection.
1834 // Stability: development
1835 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1836 )
1837
1838 // Enum values for azure.cosmosdb.consistency.level
1839 var (
1840 // Strong
1841 // Stability: development
1842 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1843 // Bounded Staleness
1844 // Stability: development
1845 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1846 // Session
1847 // Stability: development
1848 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1849 // Eventual
1850 // Stability: development
1851 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1852 // Consistent Prefix
1853 // Stability: development
1854 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1855 )
1856
1857 // Namespace: browser
1858 const (
1859 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1860 // semantic conventions. It represents the array of brand name and version
1861 // separated by a space.
1862 //
1863 // Type: string[]
1864 // RequirementLevel: Recommended
1865 // Stability: Development
1866 //
1867 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1868 // Note: This value is intended to be taken from the [UA client hints API] (
1869 // `navigator.userAgentData.brands`).
1870 //
1871 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1872 BrowserBrandsKey = attribute.Key("browser.brands")
1873
1874 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1875 // semantic conventions. It represents the preferred language of the user using
1876 // the browser.
1877 //
1878 // Type: string
1879 // RequirementLevel: Recommended
1880 // Stability: Development
1881 //
1882 // Examples: "en", "en-US", "fr", "fr-FR"
1883 // Note: This value is intended to be taken from the Navigator API
1884 // `navigator.language`.
1885 BrowserLanguageKey = attribute.Key("browser.language")
1886
1887 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1888 // semantic conventions. It represents a boolean that is true if the browser is
1889 // running on a mobile device.
1890 //
1891 // Type: boolean
1892 // RequirementLevel: Recommended
1893 // Stability: Development
1894 //
1895 // Examples:
1896 // Note: This value is intended to be taken from the [UA client hints API] (
1897 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1898 // left unset.
1899 //
1900 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1901 BrowserMobileKey = attribute.Key("browser.mobile")
1902
1903 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1904 // semantic conventions. It represents the platform on which the browser is
1905 // running.
1906 //
1907 // Type: string
1908 // RequirementLevel: Recommended
1909 // Stability: Development
1910 //
1911 // Examples: "Windows", "macOS", "Android"
1912 // Note: This value is intended to be taken from the [UA client hints API] (
1913 // `navigator.userAgentData.platform`). If unavailable, the legacy
1914 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1915 // be left unset in order for the values to be consistent.
1916 // The list of possible values is defined in the
1917 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1918 // these values can overlap with values in the
1919 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1920 // the `browser.platform` attribute should capture the exact value that the user
1921 // agent provides.
1922 //
1923 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1924 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1925 // [`os.type` and `os.name` attributes]: ./os.md
1926 BrowserPlatformKey = attribute.Key("browser.platform")
1927 )
1928
1929 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1930 // semantic conventions. It represents the array of brand name and version
1931 // separated by a space.
1932 func BrowserBrands(val ...string) attribute.KeyValue {
1933 return BrowserBrandsKey.StringSlice(val)
1934 }
1935
1936 // BrowserLanguage returns an attribute KeyValue conforming to the
1937 // "browser.language" semantic conventions. It represents the preferred language
1938 // of the user using the browser.
1939 func BrowserLanguage(val string) attribute.KeyValue {
1940 return BrowserLanguageKey.String(val)
1941 }
1942
1943 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1944 // semantic conventions. It represents a boolean that is true if the browser is
1945 // running on a mobile device.
1946 func BrowserMobile(val bool) attribute.KeyValue {
1947 return BrowserMobileKey.Bool(val)
1948 }
1949
1950 // BrowserPlatform returns an attribute KeyValue conforming to the
1951 // "browser.platform" semantic conventions. It represents the platform on which
1952 // the browser is running.
1953 func BrowserPlatform(val string) attribute.KeyValue {
1954 return BrowserPlatformKey.String(val)
1955 }
1956
1957 // Namespace: cassandra
1958 const (
1959 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1960 // "cassandra.consistency.level" semantic conventions. It represents the
1961 // consistency level of the query. Based on consistency values from [CQL].
1962 //
1963 // Type: Enum
1964 // RequirementLevel: Recommended
1965 // Stability: Development
1966 //
1967 // Examples:
1968 //
1969 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1970 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1971
1972 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1973 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1974 // center of the coordinating node for a query.
1975 //
1976 // Type: string
1977 // RequirementLevel: Recommended
1978 // Stability: Development
1979 //
1980 // Examples: us-west-2
1981 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1982
1983 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1984 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1985 // coordinating node for a query.
1986 //
1987 // Type: string
1988 // RequirementLevel: Recommended
1989 // Stability: Development
1990 //
1991 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1992 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1993
1994 // CassandraPageSizeKey is the attribute Key conforming to the
1995 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1996 // for paging, i.e. how many rows will be returned at once.
1997 //
1998 // Type: int
1999 // RequirementLevel: Recommended
2000 // Stability: Development
2001 //
2002 // Examples: 5000
2003 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
2004
2005 // CassandraQueryIdempotentKey is the attribute Key conforming to the
2006 // "cassandra.query.idempotent" semantic conventions. It represents the whether
2007 // or not the query is idempotent.
2008 //
2009 // Type: boolean
2010 // RequirementLevel: Recommended
2011 // Stability: Development
2012 //
2013 // Examples:
2014 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
2015
2016 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
2017 // "cassandra.speculative_execution.count" semantic conventions. It represents
2018 // the number of times a query was speculatively executed. Not set or `0` if the
2019 // query was not executed speculatively.
2020 //
2021 // Type: int
2022 // RequirementLevel: Recommended
2023 // Stability: Development
2024 //
2025 // Examples: 0, 2
2026 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
2027 )
2028
2029 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
2030 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
2031 // of the coordinating node for a query.
2032 func CassandraCoordinatorDC(val string) attribute.KeyValue {
2033 return CassandraCoordinatorDCKey.String(val)
2034 }
2035
2036 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
2037 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
2038 // coordinating node for a query.
2039 func CassandraCoordinatorID(val string) attribute.KeyValue {
2040 return CassandraCoordinatorIDKey.String(val)
2041 }
2042
2043 // CassandraPageSize returns an attribute KeyValue conforming to the
2044 // "cassandra.page.size" semantic conventions. It represents the fetch size used
2045 // for paging, i.e. how many rows will be returned at once.
2046 func CassandraPageSize(val int) attribute.KeyValue {
2047 return CassandraPageSizeKey.Int(val)
2048 }
2049
2050 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
2051 // "cassandra.query.idempotent" semantic conventions. It represents the whether
2052 // or not the query is idempotent.
2053 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
2054 return CassandraQueryIdempotentKey.Bool(val)
2055 }
2056
2057 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
2058 // the "cassandra.speculative_execution.count" semantic conventions. It
2059 // represents the number of times a query was speculatively executed. Not set or
2060 // `0` if the query was not executed speculatively.
2061 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
2062 return CassandraSpeculativeExecutionCountKey.Int(val)
2063 }
2064
2065 // Enum values for cassandra.consistency.level
2066 var (
2067 // All
2068 // Stability: development
2069 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
2070 // Each Quorum
2071 // Stability: development
2072 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
2073 // Quorum
2074 // Stability: development
2075 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
2076 // Local Quorum
2077 // Stability: development
2078 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
2079 // One
2080 // Stability: development
2081 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
2082 // Two
2083 // Stability: development
2084 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
2085 // Three
2086 // Stability: development
2087 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
2088 // Local One
2089 // Stability: development
2090 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
2091 // Any
2092 // Stability: development
2093 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
2094 // Serial
2095 // Stability: development
2096 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
2097 // Local Serial
2098 // Stability: development
2099 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
2100 )
2101
2102 // Namespace: cicd
2103 const (
2104 // CICDPipelineActionNameKey is the attribute Key conforming to the
2105 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
2106 // action a pipeline run is performing.
2107 //
2108 // Type: Enum
2109 // RequirementLevel: Recommended
2110 // Stability: Development
2111 //
2112 // Examples: "BUILD", "RUN", "SYNC"
2113 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
2114
2115 // CICDPipelineNameKey is the attribute Key conforming to the
2116 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2117 // name of the pipeline within a CI/CD system.
2118 //
2119 // Type: string
2120 // RequirementLevel: Recommended
2121 // Stability: Development
2122 //
2123 // Examples: "Build and Test", "Lint", "Deploy Go Project",
2124 // "deploy_to_environment"
2125 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
2126
2127 // CICDPipelineResultKey is the attribute Key conforming to the
2128 // "cicd.pipeline.result" semantic conventions. It represents the result of a
2129 // pipeline run.
2130 //
2131 // Type: Enum
2132 // RequirementLevel: Recommended
2133 // Stability: Development
2134 //
2135 // Examples: "success", "failure", "timeout", "skipped"
2136 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
2137
2138 // CICDPipelineRunIDKey is the attribute Key conforming to the
2139 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2140 // identifier of a pipeline run within a CI/CD system.
2141 //
2142 // Type: string
2143 // RequirementLevel: Recommended
2144 // Stability: Development
2145 //
2146 // Examples: "120912"
2147 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
2148
2149 // CICDPipelineRunStateKey is the attribute Key conforming to the
2150 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
2151 // run goes through these states during its lifecycle.
2152 //
2153 // Type: Enum
2154 // RequirementLevel: Recommended
2155 // Stability: Development
2156 //
2157 // Examples: "pending", "executing", "finalizing"
2158 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
2159
2160 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
2161 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2162 // the pipeline run, providing the complete address in order to locate and
2163 // identify the pipeline run.
2164 //
2165 // Type: string
2166 // RequirementLevel: Recommended
2167 // Stability: Development
2168 //
2169 // Examples:
2170 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
2171 //
2172 // [URL]: https://wikipedia.org/wiki/URL
2173 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
2174
2175 // CICDPipelineTaskNameKey is the attribute Key conforming to the
2176 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2177 // readable name of a task within a pipeline. Task here most closely aligns with
2178 // a [computing process] in a pipeline. Other terms for tasks include commands,
2179 // steps, and procedures.
2180 //
2181 // Type: string
2182 // RequirementLevel: Recommended
2183 // Stability: Development
2184 //
2185 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
2186 //
2187 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2188 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
2189
2190 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
2191 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2192 // identifier of a task run within a pipeline.
2193 //
2194 // Type: string
2195 // RequirementLevel: Recommended
2196 // Stability: Development
2197 //
2198 // Examples: "12097"
2199 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
2200
2201 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
2202 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
2203 // result of a task run.
2204 //
2205 // Type: Enum
2206 // RequirementLevel: Recommended
2207 // Stability: Development
2208 //
2209 // Examples: "success", "failure", "timeout", "skipped"
2210 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
2211
2212 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
2213 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2214 // [URL] of the pipeline task run, providing the complete address in order to
2215 // locate and identify the pipeline task run.
2216 //
2217 // Type: string
2218 // RequirementLevel: Recommended
2219 // Stability: Development
2220 //
2221 // Examples:
2222 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
2223 //
2224 // [URL]: https://wikipedia.org/wiki/URL
2225 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
2226
2227 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
2228 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
2229 // task within a pipeline.
2230 //
2231 // Type: Enum
2232 // RequirementLevel: Recommended
2233 // Stability: Development
2234 //
2235 // Examples: "build", "test", "deploy"
2236 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
2237
2238 // CICDSystemComponentKey is the attribute Key conforming to the
2239 // "cicd.system.component" semantic conventions. It represents the name of a
2240 // component of the CICD system.
2241 //
2242 // Type: string
2243 // RequirementLevel: Recommended
2244 // Stability: Development
2245 //
2246 // Examples: "controller", "scheduler", "agent"
2247 CICDSystemComponentKey = attribute.Key("cicd.system.component")
2248
2249 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
2250 // semantic conventions. It represents the unique identifier of a worker within
2251 // a CICD system.
2252 //
2253 // Type: string
2254 // RequirementLevel: Recommended
2255 // Stability: Development
2256 //
2257 // Examples: "abc123", "10.0.1.2", "controller"
2258 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
2259
2260 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
2261 // semantic conventions. It represents the name of a worker within a CICD
2262 // system.
2263 //
2264 // Type: string
2265 // RequirementLevel: Recommended
2266 // Stability: Development
2267 //
2268 // Examples: "agent-abc", "controller", "Ubuntu LTS"
2269 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
2270
2271 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
2272 // semantic conventions. It represents the state of a CICD worker / agent.
2273 //
2274 // Type: Enum
2275 // RequirementLevel: Recommended
2276 // Stability: Development
2277 //
2278 // Examples: "idle", "busy", "down"
2279 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
2280
2281 // CICDWorkerURLFullKey is the attribute Key conforming to the
2282 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2283 // worker, providing the complete address in order to locate and identify the
2284 // worker.
2285 //
2286 // Type: string
2287 // RequirementLevel: Recommended
2288 // Stability: Development
2289 //
2290 // Examples: "https://cicd.example.org/worker/abc123"
2291 //
2292 // [URL]: https://wikipedia.org/wiki/URL
2293 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
2294 )
2295
2296 // CICDPipelineName returns an attribute KeyValue conforming to the
2297 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2298 // name of the pipeline within a CI/CD system.
2299 func CICDPipelineName(val string) attribute.KeyValue {
2300 return CICDPipelineNameKey.String(val)
2301 }
2302
2303 // CICDPipelineRunID returns an attribute KeyValue conforming to the
2304 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2305 // identifier of a pipeline run within a CI/CD system.
2306 func CICDPipelineRunID(val string) attribute.KeyValue {
2307 return CICDPipelineRunIDKey.String(val)
2308 }
2309
2310 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
2311 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2312 // the pipeline run, providing the complete address in order to locate and
2313 // identify the pipeline run.
2314 //
2315 // [URL]: https://wikipedia.org/wiki/URL
2316 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
2317 return CICDPipelineRunURLFullKey.String(val)
2318 }
2319
2320 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
2321 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2322 // readable name of a task within a pipeline. Task here most closely aligns with
2323 // a [computing process] in a pipeline. Other terms for tasks include commands,
2324 // steps, and procedures.
2325 //
2326 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2327 func CICDPipelineTaskName(val string) attribute.KeyValue {
2328 return CICDPipelineTaskNameKey.String(val)
2329 }
2330
2331 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2332 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2333 // identifier of a task run within a pipeline.
2334 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2335 return CICDPipelineTaskRunIDKey.String(val)
2336 }
2337
2338 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2339 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2340 // [URL] of the pipeline task run, providing the complete address in order to
2341 // locate and identify the pipeline task run.
2342 //
2343 // [URL]: https://wikipedia.org/wiki/URL
2344 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2345 return CICDPipelineTaskRunURLFullKey.String(val)
2346 }
2347
2348 // CICDSystemComponent returns an attribute KeyValue conforming to the
2349 // "cicd.system.component" semantic conventions. It represents the name of a
2350 // component of the CICD system.
2351 func CICDSystemComponent(val string) attribute.KeyValue {
2352 return CICDSystemComponentKey.String(val)
2353 }
2354
2355 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2356 // semantic conventions. It represents the unique identifier of a worker within a
2357 // CICD system.
2358 func CICDWorkerID(val string) attribute.KeyValue {
2359 return CICDWorkerIDKey.String(val)
2360 }
2361
2362 // CICDWorkerName returns an attribute KeyValue conforming to the
2363 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2364 // within a CICD system.
2365 func CICDWorkerName(val string) attribute.KeyValue {
2366 return CICDWorkerNameKey.String(val)
2367 }
2368
2369 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2370 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2371 // worker, providing the complete address in order to locate and identify the
2372 // worker.
2373 //
2374 // [URL]: https://wikipedia.org/wiki/URL
2375 func CICDWorkerURLFull(val string) attribute.KeyValue {
2376 return CICDWorkerURLFullKey.String(val)
2377 }
2378
2379 // Enum values for cicd.pipeline.action.name
2380 var (
2381 // The pipeline run is executing a build.
2382 // Stability: development
2383 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2384 // The pipeline run is executing.
2385 // Stability: development
2386 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2387 // The pipeline run is executing a sync.
2388 // Stability: development
2389 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2390 )
2391
2392 // Enum values for cicd.pipeline.result
2393 var (
2394 // The pipeline run finished successfully.
2395 // Stability: development
2396 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2397 // The pipeline run did not finish successfully, eg. due to a compile error or a
2398 // failing test. Such failures are usually detected by non-zero exit codes of
2399 // the tools executed in the pipeline run.
2400 // Stability: development
2401 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2402 // The pipeline run failed due to an error in the CICD system, eg. due to the
2403 // worker being killed.
2404 // Stability: development
2405 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2406 // A timeout caused the pipeline run to be interrupted.
2407 // Stability: development
2408 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2409 // The pipeline run was cancelled, eg. by a user manually cancelling the
2410 // pipeline run.
2411 // Stability: development
2412 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2413 // The pipeline run was skipped, eg. due to a precondition not being met.
2414 // Stability: development
2415 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2416 )
2417
2418 // Enum values for cicd.pipeline.run.state
2419 var (
2420 // The run pending state spans from the event triggering the pipeline run until
2421 // the execution of the run starts (eg. time spent in a queue, provisioning
2422 // agents, creating run resources).
2423 //
2424 // Stability: development
2425 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2426 // The executing state spans the execution of any run tasks (eg. build, test).
2427 // Stability: development
2428 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2429 // The finalizing state spans from when the run has finished executing (eg.
2430 // cleanup of run resources).
2431 // Stability: development
2432 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2433 )
2434
2435 // Enum values for cicd.pipeline.task.run.result
2436 var (
2437 // The task run finished successfully.
2438 // Stability: development
2439 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2440 // The task run did not finish successfully, eg. due to a compile error or a
2441 // failing test. Such failures are usually detected by non-zero exit codes of
2442 // the tools executed in the task run.
2443 // Stability: development
2444 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2445 // The task run failed due to an error in the CICD system, eg. due to the worker
2446 // being killed.
2447 // Stability: development
2448 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2449 // A timeout caused the task run to be interrupted.
2450 // Stability: development
2451 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2452 // The task run was cancelled, eg. by a user manually cancelling the task run.
2453 // Stability: development
2454 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2455 // The task run was skipped, eg. due to a precondition not being met.
2456 // Stability: development
2457 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2458 )
2459
2460 // Enum values for cicd.pipeline.task.type
2461 var (
2462 // build
2463 // Stability: development
2464 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2465 // test
2466 // Stability: development
2467 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2468 // deploy
2469 // Stability: development
2470 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2471 )
2472
2473 // Enum values for cicd.worker.state
2474 var (
2475 // The worker is not performing work for the CICD system. It is available to the
2476 // CICD system to perform work on (online / idle).
2477 // Stability: development
2478 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2479 // The worker is performing work for the CICD system.
2480 // Stability: development
2481 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2482 // The worker is not available to the CICD system (disconnected / down).
2483 // Stability: development
2484 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2485 )
2486
2487 // Namespace: client
2488 const (
2489 // ClientAddressKey is the attribute Key conforming to the "client.address"
2490 // semantic conventions. It represents the client address - domain name if
2491 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2492 // socket name.
2493 //
2494 // Type: string
2495 // RequirementLevel: Recommended
2496 // Stability: Stable
2497 //
2498 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2499 // Note: When observed from the server side, and when communicating through an
2500 // intermediary, `client.address` SHOULD represent the client address behind any
2501 // intermediaries, for example proxies, if it's available.
2502 ClientAddressKey = attribute.Key("client.address")
2503
2504 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2505 // conventions. It represents the client port number.
2506 //
2507 // Type: int
2508 // RequirementLevel: Recommended
2509 // Stability: Stable
2510 //
2511 // Examples: 65123
2512 // Note: When observed from the server side, and when communicating through an
2513 // intermediary, `client.port` SHOULD represent the client port behind any
2514 // intermediaries, for example proxies, if it's available.
2515 ClientPortKey = attribute.Key("client.port")
2516 )
2517
2518 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2519 // semantic conventions. It represents the client address - domain name if
2520 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2521 // socket name.
2522 func ClientAddress(val string) attribute.KeyValue {
2523 return ClientAddressKey.String(val)
2524 }
2525
2526 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2527 // semantic conventions. It represents the client port number.
2528 func ClientPort(val int) attribute.KeyValue {
2529 return ClientPortKey.Int(val)
2530 }
2531
2532 // Namespace: cloud
2533 const (
2534 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2535 // semantic conventions. It represents the cloud account ID the resource is
2536 // assigned to.
2537 //
2538 // Type: string
2539 // RequirementLevel: Recommended
2540 // Stability: Development
2541 //
2542 // Examples: "111111111111", "opentelemetry"
2543 CloudAccountIDKey = attribute.Key("cloud.account.id")
2544
2545 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2546 // "cloud.availability_zone" semantic conventions. It represents the cloud
2547 // regions often have multiple, isolated locations known as zones to increase
2548 // availability. Availability zone represents the zone where the resource is
2549 // running.
2550 //
2551 // Type: string
2552 // RequirementLevel: Recommended
2553 // Stability: Development
2554 //
2555 // Examples: "us-east-1c"
2556 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2557 // Cloud.
2558 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2559
2560 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2561 // semantic conventions. It represents the cloud platform in use.
2562 //
2563 // Type: Enum
2564 // RequirementLevel: Recommended
2565 // Stability: Development
2566 //
2567 // Examples:
2568 // Note: The prefix of the service SHOULD match the one specified in
2569 // `cloud.provider`.
2570 CloudPlatformKey = attribute.Key("cloud.platform")
2571
2572 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2573 // semantic conventions. It represents the name of the cloud provider.
2574 //
2575 // Type: Enum
2576 // RequirementLevel: Recommended
2577 // Stability: Development
2578 //
2579 // Examples:
2580 CloudProviderKey = attribute.Key("cloud.provider")
2581
2582 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2583 // conventions. It represents the geographical region within a cloud provider.
2584 // When associated with a resource, this attribute specifies the region where
2585 // the resource operates. When calling services or APIs deployed on a cloud,
2586 // this attribute identifies the region where the called destination is
2587 // deployed.
2588 //
2589 // Type: string
2590 // RequirementLevel: Recommended
2591 // Stability: Development
2592 //
2593 // Examples: "us-central1", "us-east-1"
2594 // Note: Refer to your provider's docs to see the available regions, for example
2595 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2596 // [Google Cloud regions], or [Tencent Cloud regions].
2597 //
2598 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2599 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2600 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2601 // [Google Cloud regions]: https://cloud.google.com/about/locations
2602 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2603 CloudRegionKey = attribute.Key("cloud.region")
2604
2605 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2606 // semantic conventions. It represents the cloud provider-specific native
2607 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2608 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2609 //
2610 // Type: string
2611 // RequirementLevel: Recommended
2612 // Stability: Development
2613 //
2614 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2615 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2616 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2617 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2618 // Note: On some cloud providers, it may not be possible to determine the full
2619 // ID at startup,
2620 // so it may be necessary to set `cloud.resource_id` as a span attribute
2621 // instead.
2622 //
2623 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2624 // The following well-known definitions MUST be used if you set this attribute
2625 // and they apply:
2626 //
2627 // - **AWS Lambda:** The function [ARN].
2628 // Take care not to use the "invoked ARN" directly but replace any
2629 // [alias suffix]
2630 // with the resolved function version, as the same runtime instance may be
2631 // invocable with
2632 // multiple different aliases.
2633 // - **GCP:** The [URI of the resource]
2634 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2635 // *not* the function app, having the form
2636 //
2637 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2638 // .
2639 // This means that a span attribute MUST be used, as an Azure function app
2640 // can host multiple functions that would usually share
2641 // a TracerProvider.
2642 //
2643 //
2644 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2645 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2646 // [full resource name]: https://google.aip.dev/122#full-resource-names
2647 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2648 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2649 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2650 // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2651 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2652 )
2653
2654 // CloudAccountID returns an attribute KeyValue conforming to the
2655 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2656 // the resource is assigned to.
2657 func CloudAccountID(val string) attribute.KeyValue {
2658 return CloudAccountIDKey.String(val)
2659 }
2660
2661 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2662 // "cloud.availability_zone" semantic conventions. It represents the cloud
2663 // regions often have multiple, isolated locations known as zones to increase
2664 // availability. Availability zone represents the zone where the resource is
2665 // running.
2666 func CloudAvailabilityZone(val string) attribute.KeyValue {
2667 return CloudAvailabilityZoneKey.String(val)
2668 }
2669
2670 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2671 // semantic conventions. It represents the geographical region within a cloud
2672 // provider. When associated with a resource, this attribute specifies the region
2673 // where the resource operates. When calling services or APIs deployed on a
2674 // cloud, this attribute identifies the region where the called destination is
2675 // deployed.
2676 func CloudRegion(val string) attribute.KeyValue {
2677 return CloudRegionKey.String(val)
2678 }
2679
2680 // CloudResourceID returns an attribute KeyValue conforming to the
2681 // "cloud.resource_id" semantic conventions. It represents the cloud
2682 // provider-specific native identifier of the monitored cloud resource (e.g. an
2683 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2684 // on GCP).
2685 //
2686 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2687 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2688 // [full resource name]: https://google.aip.dev/122#full-resource-names
2689 func CloudResourceID(val string) attribute.KeyValue {
2690 return CloudResourceIDKey.String(val)
2691 }
2692
2693 // Enum values for cloud.platform
2694 var (
2695 // Akamai Cloud Compute
2696 // Stability: development
2697 CloudPlatformAkamaiCloudCompute = CloudPlatformKey.String("akamai_cloud.compute")
2698 // Alibaba Cloud Elastic Compute Service
2699 // Stability: development
2700 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2701 // Alibaba Cloud Function Compute
2702 // Stability: development
2703 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2704 // Red Hat OpenShift on Alibaba Cloud
2705 // Stability: development
2706 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2707 // AWS Elastic Compute Cloud
2708 // Stability: development
2709 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2710 // AWS Elastic Container Service
2711 // Stability: development
2712 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2713 // AWS Elastic Kubernetes Service
2714 // Stability: development
2715 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2716 // AWS Lambda
2717 // Stability: development
2718 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2719 // AWS Elastic Beanstalk
2720 // Stability: development
2721 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2722 // AWS App Runner
2723 // Stability: development
2724 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2725 // Red Hat OpenShift on AWS (ROSA)
2726 // Stability: development
2727 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2728 // Azure Virtual Machines
2729 // Stability: development
2730 CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
2731 // Azure Container Apps
2732 // Stability: development
2733 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
2734 // Azure Container Instances
2735 // Stability: development
2736 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
2737 // Azure Kubernetes Service
2738 // Stability: development
2739 CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
2740 // Azure Functions
2741 // Stability: development
2742 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
2743 // Azure App Service
2744 // Stability: development
2745 CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
2746 // Azure Red Hat OpenShift
2747 // Stability: development
2748 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
2749 // Google Vertex AI Agent Engine
2750 // Stability: development
2751 CloudPlatformGCPAgentEngine = CloudPlatformKey.String("gcp.agent_engine")
2752 // Google Bare Metal Solution (BMS)
2753 // Stability: development
2754 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2755 // Google Cloud Compute Engine (GCE)
2756 // Stability: development
2757 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2758 // Google Cloud Run
2759 // Stability: development
2760 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2761 // Google Cloud Kubernetes Engine (GKE)
2762 // Stability: development
2763 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2764 // Google Cloud Functions (GCF)
2765 // Stability: development
2766 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2767 // Google Cloud App Engine (GAE)
2768 // Stability: development
2769 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2770 // Red Hat OpenShift on Google Cloud
2771 // Stability: development
2772 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2773 // Server on Hetzner Cloud
2774 // Stability: development
2775 CloudPlatformHetznerCloudServer = CloudPlatformKey.String("hetzner.cloud_server")
2776 // Red Hat OpenShift on IBM Cloud
2777 // Stability: development
2778 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2779 // Compute on Oracle Cloud Infrastructure (OCI)
2780 // Stability: development
2781 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2782 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2783 // Stability: development
2784 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2785 // Tencent Cloud Cloud Virtual Machine (CVM)
2786 // Stability: development
2787 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2788 // Tencent Cloud Elastic Kubernetes Service (EKS)
2789 // Stability: development
2790 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2791 // Tencent Cloud Serverless Cloud Function (SCF)
2792 // Stability: development
2793 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2794 // Vultr Cloud Compute
2795 // Stability: development
2796 CloudPlatformVultrCloudCompute = CloudPlatformKey.String("vultr.cloud_compute")
2797 )
2798
2799 // Enum values for cloud.provider
2800 var (
2801 // Akamai Cloud
2802 // Stability: development
2803 CloudProviderAkamaiCloud = CloudProviderKey.String("akamai_cloud")
2804 // Alibaba Cloud
2805 // Stability: development
2806 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2807 // Amazon Web Services
2808 // Stability: development
2809 CloudProviderAWS = CloudProviderKey.String("aws")
2810 // Microsoft Azure
2811 // Stability: development
2812 CloudProviderAzure = CloudProviderKey.String("azure")
2813 // Google Cloud Platform
2814 // Stability: development
2815 CloudProviderGCP = CloudProviderKey.String("gcp")
2816 // Heroku Platform as a Service
2817 // Stability: development
2818 CloudProviderHeroku = CloudProviderKey.String("heroku")
2819 // Hetzner
2820 // Stability: development
2821 CloudProviderHetzner = CloudProviderKey.String("hetzner")
2822 // IBM Cloud
2823 // Stability: development
2824 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2825 // Oracle Cloud Infrastructure (OCI)
2826 // Stability: development
2827 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2828 // Tencent Cloud
2829 // Stability: development
2830 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2831 // Vultr
2832 // Stability: development
2833 CloudProviderVultr = CloudProviderKey.String("vultr")
2834 )
2835
2836 // Namespace: cloudevents
2837 const (
2838 // CloudEventsEventIDKey is the attribute Key conforming to the
2839 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2840 // uniquely identifies the event.
2841 //
2842 // Type: string
2843 // RequirementLevel: Recommended
2844 // Stability: Development
2845 //
2846 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2847 //
2848 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2849 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2850
2851 // CloudEventsEventSourceKey is the attribute Key conforming to the
2852 // "cloudevents.event_source" semantic conventions. It represents the [source]
2853 // identifies the context in which an event happened.
2854 //
2855 // Type: string
2856 // RequirementLevel: Recommended
2857 // Stability: Development
2858 //
2859 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2860 // "my-service"
2861 //
2862 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2863 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2864
2865 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2866 // "cloudevents.event_spec_version" semantic conventions. It represents the
2867 // [version of the CloudEvents specification] which the event uses.
2868 //
2869 // Type: string
2870 // RequirementLevel: Recommended
2871 // Stability: Development
2872 //
2873 // Examples: 1.0
2874 //
2875 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2876 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2877
2878 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2879 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2880 // of the event in the context of the event producer (identified by source).
2881 //
2882 // Type: string
2883 // RequirementLevel: Recommended
2884 // Stability: Development
2885 //
2886 // Examples: mynewfile.jpg
2887 //
2888 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2889 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2890
2891 // CloudEventsEventTypeKey is the attribute Key conforming to the
2892 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2893 // contains a value describing the type of event related to the originating
2894 // occurrence.
2895 //
2896 // Type: string
2897 // RequirementLevel: Recommended
2898 // Stability: Development
2899 //
2900 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2901 //
2902 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2903 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2904 )
2905
2906 // CloudEventsEventID returns an attribute KeyValue conforming to the
2907 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2908 // uniquely identifies the event.
2909 //
2910 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2911 func CloudEventsEventID(val string) attribute.KeyValue {
2912 return CloudEventsEventIDKey.String(val)
2913 }
2914
2915 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2916 // "cloudevents.event_source" semantic conventions. It represents the [source]
2917 // identifies the context in which an event happened.
2918 //
2919 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2920 func CloudEventsEventSource(val string) attribute.KeyValue {
2921 return CloudEventsEventSourceKey.String(val)
2922 }
2923
2924 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2925 // "cloudevents.event_spec_version" semantic conventions. It represents the
2926 // [version of the CloudEvents specification] which the event uses.
2927 //
2928 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2929 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2930 return CloudEventsEventSpecVersionKey.String(val)
2931 }
2932
2933 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2934 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2935 // of the event in the context of the event producer (identified by source).
2936 //
2937 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2938 func CloudEventsEventSubject(val string) attribute.KeyValue {
2939 return CloudEventsEventSubjectKey.String(val)
2940 }
2941
2942 // CloudEventsEventType returns an attribute KeyValue conforming to the
2943 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2944 // contains a value describing the type of event related to the originating
2945 // occurrence.
2946 //
2947 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2948 func CloudEventsEventType(val string) attribute.KeyValue {
2949 return CloudEventsEventTypeKey.String(val)
2950 }
2951
2952 // Namespace: cloudfoundry
2953 const (
2954 // CloudFoundryAppIDKey is the attribute Key conforming to the
2955 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2956 // application.
2957 //
2958 // Type: string
2959 // RequirementLevel: Recommended
2960 // Stability: Development
2961 //
2962 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2963 // Note: Application instrumentation should use the value from environment
2964 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2965 // reported by `cf app <app-name> --guid`.
2966 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2967
2968 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2969 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2970 // of the application instance. 0 when just one instance is active.
2971 //
2972 // Type: string
2973 // RequirementLevel: Recommended
2974 // Stability: Development
2975 //
2976 // Examples: "0", "1"
2977 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2978 // .
2979 // It is used for logs and metrics emitted by CloudFoundry. It is
2980 // supposed to contain the application instance index for applications
2981 // deployed on the runtime.
2982 //
2983 // Application instrumentation should use the value from environment
2984 // variable `CF_INSTANCE_INDEX`.
2985 //
2986 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2987 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2988
2989 // CloudFoundryAppNameKey is the attribute Key conforming to the
2990 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2991 // application.
2992 //
2993 // Type: string
2994 // RequirementLevel: Recommended
2995 // Stability: Development
2996 //
2997 // Examples: "my-app-name"
2998 // Note: Application instrumentation should use the value from environment
2999 // variable `VCAP_APPLICATION.application_name`. This is the same value
3000 // as reported by `cf apps`.
3001 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
3002
3003 // CloudFoundryOrgIDKey is the attribute Key conforming to the
3004 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3005 // CloudFoundry org the application is running in.
3006 //
3007 // Type: string
3008 // RequirementLevel: Recommended
3009 // Stability: Development
3010 //
3011 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3012 // Note: Application instrumentation should use the value from environment
3013 // variable `VCAP_APPLICATION.org_id`. This is the same value as
3014 // reported by `cf org <org-name> --guid`.
3015 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
3016
3017 // CloudFoundryOrgNameKey is the attribute Key conforming to the
3018 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3019 // CloudFoundry organization the app is running in.
3020 //
3021 // Type: string
3022 // RequirementLevel: Recommended
3023 // Stability: Development
3024 //
3025 // Examples: "my-org-name"
3026 // Note: Application instrumentation should use the value from environment
3027 // variable `VCAP_APPLICATION.org_name`. This is the same value as
3028 // reported by `cf orgs`.
3029 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
3030
3031 // CloudFoundryProcessIDKey is the attribute Key conforming to the
3032 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3033 // identifying the process.
3034 //
3035 // Type: string
3036 // RequirementLevel: Recommended
3037 // Stability: Development
3038 //
3039 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3040 // Note: Application instrumentation should use the value from environment
3041 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
3042 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
3043 // For system components, this could be the actual PID.
3044 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
3045
3046 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
3047 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3048 // process.
3049 //
3050 // Type: string
3051 // RequirementLevel: Recommended
3052 // Stability: Development
3053 //
3054 // Examples: "web"
3055 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
3056 // main process will be of type `web`. There can be additional background
3057 // tasks or side-cars with different process types.
3058 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
3059
3060 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
3061 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3062 // CloudFoundry space the application is running in.
3063 //
3064 // Type: string
3065 // RequirementLevel: Recommended
3066 // Stability: Development
3067 //
3068 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3069 // Note: Application instrumentation should use the value from environment
3070 // variable `VCAP_APPLICATION.space_id`. This is the same value as
3071 // reported by `cf space <space-name> --guid`.
3072 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
3073
3074 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
3075 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3076 // CloudFoundry space the application is running in.
3077 //
3078 // Type: string
3079 // RequirementLevel: Recommended
3080 // Stability: Development
3081 //
3082 // Examples: "my-space-name"
3083 // Note: Application instrumentation should use the value from environment
3084 // variable `VCAP_APPLICATION.space_name`. This is the same value as
3085 // reported by `cf spaces`.
3086 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
3087
3088 // CloudFoundrySystemIDKey is the attribute Key conforming to the
3089 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
3090 // another name describing the event source.
3091 //
3092 // Type: string
3093 // RequirementLevel: Recommended
3094 // Stability: Development
3095 //
3096 // Examples: "cf/gorouter"
3097 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
3098 // It is used for logs and metrics emitted by CloudFoundry. It is
3099 // supposed to contain the component name, e.g. "gorouter", for
3100 // CloudFoundry components.
3101 //
3102 // When system components are instrumented, values from the
3103 // [Bosh spec]
3104 // should be used. The `system.id` should be set to
3105 // `spec.deployment/spec.name`.
3106 //
3107 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3108 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3109 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
3110
3111 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
3112 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3113 // describing the concrete instance of the event source.
3114 //
3115 // Type: string
3116 // RequirementLevel: Recommended
3117 // Stability: Development
3118 //
3119 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3120 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
3121 // .
3122 // It is used for logs and metrics emitted by CloudFoundry. It is
3123 // supposed to contain the vm id for CloudFoundry components.
3124 //
3125 // When system components are instrumented, values from the
3126 // [Bosh spec]
3127 // should be used. The `system.instance.id` should be set to `spec.id`.
3128 //
3129 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3130 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3131 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
3132 )
3133
3134 // CloudFoundryAppID returns an attribute KeyValue conforming to the
3135 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
3136 // application.
3137 func CloudFoundryAppID(val string) attribute.KeyValue {
3138 return CloudFoundryAppIDKey.String(val)
3139 }
3140
3141 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
3142 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
3143 // of the application instance. 0 when just one instance is active.
3144 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3145 return CloudFoundryAppInstanceIDKey.String(val)
3146 }
3147
3148 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3149 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3150 // application.
3151 func CloudFoundryAppName(val string) attribute.KeyValue {
3152 return CloudFoundryAppNameKey.String(val)
3153 }
3154
3155 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3156 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3157 // CloudFoundry org the application is running in.
3158 func CloudFoundryOrgID(val string) attribute.KeyValue {
3159 return CloudFoundryOrgIDKey.String(val)
3160 }
3161
3162 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3163 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3164 // CloudFoundry organization the app is running in.
3165 func CloudFoundryOrgName(val string) attribute.KeyValue {
3166 return CloudFoundryOrgNameKey.String(val)
3167 }
3168
3169 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3170 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3171 // identifying the process.
3172 func CloudFoundryProcessID(val string) attribute.KeyValue {
3173 return CloudFoundryProcessIDKey.String(val)
3174 }
3175
3176 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3177 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3178 // process.
3179 func CloudFoundryProcessType(val string) attribute.KeyValue {
3180 return CloudFoundryProcessTypeKey.String(val)
3181 }
3182
3183 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3184 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3185 // CloudFoundry space the application is running in.
3186 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3187 return CloudFoundrySpaceIDKey.String(val)
3188 }
3189
3190 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3191 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3192 // CloudFoundry space the application is running in.
3193 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3194 return CloudFoundrySpaceNameKey.String(val)
3195 }
3196
3197 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3198 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3199 // name describing the event source.
3200 func CloudFoundrySystemID(val string) attribute.KeyValue {
3201 return CloudFoundrySystemIDKey.String(val)
3202 }
3203
3204 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3205 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3206 // describing the concrete instance of the event source.
3207 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3208 return CloudFoundrySystemInstanceIDKey.String(val)
3209 }
3210
3211 // Namespace: code
3212 const (
3213 // CodeColumnNumberKey is the attribute Key conforming to the
3214 // "code.column.number" semantic conventions. It represents the column number in
3215 // `code.file.path` best representing the operation. It SHOULD point within the
3216 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3217 // the Profile signal since the data is already captured in 'message Line'. This
3218 // constraint is imposed to prevent redundancy and maintain data integrity.
3219 //
3220 // Type: int
3221 // RequirementLevel: Recommended
3222 // Stability: Stable
3223 CodeColumnNumberKey = attribute.Key("code.column.number")
3224
3225 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3226 // semantic conventions. It represents the source code file name that identifies
3227 // the code unit as uniquely as possible (preferably an absolute file path).
3228 // This attribute MUST NOT be used on the Profile signal since the data is
3229 // already captured in 'message Function'. This constraint is imposed to prevent
3230 // redundancy and maintain data integrity.
3231 //
3232 // Type: string
3233 // RequirementLevel: Recommended
3234 // Stability: Stable
3235 //
3236 // Examples: /usr/local/MyApplication/content_root/app/index.php
3237 CodeFilePathKey = attribute.Key("code.file.path")
3238
3239 // CodeFunctionNameKey is the attribute Key conforming to the
3240 // "code.function.name" semantic conventions. It represents the method or
3241 // function fully-qualified name without arguments. The value should fit the
3242 // natural representation of the language runtime, which is also likely the same
3243 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3244 // used on the Profile signal since the data is already captured in 'message
3245 // Function'. This constraint is imposed to prevent redundancy and maintain data
3246 // integrity.
3247 //
3248 // Type: string
3249 // RequirementLevel: Recommended
3250 // Stability: Stable
3251 //
3252 // Examples: "com.example.MyHttpService.serveRequest",
3253 // "GuzzleHttp\Client::transfer", "fopen"
3254 // Note: Values and format depends on each language runtime, thus it is
3255 // impossible to provide an exhaustive list of examples.
3256 // The values are usually the same (or prefixes of) the ones found in native
3257 // stack trace representation stored in
3258 // `code.stacktrace` without information on arguments.
3259 //
3260 // Examples:
3261 //
3262 // - Java method: `com.example.MyHttpService.serveRequest`
3263 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3264 // - Java lambda method:
3265 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3266 // - PHP function: `GuzzleHttp\Client::transfer`
3267 // - Go function: `github.com/my/repo/pkg.foo.func5`
3268 // - Elixir: `OpenTelemetry.Ctx.new`
3269 // - Erlang: `opentelemetry_ctx:new`
3270 // - Rust: `playground::my_module::my_cool_func`
3271 // - C function: `fopen`
3272 CodeFunctionNameKey = attribute.Key("code.function.name")
3273
3274 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3275 // semantic conventions. It represents the line number in `code.file.path` best
3276 // representing the operation. It SHOULD point within the code unit named in
3277 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3278 // since the data is already captured in 'message Line'. This constraint is
3279 // imposed to prevent redundancy and maintain data integrity.
3280 //
3281 // Type: int
3282 // RequirementLevel: Recommended
3283 // Stability: Stable
3284 CodeLineNumberKey = attribute.Key("code.line.number")
3285
3286 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3287 // semantic conventions. It represents a stacktrace as a string in the natural
3288 // representation for the language runtime. The representation is identical to
3289 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3290 // signal since the data is already captured in 'message Location'. This
3291 // constraint is imposed to prevent redundancy and maintain data integrity.
3292 //
3293 // Type: string
3294 // RequirementLevel: Recommended
3295 // Stability: Stable
3296 //
3297 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3298 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3299 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3300 //
3301 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3302 CodeStacktraceKey = attribute.Key("code.stacktrace")
3303 )
3304
3305 // CodeColumnNumber returns an attribute KeyValue conforming to the
3306 // "code.column.number" semantic conventions. It represents the column number in
3307 // `code.file.path` best representing the operation. It SHOULD point within the
3308 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3309 // the Profile signal since the data is already captured in 'message Line'. This
3310 // constraint is imposed to prevent redundancy and maintain data integrity.
3311 func CodeColumnNumber(val int) attribute.KeyValue {
3312 return CodeColumnNumberKey.Int(val)
3313 }
3314
3315 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3316 // semantic conventions. It represents the source code file name that identifies
3317 // the code unit as uniquely as possible (preferably an absolute file path). This
3318 // attribute MUST NOT be used on the Profile signal since the data is already
3319 // captured in 'message Function'. This constraint is imposed to prevent
3320 // redundancy and maintain data integrity.
3321 func CodeFilePath(val string) attribute.KeyValue {
3322 return CodeFilePathKey.String(val)
3323 }
3324
3325 // CodeFunctionName returns an attribute KeyValue conforming to the
3326 // "code.function.name" semantic conventions. It represents the method or
3327 // function fully-qualified name without arguments. The value should fit the
3328 // natural representation of the language runtime, which is also likely the same
3329 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3330 // on the Profile signal since the data is already captured in 'message
3331 // Function'. This constraint is imposed to prevent redundancy and maintain data
3332 // integrity.
3333 func CodeFunctionName(val string) attribute.KeyValue {
3334 return CodeFunctionNameKey.String(val)
3335 }
3336
3337 // CodeLineNumber returns an attribute KeyValue conforming to the
3338 // "code.line.number" semantic conventions. It represents the line number in
3339 // `code.file.path` best representing the operation. It SHOULD point within the
3340 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3341 // the Profile signal since the data is already captured in 'message Line'. This
3342 // constraint is imposed to prevent redundancy and maintain data integrity.
3343 func CodeLineNumber(val int) attribute.KeyValue {
3344 return CodeLineNumberKey.Int(val)
3345 }
3346
3347 // CodeStacktrace returns an attribute KeyValue conforming to the
3348 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3349 // in the natural representation for the language runtime. The representation is
3350 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3351 // Profile signal since the data is already captured in 'message Location'. This
3352 // constraint is imposed to prevent redundancy and maintain data integrity.
3353 //
3354 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3355 func CodeStacktrace(val string) attribute.KeyValue {
3356 return CodeStacktraceKey.String(val)
3357 }
3358
3359 // Namespace: container
3360 const (
3361 // ContainerCommandKey is the attribute Key conforming to the
3362 // "container.command" semantic conventions. It represents the command used to
3363 // run the container (i.e. the command name).
3364 //
3365 // Type: string
3366 // RequirementLevel: Recommended
3367 // Stability: Development
3368 //
3369 // Examples: "otelcontribcol"
3370 // Note: If using embedded credentials or sensitive data, it is recommended to
3371 // remove them to prevent potential leakage.
3372 ContainerCommandKey = attribute.Key("container.command")
3373
3374 // ContainerCommandArgsKey is the attribute Key conforming to the
3375 // "container.command_args" semantic conventions. It represents the all the
3376 // command arguments (including the command/executable itself) run by the
3377 // container.
3378 //
3379 // Type: string[]
3380 // RequirementLevel: Recommended
3381 // Stability: Development
3382 //
3383 // Examples: "otelcontribcol", "--config", "config.yaml"
3384 ContainerCommandArgsKey = attribute.Key("container.command_args")
3385
3386 // ContainerCommandLineKey is the attribute Key conforming to the
3387 // "container.command_line" semantic conventions. It represents the full command
3388 // run by the container as a single string representing the full command.
3389 //
3390 // Type: string
3391 // RequirementLevel: Recommended
3392 // Stability: Development
3393 //
3394 // Examples: "otelcontribcol --config config.yaml"
3395 ContainerCommandLineKey = attribute.Key("container.command_line")
3396
3397 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3398 // "container.csi.plugin.name" semantic conventions. It represents the name of
3399 // the CSI ([Container Storage Interface]) plugin used by the volume.
3400 //
3401 // Type: string
3402 // RequirementLevel: Recommended
3403 // Stability: Development
3404 //
3405 // Examples: "pd.csi.storage.gke.io"
3406 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3407 // This should represent the `name` field of the GetPluginInfo RPC.
3408 //
3409 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3410 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3411
3412 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3413 // "container.csi.volume.id" semantic conventions. It represents the unique
3414 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3415 //
3416 // Type: string
3417 // RequirementLevel: Recommended
3418 // Stability: Development
3419 //
3420 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3421 // Note: This can sometimes be referred to as a "volume handle" in CSI
3422 // implementations. This should represent the `Volume.volume_id` field in CSI
3423 // spec.
3424 //
3425 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3426 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3427
3428 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3429 // conventions. It represents the container ID. Usually a UUID, as for example
3430 // used to [identify Docker containers]. The UUID might be abbreviated.
3431 //
3432 // Type: string
3433 // RequirementLevel: Recommended
3434 // Stability: Alpha
3435 //
3436 // Examples: "a3bf90e006b2"
3437 //
3438 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3439 ContainerIDKey = attribute.Key("container.id")
3440
3441 // ContainerImageIDKey is the attribute Key conforming to the
3442 // "container.image.id" semantic conventions. It represents the runtime specific
3443 // image identifier. Usually a hash algorithm followed by a UUID.
3444 //
3445 // Type: string
3446 // RequirementLevel: Recommended
3447 // Stability: Development
3448 //
3449 // Examples:
3450 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3451 // Note: Docker defines a sha256 of the image id; `container.image.id`
3452 // corresponds to the `Image` field from the Docker container inspect [API]
3453 // endpoint.
3454 // K8s defines a link to the container registry repository with digest
3455 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3456 // .
3457 // The ID is assigned by the container runtime and can vary in different
3458 // environments. Consider using `oci.manifest.digest` if it is important to
3459 // identify the same image in different environments/runtimes.
3460 //
3461 // [API]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect
3462 ContainerImageIDKey = attribute.Key("container.image.id")
3463
3464 // ContainerImageNameKey is the attribute Key conforming to the
3465 // "container.image.name" semantic conventions. It represents the name of the
3466 // image the container was built on.
3467 //
3468 // Type: string
3469 // RequirementLevel: Recommended
3470 // Stability: Alpha
3471 //
3472 // Examples: "gcr.io/opentelemetry/operator"
3473 ContainerImageNameKey = attribute.Key("container.image.name")
3474
3475 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3476 // "container.image.repo_digests" semantic conventions. It represents the repo
3477 // digests of the container image as provided by the container runtime.
3478 //
3479 // Type: string[]
3480 // RequirementLevel: Recommended
3481 // Stability: Alpha
3482 //
3483 // Examples:
3484 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3485 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3486 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3487 //
3488 // [Docker]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3489 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3490 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3491
3492 // ContainerImageTagsKey is the attribute Key conforming to the
3493 // "container.image.tags" semantic conventions. It represents the container
3494 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3495 // the `<tag>` section of the full name for example from
3496 // `registry.example.com/my-org/my-image:<tag>`.
3497 //
3498 // Type: string[]
3499 // RequirementLevel: Recommended
3500 // Stability: Alpha
3501 //
3502 // Examples: "v1.27.1", "3.5.7-0"
3503 //
3504 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3505 ContainerImageTagsKey = attribute.Key("container.image.tags")
3506
3507 // ContainerNameKey is the attribute Key conforming to the "container.name"
3508 // semantic conventions. It represents the container name used by container
3509 // runtime.
3510 //
3511 // Type: string
3512 // RequirementLevel: Recommended
3513 // Stability: Development
3514 //
3515 // Examples: "opentelemetry-autoconf"
3516 ContainerNameKey = attribute.Key("container.name")
3517
3518 // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
3519 // "container.runtime.description" semantic conventions. It represents a
3520 // description about the runtime which could include, for example details about
3521 // the CRI/API version being used or other customisations.
3522 //
3523 // Type: string
3524 // RequirementLevel: Recommended
3525 // Stability: Development
3526 //
3527 // Examples: "docker://19.3.1 - CRI: 1.22.0"
3528 ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
3529
3530 // ContainerRuntimeNameKey is the attribute Key conforming to the
3531 // "container.runtime.name" semantic conventions. It represents the container
3532 // runtime managing this container.
3533 //
3534 // Type: string
3535 // RequirementLevel: Recommended
3536 // Stability: Development
3537 //
3538 // Examples: "docker", "containerd", "rkt"
3539 ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
3540
3541 // ContainerRuntimeVersionKey is the attribute Key conforming to the
3542 // "container.runtime.version" semantic conventions. It represents the version
3543 // of the runtime of this process, as returned by the runtime without
3544 // modification.
3545 //
3546 // Type: string
3547 // RequirementLevel: Recommended
3548 // Stability: Development
3549 //
3550 // Examples: 1.0.0
3551 ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
3552 )
3553
3554 // ContainerCommand returns an attribute KeyValue conforming to the
3555 // "container.command" semantic conventions. It represents the command used to
3556 // run the container (i.e. the command name).
3557 func ContainerCommand(val string) attribute.KeyValue {
3558 return ContainerCommandKey.String(val)
3559 }
3560
3561 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3562 // "container.command_args" semantic conventions. It represents the all the
3563 // command arguments (including the command/executable itself) run by the
3564 // container.
3565 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3566 return ContainerCommandArgsKey.StringSlice(val)
3567 }
3568
3569 // ContainerCommandLine returns an attribute KeyValue conforming to the
3570 // "container.command_line" semantic conventions. It represents the full command
3571 // run by the container as a single string representing the full command.
3572 func ContainerCommandLine(val string) attribute.KeyValue {
3573 return ContainerCommandLineKey.String(val)
3574 }
3575
3576 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3577 // "container.csi.plugin.name" semantic conventions. It represents the name of
3578 // the CSI ([Container Storage Interface]) plugin used by the volume.
3579 //
3580 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3581 func ContainerCSIPluginName(val string) attribute.KeyValue {
3582 return ContainerCSIPluginNameKey.String(val)
3583 }
3584
3585 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3586 // "container.csi.volume.id" semantic conventions. It represents the unique
3587 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3588 //
3589 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3590 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3591 return ContainerCSIVolumeIDKey.String(val)
3592 }
3593
3594 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3595 // semantic conventions. It represents the container ID. Usually a UUID, as for
3596 // example used to [identify Docker containers]. The UUID might be abbreviated.
3597 //
3598 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3599 func ContainerID(val string) attribute.KeyValue {
3600 return ContainerIDKey.String(val)
3601 }
3602
3603 // ContainerImageID returns an attribute KeyValue conforming to the
3604 // "container.image.id" semantic conventions. It represents the runtime specific
3605 // image identifier. Usually a hash algorithm followed by a UUID.
3606 func ContainerImageID(val string) attribute.KeyValue {
3607 return ContainerImageIDKey.String(val)
3608 }
3609
3610 // ContainerImageName returns an attribute KeyValue conforming to the
3611 // "container.image.name" semantic conventions. It represents the name of the
3612 // image the container was built on.
3613 func ContainerImageName(val string) attribute.KeyValue {
3614 return ContainerImageNameKey.String(val)
3615 }
3616
3617 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3618 // "container.image.repo_digests" semantic conventions. It represents the repo
3619 // digests of the container image as provided by the container runtime.
3620 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3621 return ContainerImageRepoDigestsKey.StringSlice(val)
3622 }
3623
3624 // ContainerImageTags returns an attribute KeyValue conforming to the
3625 // "container.image.tags" semantic conventions. It represents the container image
3626 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3627 // `<tag>` section of the full name for example from
3628 // `registry.example.com/my-org/my-image:<tag>`.
3629 //
3630 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3631 func ContainerImageTags(val ...string) attribute.KeyValue {
3632 return ContainerImageTagsKey.StringSlice(val)
3633 }
3634
3635 // ContainerLabel returns an attribute KeyValue conforming to the
3636 // "container.label" semantic conventions. It represents the container labels,
3637 // `<key>` being the label name, the value being the label value.
3638 func ContainerLabel(key string, val string) attribute.KeyValue {
3639 return attribute.String("container.label."+key, val)
3640 }
3641
3642 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3643 // semantic conventions. It represents the container name used by container
3644 // runtime.
3645 func ContainerName(val string) attribute.KeyValue {
3646 return ContainerNameKey.String(val)
3647 }
3648
3649 // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
3650 // "container.runtime.description" semantic conventions. It represents a
3651 // description about the runtime which could include, for example details about
3652 // the CRI/API version being used or other customisations.
3653 func ContainerRuntimeDescription(val string) attribute.KeyValue {
3654 return ContainerRuntimeDescriptionKey.String(val)
3655 }
3656
3657 // ContainerRuntimeName returns an attribute KeyValue conforming to the
3658 // "container.runtime.name" semantic conventions. It represents the container
3659 // runtime managing this container.
3660 func ContainerRuntimeName(val string) attribute.KeyValue {
3661 return ContainerRuntimeNameKey.String(val)
3662 }
3663
3664 // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
3665 // "container.runtime.version" semantic conventions. It represents the version of
3666 // the runtime of this process, as returned by the runtime without modification.
3667 func ContainerRuntimeVersion(val string) attribute.KeyValue {
3668 return ContainerRuntimeVersionKey.String(val)
3669 }
3670
3671 // Namespace: cpu
3672 const (
3673 // CPULogicalNumberKey is the attribute Key conforming to the
3674 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3675 // number [0..n-1].
3676 //
3677 // Type: int
3678 // RequirementLevel: Recommended
3679 // Stability: Development
3680 //
3681 // Examples: 1
3682 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3683
3684 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3685 // conventions. It represents the mode of the CPU.
3686 //
3687 // Type: Enum
3688 // RequirementLevel: Recommended
3689 // Stability: Development
3690 //
3691 // Examples: "user", "system"
3692 CPUModeKey = attribute.Key("cpu.mode")
3693 )
3694
3695 // CPULogicalNumber returns an attribute KeyValue conforming to the
3696 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3697 // number [0..n-1].
3698 func CPULogicalNumber(val int) attribute.KeyValue {
3699 return CPULogicalNumberKey.Int(val)
3700 }
3701
3702 // Enum values for cpu.mode
3703 var (
3704 // User
3705 // Stability: development
3706 CPUModeUser = CPUModeKey.String("user")
3707 // System
3708 // Stability: development
3709 CPUModeSystem = CPUModeKey.String("system")
3710 // Nice
3711 // Stability: development
3712 CPUModeNice = CPUModeKey.String("nice")
3713 // Idle
3714 // Stability: development
3715 CPUModeIdle = CPUModeKey.String("idle")
3716 // IO Wait
3717 // Stability: development
3718 CPUModeIOWait = CPUModeKey.String("iowait")
3719 // Interrupt
3720 // Stability: development
3721 CPUModeInterrupt = CPUModeKey.String("interrupt")
3722 // Steal
3723 // Stability: development
3724 CPUModeSteal = CPUModeKey.String("steal")
3725 // Kernel
3726 // Stability: development
3727 CPUModeKernel = CPUModeKey.String("kernel")
3728 )
3729
3730 // Namespace: db
3731 const (
3732 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3733 // "db.client.connection.pool.name" semantic conventions. It represents the name
3734 // of the connection pool; unique within the instrumented application. In case
3735 // the connection pool implementation doesn't provide a name, instrumentation
3736 // SHOULD use a combination of parameters that would make the name unique, for
3737 // example, combining attributes `server.address`, `server.port`, and
3738 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3739 // Instrumentations that generate connection pool name following different
3740 // patterns SHOULD document it.
3741 //
3742 // Type: string
3743 // RequirementLevel: Recommended
3744 // Stability: Development
3745 //
3746 // Examples: "myDataSource"
3747 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3748
3749 // DBClientConnectionStateKey is the attribute Key conforming to the
3750 // "db.client.connection.state" semantic conventions. It represents the state of
3751 // a connection in the pool.
3752 //
3753 // Type: Enum
3754 // RequirementLevel: Recommended
3755 // Stability: Development
3756 //
3757 // Examples: "idle"
3758 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3759
3760 // DBCollectionNameKey is the attribute Key conforming to the
3761 // "db.collection.name" semantic conventions. It represents the name of a
3762 // collection (table, container) within the database.
3763 //
3764 // Type: string
3765 // RequirementLevel: Recommended
3766 // Stability: Stable
3767 //
3768 // Examples: "public.users", "customers"
3769 // Note: It is RECOMMENDED to capture the value as provided by the application
3770 // without attempting to do any case normalization.
3771 //
3772 // The collection name SHOULD NOT be extracted from `db.query.text`,
3773 // when the database system supports query text with multiple collections
3774 // in non-batch operations.
3775 //
3776 // For batch operations, if the individual operations are known to have the same
3777 // collection name then that collection name SHOULD be used.
3778 DBCollectionNameKey = attribute.Key("db.collection.name")
3779
3780 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3781 // conventions. It represents the name of the database, fully qualified within
3782 // the server address and port.
3783 //
3784 // Type: string
3785 // RequirementLevel: Recommended
3786 // Stability: Stable
3787 //
3788 // Examples: "customers", "test.users"
3789 // Note: If a database system has multiple namespace components, they SHOULD be
3790 // concatenated from the most general to the most specific namespace component,
3791 // using `|` as a separator between the components. Any missing components (and
3792 // their associated separators) SHOULD be omitted.
3793 // Semantic conventions for individual database systems SHOULD document what
3794 // `db.namespace` means in the context of that system.
3795 // It is RECOMMENDED to capture the value as provided by the application without
3796 // attempting to do any case normalization.
3797 DBNamespaceKey = attribute.Key("db.namespace")
3798
3799 // DBOperationBatchSizeKey is the attribute Key conforming to the
3800 // "db.operation.batch.size" semantic conventions. It represents the number of
3801 // queries included in a batch operation.
3802 //
3803 // Type: int
3804 // RequirementLevel: Recommended
3805 // Stability: Stable
3806 //
3807 // Examples: 2, 3, 4
3808 // Note: Operations are only considered batches when they contain two or more
3809 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3810 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3811
3812 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3813 // semantic conventions. It represents the name of the operation or command
3814 // being executed.
3815 //
3816 // Type: string
3817 // RequirementLevel: Recommended
3818 // Stability: Stable
3819 //
3820 // Examples: "findAndModify", "HMSET", "SELECT"
3821 // Note: It is RECOMMENDED to capture the value as provided by the application
3822 // without attempting to do any case normalization.
3823 //
3824 // The operation name SHOULD NOT be extracted from `db.query.text`,
3825 // when the database system supports query text with multiple operations
3826 // in non-batch operations.
3827 //
3828 // If spaces can occur in the operation name, multiple consecutive spaces
3829 // SHOULD be normalized to a single space.
3830 //
3831 // For batch operations, if the individual operations are known to have the same
3832 // operation name
3833 // then that operation name SHOULD be used prepended by `BATCH `,
3834 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3835 // system specific term if more applicable.
3836 DBOperationNameKey = attribute.Key("db.operation.name")
3837
3838 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3839 // semantic conventions. It represents the low cardinality summary of a database
3840 // query.
3841 //
3842 // Type: string
3843 // RequirementLevel: Recommended
3844 // Stability: Stable
3845 //
3846 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3847 // user by id"
3848 // Note: The query summary describes a class of database queries and is useful
3849 // as a grouping key, especially when analyzing telemetry for database
3850 // calls involving complex queries.
3851 //
3852 // Summary may be available to the instrumentation through
3853 // instrumentation hooks or other means. If it is not available,
3854 // instrumentations
3855 // that support query parsing SHOULD generate a summary following
3856 // [Generating query summary]
3857 // section.
3858 //
3859 // [Generating query summary]: /docs/db/database-spans.md#generating-a-summary-of-the-query
3860 DBQuerySummaryKey = attribute.Key("db.query.summary")
3861
3862 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3863 // semantic conventions. It represents the database query being executed.
3864 //
3865 // Type: string
3866 // RequirementLevel: Recommended
3867 // Stability: Stable
3868 //
3869 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3870 // Note: For sanitization see [Sanitization of `db.query.text`].
3871 // For batch operations, if the individual operations are known to have the same
3872 // query text then that query text SHOULD be used, otherwise all of the
3873 // individual query texts SHOULD be concatenated with separator `; ` or some
3874 // other database system specific separator if more applicable.
3875 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3876 // query text can potentially have sensitive data, by using a parameterized
3877 // query the user is giving a strong signal that any sensitive data will be
3878 // passed as parameter values, and the benefit to observability of capturing the
3879 // static part of the query text by default outweighs the risk.
3880 //
3881 // [Sanitization of `db.query.text`]: /docs/db/database-spans.md#sanitization-of-dbquerytext
3882 DBQueryTextKey = attribute.Key("db.query.text")
3883
3884 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3885 // "db.response.returned_rows" semantic conventions. It represents the number of
3886 // rows returned by the operation.
3887 //
3888 // Type: int
3889 // RequirementLevel: Recommended
3890 // Stability: Development
3891 //
3892 // Examples: 10, 30, 1000
3893 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3894
3895 // DBResponseStatusCodeKey is the attribute Key conforming to the
3896 // "db.response.status_code" semantic conventions. It represents the database
3897 // response status code.
3898 //
3899 // Type: string
3900 // RequirementLevel: Recommended
3901 // Stability: Stable
3902 //
3903 // Examples: "102", "ORA-17002", "08P01", "404"
3904 // Note: The status code returned by the database. Usually it represents an
3905 // error code, but may also represent partial success, warning, or differentiate
3906 // between various types of successful outcomes.
3907 // Semantic conventions for individual database systems SHOULD document what
3908 // `db.response.status_code` means in the context of that system.
3909 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3910
3911 // DBStoredProcedureNameKey is the attribute Key conforming to the
3912 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3913 // stored procedure within the database.
3914 //
3915 // Type: string
3916 // RequirementLevel: Recommended
3917 // Stability: Stable
3918 //
3919 // Examples: "GetCustomer"
3920 // Note: It is RECOMMENDED to capture the value as provided by the application
3921 // without attempting to do any case normalization.
3922 //
3923 // For batch operations, if the individual operations are known to have the same
3924 // stored procedure name then that stored procedure name SHOULD be used.
3925 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3926
3927 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3928 // semantic conventions. It represents the database management system (DBMS)
3929 // product as identified by the client instrumentation.
3930 //
3931 // Type: Enum
3932 // RequirementLevel: Recommended
3933 // Stability: Stable
3934 //
3935 // Examples:
3936 // Note: The actual DBMS may differ from the one identified by the client. For
3937 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3938 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3939 // best knowledge.
3940 DBSystemNameKey = attribute.Key("db.system.name")
3941 )
3942
3943 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3944 // "db.client.connection.pool.name" semantic conventions. It represents the name
3945 // of the connection pool; unique within the instrumented application. In case
3946 // the connection pool implementation doesn't provide a name, instrumentation
3947 // SHOULD use a combination of parameters that would make the name unique, for
3948 // example, combining attributes `server.address`, `server.port`, and
3949 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3950 // Instrumentations that generate connection pool name following different
3951 // patterns SHOULD document it.
3952 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3953 return DBClientConnectionPoolNameKey.String(val)
3954 }
3955
3956 // DBCollectionName returns an attribute KeyValue conforming to the
3957 // "db.collection.name" semantic conventions. It represents the name of a
3958 // collection (table, container) within the database.
3959 func DBCollectionName(val string) attribute.KeyValue {
3960 return DBCollectionNameKey.String(val)
3961 }
3962
3963 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3964 // semantic conventions. It represents the name of the database, fully qualified
3965 // within the server address and port.
3966 func DBNamespace(val string) attribute.KeyValue {
3967 return DBNamespaceKey.String(val)
3968 }
3969
3970 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3971 // "db.operation.batch.size" semantic conventions. It represents the number of
3972 // queries included in a batch operation.
3973 func DBOperationBatchSize(val int) attribute.KeyValue {
3974 return DBOperationBatchSizeKey.Int(val)
3975 }
3976
3977 // DBOperationName returns an attribute KeyValue conforming to the
3978 // "db.operation.name" semantic conventions. It represents the name of the
3979 // operation or command being executed.
3980 func DBOperationName(val string) attribute.KeyValue {
3981 return DBOperationNameKey.String(val)
3982 }
3983
3984 // DBOperationParameter returns an attribute KeyValue conforming to the
3985 // "db.operation.parameter" semantic conventions. It represents a database
3986 // operation parameter, with `<key>` being the parameter name, and the attribute
3987 // value being a string representation of the parameter value.
3988 func DBOperationParameter(key string, val string) attribute.KeyValue {
3989 return attribute.String("db.operation.parameter."+key, val)
3990 }
3991
3992 // DBQueryParameter returns an attribute KeyValue conforming to the
3993 // "db.query.parameter" semantic conventions. It represents a database query
3994 // parameter, with `<key>` being the parameter name, and the attribute value
3995 // being a string representation of the parameter value.
3996 func DBQueryParameter(key string, val string) attribute.KeyValue {
3997 return attribute.String("db.query.parameter."+key, val)
3998 }
3999
4000 // DBQuerySummary returns an attribute KeyValue conforming to the
4001 // "db.query.summary" semantic conventions. It represents the low cardinality
4002 // summary of a database query.
4003 func DBQuerySummary(val string) attribute.KeyValue {
4004 return DBQuerySummaryKey.String(val)
4005 }
4006
4007 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
4008 // semantic conventions. It represents the database query being executed.
4009 func DBQueryText(val string) attribute.KeyValue {
4010 return DBQueryTextKey.String(val)
4011 }
4012
4013 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
4014 // "db.response.returned_rows" semantic conventions. It represents the number of
4015 // rows returned by the operation.
4016 func DBResponseReturnedRows(val int) attribute.KeyValue {
4017 return DBResponseReturnedRowsKey.Int(val)
4018 }
4019
4020 // DBResponseStatusCode returns an attribute KeyValue conforming to the
4021 // "db.response.status_code" semantic conventions. It represents the database
4022 // response status code.
4023 func DBResponseStatusCode(val string) attribute.KeyValue {
4024 return DBResponseStatusCodeKey.String(val)
4025 }
4026
4027 // DBStoredProcedureName returns an attribute KeyValue conforming to the
4028 // "db.stored_procedure.name" semantic conventions. It represents the name of a
4029 // stored procedure within the database.
4030 func DBStoredProcedureName(val string) attribute.KeyValue {
4031 return DBStoredProcedureNameKey.String(val)
4032 }
4033
4034 // Enum values for db.client.connection.state
4035 var (
4036 // idle
4037 // Stability: development
4038 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
4039 // used
4040 // Stability: development
4041 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
4042 )
4043
4044 // Enum values for db.system.name
4045 var (
4046 // Some other SQL database. Fallback only.
4047 // Stability: development
4048 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
4049 // [Adabas (Adaptable Database System)]
4050 // Stability: development
4051 //
4052 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
4053 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
4054 // [Actian Ingres]
4055 // Stability: development
4056 //
4057 // [Actian Ingres]: https://www.actian.com/databases/ingres/
4058 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
4059 // [Amazon DynamoDB]
4060 // Stability: development
4061 //
4062 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
4063 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
4064 // [Amazon Redshift]
4065 // Stability: development
4066 //
4067 // [Amazon Redshift]: https://aws.amazon.com/redshift/
4068 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
4069 // [Azure Cosmos DB]
4070 // Stability: development
4071 //
4072 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
4073 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
4074 // [InterSystems Caché]
4075 // Stability: development
4076 //
4077 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
4078 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
4079 // [Apache Cassandra]
4080 // Stability: development
4081 //
4082 // [Apache Cassandra]: https://cassandra.apache.org/
4083 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
4084 // [ClickHouse]
4085 // Stability: development
4086 //
4087 // [ClickHouse]: https://clickhouse.com/
4088 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
4089 // [CockroachDB]
4090 // Stability: development
4091 //
4092 // [CockroachDB]: https://www.cockroachlabs.com/
4093 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
4094 // [Couchbase]
4095 // Stability: development
4096 //
4097 // [Couchbase]: https://www.couchbase.com/
4098 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
4099 // [Apache CouchDB]
4100 // Stability: development
4101 //
4102 // [Apache CouchDB]: https://couchdb.apache.org/
4103 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
4104 // [Apache Derby]
4105 // Stability: development
4106 //
4107 // [Apache Derby]: https://db.apache.org/derby/
4108 DBSystemNameDerby = DBSystemNameKey.String("derby")
4109 // [Elasticsearch]
4110 // Stability: development
4111 //
4112 // [Elasticsearch]: https://www.elastic.co/elasticsearch
4113 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
4114 // [Firebird]
4115 // Stability: development
4116 //
4117 // [Firebird]: https://www.firebirdsql.org/
4118 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
4119 // [Google Cloud Spanner]
4120 // Stability: development
4121 //
4122 // [Google Cloud Spanner]: https://cloud.google.com/spanner
4123 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
4124 // [Apache Geode]
4125 // Stability: development
4126 //
4127 // [Apache Geode]: https://geode.apache.org/
4128 DBSystemNameGeode = DBSystemNameKey.String("geode")
4129 // [H2 Database]
4130 // Stability: development
4131 //
4132 // [H2 Database]: https://h2database.com/
4133 DBSystemNameH2database = DBSystemNameKey.String("h2database")
4134 // [Apache HBase]
4135 // Stability: development
4136 //
4137 // [Apache HBase]: https://hbase.apache.org/
4138 DBSystemNameHBase = DBSystemNameKey.String("hbase")
4139 // [Apache Hive]
4140 // Stability: development
4141 //
4142 // [Apache Hive]: https://hive.apache.org/
4143 DBSystemNameHive = DBSystemNameKey.String("hive")
4144 // [HyperSQL Database]
4145 // Stability: development
4146 //
4147 // [HyperSQL Database]: https://hsqldb.org/
4148 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
4149 // [IBM Db2]
4150 // Stability: development
4151 //
4152 // [IBM Db2]: https://www.ibm.com/db2
4153 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
4154 // [IBM Informix]
4155 // Stability: development
4156 //
4157 // [IBM Informix]: https://www.ibm.com/products/informix
4158 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
4159 // [IBM Netezza]
4160 // Stability: development
4161 //
4162 // [IBM Netezza]: https://www.ibm.com/products/netezza
4163 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
4164 // [InfluxDB]
4165 // Stability: development
4166 //
4167 // [InfluxDB]: https://www.influxdata.com/
4168 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
4169 // [Instant]
4170 // Stability: development
4171 //
4172 // [Instant]: https://www.instantdb.com/
4173 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
4174 // [MariaDB]
4175 // Stability: stable
4176 //
4177 // [MariaDB]: https://mariadb.org/
4178 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
4179 // [Memcached]
4180 // Stability: development
4181 //
4182 // [Memcached]: https://memcached.org/
4183 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4184 // [MongoDB]
4185 // Stability: development
4186 //
4187 // [MongoDB]: https://www.mongodb.com/
4188 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4189 // [Microsoft SQL Server]
4190 // Stability: stable
4191 //
4192 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4193 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4194 // [MySQL]
4195 // Stability: stable
4196 //
4197 // [MySQL]: https://www.mysql.com/
4198 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4199 // [Neo4j]
4200 // Stability: development
4201 //
4202 // [Neo4j]: https://neo4j.com/
4203 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4204 // [OpenSearch]
4205 // Stability: development
4206 //
4207 // [OpenSearch]: https://opensearch.org/
4208 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4209 // [Oracle Database]
4210 // Stability: development
4211 //
4212 // [Oracle Database]: https://www.oracle.com/database/
4213 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4214 // [PostgreSQL]
4215 // Stability: stable
4216 //
4217 // [PostgreSQL]: https://www.postgresql.org/
4218 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4219 // [Redis]
4220 // Stability: development
4221 //
4222 // [Redis]: https://redis.io/
4223 DBSystemNameRedis = DBSystemNameKey.String("redis")
4224 // [SAP HANA]
4225 // Stability: development
4226 //
4227 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4228 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4229 // [SAP MaxDB]
4230 // Stability: development
4231 //
4232 // [SAP MaxDB]: https://maxdb.sap.com/
4233 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4234 // [SQLite]
4235 // Stability: development
4236 //
4237 // [SQLite]: https://www.sqlite.org/
4238 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4239 // [Teradata]
4240 // Stability: development
4241 //
4242 // [Teradata]: https://www.teradata.com/
4243 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4244 // [Trino]
4245 // Stability: development
4246 //
4247 // [Trino]: https://trino.io/
4248 DBSystemNameTrino = DBSystemNameKey.String("trino")
4249 )
4250
4251 // Namespace: deployment
4252 const (
4253 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4254 // "deployment.environment.name" semantic conventions. It represents the name of
4255 // the [deployment environment] (aka deployment tier).
4256 //
4257 // Type: string
4258 // RequirementLevel: Recommended
4259 // Stability: Development
4260 //
4261 // Examples: "staging", "production"
4262 // Note: `deployment.environment.name` does not affect the uniqueness
4263 // constraints defined through
4264 // the `service.namespace`, `service.name` and `service.instance.id` resource
4265 // attributes.
4266 // This implies that resources carrying the following attribute combinations
4267 // MUST be
4268 // considered to be identifying the same service:
4269 //
4270 // - `service.name=frontend`, `deployment.environment.name=production`
4271 // - `service.name=frontend`, `deployment.environment.name=staging`.
4272 //
4273 //
4274 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4275 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4276
4277 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4278 // semantic conventions. It represents the id of the deployment.
4279 //
4280 // Type: string
4281 // RequirementLevel: Recommended
4282 // Stability: Development
4283 //
4284 // Examples: "1208"
4285 DeploymentIDKey = attribute.Key("deployment.id")
4286
4287 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4288 // semantic conventions. It represents the name of the deployment.
4289 //
4290 // Type: string
4291 // RequirementLevel: Recommended
4292 // Stability: Development
4293 //
4294 // Examples: "deploy my app", "deploy-frontend"
4295 DeploymentNameKey = attribute.Key("deployment.name")
4296
4297 // DeploymentStatusKey is the attribute Key conforming to the
4298 // "deployment.status" semantic conventions. It represents the status of the
4299 // deployment.
4300 //
4301 // Type: Enum
4302 // RequirementLevel: Recommended
4303 // Stability: Development
4304 //
4305 // Examples:
4306 DeploymentStatusKey = attribute.Key("deployment.status")
4307 )
4308
4309 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4310 // "deployment.environment.name" semantic conventions. It represents the name of
4311 // the [deployment environment] (aka deployment tier).
4312 //
4313 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4314 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4315 return DeploymentEnvironmentNameKey.String(val)
4316 }
4317
4318 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4319 // semantic conventions. It represents the id of the deployment.
4320 func DeploymentID(val string) attribute.KeyValue {
4321 return DeploymentIDKey.String(val)
4322 }
4323
4324 // DeploymentName returns an attribute KeyValue conforming to the
4325 // "deployment.name" semantic conventions. It represents the name of the
4326 // deployment.
4327 func DeploymentName(val string) attribute.KeyValue {
4328 return DeploymentNameKey.String(val)
4329 }
4330
4331 // Enum values for deployment.status
4332 var (
4333 // failed
4334 // Stability: development
4335 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4336 // succeeded
4337 // Stability: development
4338 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4339 )
4340
4341 // Namespace: destination
4342 const (
4343 // DestinationAddressKey is the attribute Key conforming to the
4344 // "destination.address" semantic conventions. It represents the destination
4345 // address - domain name if available without reverse DNS lookup; otherwise, IP
4346 // address or Unix domain socket name.
4347 //
4348 // Type: string
4349 // RequirementLevel: Recommended
4350 // Stability: Development
4351 //
4352 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4353 // Note: When observed from the source side, and when communicating through an
4354 // intermediary, `destination.address` SHOULD represent the destination address
4355 // behind any intermediaries, for example proxies, if it's available.
4356 DestinationAddressKey = attribute.Key("destination.address")
4357
4358 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4359 // semantic conventions. It represents the destination port number.
4360 //
4361 // Type: int
4362 // RequirementLevel: Recommended
4363 // Stability: Development
4364 //
4365 // Examples: 3389, 2888
4366 DestinationPortKey = attribute.Key("destination.port")
4367 )
4368
4369 // DestinationAddress returns an attribute KeyValue conforming to the
4370 // "destination.address" semantic conventions. It represents the destination
4371 // address - domain name if available without reverse DNS lookup; otherwise, IP
4372 // address or Unix domain socket name.
4373 func DestinationAddress(val string) attribute.KeyValue {
4374 return DestinationAddressKey.String(val)
4375 }
4376
4377 // DestinationPort returns an attribute KeyValue conforming to the
4378 // "destination.port" semantic conventions. It represents the destination port
4379 // number.
4380 func DestinationPort(val int) attribute.KeyValue {
4381 return DestinationPortKey.Int(val)
4382 }
4383
4384 // Namespace: device
4385 const (
4386 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4387 // conventions. It represents a unique identifier representing the device.
4388 //
4389 // Type: string
4390 // RequirementLevel: Recommended
4391 // Stability: Development
4392 //
4393 // Examples: "123456789012345", "01:23:45:67:89:AB"
4394 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4395 // NOT change if an app is uninstalled and re-installed.
4396 // However, it might be resettable by the user for all apps on a device.
4397 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4398 // used as values.
4399 //
4400 // More information about Android identifier best practices can be found in the
4401 // [Android user data IDs guide].
4402 //
4403 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4404 // > should be taken when storing personal data or anything which can identify a
4405 // > user. GDPR and data protection laws may apply,
4406 // > ensure you do your own due diligence.> Due to these reasons, this
4407 // > identifier is not recommended for consumer applications and will likely
4408 // > result in rejection from both Google Play and App Store.
4409 // > However, it may be appropriate for specific enterprise scenarios, such as
4410 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4411 // > clearance.
4412 // > Any instrumentation providing this identifier MUST implement it as an
4413 // > opt-in feature.> See [`app.installation.id`]> for a more
4414 // > privacy-preserving alternative.
4415 //
4416 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
4417 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4418 DeviceIDKey = attribute.Key("device.id")
4419
4420 // DeviceManufacturerKey is the attribute Key conforming to the
4421 // "device.manufacturer" semantic conventions. It represents the name of the
4422 // device manufacturer.
4423 //
4424 // Type: string
4425 // RequirementLevel: Recommended
4426 // Stability: Development
4427 //
4428 // Examples: "Apple", "Samsung"
4429 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4430 // hardcode the value `Apple`.
4431 //
4432 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4433 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4434
4435 // DeviceModelIdentifierKey is the attribute Key conforming to the
4436 // "device.model.identifier" semantic conventions. It represents the model
4437 // identifier for the device.
4438 //
4439 // Type: string
4440 // RequirementLevel: Recommended
4441 // Stability: Development
4442 //
4443 // Examples: "iPhone3,4", "SM-G920F"
4444 // Note: It's recommended this value represents a machine-readable version of
4445 // the model identifier rather than the market or consumer-friendly name of the
4446 // device.
4447 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4448
4449 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4450 // semantic conventions. It represents the marketing name for the device model.
4451 //
4452 // Type: string
4453 // RequirementLevel: Recommended
4454 // Stability: Development
4455 //
4456 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4457 // Note: It's recommended this value represents a human-readable version of the
4458 // device model rather than a machine-readable alternative.
4459 DeviceModelNameKey = attribute.Key("device.model.name")
4460 )
4461
4462 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4463 // conventions. It represents a unique identifier representing the device.
4464 func DeviceID(val string) attribute.KeyValue {
4465 return DeviceIDKey.String(val)
4466 }
4467
4468 // DeviceManufacturer returns an attribute KeyValue conforming to the
4469 // "device.manufacturer" semantic conventions. It represents the name of the
4470 // device manufacturer.
4471 func DeviceManufacturer(val string) attribute.KeyValue {
4472 return DeviceManufacturerKey.String(val)
4473 }
4474
4475 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4476 // "device.model.identifier" semantic conventions. It represents the model
4477 // identifier for the device.
4478 func DeviceModelIdentifier(val string) attribute.KeyValue {
4479 return DeviceModelIdentifierKey.String(val)
4480 }
4481
4482 // DeviceModelName returns an attribute KeyValue conforming to the
4483 // "device.model.name" semantic conventions. It represents the marketing name for
4484 // the device model.
4485 func DeviceModelName(val string) attribute.KeyValue {
4486 return DeviceModelNameKey.String(val)
4487 }
4488
4489 // Namespace: disk
4490 const (
4491 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4492 // semantic conventions. It represents the disk IO operation direction.
4493 //
4494 // Type: Enum
4495 // RequirementLevel: Recommended
4496 // Stability: Development
4497 //
4498 // Examples: "read"
4499 DiskIODirectionKey = attribute.Key("disk.io.direction")
4500 )
4501
4502 // Enum values for disk.io.direction
4503 var (
4504 // read
4505 // Stability: development
4506 DiskIODirectionRead = DiskIODirectionKey.String("read")
4507 // write
4508 // Stability: development
4509 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4510 )
4511
4512 // Namespace: dns
4513 const (
4514 // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
4515 // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
4516 // DNS lookup.
4517 //
4518 // Type: string[]
4519 // RequirementLevel: Recommended
4520 // Stability: Development
4521 //
4522 // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
4523 DNSAnswersKey = attribute.Key("dns.answers")
4524
4525 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4526 // semantic conventions. It represents the name being queried.
4527 //
4528 // Type: string
4529 // RequirementLevel: Recommended
4530 // Stability: Development
4531 //
4532 // Examples: "www.example.com", "opentelemetry.io"
4533 // Note: The name represents the queried domain name as it appears in the DNS
4534 // query without any additional normalization.
4535 DNSQuestionNameKey = attribute.Key("dns.question.name")
4536 )
4537
4538 // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
4539 // semantic conventions. It represents the list of IPv4 or IPv6 addresses
4540 // resolved during DNS lookup.
4541 func DNSAnswers(val ...string) attribute.KeyValue {
4542 return DNSAnswersKey.StringSlice(val)
4543 }
4544
4545 // DNSQuestionName returns an attribute KeyValue conforming to the
4546 // "dns.question.name" semantic conventions. It represents the name being
4547 // queried.
4548 func DNSQuestionName(val string) attribute.KeyValue {
4549 return DNSQuestionNameKey.String(val)
4550 }
4551
4552 // Namespace: elasticsearch
4553 const (
4554 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4555 // "elasticsearch.node.name" semantic conventions. It represents the represents
4556 // the human-readable identifier of the node/instance to which a request was
4557 // routed.
4558 //
4559 // Type: string
4560 // RequirementLevel: Recommended
4561 // Stability: Development
4562 //
4563 // Examples: "instance-0000000001"
4564 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4565 )
4566
4567 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4568 // "elasticsearch.node.name" semantic conventions. It represents the represents
4569 // the human-readable identifier of the node/instance to which a request was
4570 // routed.
4571 func ElasticsearchNodeName(val string) attribute.KeyValue {
4572 return ElasticsearchNodeNameKey.String(val)
4573 }
4574
4575 // Namespace: enduser
4576 const (
4577 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4578 // conventions. It represents the unique identifier of an end user in the
4579 // system. It maybe a username, email address, or other identifier.
4580 //
4581 // Type: string
4582 // RequirementLevel: Recommended
4583 // Stability: Development
4584 //
4585 // Examples: "username"
4586 // Note: Unique identifier of an end user in the system.
4587 //
4588 // > [!Warning]
4589 // > This field contains sensitive (PII) information.
4590 EnduserIDKey = attribute.Key("enduser.id")
4591
4592 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4593 // semantic conventions. It represents the pseudonymous identifier of an end
4594 // user. This identifier should be a random value that is not directly linked or
4595 // associated with the end user's actual identity.
4596 //
4597 // Type: string
4598 // RequirementLevel: Recommended
4599 // Stability: Development
4600 //
4601 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4602 // Note: Pseudonymous identifier of an end user.
4603 //
4604 // > [!Warning]
4605 // > This field contains sensitive (linkable PII) information.
4606 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4607 )
4608
4609 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4610 // semantic conventions. It represents the unique identifier of an end user in
4611 // the system. It maybe a username, email address, or other identifier.
4612 func EnduserID(val string) attribute.KeyValue {
4613 return EnduserIDKey.String(val)
4614 }
4615
4616 // EnduserPseudoID returns an attribute KeyValue conforming to the
4617 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4618 // identifier of an end user. This identifier should be a random value that is
4619 // not directly linked or associated with the end user's actual identity.
4620 func EnduserPseudoID(val string) attribute.KeyValue {
4621 return EnduserPseudoIDKey.String(val)
4622 }
4623
4624 // Namespace: error
4625 const (
4626 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4627 // semantic conventions. It represents a message providing more detail about an
4628 // error in human-readable form.
4629 //
4630 // Type: string
4631 // RequirementLevel: Recommended
4632 // Stability: Development
4633 //
4634 // Examples: "Unexpected input type: string", "The user has exceeded their
4635 // storage quota"
4636 // Note: `error.message` should provide additional context and detail about an
4637 // error.
4638 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4639 // `error.message`.
4640 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4641 // `error.message`.
4642 //
4643 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4644 // cardinality and overlap with span status.
4645 ErrorMessageKey = attribute.Key("error.message")
4646
4647 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4648 // conventions. It represents the describes a class of error the operation ended
4649 // with.
4650 //
4651 // Type: Enum
4652 // RequirementLevel: Recommended
4653 // Stability: Stable
4654 //
4655 // Examples: "timeout", "java.net.UnknownHostException",
4656 // "server_certificate_invalid", "500"
4657 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4658 // cardinality.
4659 //
4660 // When `error.type` is set to a type (e.g., an exception type), its
4661 // canonical class name identifying the type within the artifact SHOULD be used.
4662 //
4663 // Instrumentations SHOULD document the list of errors they report.
4664 //
4665 // The cardinality of `error.type` within one instrumentation library SHOULD be
4666 // low.
4667 // Telemetry consumers that aggregate data from multiple instrumentation
4668 // libraries and applications
4669 // should be prepared for `error.type` to have high cardinality at query time
4670 // when no
4671 // additional filters are applied.
4672 //
4673 // If the operation has completed successfully, instrumentations SHOULD NOT set
4674 // `error.type`.
4675 //
4676 // If a specific domain defines its own set of error identifiers (such as HTTP
4677 // or RPC status codes),
4678 // it's RECOMMENDED to:
4679 //
4680 // - Use a domain-specific attribute
4681 // - Set `error.type` to capture all errors, regardless of whether they are
4682 // defined within the domain-specific set or not.
4683 ErrorTypeKey = attribute.Key("error.type")
4684 )
4685
4686 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4687 // semantic conventions. It represents a message providing more detail about an
4688 // error in human-readable form.
4689 func ErrorMessage(val string) attribute.KeyValue {
4690 return ErrorMessageKey.String(val)
4691 }
4692
4693 // Enum values for error.type
4694 var (
4695 // A fallback error value to be used when the instrumentation doesn't define a
4696 // custom value.
4697 //
4698 // Stability: stable
4699 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4700 )
4701
4702 // Namespace: exception
4703 const (
4704 // ExceptionMessageKey is the attribute Key conforming to the
4705 // "exception.message" semantic conventions. It represents the exception
4706 // message.
4707 //
4708 // Type: string
4709 // RequirementLevel: Recommended
4710 // Stability: Stable
4711 //
4712 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4713 ExceptionMessageKey = attribute.Key("exception.message")
4714
4715 // ExceptionStacktraceKey is the attribute Key conforming to the
4716 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4717 // string in the natural representation for the language runtime. The
4718 // representation is to be determined and documented by each language SIG.
4719 //
4720 // Type: string
4721 // RequirementLevel: Recommended
4722 // Stability: Stable
4723 //
4724 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4725 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4726 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4727 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4728 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4729
4730 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4731 // semantic conventions. It represents the type of the exception (its
4732 // fully-qualified class name, if applicable). The dynamic type of the exception
4733 // should be preferred over the static type in languages that support it.
4734 //
4735 // Type: string
4736 // RequirementLevel: Recommended
4737 // Stability: Stable
4738 //
4739 // Examples: "java.net.ConnectException", "OSError"
4740 ExceptionTypeKey = attribute.Key("exception.type")
4741 )
4742
4743 // ExceptionMessage returns an attribute KeyValue conforming to the
4744 // "exception.message" semantic conventions. It represents the exception message.
4745 func ExceptionMessage(val string) attribute.KeyValue {
4746 return ExceptionMessageKey.String(val)
4747 }
4748
4749 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4750 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4751 // string in the natural representation for the language runtime. The
4752 // representation is to be determined and documented by each language SIG.
4753 func ExceptionStacktrace(val string) attribute.KeyValue {
4754 return ExceptionStacktraceKey.String(val)
4755 }
4756
4757 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4758 // semantic conventions. It represents the type of the exception (its
4759 // fully-qualified class name, if applicable). The dynamic type of the exception
4760 // should be preferred over the static type in languages that support it.
4761 func ExceptionType(val string) attribute.KeyValue {
4762 return ExceptionTypeKey.String(val)
4763 }
4764
4765 // Namespace: faas
4766 const (
4767 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4768 // semantic conventions. It represents a boolean that is true if the serverless
4769 // function is executed for the first time (aka cold-start).
4770 //
4771 // Type: boolean
4772 // RequirementLevel: Recommended
4773 // Stability: Development
4774 //
4775 // Examples:
4776 FaaSColdstartKey = attribute.Key("faas.coldstart")
4777
4778 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4779 // conventions. It represents a string containing the schedule period as
4780 // [Cron Expression].
4781 //
4782 // Type: string
4783 // RequirementLevel: Recommended
4784 // Stability: Development
4785 //
4786 // Examples: 0/5 * * * ? *
4787 //
4788 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4789 FaaSCronKey = attribute.Key("faas.cron")
4790
4791 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4792 // "faas.document.collection" semantic conventions. It represents the name of
4793 // the source on which the triggering operation was performed. For example, in
4794 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4795 // database name.
4796 //
4797 // Type: string
4798 // RequirementLevel: Recommended
4799 // Stability: Development
4800 //
4801 // Examples: "myBucketName", "myDbName"
4802 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4803
4804 // FaaSDocumentNameKey is the attribute Key conforming to the
4805 // "faas.document.name" semantic conventions. It represents the document
4806 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4807 // the name of the file, and in Cosmos DB the table name.
4808 //
4809 // Type: string
4810 // RequirementLevel: Recommended
4811 // Stability: Development
4812 //
4813 // Examples: "myFile.txt", "myTableName"
4814 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4815
4816 // FaaSDocumentOperationKey is the attribute Key conforming to the
4817 // "faas.document.operation" semantic conventions. It represents the describes
4818 // the type of the operation that was performed on the data.
4819 //
4820 // Type: Enum
4821 // RequirementLevel: Recommended
4822 // Stability: Development
4823 //
4824 // Examples:
4825 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4826
4827 // FaaSDocumentTimeKey is the attribute Key conforming to the
4828 // "faas.document.time" semantic conventions. It represents a string containing
4829 // the time when the data was accessed in the [ISO 8601] format expressed in
4830 // [UTC].
4831 //
4832 // Type: string
4833 // RequirementLevel: Recommended
4834 // Stability: Development
4835 //
4836 // Examples: 2020-01-23T13:47:06Z
4837 //
4838 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4839 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4840 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4841
4842 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4843 // semantic conventions. It represents the execution environment ID as a string,
4844 // that will be potentially reused for other invocations to the same
4845 // function/function version.
4846 //
4847 // Type: string
4848 // RequirementLevel: Recommended
4849 // Stability: Development
4850 //
4851 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4852 // Note: - **AWS Lambda:** Use the (full) log stream name.
4853 FaaSInstanceKey = attribute.Key("faas.instance")
4854
4855 // FaaSInvocationIDKey is the attribute Key conforming to the
4856 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4857 // the current function invocation.
4858 //
4859 // Type: string
4860 // RequirementLevel: Recommended
4861 // Stability: Development
4862 //
4863 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4864 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4865
4866 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4867 // semantic conventions. It represents the name of the invoked function.
4868 //
4869 // Type: string
4870 // RequirementLevel: Recommended
4871 // Stability: Development
4872 //
4873 // Examples: my-function
4874 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4875 // function.
4876 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4877
4878 // FaaSInvokedProviderKey is the attribute Key conforming to the
4879 // "faas.invoked_provider" semantic conventions. It represents the cloud
4880 // provider of the invoked function.
4881 //
4882 // Type: Enum
4883 // RequirementLevel: Recommended
4884 // Stability: Development
4885 //
4886 // Examples:
4887 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4888 // invoked function.
4889 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4890
4891 // FaaSInvokedRegionKey is the attribute Key conforming to the
4892 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4893 // the invoked function.
4894 //
4895 // Type: string
4896 // RequirementLevel: Recommended
4897 // Stability: Development
4898 //
4899 // Examples: eu-central-1
4900 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4901 // function.
4902 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4903
4904 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4905 // semantic conventions. It represents the amount of memory available to the
4906 // serverless function converted to Bytes.
4907 //
4908 // Type: int
4909 // RequirementLevel: Recommended
4910 // Stability: Development
4911 //
4912 // Note: It's recommended to set this attribute since e.g. too little memory can
4913 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4914 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4915 // information (which must be multiplied by 1,048,576).
4916 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4917
4918 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4919 // conventions. It represents the name of the single function that this runtime
4920 // instance executes.
4921 //
4922 // Type: string
4923 // RequirementLevel: Recommended
4924 // Stability: Development
4925 //
4926 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4927 // Note: This is the name of the function as configured/deployed on the FaaS
4928 // platform and is usually different from the name of the callback
4929 // function (which may be stored in the
4930 // [`code.namespace`/`code.function.name`]
4931 // span attributes).
4932 //
4933 // For some cloud providers, the above definition is ambiguous. The following
4934 // definition of function name MUST be used for this attribute
4935 // (and consequently the span name) for the listed cloud providers/products:
4936 //
4937 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4938 // followed by a forward slash followed by the function name (this form
4939 // can also be seen in the resource JSON for the function).
4940 // This means that a span attribute MUST be used, as an Azure function
4941 // app can host multiple functions that would usually share
4942 // a TracerProvider (see also the `cloud.resource_id` attribute).
4943 //
4944 //
4945 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4946 FaaSNameKey = attribute.Key("faas.name")
4947
4948 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4949 // conventions. It represents a string containing the function invocation time
4950 // in the [ISO 8601] format expressed in [UTC].
4951 //
4952 // Type: string
4953 // RequirementLevel: Recommended
4954 // Stability: Development
4955 //
4956 // Examples: 2020-01-23T13:47:06Z
4957 //
4958 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4959 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4960 FaaSTimeKey = attribute.Key("faas.time")
4961
4962 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4963 // conventions. It represents the type of the trigger which caused this function
4964 // invocation.
4965 //
4966 // Type: Enum
4967 // RequirementLevel: Recommended
4968 // Stability: Development
4969 //
4970 // Examples:
4971 FaaSTriggerKey = attribute.Key("faas.trigger")
4972
4973 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4974 // conventions. It represents the immutable version of the function being
4975 // executed.
4976 //
4977 // Type: string
4978 // RequirementLevel: Recommended
4979 // Stability: Development
4980 //
4981 // Examples: "26", "pinkfroid-00002"
4982 // Note: Depending on the cloud provider and platform, use:
4983 //
4984 // - **AWS Lambda:** The [function version]
4985 // (an integer represented as a decimal string).
4986 // - **Google Cloud Run (Services):** The [revision]
4987 // (i.e., the function name plus the revision suffix).
4988 // - **Google Cloud Functions:** The value of the
4989 // [`K_REVISION` environment variable].
4990 // - **Azure Functions:** Not applicable. Do not set this attribute.
4991 //
4992 //
4993 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4994 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4995 // [`K_REVISION` environment variable]: https://cloud.google.com/run/docs/container-contract#services-env-vars
4996 FaaSVersionKey = attribute.Key("faas.version")
4997 )
4998
4999 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
5000 // semantic conventions. It represents a boolean that is true if the serverless
5001 // function is executed for the first time (aka cold-start).
5002 func FaaSColdstart(val bool) attribute.KeyValue {
5003 return FaaSColdstartKey.Bool(val)
5004 }
5005
5006 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
5007 // conventions. It represents a string containing the schedule period as
5008 // [Cron Expression].
5009 //
5010 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
5011 func FaaSCron(val string) attribute.KeyValue {
5012 return FaaSCronKey.String(val)
5013 }
5014
5015 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
5016 // "faas.document.collection" semantic conventions. It represents the name of the
5017 // source on which the triggering operation was performed. For example, in Cloud
5018 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
5019 // name.
5020 func FaaSDocumentCollection(val string) attribute.KeyValue {
5021 return FaaSDocumentCollectionKey.String(val)
5022 }
5023
5024 // FaaSDocumentName returns an attribute KeyValue conforming to the
5025 // "faas.document.name" semantic conventions. It represents the document
5026 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
5027 // the name of the file, and in Cosmos DB the table name.
5028 func FaaSDocumentName(val string) attribute.KeyValue {
5029 return FaaSDocumentNameKey.String(val)
5030 }
5031
5032 // FaaSDocumentTime returns an attribute KeyValue conforming to the
5033 // "faas.document.time" semantic conventions. It represents a string containing
5034 // the time when the data was accessed in the [ISO 8601] format expressed in
5035 // [UTC].
5036 //
5037 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5038 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5039 func FaaSDocumentTime(val string) attribute.KeyValue {
5040 return FaaSDocumentTimeKey.String(val)
5041 }
5042
5043 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
5044 // semantic conventions. It represents the execution environment ID as a string,
5045 // that will be potentially reused for other invocations to the same
5046 // function/function version.
5047 func FaaSInstance(val string) attribute.KeyValue {
5048 return FaaSInstanceKey.String(val)
5049 }
5050
5051 // FaaSInvocationID returns an attribute KeyValue conforming to the
5052 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
5053 // the current function invocation.
5054 func FaaSInvocationID(val string) attribute.KeyValue {
5055 return FaaSInvocationIDKey.String(val)
5056 }
5057
5058 // FaaSInvokedName returns an attribute KeyValue conforming to the
5059 // "faas.invoked_name" semantic conventions. It represents the name of the
5060 // invoked function.
5061 func FaaSInvokedName(val string) attribute.KeyValue {
5062 return FaaSInvokedNameKey.String(val)
5063 }
5064
5065 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
5066 // "faas.invoked_region" semantic conventions. It represents the cloud region of
5067 // the invoked function.
5068 func FaaSInvokedRegion(val string) attribute.KeyValue {
5069 return FaaSInvokedRegionKey.String(val)
5070 }
5071
5072 // FaaSMaxMemory returns an attribute KeyValue conforming to the
5073 // "faas.max_memory" semantic conventions. It represents the amount of memory
5074 // available to the serverless function converted to Bytes.
5075 func FaaSMaxMemory(val int) attribute.KeyValue {
5076 return FaaSMaxMemoryKey.Int(val)
5077 }
5078
5079 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
5080 // conventions. It represents the name of the single function that this runtime
5081 // instance executes.
5082 func FaaSName(val string) attribute.KeyValue {
5083 return FaaSNameKey.String(val)
5084 }
5085
5086 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
5087 // conventions. It represents a string containing the function invocation time in
5088 // the [ISO 8601] format expressed in [UTC].
5089 //
5090 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5091 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5092 func FaaSTime(val string) attribute.KeyValue {
5093 return FaaSTimeKey.String(val)
5094 }
5095
5096 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
5097 // semantic conventions. It represents the immutable version of the function
5098 // being executed.
5099 func FaaSVersion(val string) attribute.KeyValue {
5100 return FaaSVersionKey.String(val)
5101 }
5102
5103 // Enum values for faas.document.operation
5104 var (
5105 // When a new object is created.
5106 // Stability: development
5107 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
5108 // When an object is modified.
5109 // Stability: development
5110 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
5111 // When an object is deleted.
5112 // Stability: development
5113 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
5114 )
5115
5116 // Enum values for faas.invoked_provider
5117 var (
5118 // Alibaba Cloud
5119 // Stability: development
5120 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
5121 // Amazon Web Services
5122 // Stability: development
5123 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
5124 // Microsoft Azure
5125 // Stability: development
5126 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
5127 // Google Cloud Platform
5128 // Stability: development
5129 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
5130 // Tencent Cloud
5131 // Stability: development
5132 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
5133 )
5134
5135 // Enum values for faas.trigger
5136 var (
5137 // A response to some data source operation such as a database or filesystem
5138 // read/write
5139 // Stability: development
5140 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
5141 // To provide an answer to an inbound HTTP request
5142 // Stability: development
5143 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
5144 // A function is set to be executed when messages are sent to a messaging system
5145 // Stability: development
5146 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
5147 // A function is scheduled to be executed regularly
5148 // Stability: development
5149 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
5150 // If none of the others apply
5151 // Stability: development
5152 FaaSTriggerOther = FaaSTriggerKey.String("other")
5153 )
5154
5155 // Namespace: feature_flag
5156 const (
5157 // FeatureFlagContextIDKey is the attribute Key conforming to the
5158 // "feature_flag.context.id" semantic conventions. It represents the unique
5159 // identifier for the flag evaluation context. For example, the targeting key.
5160 //
5161 // Type: string
5162 // RequirementLevel: Recommended
5163 // Stability: Release_Candidate
5164 //
5165 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
5166 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
5167
5168 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
5169 // semantic conventions. It represents the lookup key of the feature flag.
5170 //
5171 // Type: string
5172 // RequirementLevel: Recommended
5173 // Stability: Release_Candidate
5174 //
5175 // Examples: "logo-color"
5176 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
5177
5178 // FeatureFlagProviderNameKey is the attribute Key conforming to the
5179 // "feature_flag.provider.name" semantic conventions. It represents the
5180 // identifies the feature flag provider.
5181 //
5182 // Type: string
5183 // RequirementLevel: Recommended
5184 // Stability: Release_Candidate
5185 //
5186 // Examples: "Flag Manager"
5187 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
5188
5189 // FeatureFlagResultReasonKey is the attribute Key conforming to the
5190 // "feature_flag.result.reason" semantic conventions. It represents the reason
5191 // code which shows how a feature flag value was determined.
5192 //
5193 // Type: Enum
5194 // RequirementLevel: Recommended
5195 // Stability: Release_Candidate
5196 //
5197 // Examples: "static", "targeting_match", "error", "default"
5198 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5199
5200 // FeatureFlagResultValueKey is the attribute Key conforming to the
5201 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5202 // value of the feature flag.
5203 //
5204 // Type: any
5205 // RequirementLevel: Recommended
5206 // Stability: Release_Candidate
5207 //
5208 // Examples: "#ff0000", true, 3
5209 // Note: With some feature flag providers, feature flag results can be quite
5210 // large or contain private or sensitive details.
5211 // Because of this, `feature_flag.result.variant` is often the preferred
5212 // attribute if it is available.
5213 //
5214 // It may be desirable to redact or otherwise limit the size and scope of
5215 // `feature_flag.result.value` if possible.
5216 // Because the evaluated flag value is unstructured and may be any type, it is
5217 // left to the instrumentation author to determine how best to achieve this.
5218 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5219
5220 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5221 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5222 // identifier for an evaluated flag value.
5223 //
5224 // Type: string
5225 // RequirementLevel: Recommended
5226 // Stability: Release_Candidate
5227 //
5228 // Examples: "red", "true", "on"
5229 // Note: A semantic identifier, commonly referred to as a variant, provides a
5230 // means
5231 // for referring to a value without including the value itself. This can
5232 // provide additional context for understanding the meaning behind a value.
5233 // For example, the variant `red` maybe be used for the value `#c05543`.
5234 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5235
5236 // FeatureFlagSetIDKey is the attribute Key conforming to the
5237 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5238 // the [flag set] to which the feature flag belongs.
5239 //
5240 // Type: string
5241 // RequirementLevel: Recommended
5242 // Stability: Release_Candidate
5243 //
5244 // Examples: "proj-1", "ab98sgs", "service1/dev"
5245 //
5246 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5247 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5248
5249 // FeatureFlagVersionKey is the attribute Key conforming to the
5250 // "feature_flag.version" semantic conventions. It represents the version of the
5251 // ruleset used during the evaluation. This may be any stable value which
5252 // uniquely identifies the ruleset.
5253 //
5254 // Type: string
5255 // RequirementLevel: Recommended
5256 // Stability: Release_Candidate
5257 //
5258 // Examples: "1", "01ABCDEF"
5259 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5260 )
5261
5262 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5263 // "feature_flag.context.id" semantic conventions. It represents the unique
5264 // identifier for the flag evaluation context. For example, the targeting key.
5265 func FeatureFlagContextID(val string) attribute.KeyValue {
5266 return FeatureFlagContextIDKey.String(val)
5267 }
5268
5269 // FeatureFlagKey returns an attribute KeyValue conforming to the
5270 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5271 // feature flag.
5272 func FeatureFlagKey(val string) attribute.KeyValue {
5273 return FeatureFlagKeyKey.String(val)
5274 }
5275
5276 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5277 // "feature_flag.provider.name" semantic conventions. It represents the
5278 // identifies the feature flag provider.
5279 func FeatureFlagProviderName(val string) attribute.KeyValue {
5280 return FeatureFlagProviderNameKey.String(val)
5281 }
5282
5283 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5284 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5285 // identifier for an evaluated flag value.
5286 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5287 return FeatureFlagResultVariantKey.String(val)
5288 }
5289
5290 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5291 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5292 // the [flag set] to which the feature flag belongs.
5293 //
5294 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5295 func FeatureFlagSetID(val string) attribute.KeyValue {
5296 return FeatureFlagSetIDKey.String(val)
5297 }
5298
5299 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5300 // "feature_flag.version" semantic conventions. It represents the version of the
5301 // ruleset used during the evaluation. This may be any stable value which
5302 // uniquely identifies the ruleset.
5303 func FeatureFlagVersion(val string) attribute.KeyValue {
5304 return FeatureFlagVersionKey.String(val)
5305 }
5306
5307 // Enum values for feature_flag.result.reason
5308 var (
5309 // The resolved value is static (no dynamic evaluation).
5310 // Stability: release_candidate
5311 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5312 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5313 // occurred or dynamic evaluation yielded no result).
5314 // Stability: release_candidate
5315 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5316 // The resolved value was the result of a dynamic evaluation, such as a rule or
5317 // specific user-targeting.
5318 // Stability: release_candidate
5319 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5320 // The resolved value was the result of pseudorandom assignment.
5321 // Stability: release_candidate
5322 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5323 // The resolved value was retrieved from cache.
5324 // Stability: release_candidate
5325 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5326 // The resolved value was the result of the flag being disabled in the
5327 // management system.
5328 // Stability: release_candidate
5329 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5330 // The reason for the resolved value could not be determined.
5331 // Stability: release_candidate
5332 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5333 // The resolved value is non-authoritative or possibly out of date
5334 // Stability: release_candidate
5335 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5336 // The resolved value was the result of an error.
5337 // Stability: release_candidate
5338 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5339 )
5340
5341 // Namespace: file
5342 const (
5343 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5344 // semantic conventions. It represents the time when the file was last accessed,
5345 // in ISO 8601 format.
5346 //
5347 // Type: string
5348 // RequirementLevel: Recommended
5349 // Stability: Development
5350 //
5351 // Examples: "2021-01-01T12:00:00Z"
5352 // Note: This attribute might not be supported by some file systems — NFS,
5353 // FAT32, in embedded OS, etc.
5354 FileAccessedKey = attribute.Key("file.accessed")
5355
5356 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5357 // semantic conventions. It represents the array of file attributes.
5358 //
5359 // Type: string[]
5360 // RequirementLevel: Recommended
5361 // Stability: Development
5362 //
5363 // Examples: "readonly", "hidden"
5364 // Note: Attributes names depend on the OS or file system. Here’s a
5365 // non-exhaustive list of values expected for this attribute: `archive`,
5366 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5367 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5368 // `write`.
5369 FileAttributesKey = attribute.Key("file.attributes")
5370
5371 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5372 // conventions. It represents the time when the file attributes or metadata was
5373 // last changed, in ISO 8601 format.
5374 //
5375 // Type: string
5376 // RequirementLevel: Recommended
5377 // Stability: Development
5378 //
5379 // Examples: "2021-01-01T12:00:00Z"
5380 // Note: `file.changed` captures the time when any of the file's properties or
5381 // attributes (including the content) are changed, while `file.modified`
5382 // captures the timestamp when the file content is modified.
5383 FileChangedKey = attribute.Key("file.changed")
5384
5385 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5386 // conventions. It represents the time when the file was created, in ISO 8601
5387 // format.
5388 //
5389 // Type: string
5390 // RequirementLevel: Recommended
5391 // Stability: Development
5392 //
5393 // Examples: "2021-01-01T12:00:00Z"
5394 // Note: This attribute might not be supported by some file systems — NFS,
5395 // FAT32, in embedded OS, etc.
5396 FileCreatedKey = attribute.Key("file.created")
5397
5398 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5399 // semantic conventions. It represents the directory where the file is located.
5400 // It should include the drive letter, when appropriate.
5401 //
5402 // Type: string
5403 // RequirementLevel: Recommended
5404 // Stability: Development
5405 //
5406 // Examples: "/home/user", "C:\Program Files\MyApp"
5407 FileDirectoryKey = attribute.Key("file.directory")
5408
5409 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5410 // semantic conventions. It represents the file extension, excluding the leading
5411 // dot.
5412 //
5413 // Type: string
5414 // RequirementLevel: Recommended
5415 // Stability: Development
5416 //
5417 // Examples: "png", "gz"
5418 // Note: When the file name has multiple extensions (example.tar.gz), only the
5419 // last one should be captured ("gz", not "tar.gz").
5420 FileExtensionKey = attribute.Key("file.extension")
5421
5422 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5423 // semantic conventions. It represents the name of the fork. A fork is
5424 // additional data associated with a filesystem object.
5425 //
5426 // Type: string
5427 // RequirementLevel: Recommended
5428 // Stability: Development
5429 //
5430 // Examples: "Zone.Identifier"
5431 // Note: On Linux, a resource fork is used to store additional data with a
5432 // filesystem object. A file always has at least one fork for the data portion,
5433 // and additional forks may exist.
5434 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5435 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5436 // by Windows to track contents downloaded from the Internet. An ADS is
5437 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5438 // some_fork_name is the value that should populate `fork_name`.
5439 // `filename.extension` should populate `file.name`, and `extension` should
5440 // populate `file.extension`. The full path, `file.path`, will include the fork
5441 // name.
5442 FileForkNameKey = attribute.Key("file.fork_name")
5443
5444 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5445 // semantic conventions. It represents the primary Group ID (GID) of the file.
5446 //
5447 // Type: string
5448 // RequirementLevel: Recommended
5449 // Stability: Development
5450 //
5451 // Examples: "1000"
5452 FileGroupIDKey = attribute.Key("file.group.id")
5453
5454 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5455 // semantic conventions. It represents the primary group name of the file.
5456 //
5457 // Type: string
5458 // RequirementLevel: Recommended
5459 // Stability: Development
5460 //
5461 // Examples: "users"
5462 FileGroupNameKey = attribute.Key("file.group.name")
5463
5464 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5465 // conventions. It represents the inode representing the file in the filesystem.
5466 //
5467 // Type: string
5468 // RequirementLevel: Recommended
5469 // Stability: Development
5470 //
5471 // Examples: "256383"
5472 FileInodeKey = attribute.Key("file.inode")
5473
5474 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5475 // conventions. It represents the mode of the file in octal representation.
5476 //
5477 // Type: string
5478 // RequirementLevel: Recommended
5479 // Stability: Development
5480 //
5481 // Examples: "0640"
5482 FileModeKey = attribute.Key("file.mode")
5483
5484 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5485 // semantic conventions. It represents the time when the file content was last
5486 // modified, in ISO 8601 format.
5487 //
5488 // Type: string
5489 // RequirementLevel: Recommended
5490 // Stability: Development
5491 //
5492 // Examples: "2021-01-01T12:00:00Z"
5493 FileModifiedKey = attribute.Key("file.modified")
5494
5495 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5496 // conventions. It represents the name of the file including the extension,
5497 // without the directory.
5498 //
5499 // Type: string
5500 // RequirementLevel: Recommended
5501 // Stability: Development
5502 //
5503 // Examples: "example.png"
5504 FileNameKey = attribute.Key("file.name")
5505
5506 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5507 // semantic conventions. It represents the user ID (UID) or security identifier
5508 // (SID) of the file owner.
5509 //
5510 // Type: string
5511 // RequirementLevel: Recommended
5512 // Stability: Development
5513 //
5514 // Examples: "1000"
5515 FileOwnerIDKey = attribute.Key("file.owner.id")
5516
5517 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5518 // semantic conventions. It represents the username of the file owner.
5519 //
5520 // Type: string
5521 // RequirementLevel: Recommended
5522 // Stability: Development
5523 //
5524 // Examples: "root"
5525 FileOwnerNameKey = attribute.Key("file.owner.name")
5526
5527 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5528 // conventions. It represents the full path to the file, including the file
5529 // name. It should include the drive letter, when appropriate.
5530 //
5531 // Type: string
5532 // RequirementLevel: Recommended
5533 // Stability: Development
5534 //
5535 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5536 FilePathKey = attribute.Key("file.path")
5537
5538 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5539 // conventions. It represents the file size in bytes.
5540 //
5541 // Type: int
5542 // RequirementLevel: Recommended
5543 // Stability: Development
5544 //
5545 // Examples:
5546 FileSizeKey = attribute.Key("file.size")
5547
5548 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5549 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5550 // to the target of a symbolic link.
5551 //
5552 // Type: string
5553 // RequirementLevel: Recommended
5554 // Stability: Development
5555 //
5556 // Examples: "/usr/bin/python3"
5557 // Note: This attribute is only applicable to symbolic links.
5558 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5559 )
5560
5561 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5562 // semantic conventions. It represents the time when the file was last accessed,
5563 // in ISO 8601 format.
5564 func FileAccessed(val string) attribute.KeyValue {
5565 return FileAccessedKey.String(val)
5566 }
5567
5568 // FileAttributes returns an attribute KeyValue conforming to the
5569 // "file.attributes" semantic conventions. It represents the array of file
5570 // attributes.
5571 func FileAttributes(val ...string) attribute.KeyValue {
5572 return FileAttributesKey.StringSlice(val)
5573 }
5574
5575 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5576 // semantic conventions. It represents the time when the file attributes or
5577 // metadata was last changed, in ISO 8601 format.
5578 func FileChanged(val string) attribute.KeyValue {
5579 return FileChangedKey.String(val)
5580 }
5581
5582 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5583 // semantic conventions. It represents the time when the file was created, in ISO
5584 // 8601 format.
5585 func FileCreated(val string) attribute.KeyValue {
5586 return FileCreatedKey.String(val)
5587 }
5588
5589 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5590 // semantic conventions. It represents the directory where the file is located.
5591 // It should include the drive letter, when appropriate.
5592 func FileDirectory(val string) attribute.KeyValue {
5593 return FileDirectoryKey.String(val)
5594 }
5595
5596 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5597 // semantic conventions. It represents the file extension, excluding the leading
5598 // dot.
5599 func FileExtension(val string) attribute.KeyValue {
5600 return FileExtensionKey.String(val)
5601 }
5602
5603 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5604 // semantic conventions. It represents the name of the fork. A fork is additional
5605 // data associated with a filesystem object.
5606 func FileForkName(val string) attribute.KeyValue {
5607 return FileForkNameKey.String(val)
5608 }
5609
5610 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5611 // semantic conventions. It represents the primary Group ID (GID) of the file.
5612 func FileGroupID(val string) attribute.KeyValue {
5613 return FileGroupIDKey.String(val)
5614 }
5615
5616 // FileGroupName returns an attribute KeyValue conforming to the
5617 // "file.group.name" semantic conventions. It represents the primary group name
5618 // of the file.
5619 func FileGroupName(val string) attribute.KeyValue {
5620 return FileGroupNameKey.String(val)
5621 }
5622
5623 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5624 // semantic conventions. It represents the inode representing the file in the
5625 // filesystem.
5626 func FileInode(val string) attribute.KeyValue {
5627 return FileInodeKey.String(val)
5628 }
5629
5630 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5631 // conventions. It represents the mode of the file in octal representation.
5632 func FileMode(val string) attribute.KeyValue {
5633 return FileModeKey.String(val)
5634 }
5635
5636 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5637 // semantic conventions. It represents the time when the file content was last
5638 // modified, in ISO 8601 format.
5639 func FileModified(val string) attribute.KeyValue {
5640 return FileModifiedKey.String(val)
5641 }
5642
5643 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5644 // conventions. It represents the name of the file including the extension,
5645 // without the directory.
5646 func FileName(val string) attribute.KeyValue {
5647 return FileNameKey.String(val)
5648 }
5649
5650 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5651 // semantic conventions. It represents the user ID (UID) or security identifier
5652 // (SID) of the file owner.
5653 func FileOwnerID(val string) attribute.KeyValue {
5654 return FileOwnerIDKey.String(val)
5655 }
5656
5657 // FileOwnerName returns an attribute KeyValue conforming to the
5658 // "file.owner.name" semantic conventions. It represents the username of the file
5659 // owner.
5660 func FileOwnerName(val string) attribute.KeyValue {
5661 return FileOwnerNameKey.String(val)
5662 }
5663
5664 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5665 // conventions. It represents the full path to the file, including the file name.
5666 // It should include the drive letter, when appropriate.
5667 func FilePath(val string) attribute.KeyValue {
5668 return FilePathKey.String(val)
5669 }
5670
5671 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5672 // conventions. It represents the file size in bytes.
5673 func FileSize(val int) attribute.KeyValue {
5674 return FileSizeKey.Int(val)
5675 }
5676
5677 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5678 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5679 // to the target of a symbolic link.
5680 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5681 return FileSymbolicLinkTargetPathKey.String(val)
5682 }
5683
5684 // Namespace: gcp
5685 const (
5686 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5687 // "gcp.apphub.application.container" semantic conventions. It represents the
5688 // container within GCP where the AppHub application is defined.
5689 //
5690 // Type: string
5691 // RequirementLevel: Recommended
5692 // Stability: Development
5693 //
5694 // Examples: "projects/my-container-project"
5695 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5696
5697 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5698 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5699 // the application as configured in AppHub.
5700 //
5701 // Type: string
5702 // RequirementLevel: Recommended
5703 // Stability: Development
5704 //
5705 // Examples: "my-application"
5706 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5707
5708 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5709 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5710 // zone or region where the application is defined.
5711 //
5712 // Type: string
5713 // RequirementLevel: Recommended
5714 // Stability: Development
5715 //
5716 // Examples: "us-central1"
5717 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5718
5719 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5720 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5721 // criticality of a service indicates its importance to the business.
5722 //
5723 // Type: Enum
5724 // RequirementLevel: Recommended
5725 // Stability: Development
5726 //
5727 // Examples:
5728 // Note: [See AppHub type enum]
5729 //
5730 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5731 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5732
5733 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5734 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5735 // environment of a service is the stage of a software lifecycle.
5736 //
5737 // Type: Enum
5738 // RequirementLevel: Recommended
5739 // Stability: Development
5740 //
5741 // Examples:
5742 // Note: [See AppHub environment type]
5743 //
5744 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5745 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5746
5747 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5748 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5749 // service as configured in AppHub.
5750 //
5751 // Type: string
5752 // RequirementLevel: Recommended
5753 // Stability: Development
5754 //
5755 // Examples: "my-service"
5756 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5757
5758 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5759 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5760 // the criticality of a workload indicates its importance to the business.
5761 //
5762 // Type: Enum
5763 // RequirementLevel: Recommended
5764 // Stability: Development
5765 //
5766 // Examples:
5767 // Note: [See AppHub type enum]
5768 //
5769 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5770 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5771
5772 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5773 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5774 // the environment of a workload is the stage of a software lifecycle.
5775 //
5776 // Type: Enum
5777 // RequirementLevel: Recommended
5778 // Stability: Development
5779 //
5780 // Examples:
5781 // Note: [See AppHub environment type]
5782 //
5783 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5784 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5785
5786 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5787 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5788 // workload as configured in AppHub.
5789 //
5790 // Type: string
5791 // RequirementLevel: Recommended
5792 // Stability: Development
5793 //
5794 // Examples: "my-workload"
5795 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5796
5797 // GCPAppHubDestinationApplicationContainerKey is the attribute Key conforming
5798 // to the "gcp.apphub_destination.application.container" semantic conventions.
5799 // It represents the container within GCP where the AppHub destination
5800 // application is defined.
5801 //
5802 // Type: string
5803 // RequirementLevel: Recommended
5804 // Stability: Development
5805 //
5806 // Examples: "projects/my-container-project"
5807 GCPAppHubDestinationApplicationContainerKey = attribute.Key("gcp.apphub_destination.application.container")
5808
5809 // GCPAppHubDestinationApplicationIDKey is the attribute Key conforming to the
5810 // "gcp.apphub_destination.application.id" semantic conventions. It represents
5811 // the name of the destination application as configured in AppHub.
5812 //
5813 // Type: string
5814 // RequirementLevel: Recommended
5815 // Stability: Development
5816 //
5817 // Examples: "my-application"
5818 GCPAppHubDestinationApplicationIDKey = attribute.Key("gcp.apphub_destination.application.id")
5819
5820 // GCPAppHubDestinationApplicationLocationKey is the attribute Key conforming to
5821 // the "gcp.apphub_destination.application.location" semantic conventions. It
5822 // represents the GCP zone or region where the destination application is
5823 // defined.
5824 //
5825 // Type: string
5826 // RequirementLevel: Recommended
5827 // Stability: Development
5828 //
5829 // Examples: "us-central1"
5830 GCPAppHubDestinationApplicationLocationKey = attribute.Key("gcp.apphub_destination.application.location")
5831
5832 // GCPAppHubDestinationServiceCriticalityTypeKey is the attribute Key conforming
5833 // to the "gcp.apphub_destination.service.criticality_type" semantic
5834 // conventions. It represents the criticality of a destination workload
5835 // indicates its importance to the business as specified in [AppHub type enum].
5836 //
5837 // Type: Enum
5838 // RequirementLevel: Recommended
5839 // Stability: Development
5840 //
5841 // Examples:
5842 //
5843 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5844 GCPAppHubDestinationServiceCriticalityTypeKey = attribute.Key("gcp.apphub_destination.service.criticality_type")
5845
5846 // GCPAppHubDestinationServiceEnvironmentTypeKey is the attribute Key conforming
5847 // to the "gcp.apphub_destination.service.environment_type" semantic
5848 // conventions. It represents the software lifecycle stage of a destination
5849 // service as defined [AppHub environment type].
5850 //
5851 // Type: Enum
5852 // RequirementLevel: Recommended
5853 // Stability: Development
5854 //
5855 // Examples:
5856 //
5857 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5858 GCPAppHubDestinationServiceEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.service.environment_type")
5859
5860 // GCPAppHubDestinationServiceIDKey is the attribute Key conforming to the
5861 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
5862 // name of the destination service as configured in AppHub.
5863 //
5864 // Type: string
5865 // RequirementLevel: Recommended
5866 // Stability: Development
5867 //
5868 // Examples: "my-service"
5869 GCPAppHubDestinationServiceIDKey = attribute.Key("gcp.apphub_destination.service.id")
5870
5871 // GCPAppHubDestinationWorkloadCriticalityTypeKey is the attribute Key
5872 // conforming to the "gcp.apphub_destination.workload.criticality_type" semantic
5873 // conventions. It represents the criticality of a destination workload
5874 // indicates its importance to the business as specified in [AppHub type enum].
5875 //
5876 // Type: Enum
5877 // RequirementLevel: Recommended
5878 // Stability: Development
5879 //
5880 // Examples:
5881 //
5882 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5883 GCPAppHubDestinationWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub_destination.workload.criticality_type")
5884
5885 // GCPAppHubDestinationWorkloadEnvironmentTypeKey is the attribute Key
5886 // conforming to the "gcp.apphub_destination.workload.environment_type" semantic
5887 // conventions. It represents the environment of a destination workload is the
5888 // stage of a software lifecycle as provided in the [AppHub environment type].
5889 //
5890 // Type: Enum
5891 // RequirementLevel: Recommended
5892 // Stability: Development
5893 //
5894 // Examples:
5895 //
5896 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5897 GCPAppHubDestinationWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.workload.environment_type")
5898
5899 // GCPAppHubDestinationWorkloadIDKey is the attribute Key conforming to the
5900 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
5901 // name of the destination workload as configured in AppHub.
5902 //
5903 // Type: string
5904 // RequirementLevel: Recommended
5905 // Stability: Development
5906 //
5907 // Examples: "my-workload"
5908 GCPAppHubDestinationWorkloadIDKey = attribute.Key("gcp.apphub_destination.workload.id")
5909
5910 // GCPClientServiceKey is the attribute Key conforming to the
5911 // "gcp.client.service" semantic conventions. It represents the identifies the
5912 // Google Cloud service for which the official client library is intended.
5913 //
5914 // Type: string
5915 // RequirementLevel: Recommended
5916 // Stability: Development
5917 //
5918 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5919 // Note: Intended to be a stable identifier for Google Cloud client libraries
5920 // that is uniform across implementation languages. The value should be derived
5921 // from the canonical service domain for the service; for example,
5922 // 'foo.googleapis.com' should result in a value of 'foo'.
5923 GCPClientServiceKey = attribute.Key("gcp.client.service")
5924
5925 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5926 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5927 // the Cloud Run [execution] being run for the Job, as set by the
5928 // [`CLOUD_RUN_EXECUTION`] environment variable.
5929 //
5930 // Type: string
5931 // RequirementLevel: Recommended
5932 // Stability: Development
5933 //
5934 // Examples: "job-name-xxxx", "sample-job-mdw84"
5935 //
5936 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5937 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5938 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5939
5940 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5941 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5942 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5943 // environment variable.
5944 //
5945 // Type: int
5946 // RequirementLevel: Recommended
5947 // Stability: Development
5948 //
5949 // Examples: 0, 1
5950 //
5951 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5952 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5953
5954 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5955 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5956 // of a GCE instance. This is the full value of the default or [custom hostname]
5957 // .
5958 //
5959 // Type: string
5960 // RequirementLevel: Recommended
5961 // Stability: Development
5962 //
5963 // Examples: "my-host1234.example.com",
5964 // "sample-vm.us-west1-b.c.my-project.internal"
5965 //
5966 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5967 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5968
5969 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5970 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5971 // of a GCE instance. This is the value provided by `host.name`, the visible
5972 // name of the instance in the Cloud Console UI, and the prefix for the default
5973 // hostname of the instance as defined by the [default internal DNS name].
5974 //
5975 // Type: string
5976 // RequirementLevel: Recommended
5977 // Stability: Development
5978 //
5979 // Examples: "instance-1", "my-vm-name"
5980 //
5981 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5982 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5983 )
5984
5985 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5986 // "gcp.apphub.application.container" semantic conventions. It represents the
5987 // container within GCP where the AppHub application is defined.
5988 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5989 return GCPAppHubApplicationContainerKey.String(val)
5990 }
5991
5992 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5993 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5994 // the application as configured in AppHub.
5995 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5996 return GCPAppHubApplicationIDKey.String(val)
5997 }
5998
5999 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
6000 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
6001 // zone or region where the application is defined.
6002 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
6003 return GCPAppHubApplicationLocationKey.String(val)
6004 }
6005
6006 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
6007 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
6008 // service as configured in AppHub.
6009 func GCPAppHubServiceID(val string) attribute.KeyValue {
6010 return GCPAppHubServiceIDKey.String(val)
6011 }
6012
6013 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
6014 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
6015 // workload as configured in AppHub.
6016 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
6017 return GCPAppHubWorkloadIDKey.String(val)
6018 }
6019
6020 // GCPAppHubDestinationApplicationContainer returns an attribute KeyValue
6021 // conforming to the "gcp.apphub_destination.application.container" semantic
6022 // conventions. It represents the container within GCP where the AppHub
6023 // destination application is defined.
6024 func GCPAppHubDestinationApplicationContainer(val string) attribute.KeyValue {
6025 return GCPAppHubDestinationApplicationContainerKey.String(val)
6026 }
6027
6028 // GCPAppHubDestinationApplicationID returns an attribute KeyValue conforming to
6029 // the "gcp.apphub_destination.application.id" semantic conventions. It
6030 // represents the name of the destination application as configured in AppHub.
6031 func GCPAppHubDestinationApplicationID(val string) attribute.KeyValue {
6032 return GCPAppHubDestinationApplicationIDKey.String(val)
6033 }
6034
6035 // GCPAppHubDestinationApplicationLocation returns an attribute KeyValue
6036 // conforming to the "gcp.apphub_destination.application.location" semantic
6037 // conventions. It represents the GCP zone or region where the destination
6038 // application is defined.
6039 func GCPAppHubDestinationApplicationLocation(val string) attribute.KeyValue {
6040 return GCPAppHubDestinationApplicationLocationKey.String(val)
6041 }
6042
6043 // GCPAppHubDestinationServiceID returns an attribute KeyValue conforming to the
6044 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
6045 // name of the destination service as configured in AppHub.
6046 func GCPAppHubDestinationServiceID(val string) attribute.KeyValue {
6047 return GCPAppHubDestinationServiceIDKey.String(val)
6048 }
6049
6050 // GCPAppHubDestinationWorkloadID returns an attribute KeyValue conforming to the
6051 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
6052 // name of the destination workload as configured in AppHub.
6053 func GCPAppHubDestinationWorkloadID(val string) attribute.KeyValue {
6054 return GCPAppHubDestinationWorkloadIDKey.String(val)
6055 }
6056
6057 // GCPClientService returns an attribute KeyValue conforming to the
6058 // "gcp.client.service" semantic conventions. It represents the identifies the
6059 // Google Cloud service for which the official client library is intended.
6060 func GCPClientService(val string) attribute.KeyValue {
6061 return GCPClientServiceKey.String(val)
6062 }
6063
6064 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
6065 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
6066 // the Cloud Run [execution] being run for the Job, as set by the
6067 // [`CLOUD_RUN_EXECUTION`] environment variable.
6068 //
6069 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
6070 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6071 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
6072 return GCPCloudRunJobExecutionKey.String(val)
6073 }
6074
6075 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
6076 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
6077 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
6078 // environment variable.
6079 //
6080 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6081 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
6082 return GCPCloudRunJobTaskIndexKey.Int(val)
6083 }
6084
6085 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
6086 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
6087 // of a GCE instance. This is the full value of the default or [custom hostname]
6088 // .
6089 //
6090 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
6091 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
6092 return GCPGCEInstanceHostnameKey.String(val)
6093 }
6094
6095 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
6096 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
6097 // of a GCE instance. This is the value provided by `host.name`, the visible name
6098 // of the instance in the Cloud Console UI, and the prefix for the default
6099 // hostname of the instance as defined by the [default internal DNS name].
6100 //
6101 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
6102 func GCPGCEInstanceName(val string) attribute.KeyValue {
6103 return GCPGCEInstanceNameKey.String(val)
6104 }
6105
6106 // Enum values for gcp.apphub.service.criticality_type
6107 var (
6108 // Mission critical service.
6109 // Stability: development
6110 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6111 // High impact.
6112 // Stability: development
6113 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
6114 // Medium impact.
6115 // Stability: development
6116 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
6117 // Low impact.
6118 // Stability: development
6119 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
6120 )
6121
6122 // Enum values for gcp.apphub.service.environment_type
6123 var (
6124 // Production environment.
6125 // Stability: development
6126 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
6127 // Staging environment.
6128 // Stability: development
6129 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
6130 // Test environment.
6131 // Stability: development
6132 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
6133 // Development environment.
6134 // Stability: development
6135 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
6136 )
6137
6138 // Enum values for gcp.apphub.workload.criticality_type
6139 var (
6140 // Mission critical service.
6141 // Stability: development
6142 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6143 // High impact.
6144 // Stability: development
6145 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
6146 // Medium impact.
6147 // Stability: development
6148 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
6149 // Low impact.
6150 // Stability: development
6151 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
6152 )
6153
6154 // Enum values for gcp.apphub.workload.environment_type
6155 var (
6156 // Production environment.
6157 // Stability: development
6158 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
6159 // Staging environment.
6160 // Stability: development
6161 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
6162 // Test environment.
6163 // Stability: development
6164 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
6165 // Development environment.
6166 // Stability: development
6167 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6168 )
6169
6170 // Enum values for gcp.apphub_destination.service.criticality_type
6171 var (
6172 // Mission critical service.
6173 // Stability: development
6174 GCPAppHubDestinationServiceCriticalityTypeMissionCritical = GCPAppHubDestinationServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6175 // High impact.
6176 // Stability: development
6177 GCPAppHubDestinationServiceCriticalityTypeHigh = GCPAppHubDestinationServiceCriticalityTypeKey.String("HIGH")
6178 // Medium impact.
6179 // Stability: development
6180 GCPAppHubDestinationServiceCriticalityTypeMedium = GCPAppHubDestinationServiceCriticalityTypeKey.String("MEDIUM")
6181 // Low impact.
6182 // Stability: development
6183 GCPAppHubDestinationServiceCriticalityTypeLow = GCPAppHubDestinationServiceCriticalityTypeKey.String("LOW")
6184 )
6185
6186 // Enum values for gcp.apphub_destination.service.environment_type
6187 var (
6188 // Production environment.
6189 // Stability: development
6190 GCPAppHubDestinationServiceEnvironmentTypeProduction = GCPAppHubDestinationServiceEnvironmentTypeKey.String("PRODUCTION")
6191 // Staging environment.
6192 // Stability: development
6193 GCPAppHubDestinationServiceEnvironmentTypeStaging = GCPAppHubDestinationServiceEnvironmentTypeKey.String("STAGING")
6194 // Test environment.
6195 // Stability: development
6196 GCPAppHubDestinationServiceEnvironmentTypeTest = GCPAppHubDestinationServiceEnvironmentTypeKey.String("TEST")
6197 // Development environment.
6198 // Stability: development
6199 GCPAppHubDestinationServiceEnvironmentTypeDevelopment = GCPAppHubDestinationServiceEnvironmentTypeKey.String("DEVELOPMENT")
6200 )
6201
6202 // Enum values for gcp.apphub_destination.workload.criticality_type
6203 var (
6204 // Mission critical service.
6205 // Stability: development
6206 GCPAppHubDestinationWorkloadCriticalityTypeMissionCritical = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6207 // High impact.
6208 // Stability: development
6209 GCPAppHubDestinationWorkloadCriticalityTypeHigh = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("HIGH")
6210 // Medium impact.
6211 // Stability: development
6212 GCPAppHubDestinationWorkloadCriticalityTypeMedium = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MEDIUM")
6213 // Low impact.
6214 // Stability: development
6215 GCPAppHubDestinationWorkloadCriticalityTypeLow = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("LOW")
6216 )
6217
6218 // Enum values for gcp.apphub_destination.workload.environment_type
6219 var (
6220 // Production environment.
6221 // Stability: development
6222 GCPAppHubDestinationWorkloadEnvironmentTypeProduction = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("PRODUCTION")
6223 // Staging environment.
6224 // Stability: development
6225 GCPAppHubDestinationWorkloadEnvironmentTypeStaging = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("STAGING")
6226 // Test environment.
6227 // Stability: development
6228 GCPAppHubDestinationWorkloadEnvironmentTypeTest = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("TEST")
6229 // Development environment.
6230 // Stability: development
6231 GCPAppHubDestinationWorkloadEnvironmentTypeDevelopment = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6232 )
6233
6234 // Namespace: gen_ai
6235 const (
6236 // GenAIAgentDescriptionKey is the attribute Key conforming to the
6237 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6238 // description of the GenAI agent provided by the application.
6239 //
6240 // Type: string
6241 // RequirementLevel: Recommended
6242 // Stability: Development
6243 //
6244 // Examples: "Helps with math problems", "Generates fiction stories"
6245 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
6246
6247 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
6248 // semantic conventions. It represents the unique identifier of the GenAI agent.
6249 //
6250 // Type: string
6251 // RequirementLevel: Recommended
6252 // Stability: Development
6253 //
6254 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
6255 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
6256
6257 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
6258 // semantic conventions. It represents the human-readable name of the GenAI
6259 // agent provided by the application.
6260 //
6261 // Type: string
6262 // RequirementLevel: Recommended
6263 // Stability: Development
6264 //
6265 // Examples: "Math Tutor", "Fiction Writer"
6266 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
6267
6268 // GenAIConversationIDKey is the attribute Key conforming to the
6269 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6270 // identifier for a conversation (session, thread), used to store and correlate
6271 // messages within this conversation.
6272 //
6273 // Type: string
6274 // RequirementLevel: Recommended
6275 // Stability: Development
6276 //
6277 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
6278 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
6279
6280 // GenAIDataSourceIDKey is the attribute Key conforming to the
6281 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6282 // identifier.
6283 //
6284 // Type: string
6285 // RequirementLevel: Recommended
6286 // Stability: Development
6287 //
6288 // Examples: "H7STPQYOND"
6289 // Note: Data sources are used by AI agents and RAG applications to store
6290 // grounding data. A data source may be an external database, object store,
6291 // document collection, website, or any other storage system used by the GenAI
6292 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
6293 // used by the GenAI system rather than a name specific to the external storage,
6294 // such as a database or object store. Semantic conventions referencing
6295 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
6296 // `db.*`, to further identify and describe the data source.
6297 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
6298
6299 // GenAIEmbeddingsDimensionCountKey is the attribute Key conforming to the
6300 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
6301 // number of dimensions the resulting output embeddings should have.
6302 //
6303 // Type: int
6304 // RequirementLevel: Recommended
6305 // Stability: Development
6306 //
6307 // Examples: 512, 1024
6308 GenAIEmbeddingsDimensionCountKey = attribute.Key("gen_ai.embeddings.dimension.count")
6309
6310 // GenAIEvaluationExplanationKey is the attribute Key conforming to the
6311 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
6312 // free-form explanation for the assigned score provided by the evaluator.
6313 //
6314 // Type: string
6315 // RequirementLevel: Recommended
6316 // Stability: Development
6317 //
6318 // Examples: "The response is factually accurate but lacks sufficient detail to
6319 // fully address the question."
6320 GenAIEvaluationExplanationKey = attribute.Key("gen_ai.evaluation.explanation")
6321
6322 // GenAIEvaluationNameKey is the attribute Key conforming to the
6323 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
6324 // evaluation metric used for the GenAI response.
6325 //
6326 // Type: string
6327 // RequirementLevel: Recommended
6328 // Stability: Development
6329 //
6330 // Examples: "Relevance", "IntentResolution"
6331 GenAIEvaluationNameKey = attribute.Key("gen_ai.evaluation.name")
6332
6333 // GenAIEvaluationScoreLabelKey is the attribute Key conforming to the
6334 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
6335 // readable label for evaluation.
6336 //
6337 // Type: string
6338 // RequirementLevel: Recommended
6339 // Stability: Development
6340 //
6341 // Examples: "relevant", "not_relevant", "correct", "incorrect", "pass", "fail"
6342 // Note: This attribute provides a human-readable interpretation of the
6343 // evaluation score produced by an evaluator. For example, a score value of 1
6344 // could mean "relevant" in one evaluation system and "not relevant" in another,
6345 // depending on the scoring range and evaluator. The label SHOULD have low
6346 // cardinality. Possible values depend on the evaluation metric and evaluator
6347 // used; implementations SHOULD document the possible values.
6348 GenAIEvaluationScoreLabelKey = attribute.Key("gen_ai.evaluation.score.label")
6349
6350 // GenAIEvaluationScoreValueKey is the attribute Key conforming to the
6351 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
6352 // evaluation score returned by the evaluator.
6353 //
6354 // Type: double
6355 // RequirementLevel: Recommended
6356 // Stability: Development
6357 //
6358 // Examples: 4.0
6359 GenAIEvaluationScoreValueKey = attribute.Key("gen_ai.evaluation.score.value")
6360
6361 // GenAIInputMessagesKey is the attribute Key conforming to the
6362 // "gen_ai.input.messages" semantic conventions. It represents the chat history
6363 // provided to the model as an input.
6364 //
6365 // Type: any
6366 // RequirementLevel: Recommended
6367 // Stability: Development
6368 //
6369 // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
6370 // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
6371 // "parts": [\n {\n "type": "tool_call",\n "id":
6372 // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
6373 // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
6374 // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
6375 // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
6376 // Note: Instrumentations MUST follow [Input messages JSON schema].
6377 // When the attribute is recorded on events, it MUST be recorded in structured
6378 // form. When recorded on spans, it MAY be recorded as a JSON string if
6379 // structured
6380 // format is not supported and SHOULD be recorded in structured form otherwise.
6381 //
6382 // Messages MUST be provided in the order they were sent to the model.
6383 // Instrumentations MAY provide a way for users to filter or truncate
6384 // input messages.
6385 //
6386 // > [!Warning]
6387 // > This attribute is likely to contain sensitive information including
6388 // > user/PII data.
6389 //
6390 // See [Recording content on attributes]
6391 // section for more details.
6392 //
6393 // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
6394 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6395 GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
6396
6397 // GenAIOperationNameKey is the attribute Key conforming to the
6398 // "gen_ai.operation.name" semantic conventions. It represents the name of the
6399 // operation being performed.
6400 //
6401 // Type: Enum
6402 // RequirementLevel: Recommended
6403 // Stability: Development
6404 //
6405 // Examples:
6406 // Note: If one of the predefined values applies, but specific system uses a
6407 // different name it's RECOMMENDED to document it in the semantic conventions
6408 // for specific GenAI system and use system-specific name in the
6409 // instrumentation. If a different name is not documented, instrumentation
6410 // libraries SHOULD use applicable predefined value.
6411 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
6412
6413 // GenAIOutputMessagesKey is the attribute Key conforming to the
6414 // "gen_ai.output.messages" semantic conventions. It represents the messages
6415 // returned by the model where each message represents a specific model response
6416 // (choice, candidate).
6417 //
6418 // Type: any
6419 // RequirementLevel: Recommended
6420 // Stability: Development
6421 //
6422 // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
6423 // "content": "The weather in Paris is currently rainy with a temperature of
6424 // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
6425 // Note: Instrumentations MUST follow [Output messages JSON schema]
6426 //
6427 // Each message represents a single output choice/candidate generated by
6428 // the model. Each message corresponds to exactly one generation
6429 // (choice/candidate) and vice versa - one choice cannot be split across
6430 // multiple messages or one message cannot contain parts from multiple choices.
6431 //
6432 // When the attribute is recorded on events, it MUST be recorded in structured
6433 // form. When recorded on spans, it MAY be recorded as a JSON string if
6434 // structured
6435 // format is not supported and SHOULD be recorded in structured form otherwise.
6436 //
6437 // Instrumentations MAY provide a way for users to filter or truncate
6438 // output messages.
6439 //
6440 // > [!Warning]
6441 // > This attribute is likely to contain sensitive information including
6442 // > user/PII data.
6443 //
6444 // See [Recording content on attributes]
6445 // section for more details.
6446 //
6447 // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
6448 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6449 GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
6450
6451 // GenAIOutputTypeKey is the attribute Key conforming to the
6452 // "gen_ai.output.type" semantic conventions. It represents the represents the
6453 // content type requested by the client.
6454 //
6455 // Type: Enum
6456 // RequirementLevel: Recommended
6457 // Stability: Development
6458 //
6459 // Examples:
6460 // Note: This attribute SHOULD be used when the client requests output of a
6461 // specific type. The model may return zero or more outputs of this type.
6462 // This attribute specifies the output modality and not the actual output
6463 // format. For example, if an image is requested, the actual output could be a
6464 // URL pointing to an image file.
6465 // Additional output format details may be recorded in the future in the
6466 // `gen_ai.output.{type}.*` attributes.
6467 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
6468
6469 // GenAIPromptNameKey is the attribute Key conforming to the
6470 // "gen_ai.prompt.name" semantic conventions. It represents the name of the
6471 // prompt that uniquely identifies it.
6472 //
6473 // Type: string
6474 // RequirementLevel: Recommended
6475 // Stability: Development
6476 //
6477 // Examples: "analyze-code"
6478 GenAIPromptNameKey = attribute.Key("gen_ai.prompt.name")
6479
6480 // GenAIProviderNameKey is the attribute Key conforming to the
6481 // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
6482 // provider as identified by the client or server instrumentation.
6483 //
6484 // Type: Enum
6485 // RequirementLevel: Recommended
6486 // Stability: Development
6487 //
6488 // Examples:
6489 // Note: The attribute SHOULD be set based on the instrumentation's best
6490 // knowledge and may differ from the actual model provider.
6491 //
6492 // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
6493 // are accessible using the OpenAI REST API and corresponding client libraries,
6494 // but may proxy or host models from different providers.
6495 //
6496 // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
6497 // attributes may help identify the actual system in use.
6498 //
6499 // The `gen_ai.provider.name` attribute acts as a discriminator that
6500 // identifies the GenAI telemetry format flavor specific to that provider
6501 // within GenAI semantic conventions.
6502 // It SHOULD be set consistently with provider-specific attributes and signals.
6503 // For example, GenAI spans, metrics, and events related to AWS Bedrock
6504 // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
6505 // applicable `aws.bedrock.*` attributes and are not expected to include
6506 // `openai.*` attributes.
6507 GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
6508
6509 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
6510 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6511 // number of candidate completions to return.
6512 //
6513 // Type: int
6514 // RequirementLevel: Recommended
6515 // Stability: Development
6516 //
6517 // Examples: 3
6518 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
6519
6520 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
6521 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6522 // encoding formats requested in an embeddings operation, if specified.
6523 //
6524 // Type: string[]
6525 // RequirementLevel: Recommended
6526 // Stability: Development
6527 //
6528 // Examples: "base64"], ["float", "binary"
6529 // Note: In some GenAI systems the encoding formats are called embedding types.
6530 // Also, some GenAI systems only accept a single format per request.
6531 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
6532
6533 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
6534 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6535 // frequency penalty setting for the GenAI request.
6536 //
6537 // Type: double
6538 // RequirementLevel: Recommended
6539 // Stability: Development
6540 //
6541 // Examples: 0.1
6542 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
6543
6544 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
6545 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6546 // number of tokens the model generates for a request.
6547 //
6548 // Type: int
6549 // RequirementLevel: Recommended
6550 // Stability: Development
6551 //
6552 // Examples: 100
6553 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6554
6555 // GenAIRequestModelKey is the attribute Key conforming to the
6556 // "gen_ai.request.model" semantic conventions. It represents the name of the
6557 // GenAI model a request is being made to.
6558 //
6559 // Type: string
6560 // RequirementLevel: Recommended
6561 // Stability: Development
6562 //
6563 // Examples: gpt-4
6564 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6565
6566 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6567 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6568 // presence penalty setting for the GenAI request.
6569 //
6570 // Type: double
6571 // RequirementLevel: Recommended
6572 // Stability: Development
6573 //
6574 // Examples: 0.1
6575 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6576
6577 // GenAIRequestSeedKey is the attribute Key conforming to the
6578 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6579 // same seed value more likely to return same result.
6580 //
6581 // Type: int
6582 // RequirementLevel: Recommended
6583 // Stability: Development
6584 //
6585 // Examples: 100
6586 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6587
6588 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6589 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6590 // of sequences that the model will use to stop generating further tokens.
6591 //
6592 // Type: string[]
6593 // RequirementLevel: Recommended
6594 // Stability: Development
6595 //
6596 // Examples: "forest", "lived"
6597 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6598
6599 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6600 // "gen_ai.request.temperature" semantic conventions. It represents the
6601 // temperature setting for the GenAI request.
6602 //
6603 // Type: double
6604 // RequirementLevel: Recommended
6605 // Stability: Development
6606 //
6607 // Examples: 0.0
6608 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6609
6610 // GenAIRequestTopKKey is the attribute Key conforming to the
6611 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6612 // setting for the GenAI request.
6613 //
6614 // Type: double
6615 // RequirementLevel: Recommended
6616 // Stability: Development
6617 //
6618 // Examples: 1.0
6619 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6620
6621 // GenAIRequestTopPKey is the attribute Key conforming to the
6622 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6623 // setting for the GenAI request.
6624 //
6625 // Type: double
6626 // RequirementLevel: Recommended
6627 // Stability: Development
6628 //
6629 // Examples: 1.0
6630 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6631
6632 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6633 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6634 // array of reasons the model stopped generating tokens, corresponding to each
6635 // generation received.
6636 //
6637 // Type: string[]
6638 // RequirementLevel: Recommended
6639 // Stability: Development
6640 //
6641 // Examples: "stop"], ["stop", "length"
6642 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6643
6644 // GenAIResponseIDKey is the attribute Key conforming to the
6645 // "gen_ai.response.id" semantic conventions. It represents the unique
6646 // identifier for the completion.
6647 //
6648 // Type: string
6649 // RequirementLevel: Recommended
6650 // Stability: Development
6651 //
6652 // Examples: "chatcmpl-123"
6653 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6654
6655 // GenAIResponseModelKey is the attribute Key conforming to the
6656 // "gen_ai.response.model" semantic conventions. It represents the name of the
6657 // model that generated the response.
6658 //
6659 // Type: string
6660 // RequirementLevel: Recommended
6661 // Stability: Development
6662 //
6663 // Examples: "gpt-4-0613"
6664 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6665
6666 // GenAISystemInstructionsKey is the attribute Key conforming to the
6667 // "gen_ai.system_instructions" semantic conventions. It represents the system
6668 // message or instructions provided to the GenAI model separately from the chat
6669 // history.
6670 //
6671 // Type: any
6672 // RequirementLevel: Recommended
6673 // Stability: Development
6674 //
6675 // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
6676 // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
6677 // "text",\n "content": "You are a language translator."\n },\n {\n "type":
6678 // "text",\n "content": "Your mission is to translate text in English to
6679 // French."\n }\n]\n"
6680 // Note: This attribute SHOULD be used when the corresponding provider or API
6681 // allows to provide system instructions or messages separately from the
6682 // chat history.
6683 //
6684 // Instructions that are part of the chat history SHOULD be recorded in
6685 // `gen_ai.input.messages` attribute instead.
6686 //
6687 // Instrumentations MUST follow [System instructions JSON schema].
6688 //
6689 // When recorded on spans, it MAY be recorded as a JSON string if structured
6690 // format is not supported and SHOULD be recorded in structured form otherwise.
6691 //
6692 // Instrumentations MAY provide a way for users to filter or truncate
6693 // system instructions.
6694 //
6695 // > [!Warning]
6696 // > This attribute may contain sensitive information.
6697 //
6698 // See [Recording content on attributes]
6699 // section for more details.
6700 //
6701 // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
6702 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6703 GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
6704
6705 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6706 // semantic conventions. It represents the type of token being counted.
6707 //
6708 // Type: Enum
6709 // RequirementLevel: Recommended
6710 // Stability: Development
6711 //
6712 // Examples: "input", "output"
6713 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6714
6715 // GenAIToolCallArgumentsKey is the attribute Key conforming to the
6716 // "gen_ai.tool.call.arguments" semantic conventions. It represents the
6717 // parameters passed to the tool call.
6718 //
6719 // Type: any
6720 // RequirementLevel: Recommended
6721 // Stability: Development
6722 //
6723 // Examples: "{\n "location": "San Francisco?",\n "date": "2025-10-01"\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 GenAIToolCallArgumentsKey = attribute.Key("gen_ai.tool.call.arguments")
6734
6735 // GenAIToolCallIDKey is the attribute Key conforming to the
6736 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6737 // identifier.
6738 //
6739 // Type: string
6740 // RequirementLevel: Recommended
6741 // Stability: Development
6742 //
6743 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6744 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6745
6746 // GenAIToolCallResultKey is the attribute Key conforming to the
6747 // "gen_ai.tool.call.result" semantic conventions. It represents the result
6748 // returned by the tool call (if any and if execution was successful).
6749 //
6750 // Type: any
6751 // RequirementLevel: Recommended
6752 // Stability: Development
6753 //
6754 // Examples: "{\n "temperature_range": {\n "high": 75,\n "low": 60\n },\n
6755 // "conditions": "sunny"\n}\n"
6756 // Note: > [!WARNING]
6757 //
6758 // > This attribute may contain sensitive information.
6759 //
6760 // It's expected to be an object - in case a serialized string is available
6761 // to the instrumentation, the instrumentation SHOULD do the best effort to
6762 // deserialize it to an object. When recorded on spans, it MAY be recorded as a
6763 // JSON string if structured format is not supported and SHOULD be recorded in
6764 // structured form otherwise.
6765 GenAIToolCallResultKey = attribute.Key("gen_ai.tool.call.result")
6766
6767 // GenAIToolDefinitionsKey is the attribute Key conforming to the
6768 // "gen_ai.tool.definitions" semantic conventions. It represents the list of
6769 // source system tool definitions available to the GenAI agent or model.
6770 //
6771 // Type: any
6772 // RequirementLevel: Recommended
6773 // Stability: Development
6774 //
6775 // Examples: "[\n {\n "type": "function",\n "name": "get_current_weather",\n
6776 // "description": "Get the current weather in a given location",\n "parameters":
6777 // {\n "type": "object",\n "properties": {\n "location": {\n "type": "string",\n
6778 // "description": "The city and state, e.g. San Francisco, CA"\n },\n "unit":
6779 // {\n "type": "string",\n "enum": [\n "celsius",\n "fahrenheit"\n ]\n }\n },\n
6780 // "required": [\n "location",\n "unit"\n ]\n }\n }\n]\n"
6781 // Note: The value of this attribute matches source system tool definition
6782 // format.
6783 //
6784 // It's expected to be an array of objects where each object represents a tool
6785 // definition. In case a serialized string is available
6786 // to the instrumentation, the instrumentation SHOULD do the best effort to
6787 // deserialize it to an array. When recorded on spans, it MAY be recorded as a
6788 // JSON string if structured format is not supported and SHOULD be recorded in
6789 // structured form otherwise.
6790 //
6791 // Since this attribute could be large, it's NOT RECOMMENDED to populate
6792 // it by default. Instrumentations MAY provide a way to enable
6793 // populating this attribute.
6794 GenAIToolDefinitionsKey = attribute.Key("gen_ai.tool.definitions")
6795
6796 // GenAIToolDescriptionKey is the attribute Key conforming to the
6797 // "gen_ai.tool.description" semantic conventions. It represents the tool
6798 // description.
6799 //
6800 // Type: string
6801 // RequirementLevel: Recommended
6802 // Stability: Development
6803 //
6804 // Examples: "Multiply two numbers"
6805 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6806
6807 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6808 // semantic conventions. It represents the name of the tool utilized by the
6809 // agent.
6810 //
6811 // Type: string
6812 // RequirementLevel: Recommended
6813 // Stability: Development
6814 //
6815 // Examples: "Flights"
6816 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6817
6818 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6819 // semantic conventions. It represents the type of the tool utilized by the
6820 // agent.
6821 //
6822 // Type: string
6823 // RequirementLevel: Recommended
6824 // Stability: Development
6825 //
6826 // Examples: "function", "extension", "datastore"
6827 // Note: Extension: A tool executed on the agent-side to directly call external
6828 // APIs, bridging the gap between the agent and real-world systems.
6829 // Agent-side operations involve actions that are performed by the agent on the
6830 // server or within the agent's controlled environment.
6831 // Function: A tool executed on the client-side, where the agent generates
6832 // parameters for a predefined function, and the client executes the logic.
6833 // Client-side operations are actions taken on the user's end or within the
6834 // client application.
6835 // Datastore: A tool used by the agent to access and query structured or
6836 // unstructured external data for retrieval-augmented tasks or knowledge
6837 // updates.
6838 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6839
6840 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6841 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6842 // tokens used in the GenAI input (prompt).
6843 //
6844 // Type: int
6845 // RequirementLevel: Recommended
6846 // Stability: Development
6847 //
6848 // Examples: 100
6849 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6850
6851 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6852 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6853 // of tokens used in the GenAI response (completion).
6854 //
6855 // Type: int
6856 // RequirementLevel: Recommended
6857 // Stability: Development
6858 //
6859 // Examples: 180
6860 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
6861 )
6862
6863 // GenAIAgentDescription returns an attribute KeyValue conforming to the
6864 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6865 // description of the GenAI agent provided by the application.
6866 func GenAIAgentDescription(val string) attribute.KeyValue {
6867 return GenAIAgentDescriptionKey.String(val)
6868 }
6869
6870 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
6871 // semantic conventions. It represents the unique identifier of the GenAI agent.
6872 func GenAIAgentID(val string) attribute.KeyValue {
6873 return GenAIAgentIDKey.String(val)
6874 }
6875
6876 // GenAIAgentName returns an attribute KeyValue conforming to the
6877 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
6878 // name of the GenAI agent provided by the application.
6879 func GenAIAgentName(val string) attribute.KeyValue {
6880 return GenAIAgentNameKey.String(val)
6881 }
6882
6883 // GenAIConversationID returns an attribute KeyValue conforming to the
6884 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6885 // identifier for a conversation (session, thread), used to store and correlate
6886 // messages within this conversation.
6887 func GenAIConversationID(val string) attribute.KeyValue {
6888 return GenAIConversationIDKey.String(val)
6889 }
6890
6891 // GenAIDataSourceID returns an attribute KeyValue conforming to the
6892 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6893 // identifier.
6894 func GenAIDataSourceID(val string) attribute.KeyValue {
6895 return GenAIDataSourceIDKey.String(val)
6896 }
6897
6898 // GenAIEmbeddingsDimensionCount returns an attribute KeyValue conforming to the
6899 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
6900 // number of dimensions the resulting output embeddings should have.
6901 func GenAIEmbeddingsDimensionCount(val int) attribute.KeyValue {
6902 return GenAIEmbeddingsDimensionCountKey.Int(val)
6903 }
6904
6905 // GenAIEvaluationExplanation returns an attribute KeyValue conforming to the
6906 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
6907 // free-form explanation for the assigned score provided by the evaluator.
6908 func GenAIEvaluationExplanation(val string) attribute.KeyValue {
6909 return GenAIEvaluationExplanationKey.String(val)
6910 }
6911
6912 // GenAIEvaluationName returns an attribute KeyValue conforming to the
6913 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
6914 // evaluation metric used for the GenAI response.
6915 func GenAIEvaluationName(val string) attribute.KeyValue {
6916 return GenAIEvaluationNameKey.String(val)
6917 }
6918
6919 // GenAIEvaluationScoreLabel returns an attribute KeyValue conforming to the
6920 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
6921 // readable label for evaluation.
6922 func GenAIEvaluationScoreLabel(val string) attribute.KeyValue {
6923 return GenAIEvaluationScoreLabelKey.String(val)
6924 }
6925
6926 // GenAIEvaluationScoreValue returns an attribute KeyValue conforming to the
6927 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
6928 // evaluation score returned by the evaluator.
6929 func GenAIEvaluationScoreValue(val float64) attribute.KeyValue {
6930 return GenAIEvaluationScoreValueKey.Float64(val)
6931 }
6932
6933 // GenAIPromptName returns an attribute KeyValue conforming to the
6934 // "gen_ai.prompt.name" semantic conventions. It represents the name of the
6935 // prompt that uniquely identifies it.
6936 func GenAIPromptName(val string) attribute.KeyValue {
6937 return GenAIPromptNameKey.String(val)
6938 }
6939
6940 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
6941 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6942 // number of candidate completions to return.
6943 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
6944 return GenAIRequestChoiceCountKey.Int(val)
6945 }
6946
6947 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
6948 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6949 // encoding formats requested in an embeddings operation, if specified.
6950 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
6951 return GenAIRequestEncodingFormatsKey.StringSlice(val)
6952 }
6953
6954 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
6955 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6956 // frequency penalty setting for the GenAI request.
6957 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
6958 return GenAIRequestFrequencyPenaltyKey.Float64(val)
6959 }
6960
6961 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
6962 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6963 // number of tokens the model generates for a request.
6964 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6965 return GenAIRequestMaxTokensKey.Int(val)
6966 }
6967
6968 // GenAIRequestModel returns an attribute KeyValue conforming to the
6969 // "gen_ai.request.model" semantic conventions. It represents the name of the
6970 // GenAI model a request is being made to.
6971 func GenAIRequestModel(val string) attribute.KeyValue {
6972 return GenAIRequestModelKey.String(val)
6973 }
6974
6975 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6976 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6977 // presence penalty setting for the GenAI request.
6978 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6979 return GenAIRequestPresencePenaltyKey.Float64(val)
6980 }
6981
6982 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6983 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6984 // same seed value more likely to return same result.
6985 func GenAIRequestSeed(val int) attribute.KeyValue {
6986 return GenAIRequestSeedKey.Int(val)
6987 }
6988
6989 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6990 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6991 // of sequences that the model will use to stop generating further tokens.
6992 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6993 return GenAIRequestStopSequencesKey.StringSlice(val)
6994 }
6995
6996 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6997 // "gen_ai.request.temperature" semantic conventions. It represents the
6998 // temperature setting for the GenAI request.
6999 func GenAIRequestTemperature(val float64) attribute.KeyValue {
7000 return GenAIRequestTemperatureKey.Float64(val)
7001 }
7002
7003 // GenAIRequestTopK returns an attribute KeyValue conforming to the
7004 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
7005 // setting for the GenAI request.
7006 func GenAIRequestTopK(val float64) attribute.KeyValue {
7007 return GenAIRequestTopKKey.Float64(val)
7008 }
7009
7010 // GenAIRequestTopP returns an attribute KeyValue conforming to the
7011 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
7012 // setting for the GenAI request.
7013 func GenAIRequestTopP(val float64) attribute.KeyValue {
7014 return GenAIRequestTopPKey.Float64(val)
7015 }
7016
7017 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
7018 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
7019 // of reasons the model stopped generating tokens, corresponding to each
7020 // generation received.
7021 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
7022 return GenAIResponseFinishReasonsKey.StringSlice(val)
7023 }
7024
7025 // GenAIResponseID returns an attribute KeyValue conforming to the
7026 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
7027 // for the completion.
7028 func GenAIResponseID(val string) attribute.KeyValue {
7029 return GenAIResponseIDKey.String(val)
7030 }
7031
7032 // GenAIResponseModel returns an attribute KeyValue conforming to the
7033 // "gen_ai.response.model" semantic conventions. It represents the name of the
7034 // model that generated the response.
7035 func GenAIResponseModel(val string) attribute.KeyValue {
7036 return GenAIResponseModelKey.String(val)
7037 }
7038
7039 // GenAIToolCallID returns an attribute KeyValue conforming to the
7040 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
7041 // identifier.
7042 func GenAIToolCallID(val string) attribute.KeyValue {
7043 return GenAIToolCallIDKey.String(val)
7044 }
7045
7046 // GenAIToolDescription returns an attribute KeyValue conforming to the
7047 // "gen_ai.tool.description" semantic conventions. It represents the tool
7048 // description.
7049 func GenAIToolDescription(val string) attribute.KeyValue {
7050 return GenAIToolDescriptionKey.String(val)
7051 }
7052
7053 // GenAIToolName returns an attribute KeyValue conforming to the
7054 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
7055 // utilized by the agent.
7056 func GenAIToolName(val string) attribute.KeyValue {
7057 return GenAIToolNameKey.String(val)
7058 }
7059
7060 // GenAIToolType returns an attribute KeyValue conforming to the
7061 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
7062 // utilized by the agent.
7063 func GenAIToolType(val string) attribute.KeyValue {
7064 return GenAIToolTypeKey.String(val)
7065 }
7066
7067 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
7068 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
7069 // tokens used in the GenAI input (prompt).
7070 func GenAIUsageInputTokens(val int) attribute.KeyValue {
7071 return GenAIUsageInputTokensKey.Int(val)
7072 }
7073
7074 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
7075 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
7076 // tokens used in the GenAI response (completion).
7077 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
7078 return GenAIUsageOutputTokensKey.Int(val)
7079 }
7080
7081 // Enum values for gen_ai.operation.name
7082 var (
7083 // Chat completion operation such as [OpenAI Chat API]
7084 // Stability: development
7085 //
7086 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
7087 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
7088 // Multimodal content generation operation such as [Gemini Generate Content]
7089 // Stability: development
7090 //
7091 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
7092 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
7093 // Text completions operation such as [OpenAI Completions API (Legacy)]
7094 // Stability: development
7095 //
7096 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
7097 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
7098 // Embeddings operation such as [OpenAI Create embeddings API]
7099 // Stability: development
7100 //
7101 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
7102 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
7103 // Create GenAI agent
7104 // Stability: development
7105 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
7106 // Invoke GenAI agent
7107 // Stability: development
7108 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
7109 // Execute a tool
7110 // Stability: development
7111 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
7112 )
7113
7114 // Enum values for gen_ai.output.type
7115 var (
7116 // Plain text
7117 // Stability: development
7118 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
7119 // JSON object with known or unknown schema
7120 // Stability: development
7121 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
7122 // Image
7123 // Stability: development
7124 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
7125 // Speech
7126 // Stability: development
7127 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
7128 )
7129
7130 // Enum values for gen_ai.provider.name
7131 var (
7132 // [OpenAI]
7133 // Stability: development
7134 //
7135 // [OpenAI]: https://openai.com/
7136 GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
7137 // Any Google generative AI endpoint
7138 // Stability: development
7139 GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
7140 // [Vertex AI]
7141 // Stability: development
7142 //
7143 // [Vertex AI]: https://cloud.google.com/vertex-ai
7144 GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
7145 // [Gemini]
7146 // Stability: development
7147 //
7148 // [Gemini]: https://cloud.google.com/products/gemini
7149 GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
7150 // [Anthropic]
7151 // Stability: development
7152 //
7153 // [Anthropic]: https://www.anthropic.com/
7154 GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
7155 // [Cohere]
7156 // Stability: development
7157 //
7158 // [Cohere]: https://cohere.com/
7159 GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
7160 // Azure AI Inference
7161 // Stability: development
7162 GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
7163 // [Azure OpenAI]
7164 // Stability: development
7165 //
7166 // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
7167 GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
7168 // [IBM Watsonx AI]
7169 // Stability: development
7170 //
7171 // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
7172 GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
7173 // [AWS Bedrock]
7174 // Stability: development
7175 //
7176 // [AWS Bedrock]: https://aws.amazon.com/bedrock
7177 GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
7178 // [Perplexity]
7179 // Stability: development
7180 //
7181 // [Perplexity]: https://www.perplexity.ai/
7182 GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
7183 // [xAI]
7184 // Stability: development
7185 //
7186 // [xAI]: https://x.ai/
7187 GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
7188 // [DeepSeek]
7189 // Stability: development
7190 //
7191 // [DeepSeek]: https://www.deepseek.com/
7192 GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
7193 // [Groq]
7194 // Stability: development
7195 //
7196 // [Groq]: https://groq.com/
7197 GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
7198 // [Mistral AI]
7199 // Stability: development
7200 //
7201 // [Mistral AI]: https://mistral.ai/
7202 GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
7203 )
7204
7205 // Enum values for gen_ai.token.type
7206 var (
7207 // Input tokens (prompt, input, etc.)
7208 // Stability: development
7209 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
7210 // Output tokens (completion, response, etc.)
7211 // Stability: development
7212 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
7213 )
7214
7215 // Namespace: geo
7216 const (
7217 // GeoContinentCodeKey is the attribute Key conforming to the
7218 // "geo.continent.code" semantic conventions. It represents the two-letter code
7219 // representing continent’s name.
7220 //
7221 // Type: Enum
7222 // RequirementLevel: Recommended
7223 // Stability: Development
7224 //
7225 // Examples:
7226 GeoContinentCodeKey = attribute.Key("geo.continent.code")
7227
7228 // GeoCountryISOCodeKey is the attribute Key conforming to the
7229 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7230 // Country Code ([ISO 3166-1 alpha2]).
7231 //
7232 // Type: string
7233 // RequirementLevel: Recommended
7234 // Stability: Development
7235 //
7236 // Examples: "CA"
7237 //
7238 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7239 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
7240
7241 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
7242 // semantic conventions. It represents the locality name. Represents the name of
7243 // a city, town, village, or similar populated place.
7244 //
7245 // Type: string
7246 // RequirementLevel: Recommended
7247 // Stability: Development
7248 //
7249 // Examples: "Montreal", "Berlin"
7250 GeoLocalityNameKey = attribute.Key("geo.locality.name")
7251
7252 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
7253 // semantic conventions. It represents the latitude of the geo location in
7254 // [WGS84].
7255 //
7256 // Type: double
7257 // RequirementLevel: Recommended
7258 // Stability: Development
7259 //
7260 // Examples: 45.505918
7261 //
7262 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7263 GeoLocationLatKey = attribute.Key("geo.location.lat")
7264
7265 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
7266 // semantic conventions. It represents the longitude of the geo location in
7267 // [WGS84].
7268 //
7269 // Type: double
7270 // RequirementLevel: Recommended
7271 // Stability: Development
7272 //
7273 // Examples: -73.61483
7274 //
7275 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7276 GeoLocationLonKey = attribute.Key("geo.location.lon")
7277
7278 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
7279 // semantic conventions. It represents the postal code associated with the
7280 // location. Values appropriate for this field may also be known as a postcode
7281 // or ZIP code and will vary widely from country to country.
7282 //
7283 // Type: string
7284 // RequirementLevel: Recommended
7285 // Stability: Development
7286 //
7287 // Examples: "94040"
7288 GeoPostalCodeKey = attribute.Key("geo.postal_code")
7289
7290 // GeoRegionISOCodeKey is the attribute Key conforming to the
7291 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7292 // ([ISO 3166-2]).
7293 //
7294 // Type: string
7295 // RequirementLevel: Recommended
7296 // Stability: Development
7297 //
7298 // Examples: "CA-QC"
7299 //
7300 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7301 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
7302 )
7303
7304 // GeoCountryISOCode returns an attribute KeyValue conforming to the
7305 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7306 // Country Code ([ISO 3166-1 alpha2]).
7307 //
7308 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7309 func GeoCountryISOCode(val string) attribute.KeyValue {
7310 return GeoCountryISOCodeKey.String(val)
7311 }
7312
7313 // GeoLocalityName returns an attribute KeyValue conforming to the
7314 // "geo.locality.name" semantic conventions. It represents the locality name.
7315 // Represents the name of a city, town, village, or similar populated place.
7316 func GeoLocalityName(val string) attribute.KeyValue {
7317 return GeoLocalityNameKey.String(val)
7318 }
7319
7320 // GeoLocationLat returns an attribute KeyValue conforming to the
7321 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
7322 // location in [WGS84].
7323 //
7324 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7325 func GeoLocationLat(val float64) attribute.KeyValue {
7326 return GeoLocationLatKey.Float64(val)
7327 }
7328
7329 // GeoLocationLon returns an attribute KeyValue conforming to the
7330 // "geo.location.lon" semantic conventions. It represents the longitude of the
7331 // geo location in [WGS84].
7332 //
7333 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7334 func GeoLocationLon(val float64) attribute.KeyValue {
7335 return GeoLocationLonKey.Float64(val)
7336 }
7337
7338 // GeoPostalCode returns an attribute KeyValue conforming to the
7339 // "geo.postal_code" semantic conventions. It represents the postal code
7340 // associated with the location. Values appropriate for this field may also be
7341 // known as a postcode or ZIP code and will vary widely from country to country.
7342 func GeoPostalCode(val string) attribute.KeyValue {
7343 return GeoPostalCodeKey.String(val)
7344 }
7345
7346 // GeoRegionISOCode returns an attribute KeyValue conforming to the
7347 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7348 // ([ISO 3166-2]).
7349 //
7350 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7351 func GeoRegionISOCode(val string) attribute.KeyValue {
7352 return GeoRegionISOCodeKey.String(val)
7353 }
7354
7355 // Enum values for geo.continent.code
7356 var (
7357 // Africa
7358 // Stability: development
7359 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
7360 // Antarctica
7361 // Stability: development
7362 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
7363 // Asia
7364 // Stability: development
7365 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
7366 // Europe
7367 // Stability: development
7368 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
7369 // North America
7370 // Stability: development
7371 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
7372 // Oceania
7373 // Stability: development
7374 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
7375 // South America
7376 // Stability: development
7377 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
7378 )
7379
7380 // Namespace: go
7381 const (
7382 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
7383 // semantic conventions. It represents the type of memory.
7384 //
7385 // Type: Enum
7386 // RequirementLevel: Recommended
7387 // Stability: Development
7388 //
7389 // Examples: "other", "stack"
7390 GoMemoryTypeKey = attribute.Key("go.memory.type")
7391 )
7392
7393 // Enum values for go.memory.type
7394 var (
7395 // Memory allocated from the heap that is reserved for stack space, whether or
7396 // not it is currently in-use.
7397 // Stability: development
7398 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
7399 // Memory used by the Go runtime, excluding other categories of memory usage
7400 // described in this enumeration.
7401 // Stability: development
7402 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
7403 )
7404
7405 // Namespace: graphql
7406 const (
7407 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
7408 // semantic conventions. It represents the GraphQL document being executed.
7409 //
7410 // Type: string
7411 // RequirementLevel: Recommended
7412 // Stability: Development
7413 //
7414 // Examples: query findBookById { bookById(id: ?) { name } }
7415 // Note: The value may be sanitized to exclude sensitive information.
7416 GraphQLDocumentKey = attribute.Key("graphql.document")
7417
7418 // GraphQLOperationNameKey is the attribute Key conforming to the
7419 // "graphql.operation.name" semantic conventions. It represents the name of the
7420 // operation being executed.
7421 //
7422 // Type: string
7423 // RequirementLevel: Recommended
7424 // Stability: Development
7425 //
7426 // Examples: findBookById
7427 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
7428
7429 // GraphQLOperationTypeKey is the attribute Key conforming to the
7430 // "graphql.operation.type" semantic conventions. It represents the type of the
7431 // operation being executed.
7432 //
7433 // Type: Enum
7434 // RequirementLevel: Recommended
7435 // Stability: Development
7436 //
7437 // Examples: "query", "mutation", "subscription"
7438 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
7439 )
7440
7441 // GraphQLDocument returns an attribute KeyValue conforming to the
7442 // "graphql.document" semantic conventions. It represents the GraphQL document
7443 // being executed.
7444 func GraphQLDocument(val string) attribute.KeyValue {
7445 return GraphQLDocumentKey.String(val)
7446 }
7447
7448 // GraphQLOperationName returns an attribute KeyValue conforming to the
7449 // "graphql.operation.name" semantic conventions. It represents the name of the
7450 // operation being executed.
7451 func GraphQLOperationName(val string) attribute.KeyValue {
7452 return GraphQLOperationNameKey.String(val)
7453 }
7454
7455 // Enum values for graphql.operation.type
7456 var (
7457 // GraphQL query
7458 // Stability: development
7459 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
7460 // GraphQL mutation
7461 // Stability: development
7462 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
7463 // GraphQL subscription
7464 // Stability: development
7465 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
7466 )
7467
7468 // Namespace: heroku
7469 const (
7470 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
7471 // semantic conventions. It represents the unique identifier for the
7472 // application.
7473 //
7474 // Type: string
7475 // RequirementLevel: Recommended
7476 // Stability: Development
7477 //
7478 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
7479 HerokuAppIDKey = attribute.Key("heroku.app.id")
7480
7481 // HerokuReleaseCommitKey is the attribute Key conforming to the
7482 // "heroku.release.commit" semantic conventions. It represents the commit hash
7483 // for the current release.
7484 //
7485 // Type: string
7486 // RequirementLevel: Recommended
7487 // Stability: Development
7488 //
7489 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
7490 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
7491
7492 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
7493 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7494 // time and date the release was created.
7495 //
7496 // Type: string
7497 // RequirementLevel: Recommended
7498 // Stability: Development
7499 //
7500 // Examples: "2022-10-23T18:00:42Z"
7501 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
7502 )
7503
7504 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
7505 // semantic conventions. It represents the unique identifier for the application.
7506 func HerokuAppID(val string) attribute.KeyValue {
7507 return HerokuAppIDKey.String(val)
7508 }
7509
7510 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
7511 // "heroku.release.commit" semantic conventions. It represents the commit hash
7512 // for the current release.
7513 func HerokuReleaseCommit(val string) attribute.KeyValue {
7514 return HerokuReleaseCommitKey.String(val)
7515 }
7516
7517 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
7518 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7519 // time and date the release was created.
7520 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
7521 return HerokuReleaseCreationTimestampKey.String(val)
7522 }
7523
7524 // Namespace: host
7525 const (
7526 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
7527 // conventions. It represents the CPU architecture the host system is running
7528 // on.
7529 //
7530 // Type: Enum
7531 // RequirementLevel: Recommended
7532 // Stability: Development
7533 //
7534 // Examples:
7535 HostArchKey = attribute.Key("host.arch")
7536
7537 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
7538 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7539 // level 2 memory cache available to the processor (in Bytes).
7540 //
7541 // Type: int
7542 // RequirementLevel: Recommended
7543 // Stability: Development
7544 //
7545 // Examples: 12288000
7546 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
7547
7548 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
7549 // semantic conventions. It represents the family or generation of the CPU.
7550 //
7551 // Type: string
7552 // RequirementLevel: Recommended
7553 // Stability: Development
7554 //
7555 // Examples: "6", "PA-RISC 1.1e"
7556 HostCPUFamilyKey = attribute.Key("host.cpu.family")
7557
7558 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
7559 // semantic conventions. It represents the model identifier. It provides more
7560 // granular information about the CPU, distinguishing it from other CPUs within
7561 // the same family.
7562 //
7563 // Type: string
7564 // RequirementLevel: Recommended
7565 // Stability: Development
7566 //
7567 // Examples: "6", "9000/778/B180L"
7568 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
7569
7570 // HostCPUModelNameKey is the attribute Key conforming to the
7571 // "host.cpu.model.name" semantic conventions. It represents the model
7572 // designation of the processor.
7573 //
7574 // Type: string
7575 // RequirementLevel: Recommended
7576 // Stability: Development
7577 //
7578 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
7579 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
7580
7581 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
7582 // semantic conventions. It represents the stepping or core revisions.
7583 //
7584 // Type: string
7585 // RequirementLevel: Recommended
7586 // Stability: Development
7587 //
7588 // Examples: "1", "r1p1"
7589 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
7590
7591 // HostCPUVendorIDKey is the attribute Key conforming to the
7592 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7593 // manufacturer identifier. A maximum 12-character string.
7594 //
7595 // Type: string
7596 // RequirementLevel: Recommended
7597 // Stability: Development
7598 //
7599 // Examples: "GenuineIntel"
7600 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
7601 // registers. Writing these to memory in this order results in a 12-character
7602 // string.
7603 //
7604 // [CPUID]: https://wiki.osdev.org/CPUID
7605 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
7606
7607 // HostIDKey is the attribute Key conforming to the "host.id" semantic
7608 // conventions. It represents the unique host ID. For Cloud, this must be the
7609 // instance_id assigned by the cloud provider. For non-containerized systems,
7610 // this should be the `machine-id`. See the table below for the sources to use
7611 // to determine the `machine-id` based on operating system.
7612 //
7613 // Type: string
7614 // RequirementLevel: Recommended
7615 // Stability: Development
7616 //
7617 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
7618 HostIDKey = attribute.Key("host.id")
7619
7620 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
7621 // semantic conventions. It represents the VM image ID or host OS image ID. For
7622 // Cloud, this value is from the provider.
7623 //
7624 // Type: string
7625 // RequirementLevel: Recommended
7626 // Stability: Development
7627 //
7628 // Examples: "ami-07b06b442921831e5"
7629 HostImageIDKey = attribute.Key("host.image.id")
7630
7631 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
7632 // semantic conventions. It represents the name of the VM image or OS install
7633 // the host was instantiated from.
7634 //
7635 // Type: string
7636 // RequirementLevel: Recommended
7637 // Stability: Development
7638 //
7639 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
7640 HostImageNameKey = attribute.Key("host.image.name")
7641
7642 // HostImageVersionKey is the attribute Key conforming to the
7643 // "host.image.version" semantic conventions. It represents the version string
7644 // of the VM image or host OS as defined in [Version Attributes].
7645 //
7646 // Type: string
7647 // RequirementLevel: Recommended
7648 // Stability: Development
7649 //
7650 // Examples: "0.1"
7651 //
7652 // [Version Attributes]: /docs/resource/README.md#version-attributes
7653 HostImageVersionKey = attribute.Key("host.image.version")
7654
7655 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
7656 // conventions. It represents the available IP addresses of the host, excluding
7657 // loopback interfaces.
7658 //
7659 // Type: string[]
7660 // RequirementLevel: Recommended
7661 // Stability: Development
7662 //
7663 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
7664 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
7665 // addresses MUST be specified in the [RFC 5952] format.
7666 //
7667 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
7668 HostIPKey = attribute.Key("host.ip")
7669
7670 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
7671 // conventions. It represents the available MAC addresses of the host, excluding
7672 // loopback interfaces.
7673 //
7674 // Type: string[]
7675 // RequirementLevel: Recommended
7676 // Stability: Development
7677 //
7678 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7679 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7680 // hyphen-separated octets in uppercase hexadecimal form from most to least
7681 // significant.
7682 //
7683 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7684 HostMacKey = attribute.Key("host.mac")
7685
7686 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7687 // conventions. It represents the name of the host. On Unix systems, it may
7688 // contain what the hostname command returns, or the fully qualified hostname,
7689 // or another name specified by the user.
7690 //
7691 // Type: string
7692 // RequirementLevel: Recommended
7693 // Stability: Development
7694 //
7695 // Examples: "opentelemetry-test"
7696 HostNameKey = attribute.Key("host.name")
7697
7698 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7699 // conventions. It represents the type of host. For Cloud, this must be the
7700 // machine type.
7701 //
7702 // Type: string
7703 // RequirementLevel: Recommended
7704 // Stability: Development
7705 //
7706 // Examples: "n1-standard-1"
7707 HostTypeKey = attribute.Key("host.type")
7708 )
7709
7710 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7711 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7712 // level 2 memory cache available to the processor (in Bytes).
7713 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7714 return HostCPUCacheL2SizeKey.Int(val)
7715 }
7716
7717 // HostCPUFamily returns an attribute KeyValue conforming to the
7718 // "host.cpu.family" semantic conventions. It represents the family or generation
7719 // of the CPU.
7720 func HostCPUFamily(val string) attribute.KeyValue {
7721 return HostCPUFamilyKey.String(val)
7722 }
7723
7724 // HostCPUModelID returns an attribute KeyValue conforming to the
7725 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7726 // It provides more granular information about the CPU, distinguishing it from
7727 // other CPUs within the same family.
7728 func HostCPUModelID(val string) attribute.KeyValue {
7729 return HostCPUModelIDKey.String(val)
7730 }
7731
7732 // HostCPUModelName returns an attribute KeyValue conforming to the
7733 // "host.cpu.model.name" semantic conventions. It represents the model
7734 // designation of the processor.
7735 func HostCPUModelName(val string) attribute.KeyValue {
7736 return HostCPUModelNameKey.String(val)
7737 }
7738
7739 // HostCPUStepping returns an attribute KeyValue conforming to the
7740 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7741 // revisions.
7742 func HostCPUStepping(val string) attribute.KeyValue {
7743 return HostCPUSteppingKey.String(val)
7744 }
7745
7746 // HostCPUVendorID returns an attribute KeyValue conforming to the
7747 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7748 // manufacturer identifier. A maximum 12-character string.
7749 func HostCPUVendorID(val string) attribute.KeyValue {
7750 return HostCPUVendorIDKey.String(val)
7751 }
7752
7753 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7754 // conventions. It represents the unique host ID. For Cloud, this must be the
7755 // instance_id assigned by the cloud provider. For non-containerized systems,
7756 // this should be the `machine-id`. See the table below for the sources to use to
7757 // determine the `machine-id` based on operating system.
7758 func HostID(val string) attribute.KeyValue {
7759 return HostIDKey.String(val)
7760 }
7761
7762 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7763 // semantic conventions. It represents the VM image ID or host OS image ID. For
7764 // Cloud, this value is from the provider.
7765 func HostImageID(val string) attribute.KeyValue {
7766 return HostImageIDKey.String(val)
7767 }
7768
7769 // HostImageName returns an attribute KeyValue conforming to the
7770 // "host.image.name" semantic conventions. It represents the name of the VM image
7771 // or OS install the host was instantiated from.
7772 func HostImageName(val string) attribute.KeyValue {
7773 return HostImageNameKey.String(val)
7774 }
7775
7776 // HostImageVersion returns an attribute KeyValue conforming to the
7777 // "host.image.version" semantic conventions. It represents the version string of
7778 // the VM image or host OS as defined in [Version Attributes].
7779 //
7780 // [Version Attributes]: /docs/resource/README.md#version-attributes
7781 func HostImageVersion(val string) attribute.KeyValue {
7782 return HostImageVersionKey.String(val)
7783 }
7784
7785 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7786 // conventions. It represents the available IP addresses of the host, excluding
7787 // loopback interfaces.
7788 func HostIP(val ...string) attribute.KeyValue {
7789 return HostIPKey.StringSlice(val)
7790 }
7791
7792 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7793 // conventions. It represents the available MAC addresses of the host, excluding
7794 // loopback interfaces.
7795 func HostMac(val ...string) attribute.KeyValue {
7796 return HostMacKey.StringSlice(val)
7797 }
7798
7799 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7800 // conventions. It represents the name of the host. On Unix systems, it may
7801 // contain what the hostname command returns, or the fully qualified hostname, or
7802 // another name specified by the user.
7803 func HostName(val string) attribute.KeyValue {
7804 return HostNameKey.String(val)
7805 }
7806
7807 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7808 // conventions. It represents the type of host. For Cloud, this must be the
7809 // machine type.
7810 func HostType(val string) attribute.KeyValue {
7811 return HostTypeKey.String(val)
7812 }
7813
7814 // Enum values for host.arch
7815 var (
7816 // AMD64
7817 // Stability: development
7818 HostArchAMD64 = HostArchKey.String("amd64")
7819 // ARM32
7820 // Stability: development
7821 HostArchARM32 = HostArchKey.String("arm32")
7822 // ARM64
7823 // Stability: development
7824 HostArchARM64 = HostArchKey.String("arm64")
7825 // Itanium
7826 // Stability: development
7827 HostArchIA64 = HostArchKey.String("ia64")
7828 // 32-bit PowerPC
7829 // Stability: development
7830 HostArchPPC32 = HostArchKey.String("ppc32")
7831 // 64-bit PowerPC
7832 // Stability: development
7833 HostArchPPC64 = HostArchKey.String("ppc64")
7834 // IBM z/Architecture
7835 // Stability: development
7836 HostArchS390x = HostArchKey.String("s390x")
7837 // 32-bit x86
7838 // Stability: development
7839 HostArchX86 = HostArchKey.String("x86")
7840 )
7841
7842 // Namespace: http
7843 const (
7844 // HTTPConnectionStateKey is the attribute Key conforming to the
7845 // "http.connection.state" semantic conventions. It represents the state of the
7846 // HTTP connection in the HTTP connection pool.
7847 //
7848 // Type: Enum
7849 // RequirementLevel: Recommended
7850 // Stability: Development
7851 //
7852 // Examples: "active", "idle"
7853 HTTPConnectionStateKey = attribute.Key("http.connection.state")
7854
7855 // HTTPRequestBodySizeKey is the attribute Key conforming to the
7856 // "http.request.body.size" semantic conventions. It represents the size of the
7857 // request payload body in bytes. This is the number of bytes transferred
7858 // excluding headers and is often, but not always, present as the
7859 // [Content-Length] header. For requests using transport encoding, this should
7860 // be the compressed size.
7861 //
7862 // Type: int
7863 // RequirementLevel: Recommended
7864 // Stability: Development
7865 //
7866 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7867 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
7868
7869 // HTTPRequestMethodKey is the attribute Key conforming to the
7870 // "http.request.method" semantic conventions. It represents the HTTP request
7871 // method.
7872 //
7873 // Type: Enum
7874 // RequirementLevel: Recommended
7875 // Stability: Stable
7876 //
7877 // Examples: "GET", "POST", "HEAD"
7878 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
7879 // By default, this convention defines "known" methods as the ones listed in
7880 // [RFC9110],
7881 // the PATCH method defined in [RFC5789]
7882 // and the QUERY method defined in [httpbis-safe-method-w-body].
7883 //
7884 // If the HTTP request method is not known to instrumentation, it MUST set the
7885 // `http.request.method` attribute to `_OTHER`.
7886 //
7887 // If the HTTP instrumentation could end up converting valid HTTP request
7888 // methods to `_OTHER`, then it MUST provide a way to override
7889 // the list of known HTTP methods. If this override is done via environment
7890 // variable, then the environment variable MUST be named
7891 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
7892 // case-sensitive known HTTP methods
7893 // (this list MUST be a full override of the default known method, it is not a
7894 // list of known methods in addition to the defaults).
7895 //
7896 // HTTP method names are case-sensitive and `http.request.method` attribute
7897 // value MUST match a known HTTP method name exactly.
7898 // Instrumentations for specific web frameworks that consider HTTP methods to be
7899 // case insensitive, SHOULD populate a canonical equivalent.
7900 // Tracing instrumentations that do so, MUST also set
7901 // `http.request.method_original` to the original value.
7902 //
7903 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
7904 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
7905 // [httpbis-safe-method-w-body]: https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/?include_text=1
7906 HTTPRequestMethodKey = attribute.Key("http.request.method")
7907
7908 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
7909 // "http.request.method_original" semantic conventions. It represents the
7910 // original HTTP method sent by the client in the request line.
7911 //
7912 // Type: string
7913 // RequirementLevel: Recommended
7914 // Stability: Stable
7915 //
7916 // Examples: "GeT", "ACL", "foo"
7917 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
7918
7919 // HTTPRequestResendCountKey is the attribute Key conforming to the
7920 // "http.request.resend_count" semantic conventions. It represents the ordinal
7921 // number of request resending attempt (for any reason, including redirects).
7922 //
7923 // Type: int
7924 // RequirementLevel: Recommended
7925 // Stability: Stable
7926 //
7927 // Note: The resend count SHOULD be updated each time an HTTP request gets
7928 // resent by the client, regardless of what was the cause of the resending (e.g.
7929 // redirection, authorization failure, 503 Server Unavailable, network issues,
7930 // or any other).
7931 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
7932
7933 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
7934 // semantic conventions. It represents the total size of the request in bytes.
7935 // This should be the total number of bytes sent over the wire, including the
7936 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
7937 // body if any.
7938 //
7939 // Type: int
7940 // RequirementLevel: Recommended
7941 // Stability: Development
7942 HTTPRequestSizeKey = attribute.Key("http.request.size")
7943
7944 // HTTPResponseBodySizeKey is the attribute Key conforming to the
7945 // "http.response.body.size" semantic conventions. It represents the size of the
7946 // response payload body in bytes. This is the number of bytes transferred
7947 // excluding headers and is often, but not always, present as the
7948 // [Content-Length] header. For requests using transport encoding, this should
7949 // be the compressed size.
7950 //
7951 // Type: int
7952 // RequirementLevel: Recommended
7953 // Stability: Development
7954 //
7955 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7956 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
7957
7958 // HTTPResponseSizeKey is the attribute Key conforming to the
7959 // "http.response.size" semantic conventions. It represents the total size of
7960 // the response in bytes. This should be the total number of bytes sent over the
7961 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7962 // headers, and response body and trailers if any.
7963 //
7964 // Type: int
7965 // RequirementLevel: Recommended
7966 // Stability: Development
7967 HTTPResponseSizeKey = attribute.Key("http.response.size")
7968
7969 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
7970 // "http.response.status_code" semantic conventions. It represents the
7971 // [HTTP response status code].
7972 //
7973 // Type: int
7974 // RequirementLevel: Recommended
7975 // Stability: Stable
7976 //
7977 // Examples: 200
7978 //
7979 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7980 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7981
7982 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7983 // conventions. It represents the matched route template for the request. This
7984 // MUST be low-cardinality and include all static path segments, with dynamic
7985 // path segments represented with placeholders.
7986 //
7987 // Type: string
7988 // RequirementLevel: Recommended
7989 // Stability: Stable
7990 //
7991 // Examples: "/users/:userID?", "my-controller/my-action/{id?}"
7992 // Note: MUST NOT be populated when this is not supported by the HTTP server
7993 // framework as the route attribute should have low-cardinality and the URI path
7994 // can NOT substitute it.
7995 // SHOULD include the [application root] if there is one.
7996 //
7997 // A static path segment is a part of the route template with a fixed,
7998 // low-cardinality value. This includes literal strings like `/users/` and
7999 // placeholders that
8000 // are constrained to a finite, predefined set of values, e.g. `{controller}` or
8001 // `{action}`.
8002 //
8003 // A dynamic path segment is a placeholder for a value that can have high
8004 // cardinality and is not constrained to a predefined list like static path
8005 // segments.
8006 //
8007 // Instrumentations SHOULD use routing information provided by the corresponding
8008 // web framework. They SHOULD pick the most precise source of routing
8009 // information and MAY
8010 // support custom route formatting. Instrumentations SHOULD document the format
8011 // and the API used to obtain the route string.
8012 //
8013 // [application root]: /docs/http/http-spans.md#http-server-definitions
8014 HTTPRouteKey = attribute.Key("http.route")
8015 )
8016
8017 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
8018 // "http.request.body.size" semantic conventions. It represents the size of the
8019 // request payload body in bytes. This is the number of bytes transferred
8020 // excluding headers and is often, but not always, present as the
8021 // [Content-Length] header. For requests using transport encoding, this should be
8022 // the compressed size.
8023 //
8024 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8025 func HTTPRequestBodySize(val int) attribute.KeyValue {
8026 return HTTPRequestBodySizeKey.Int(val)
8027 }
8028
8029 // HTTPRequestHeader returns an attribute KeyValue conforming to the
8030 // "http.request.header" semantic conventions. It represents the HTTP request
8031 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
8032 // being the header values.
8033 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
8034 return attribute.StringSlice("http.request.header."+key, val)
8035 }
8036
8037 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
8038 // "http.request.method_original" semantic conventions. It represents the
8039 // original HTTP method sent by the client in the request line.
8040 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
8041 return HTTPRequestMethodOriginalKey.String(val)
8042 }
8043
8044 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
8045 // "http.request.resend_count" semantic conventions. It represents the ordinal
8046 // number of request resending attempt (for any reason, including redirects).
8047 func HTTPRequestResendCount(val int) attribute.KeyValue {
8048 return HTTPRequestResendCountKey.Int(val)
8049 }
8050
8051 // HTTPRequestSize returns an attribute KeyValue conforming to the
8052 // "http.request.size" semantic conventions. It represents the total size of the
8053 // request in bytes. This should be the total number of bytes sent over the wire,
8054 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
8055 // and request body if any.
8056 func HTTPRequestSize(val int) attribute.KeyValue {
8057 return HTTPRequestSizeKey.Int(val)
8058 }
8059
8060 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
8061 // "http.response.body.size" semantic conventions. It represents the size of the
8062 // response payload body in bytes. This is the number of bytes transferred
8063 // excluding headers and is often, but not always, present as the
8064 // [Content-Length] header. For requests using transport encoding, this should be
8065 // the compressed size.
8066 //
8067 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8068 func HTTPResponseBodySize(val int) attribute.KeyValue {
8069 return HTTPResponseBodySizeKey.Int(val)
8070 }
8071
8072 // HTTPResponseHeader returns an attribute KeyValue conforming to the
8073 // "http.response.header" semantic conventions. It represents the HTTP response
8074 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
8075 // being the header values.
8076 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
8077 return attribute.StringSlice("http.response.header."+key, val)
8078 }
8079
8080 // HTTPResponseSize returns an attribute KeyValue conforming to the
8081 // "http.response.size" semantic conventions. It represents the total size of the
8082 // response in bytes. This should be the total number of bytes sent over the
8083 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
8084 // headers, and response body and trailers if any.
8085 func HTTPResponseSize(val int) attribute.KeyValue {
8086 return HTTPResponseSizeKey.Int(val)
8087 }
8088
8089 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
8090 // "http.response.status_code" semantic conventions. It represents the
8091 // [HTTP response status code].
8092 //
8093 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
8094 func HTTPResponseStatusCode(val int) attribute.KeyValue {
8095 return HTTPResponseStatusCodeKey.Int(val)
8096 }
8097
8098 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
8099 // semantic conventions. It represents the matched route template for the
8100 // request. This MUST be low-cardinality and include all static path segments,
8101 // with dynamic path segments represented with placeholders.
8102 func HTTPRoute(val string) attribute.KeyValue {
8103 return HTTPRouteKey.String(val)
8104 }
8105
8106 // Enum values for http.connection.state
8107 var (
8108 // active state.
8109 // Stability: development
8110 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
8111 // idle state.
8112 // Stability: development
8113 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
8114 )
8115
8116 // Enum values for http.request.method
8117 var (
8118 // CONNECT method.
8119 // Stability: stable
8120 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
8121 // DELETE method.
8122 // Stability: stable
8123 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
8124 // GET method.
8125 // Stability: stable
8126 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
8127 // HEAD method.
8128 // Stability: stable
8129 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
8130 // OPTIONS method.
8131 // Stability: stable
8132 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
8133 // PATCH method.
8134 // Stability: stable
8135 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
8136 // POST method.
8137 // Stability: stable
8138 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
8139 // PUT method.
8140 // Stability: stable
8141 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
8142 // TRACE method.
8143 // Stability: stable
8144 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
8145 // QUERY method.
8146 // Stability: development
8147 HTTPRequestMethodQuery = HTTPRequestMethodKey.String("QUERY")
8148 // Any HTTP method that the instrumentation has no prior knowledge of.
8149 // Stability: stable
8150 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
8151 )
8152
8153 // Namespace: hw
8154 const (
8155 // HwBatteryCapacityKey is the attribute Key conforming to the
8156 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8157 // in Watts-hours or Amper-hours.
8158 //
8159 // Type: string
8160 // RequirementLevel: Recommended
8161 // Stability: Development
8162 //
8163 // Examples: "9.3Ah", "50Wh"
8164 HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
8165
8166 // HwBatteryChemistryKey is the attribute Key conforming to the
8167 // "hw.battery.chemistry" semantic conventions. It represents the battery
8168 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8169 //
8170 // Type: string
8171 // RequirementLevel: Recommended
8172 // Stability: Development
8173 //
8174 // Examples: "Li-ion", "NiMH"
8175 //
8176 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8177 HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
8178
8179 // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
8180 // semantic conventions. It represents the current state of the battery.
8181 //
8182 // Type: Enum
8183 // RequirementLevel: Recommended
8184 // Stability: Development
8185 //
8186 // Examples:
8187 HwBatteryStateKey = attribute.Key("hw.battery.state")
8188
8189 // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
8190 // semantic conventions. It represents the BIOS version of the hardware
8191 // component.
8192 //
8193 // Type: string
8194 // RequirementLevel: Recommended
8195 // Stability: Development
8196 //
8197 // Examples: "1.2.3"
8198 HwBiosVersionKey = attribute.Key("hw.bios_version")
8199
8200 // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
8201 // semantic conventions. It represents the driver version for the hardware
8202 // component.
8203 //
8204 // Type: string
8205 // RequirementLevel: Recommended
8206 // Stability: Development
8207 //
8208 // Examples: "10.2.1-3"
8209 HwDriverVersionKey = attribute.Key("hw.driver_version")
8210
8211 // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
8212 // semantic conventions. It represents the type of the enclosure (useful for
8213 // modular systems).
8214 //
8215 // Type: string
8216 // RequirementLevel: Recommended
8217 // Stability: Development
8218 //
8219 // Examples: "Computer", "Storage", "Switch"
8220 HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
8221
8222 // HwFirmwareVersionKey is the attribute Key conforming to the
8223 // "hw.firmware_version" semantic conventions. It represents the firmware
8224 // version of the hardware component.
8225 //
8226 // Type: string
8227 // RequirementLevel: Recommended
8228 // Stability: Development
8229 //
8230 // Examples: "2.0.1"
8231 HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
8232
8233 // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
8234 // conventions. It represents the type of task the GPU is performing.
8235 //
8236 // Type: Enum
8237 // RequirementLevel: Recommended
8238 // Stability: Development
8239 //
8240 // Examples:
8241 HwGpuTaskKey = attribute.Key("hw.gpu.task")
8242
8243 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
8244 // It represents an identifier for the hardware component, unique within the
8245 // monitored host.
8246 //
8247 // Type: string
8248 // RequirementLevel: Recommended
8249 // Stability: Development
8250 //
8251 // Examples: "win32battery_battery_testsysa33_1"
8252 HwIDKey = attribute.Key("hw.id")
8253
8254 // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
8255 // semantic conventions. It represents the type of limit for hardware
8256 // components.
8257 //
8258 // Type: Enum
8259 // RequirementLevel: Recommended
8260 // Stability: Development
8261 //
8262 // Examples:
8263 HwLimitTypeKey = attribute.Key("hw.limit_type")
8264
8265 // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
8266 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8267 // Level of the logical disk.
8268 //
8269 // Type: string
8270 // RequirementLevel: Recommended
8271 // Stability: Development
8272 //
8273 // Examples: "RAID0+1", "RAID5", "RAID10"
8274 HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
8275
8276 // HwLogicalDiskStateKey is the attribute Key conforming to the
8277 // "hw.logical_disk.state" semantic conventions. It represents the state of the
8278 // logical disk space usage.
8279 //
8280 // Type: Enum
8281 // RequirementLevel: Recommended
8282 // Stability: Development
8283 //
8284 // Examples:
8285 HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
8286
8287 // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
8288 // semantic conventions. It represents the type of the memory module.
8289 //
8290 // Type: string
8291 // RequirementLevel: Recommended
8292 // Stability: Development
8293 //
8294 // Examples: "DDR4", "DDR5", "LPDDR5"
8295 HwMemoryTypeKey = attribute.Key("hw.memory.type")
8296
8297 // HwModelKey is the attribute Key conforming to the "hw.model" semantic
8298 // conventions. It represents the descriptive model name of the hardware
8299 // component.
8300 //
8301 // Type: string
8302 // RequirementLevel: Recommended
8303 // Stability: Development
8304 //
8305 // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
8306 HwModelKey = attribute.Key("hw.model")
8307
8308 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
8309 // conventions. It represents an easily-recognizable name for the hardware
8310 // component.
8311 //
8312 // Type: string
8313 // RequirementLevel: Recommended
8314 // Stability: Development
8315 //
8316 // Examples: "eth0"
8317 HwNameKey = attribute.Key("hw.name")
8318
8319 // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
8320 // "hw.network.logical_addresses" semantic conventions. It represents the
8321 // logical addresses of the adapter (e.g. IP address, or WWPN).
8322 //
8323 // Type: string[]
8324 // RequirementLevel: Recommended
8325 // Stability: Development
8326 //
8327 // Examples: "172.16.8.21", "57.11.193.42"
8328 HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
8329
8330 // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
8331 // "hw.network.physical_address" semantic conventions. It represents the
8332 // physical address of the adapter (e.g. MAC address, or WWNN).
8333 //
8334 // Type: string
8335 // RequirementLevel: Recommended
8336 // Stability: Development
8337 //
8338 // Examples: "00-90-F5-E9-7B-36"
8339 HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
8340
8341 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
8342 // conventions. It represents the unique identifier of the parent component
8343 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8344 //
8345 // Type: string
8346 // RequirementLevel: Recommended
8347 // Stability: Development
8348 //
8349 // Examples: "dellStorage_perc_0"
8350 HwParentKey = attribute.Key("hw.parent")
8351
8352 // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
8353 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8354 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8355 // of the physical disk.
8356 //
8357 // Type: string
8358 // RequirementLevel: Recommended
8359 // Stability: Development
8360 //
8361 // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
8362 //
8363 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8364 HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
8365
8366 // HwPhysicalDiskStateKey is the attribute Key conforming to the
8367 // "hw.physical_disk.state" semantic conventions. It represents the state of the
8368 // physical disk endurance utilization.
8369 //
8370 // Type: Enum
8371 // RequirementLevel: Recommended
8372 // Stability: Development
8373 //
8374 // Examples:
8375 HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
8376
8377 // HwPhysicalDiskTypeKey is the attribute Key conforming to the
8378 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8379 // physical disk.
8380 //
8381 // Type: string
8382 // RequirementLevel: Recommended
8383 // Stability: Development
8384 //
8385 // Examples: "HDD", "SSD", "10K"
8386 HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
8387
8388 // HwSensorLocationKey is the attribute Key conforming to the
8389 // "hw.sensor_location" semantic conventions. It represents the location of the
8390 // sensor.
8391 //
8392 // Type: string
8393 // RequirementLevel: Recommended
8394 // Stability: Development
8395 //
8396 // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
8397 // V3_3", "MAIN_12V", "CPU_VCORE"
8398 HwSensorLocationKey = attribute.Key("hw.sensor_location")
8399
8400 // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
8401 // semantic conventions. It represents the serial number of the hardware
8402 // component.
8403 //
8404 // Type: string
8405 // RequirementLevel: Recommended
8406 // Stability: Development
8407 //
8408 // Examples: "CNFCP0123456789"
8409 HwSerialNumberKey = attribute.Key("hw.serial_number")
8410
8411 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
8412 // conventions. It represents the current state of the component.
8413 //
8414 // Type: Enum
8415 // RequirementLevel: Recommended
8416 // Stability: Development
8417 //
8418 // Examples:
8419 HwStateKey = attribute.Key("hw.state")
8420
8421 // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
8422 // "hw.tape_drive.operation_type" semantic conventions. It represents the type
8423 // of tape drive operation.
8424 //
8425 // Type: Enum
8426 // RequirementLevel: Recommended
8427 // Stability: Development
8428 //
8429 // Examples:
8430 HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
8431
8432 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
8433 // conventions. It represents the type of the component.
8434 //
8435 // Type: Enum
8436 // RequirementLevel: Recommended
8437 // Stability: Development
8438 //
8439 // Examples:
8440 // Note: Describes the category of the hardware component for which `hw.state`
8441 // is being reported. For example, `hw.type=temperature` along with
8442 // `hw.state=degraded` would indicate that the temperature of the hardware
8443 // component has been reported as `degraded`.
8444 HwTypeKey = attribute.Key("hw.type")
8445
8446 // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
8447 // conventions. It represents the vendor name of the hardware component.
8448 //
8449 // Type: string
8450 // RequirementLevel: Recommended
8451 // Stability: Development
8452 //
8453 // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
8454 HwVendorKey = attribute.Key("hw.vendor")
8455 )
8456
8457 // HwBatteryCapacity returns an attribute KeyValue conforming to the
8458 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8459 // in Watts-hours or Amper-hours.
8460 func HwBatteryCapacity(val string) attribute.KeyValue {
8461 return HwBatteryCapacityKey.String(val)
8462 }
8463
8464 // HwBatteryChemistry returns an attribute KeyValue conforming to the
8465 // "hw.battery.chemistry" semantic conventions. It represents the battery
8466 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8467 //
8468 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8469 func HwBatteryChemistry(val string) attribute.KeyValue {
8470 return HwBatteryChemistryKey.String(val)
8471 }
8472
8473 // HwBiosVersion returns an attribute KeyValue conforming to the
8474 // "hw.bios_version" semantic conventions. It represents the BIOS version of the
8475 // hardware component.
8476 func HwBiosVersion(val string) attribute.KeyValue {
8477 return HwBiosVersionKey.String(val)
8478 }
8479
8480 // HwDriverVersion returns an attribute KeyValue conforming to the
8481 // "hw.driver_version" semantic conventions. It represents the driver version for
8482 // the hardware component.
8483 func HwDriverVersion(val string) attribute.KeyValue {
8484 return HwDriverVersionKey.String(val)
8485 }
8486
8487 // HwEnclosureType returns an attribute KeyValue conforming to the
8488 // "hw.enclosure.type" semantic conventions. It represents the type of the
8489 // enclosure (useful for modular systems).
8490 func HwEnclosureType(val string) attribute.KeyValue {
8491 return HwEnclosureTypeKey.String(val)
8492 }
8493
8494 // HwFirmwareVersion returns an attribute KeyValue conforming to the
8495 // "hw.firmware_version" semantic conventions. It represents the firmware version
8496 // of the hardware component.
8497 func HwFirmwareVersion(val string) attribute.KeyValue {
8498 return HwFirmwareVersionKey.String(val)
8499 }
8500
8501 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
8502 // conventions. It represents an identifier for the hardware component, unique
8503 // within the monitored host.
8504 func HwID(val string) attribute.KeyValue {
8505 return HwIDKey.String(val)
8506 }
8507
8508 // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
8509 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8510 // Level of the logical disk.
8511 func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
8512 return HwLogicalDiskRaidLevelKey.String(val)
8513 }
8514
8515 // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
8516 // semantic conventions. It represents the type of the memory module.
8517 func HwMemoryType(val string) attribute.KeyValue {
8518 return HwMemoryTypeKey.String(val)
8519 }
8520
8521 // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
8522 // conventions. It represents the descriptive model name of the hardware
8523 // component.
8524 func HwModel(val string) attribute.KeyValue {
8525 return HwModelKey.String(val)
8526 }
8527
8528 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
8529 // conventions. It represents an easily-recognizable name for the hardware
8530 // component.
8531 func HwName(val string) attribute.KeyValue {
8532 return HwNameKey.String(val)
8533 }
8534
8535 // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
8536 // "hw.network.logical_addresses" semantic conventions. It represents the logical
8537 // addresses of the adapter (e.g. IP address, or WWPN).
8538 func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
8539 return HwNetworkLogicalAddressesKey.StringSlice(val)
8540 }
8541
8542 // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
8543 // "hw.network.physical_address" semantic conventions. It represents the physical
8544 // address of the adapter (e.g. MAC address, or WWNN).
8545 func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
8546 return HwNetworkPhysicalAddressKey.String(val)
8547 }
8548
8549 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
8550 // conventions. It represents the unique identifier of the parent component
8551 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8552 func HwParent(val string) attribute.KeyValue {
8553 return HwParentKey.String(val)
8554 }
8555
8556 // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
8557 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8558 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8559 // of the physical disk.
8560 //
8561 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8562 func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
8563 return HwPhysicalDiskSmartAttributeKey.String(val)
8564 }
8565
8566 // HwPhysicalDiskType returns an attribute KeyValue conforming to the
8567 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8568 // physical disk.
8569 func HwPhysicalDiskType(val string) attribute.KeyValue {
8570 return HwPhysicalDiskTypeKey.String(val)
8571 }
8572
8573 // HwSensorLocation returns an attribute KeyValue conforming to the
8574 // "hw.sensor_location" semantic conventions. It represents the location of the
8575 // sensor.
8576 func HwSensorLocation(val string) attribute.KeyValue {
8577 return HwSensorLocationKey.String(val)
8578 }
8579
8580 // HwSerialNumber returns an attribute KeyValue conforming to the
8581 // "hw.serial_number" semantic conventions. It represents the serial number of
8582 // the hardware component.
8583 func HwSerialNumber(val string) attribute.KeyValue {
8584 return HwSerialNumberKey.String(val)
8585 }
8586
8587 // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
8588 // conventions. It represents the vendor name of the hardware component.
8589 func HwVendor(val string) attribute.KeyValue {
8590 return HwVendorKey.String(val)
8591 }
8592
8593 // Enum values for hw.battery.state
8594 var (
8595 // Charging
8596 // Stability: development
8597 HwBatteryStateCharging = HwBatteryStateKey.String("charging")
8598 // Discharging
8599 // Stability: development
8600 HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
8601 )
8602
8603 // Enum values for hw.gpu.task
8604 var (
8605 // Decoder
8606 // Stability: development
8607 HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
8608 // Encoder
8609 // Stability: development
8610 HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
8611 // General
8612 // Stability: development
8613 HwGpuTaskGeneral = HwGpuTaskKey.String("general")
8614 )
8615
8616 // Enum values for hw.limit_type
8617 var (
8618 // Critical
8619 // Stability: development
8620 HwLimitTypeCritical = HwLimitTypeKey.String("critical")
8621 // Degraded
8622 // Stability: development
8623 HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
8624 // High Critical
8625 // Stability: development
8626 HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
8627 // High Degraded
8628 // Stability: development
8629 HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
8630 // Low Critical
8631 // Stability: development
8632 HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
8633 // Low Degraded
8634 // Stability: development
8635 HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
8636 // Maximum
8637 // Stability: development
8638 HwLimitTypeMax = HwLimitTypeKey.String("max")
8639 // Throttled
8640 // Stability: development
8641 HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
8642 // Turbo
8643 // Stability: development
8644 HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
8645 )
8646
8647 // Enum values for hw.logical_disk.state
8648 var (
8649 // Used
8650 // Stability: development
8651 HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
8652 // Free
8653 // Stability: development
8654 HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
8655 )
8656
8657 // Enum values for hw.physical_disk.state
8658 var (
8659 // Remaining
8660 // Stability: development
8661 HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
8662 )
8663
8664 // Enum values for hw.state
8665 var (
8666 // Degraded
8667 // Stability: development
8668 HwStateDegraded = HwStateKey.String("degraded")
8669 // Failed
8670 // Stability: development
8671 HwStateFailed = HwStateKey.String("failed")
8672 // Needs Cleaning
8673 // Stability: development
8674 HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
8675 // OK
8676 // Stability: development
8677 HwStateOk = HwStateKey.String("ok")
8678 // Predicted Failure
8679 // Stability: development
8680 HwStatePredictedFailure = HwStateKey.String("predicted_failure")
8681 )
8682
8683 // Enum values for hw.tape_drive.operation_type
8684 var (
8685 // Mount
8686 // Stability: development
8687 HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
8688 // Unmount
8689 // Stability: development
8690 HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
8691 // Clean
8692 // Stability: development
8693 HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
8694 )
8695
8696 // Enum values for hw.type
8697 var (
8698 // Battery
8699 // Stability: development
8700 HwTypeBattery = HwTypeKey.String("battery")
8701 // CPU
8702 // Stability: development
8703 HwTypeCPU = HwTypeKey.String("cpu")
8704 // Disk controller
8705 // Stability: development
8706 HwTypeDiskController = HwTypeKey.String("disk_controller")
8707 // Enclosure
8708 // Stability: development
8709 HwTypeEnclosure = HwTypeKey.String("enclosure")
8710 // Fan
8711 // Stability: development
8712 HwTypeFan = HwTypeKey.String("fan")
8713 // GPU
8714 // Stability: development
8715 HwTypeGpu = HwTypeKey.String("gpu")
8716 // Logical disk
8717 // Stability: development
8718 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
8719 // Memory
8720 // Stability: development
8721 HwTypeMemory = HwTypeKey.String("memory")
8722 // Network
8723 // Stability: development
8724 HwTypeNetwork = HwTypeKey.String("network")
8725 // Physical disk
8726 // Stability: development
8727 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
8728 // Power supply
8729 // Stability: development
8730 HwTypePowerSupply = HwTypeKey.String("power_supply")
8731 // Tape drive
8732 // Stability: development
8733 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
8734 // Temperature
8735 // Stability: development
8736 HwTypeTemperature = HwTypeKey.String("temperature")
8737 // Voltage
8738 // Stability: development
8739 HwTypeVoltage = HwTypeKey.String("voltage")
8740 )
8741
8742 // Namespace: ios
8743 const (
8744 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
8745 // semantic conventions. It represents the this attribute represents the state
8746 // of the application.
8747 //
8748 // Type: Enum
8749 // RequirementLevel: Recommended
8750 // Stability: Development
8751 //
8752 // Examples:
8753 // Note: The iOS lifecycle states are defined in the
8754 // [UIApplicationDelegate documentation], and from which the `OS terminology`
8755 // column values are derived.
8756 //
8757 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
8758 IOSAppStateKey = attribute.Key("ios.app.state")
8759 )
8760
8761 // Enum values for ios.app.state
8762 var (
8763 // The app has become `active`. Associated with UIKit notification
8764 // `applicationDidBecomeActive`.
8765 //
8766 // Stability: development
8767 IOSAppStateActive = IOSAppStateKey.String("active")
8768 // The app is now `inactive`. Associated with UIKit notification
8769 // `applicationWillResignActive`.
8770 //
8771 // Stability: development
8772 IOSAppStateInactive = IOSAppStateKey.String("inactive")
8773 // The app is now in the background. This value is associated with UIKit
8774 // notification `applicationDidEnterBackground`.
8775 //
8776 // Stability: development
8777 IOSAppStateBackground = IOSAppStateKey.String("background")
8778 // The app is now in the foreground. This value is associated with UIKit
8779 // notification `applicationWillEnterForeground`.
8780 //
8781 // Stability: development
8782 IOSAppStateForeground = IOSAppStateKey.String("foreground")
8783 // The app is about to terminate. Associated with UIKit notification
8784 // `applicationWillTerminate`.
8785 //
8786 // Stability: development
8787 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
8788 )
8789
8790 // Namespace: jsonrpc
8791 const (
8792 // JSONRPCProtocolVersionKey is the attribute Key conforming to the
8793 // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
8794 // version, as specified in the `jsonrpc` property of the request and its
8795 // corresponding response.
8796 //
8797 // Type: string
8798 // RequirementLevel: Recommended
8799 // Stability: Development
8800 //
8801 // Examples: "2.0", "1.0"
8802 JSONRPCProtocolVersionKey = attribute.Key("jsonrpc.protocol.version")
8803
8804 // JSONRPCRequestIDKey is the attribute Key conforming to the
8805 // "jsonrpc.request.id" semantic conventions. It represents a string
8806 // representation of the `id` property of the request and its corresponding
8807 // response.
8808 //
8809 // Type: string
8810 // RequirementLevel: Recommended
8811 // Stability: Development
8812 //
8813 // Examples: "10", "request-7"
8814 // Note: Under the [JSON-RPC specification], the `id` property may be a string,
8815 // number, null, or omitted entirely. When omitted, the request is treated as a
8816 // notification. Using `null` is not equivalent to omitting the `id`, but it is
8817 // discouraged.
8818 // Instrumentations SHOULD NOT capture this attribute when the `id` is `null` or
8819 // omitted.
8820 //
8821 // [JSON-RPC specification]: https://www.jsonrpc.org/specification
8822 JSONRPCRequestIDKey = attribute.Key("jsonrpc.request.id")
8823 )
8824
8825 // JSONRPCProtocolVersion returns an attribute KeyValue conforming to the
8826 // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
8827 // version, as specified in the `jsonrpc` property of the request and its
8828 // corresponding response.
8829 func JSONRPCProtocolVersion(val string) attribute.KeyValue {
8830 return JSONRPCProtocolVersionKey.String(val)
8831 }
8832
8833 // JSONRPCRequestID returns an attribute KeyValue conforming to the
8834 // "jsonrpc.request.id" semantic conventions. It represents a string
8835 // representation of the `id` property of the request and its corresponding
8836 // response.
8837 func JSONRPCRequestID(val string) attribute.KeyValue {
8838 return JSONRPCRequestIDKey.String(val)
8839 }
8840
8841 // Namespace: k8s
8842 const (
8843 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
8844 // semantic conventions. It represents the name of the cluster.
8845 //
8846 // Type: string
8847 // RequirementLevel: Recommended
8848 // Stability: Alpha
8849 //
8850 // Examples: "opentelemetry-cluster"
8851 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
8852
8853 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
8854 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
8855 // UID of the `kube-system` namespace.
8856 //
8857 // Type: string
8858 // RequirementLevel: Recommended
8859 // Stability: Alpha
8860 //
8861 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
8862 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
8863 // added, we will recommend collecting the `k8s.cluster.uid` through the
8864 // official APIs. In the meantime, we are able to use the `uid` of the
8865 // `kube-system` namespace as a proxy for cluster ID. Read on for the
8866 // rationale.
8867 //
8868 // Every object created in a K8s cluster is assigned a distinct UID. The
8869 // `kube-system` namespace is used by Kubernetes itself and will exist
8870 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
8871 // namespace is a reasonable proxy for the K8s ClusterID as it will only
8872 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
8873 // UUIDs as standardized by
8874 // [ISO/IEC 9834-8 and ITU-T X.667].
8875 // Which states:
8876 //
8877 // > If generated according to one of the mechanisms defined in Rec.
8878 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
8879 // > different from all other UUIDs generated before 3603 A.D., or is
8880 // > extremely likely to be different (depending on the mechanism chosen).
8881 //
8882 // Therefore, UIDs between clusters should be extremely unlikely to
8883 // conflict.
8884 //
8885 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
8886 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
8887
8888 // K8SContainerNameKey is the attribute Key conforming to the
8889 // "k8s.container.name" semantic conventions. It represents the name of the
8890 // Container from Pod specification, must be unique within a Pod. Container
8891 // runtime usually uses different globally unique name (`container.name`).
8892 //
8893 // Type: string
8894 // RequirementLevel: Recommended
8895 // Stability: Alpha
8896 //
8897 // Examples: "redis"
8898 K8SContainerNameKey = attribute.Key("k8s.container.name")
8899
8900 // K8SContainerRestartCountKey is the attribute Key conforming to the
8901 // "k8s.container.restart_count" semantic conventions. It represents the number
8902 // of times the container was restarted. This attribute can be used to identify
8903 // a particular container (running or stopped) within a container spec.
8904 //
8905 // Type: int
8906 // RequirementLevel: Recommended
8907 // Stability: Alpha
8908 //
8909 // Examples:
8910 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
8911
8912 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
8913 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
8914 // represents the last terminated reason of the Container.
8915 //
8916 // Type: string
8917 // RequirementLevel: Recommended
8918 // Stability: Development
8919 //
8920 // Examples: "Evicted", "Error"
8921 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
8922
8923 // K8SContainerStatusReasonKey is the attribute Key conforming to the
8924 // "k8s.container.status.reason" semantic conventions. It represents the reason
8925 // for the container state. Corresponds to the `reason` field of the:
8926 // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
8927 //
8928 // Type: Enum
8929 // RequirementLevel: Recommended
8930 // Stability: Development
8931 //
8932 // Examples: "ContainerCreating", "CrashLoopBackOff",
8933 // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
8934 // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
8935 //
8936 // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
8937 // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
8938 K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
8939
8940 // K8SContainerStatusStateKey is the attribute Key conforming to the
8941 // "k8s.container.status.state" semantic conventions. It represents the state of
8942 // the container. [K8s ContainerState].
8943 //
8944 // Type: Enum
8945 // RequirementLevel: Recommended
8946 // Stability: Development
8947 //
8948 // Examples: "terminated", "running", "waiting"
8949 //
8950 // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
8951 K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
8952
8953 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
8954 // semantic conventions. It represents the name of the CronJob.
8955 //
8956 // Type: string
8957 // RequirementLevel: Recommended
8958 // Stability: Alpha
8959 //
8960 // Examples: "opentelemetry"
8961 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
8962
8963 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
8964 // semantic conventions. It represents the UID of the CronJob.
8965 //
8966 // Type: string
8967 // RequirementLevel: Recommended
8968 // Stability: Alpha
8969 //
8970 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8971 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
8972
8973 // K8SDaemonSetNameKey is the attribute Key conforming to the
8974 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8975 // DaemonSet.
8976 //
8977 // Type: string
8978 // RequirementLevel: Recommended
8979 // Stability: Alpha
8980 //
8981 // Examples: "opentelemetry"
8982 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
8983
8984 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
8985 // semantic conventions. It represents the UID of the DaemonSet.
8986 //
8987 // Type: string
8988 // RequirementLevel: Recommended
8989 // Stability: Alpha
8990 //
8991 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8992 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
8993
8994 // K8SDeploymentNameKey is the attribute Key conforming to the
8995 // "k8s.deployment.name" semantic conventions. It represents the name of the
8996 // Deployment.
8997 //
8998 // Type: string
8999 // RequirementLevel: Recommended
9000 // Stability: Alpha
9001 //
9002 // Examples: "opentelemetry"
9003 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
9004
9005 // K8SDeploymentUIDKey is the attribute Key conforming to the
9006 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
9007 // Deployment.
9008 //
9009 // Type: string
9010 // RequirementLevel: Recommended
9011 // Stability: Alpha
9012 //
9013 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9014 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
9015
9016 // K8SHPAMetricTypeKey is the attribute Key conforming to the
9017 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
9018 // source for the horizontal pod autoscaler.
9019 //
9020 // Type: string
9021 // RequirementLevel: Recommended
9022 // Stability: Development
9023 //
9024 // Examples: "Resource", "ContainerResource"
9025 // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
9026 K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
9027
9028 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
9029 // conventions. It represents the name of the horizontal pod autoscaler.
9030 //
9031 // Type: string
9032 // RequirementLevel: Recommended
9033 // Stability: Development
9034 //
9035 // Examples: "opentelemetry"
9036 K8SHPANameKey = attribute.Key("k8s.hpa.name")
9037
9038 // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
9039 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
9040 // API version of the target resource to scale for the HorizontalPodAutoscaler.
9041 //
9042 // Type: string
9043 // RequirementLevel: Recommended
9044 // Stability: Development
9045 //
9046 // Examples: "apps/v1", "autoscaling/v2"
9047 // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
9048 // spec.
9049 K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
9050
9051 // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
9052 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
9053 // the target resource to scale for the HorizontalPodAutoscaler.
9054 //
9055 // Type: string
9056 // RequirementLevel: Recommended
9057 // Stability: Development
9058 //
9059 // Examples: "Deployment", "StatefulSet"
9060 // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
9061 K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
9062
9063 // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
9064 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
9065 // the target resource to scale for the HorizontalPodAutoscaler.
9066 //
9067 // Type: string
9068 // RequirementLevel: Recommended
9069 // Stability: Development
9070 //
9071 // Examples: "my-deployment", "my-statefulset"
9072 // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
9073 K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
9074
9075 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
9076 // conventions. It represents the UID of the horizontal pod autoscaler.
9077 //
9078 // Type: string
9079 // RequirementLevel: Recommended
9080 // Stability: Development
9081 //
9082 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9083 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
9084
9085 // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
9086 // semantic conventions. It represents the size (identifier) of the K8s huge
9087 // page.
9088 //
9089 // Type: string
9090 // RequirementLevel: Recommended
9091 // Stability: Development
9092 //
9093 // Examples: "2Mi"
9094 K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
9095
9096 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
9097 // conventions. It represents the name of the Job.
9098 //
9099 // Type: string
9100 // RequirementLevel: Recommended
9101 // Stability: Alpha
9102 //
9103 // Examples: "opentelemetry"
9104 K8SJobNameKey = attribute.Key("k8s.job.name")
9105
9106 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
9107 // conventions. It represents the UID of the Job.
9108 //
9109 // Type: string
9110 // RequirementLevel: Recommended
9111 // Stability: Alpha
9112 //
9113 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9114 K8SJobUIDKey = attribute.Key("k8s.job.uid")
9115
9116 // K8SNamespaceNameKey is the attribute Key conforming to the
9117 // "k8s.namespace.name" semantic conventions. It represents the name of the
9118 // namespace that the pod is running in.
9119 //
9120 // Type: string
9121 // RequirementLevel: Recommended
9122 // Stability: Alpha
9123 //
9124 // Examples: "default"
9125 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
9126
9127 // K8SNamespacePhaseKey is the attribute Key conforming to the
9128 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
9129 // K8s namespace.
9130 //
9131 // Type: Enum
9132 // RequirementLevel: Recommended
9133 // Stability: Development
9134 //
9135 // Examples: "active", "terminating"
9136 // Note: This attribute aligns with the `phase` field of the
9137 // [K8s NamespaceStatus]
9138 //
9139 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
9140 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
9141
9142 // K8SNodeConditionStatusKey is the attribute Key conforming to the
9143 // "k8s.node.condition.status" semantic conventions. It represents the status of
9144 // the condition, one of True, False, Unknown.
9145 //
9146 // Type: Enum
9147 // RequirementLevel: Recommended
9148 // Stability: Development
9149 //
9150 // Examples: "true", "false", "unknown"
9151 // Note: This attribute aligns with the `status` field of the
9152 // [NodeCondition]
9153 //
9154 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9155 K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
9156
9157 // K8SNodeConditionTypeKey is the attribute Key conforming to the
9158 // "k8s.node.condition.type" semantic conventions. It represents the condition
9159 // type of a K8s Node.
9160 //
9161 // Type: Enum
9162 // RequirementLevel: Recommended
9163 // Stability: Development
9164 //
9165 // Examples: "Ready", "DiskPressure"
9166 // Note: K8s Node conditions as described
9167 // by [K8s documentation].
9168 //
9169 // This attribute aligns with the `type` field of the
9170 // [NodeCondition]
9171 //
9172 // The set of possible values is not limited to those listed here. Managed
9173 // Kubernetes environments,
9174 // or custom controllers MAY introduce additional node condition types.
9175 // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
9176 // used.
9177 //
9178 // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
9179 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9180 K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
9181
9182 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
9183 // semantic conventions. It represents the name of the Node.
9184 //
9185 // Type: string
9186 // RequirementLevel: Recommended
9187 // Stability: Alpha
9188 //
9189 // Examples: "node-1"
9190 K8SNodeNameKey = attribute.Key("k8s.node.name")
9191
9192 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
9193 // conventions. It represents the UID of the Node.
9194 //
9195 // Type: string
9196 // RequirementLevel: Recommended
9197 // Stability: Alpha
9198 //
9199 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
9200 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
9201
9202 // K8SPodHostnameKey is the attribute Key conforming to the "k8s.pod.hostname"
9203 // semantic conventions. It represents the specifies the hostname of the Pod.
9204 //
9205 // Type: string
9206 // RequirementLevel: Recommended
9207 // Stability: Alpha
9208 //
9209 // Examples: "collector-gateway"
9210 // Note: The K8s Pod spec has an optional hostname field, which can be used to
9211 // specify a hostname.
9212 // Refer to [K8s docs]
9213 // for more information about this field.
9214 //
9215 // This attribute aligns with the `hostname` field of the
9216 // [K8s PodSpec].
9217 //
9218 // [K8s docs]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-hostname-and-subdomain-field
9219 // [K8s PodSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podspec-v1-core
9220 K8SPodHostnameKey = attribute.Key("k8s.pod.hostname")
9221
9222 // K8SPodIPKey is the attribute Key conforming to the "k8s.pod.ip" semantic
9223 // conventions. It represents the IP address allocated to the Pod.
9224 //
9225 // Type: string
9226 // RequirementLevel: Recommended
9227 // Stability: Alpha
9228 //
9229 // Examples: "172.18.0.2"
9230 // Note: This attribute aligns with the `podIP` field of the
9231 // [K8s PodStatus].
9232 //
9233 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
9234 K8SPodIPKey = attribute.Key("k8s.pod.ip")
9235
9236 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
9237 // conventions. It represents the name of the Pod.
9238 //
9239 // Type: string
9240 // RequirementLevel: Recommended
9241 // Stability: Alpha
9242 //
9243 // Examples: "opentelemetry-pod-autoconf"
9244 K8SPodNameKey = attribute.Key("k8s.pod.name")
9245
9246 // K8SPodStartTimeKey is the attribute Key conforming to the
9247 // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
9248 // of the Pod.
9249 //
9250 // Type: string
9251 // RequirementLevel: Recommended
9252 // Stability: Alpha
9253 //
9254 // Examples: "2025-12-04T08:41:03Z"
9255 // Note: Date and time at which the object was acknowledged by the Kubelet.
9256 // This is before the Kubelet pulled the container image(s) for the pod.
9257 //
9258 // This attribute aligns with the `startTime` field of the
9259 // [K8s PodStatus],
9260 // in ISO 8601 (RFC 3339 compatible) format.
9261 //
9262 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
9263 K8SPodStartTimeKey = attribute.Key("k8s.pod.start_time")
9264
9265 // K8SPodStatusPhaseKey is the attribute Key conforming to the
9266 // "k8s.pod.status.phase" semantic conventions. It represents the phase for the
9267 // pod. Corresponds to the `phase` field of the: [K8s PodStatus].
9268 //
9269 // Type: Enum
9270 // RequirementLevel: Recommended
9271 // Stability: Development
9272 //
9273 // Examples: "Pending", "Running"
9274 //
9275 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9276 K8SPodStatusPhaseKey = attribute.Key("k8s.pod.status.phase")
9277
9278 // K8SPodStatusReasonKey is the attribute Key conforming to the
9279 // "k8s.pod.status.reason" semantic conventions. It represents the reason for
9280 // the pod state. Corresponds to the `reason` field of the: [K8s PodStatus].
9281 //
9282 // Type: Enum
9283 // RequirementLevel: Recommended
9284 // Stability: Development
9285 //
9286 // Examples: "Evicted", "NodeAffinity"
9287 //
9288 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9289 K8SPodStatusReasonKey = attribute.Key("k8s.pod.status.reason")
9290
9291 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
9292 // conventions. It represents the UID of the Pod.
9293 //
9294 // Type: string
9295 // RequirementLevel: Recommended
9296 // Stability: Alpha
9297 //
9298 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9299 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
9300
9301 // K8SReplicaSetNameKey is the attribute Key conforming to the
9302 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9303 // ReplicaSet.
9304 //
9305 // Type: string
9306 // RequirementLevel: Recommended
9307 // Stability: Alpha
9308 //
9309 // Examples: "opentelemetry"
9310 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
9311
9312 // K8SReplicaSetUIDKey is the attribute Key conforming to the
9313 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9314 // ReplicaSet.
9315 //
9316 // Type: string
9317 // RequirementLevel: Recommended
9318 // Stability: Alpha
9319 //
9320 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9321 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
9322
9323 // K8SReplicationControllerNameKey is the attribute Key conforming to the
9324 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9325 // of the replication controller.
9326 //
9327 // Type: string
9328 // RequirementLevel: Recommended
9329 // Stability: Development
9330 //
9331 // Examples: "opentelemetry"
9332 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
9333
9334 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
9335 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
9336 // of the replication controller.
9337 //
9338 // Type: string
9339 // RequirementLevel: Recommended
9340 // Stability: Development
9341 //
9342 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9343 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
9344
9345 // K8SResourceQuotaNameKey is the attribute Key conforming to the
9346 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9347 // resource quota.
9348 //
9349 // Type: string
9350 // RequirementLevel: Recommended
9351 // Stability: Development
9352 //
9353 // Examples: "opentelemetry"
9354 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
9355
9356 // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
9357 // "k8s.resourcequota.resource_name" semantic conventions. It represents the
9358 // name of the K8s resource a resource quota defines.
9359 //
9360 // Type: string
9361 // RequirementLevel: Recommended
9362 // Stability: Development
9363 //
9364 // Examples: "count/replicationcontrollers"
9365 // Note: The value for this attribute can be either the full
9366 // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
9367 // count/pods), or, for certain core Kubernetes resources, just the resource
9368 // name (e.g., pods, services, configmaps). Both forms are supported by
9369 // Kubernetes for object count quotas. See
9370 // [Kubernetes Resource Quotas documentation] for more details.
9371 //
9372 // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-on-object-count
9373 K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
9374
9375 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
9376 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9377 // resource quota.
9378 //
9379 // Type: string
9380 // RequirementLevel: Recommended
9381 // Stability: Development
9382 //
9383 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9384 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
9385
9386 // K8SStatefulSetNameKey is the attribute Key conforming to the
9387 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9388 // StatefulSet.
9389 //
9390 // Type: string
9391 // RequirementLevel: Recommended
9392 // Stability: Alpha
9393 //
9394 // Examples: "opentelemetry"
9395 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
9396
9397 // K8SStatefulSetUIDKey is the attribute Key conforming to the
9398 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9399 // StatefulSet.
9400 //
9401 // Type: string
9402 // RequirementLevel: Recommended
9403 // Stability: Alpha
9404 //
9405 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9406 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
9407
9408 // K8SStorageclassNameKey is the attribute Key conforming to the
9409 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9410 // [StorageClass] object.
9411 //
9412 // Type: string
9413 // RequirementLevel: Recommended
9414 // Stability: Development
9415 //
9416 // Examples: "gold.storageclass.storage.k8s.io"
9417 //
9418 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9419 K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
9420
9421 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
9422 // semantic conventions. It represents the name of the K8s volume.
9423 //
9424 // Type: string
9425 // RequirementLevel: Recommended
9426 // Stability: Development
9427 //
9428 // Examples: "volume0"
9429 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
9430
9431 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
9432 // semantic conventions. It represents the type of the K8s volume.
9433 //
9434 // Type: Enum
9435 // RequirementLevel: Recommended
9436 // Stability: Development
9437 //
9438 // Examples: "emptyDir", "persistentVolumeClaim"
9439 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
9440 )
9441
9442 // K8SClusterName returns an attribute KeyValue conforming to the
9443 // "k8s.cluster.name" semantic conventions. It represents the name of the
9444 // cluster.
9445 func K8SClusterName(val string) attribute.KeyValue {
9446 return K8SClusterNameKey.String(val)
9447 }
9448
9449 // K8SClusterUID returns an attribute KeyValue conforming to the
9450 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
9451 // cluster, set to the UID of the `kube-system` namespace.
9452 func K8SClusterUID(val string) attribute.KeyValue {
9453 return K8SClusterUIDKey.String(val)
9454 }
9455
9456 // K8SContainerName returns an attribute KeyValue conforming to the
9457 // "k8s.container.name" semantic conventions. It represents the name of the
9458 // Container from Pod specification, must be unique within a Pod. Container
9459 // runtime usually uses different globally unique name (`container.name`).
9460 func K8SContainerName(val string) attribute.KeyValue {
9461 return K8SContainerNameKey.String(val)
9462 }
9463
9464 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
9465 // "k8s.container.restart_count" semantic conventions. It represents the number
9466 // of times the container was restarted. This attribute can be used to identify a
9467 // particular container (running or stopped) within a container spec.
9468 func K8SContainerRestartCount(val int) attribute.KeyValue {
9469 return K8SContainerRestartCountKey.Int(val)
9470 }
9471
9472 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
9473 // conforming to the "k8s.container.status.last_terminated_reason" semantic
9474 // conventions. It represents the last terminated reason of the Container.
9475 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
9476 return K8SContainerStatusLastTerminatedReasonKey.String(val)
9477 }
9478
9479 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
9480 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
9481 // annotation placed on the CronJob, the `<key>` being the annotation name, the
9482 // value being the annotation value.
9483 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
9484 return attribute.String("k8s.cronjob.annotation."+key, val)
9485 }
9486
9487 // K8SCronJobLabel returns an attribute KeyValue conforming to the
9488 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
9489 // the CronJob, the `<key>` being the label name, the value being the label
9490 // value.
9491 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
9492 return attribute.String("k8s.cronjob.label."+key, val)
9493 }
9494
9495 // K8SCronJobName returns an attribute KeyValue conforming to the
9496 // "k8s.cronjob.name" semantic conventions. It represents the name of the
9497 // CronJob.
9498 func K8SCronJobName(val string) attribute.KeyValue {
9499 return K8SCronJobNameKey.String(val)
9500 }
9501
9502 // K8SCronJobUID returns an attribute KeyValue conforming to the
9503 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
9504 func K8SCronJobUID(val string) attribute.KeyValue {
9505 return K8SCronJobUIDKey.String(val)
9506 }
9507
9508 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
9509 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
9510 // placed on the DaemonSet, the `<key>` being the annotation name, the value
9511 // being the annotation value, even if the value is empty.
9512 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
9513 return attribute.String("k8s.daemonset.annotation."+key, val)
9514 }
9515
9516 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
9517 // "k8s.daemonset.label" semantic conventions. It represents the label placed on
9518 // the DaemonSet, the `<key>` being the label name, the value being the label
9519 // value, even if the value is empty.
9520 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
9521 return attribute.String("k8s.daemonset.label."+key, val)
9522 }
9523
9524 // K8SDaemonSetName returns an attribute KeyValue conforming to the
9525 // "k8s.daemonset.name" semantic conventions. It represents the name of the
9526 // DaemonSet.
9527 func K8SDaemonSetName(val string) attribute.KeyValue {
9528 return K8SDaemonSetNameKey.String(val)
9529 }
9530
9531 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
9532 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
9533 // DaemonSet.
9534 func K8SDaemonSetUID(val string) attribute.KeyValue {
9535 return K8SDaemonSetUIDKey.String(val)
9536 }
9537
9538 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
9539 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
9540 // placed on the Deployment, the `<key>` being the annotation name, the value
9541 // being the annotation value, even if the value is empty.
9542 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
9543 return attribute.String("k8s.deployment.annotation."+key, val)
9544 }
9545
9546 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
9547 // "k8s.deployment.label" semantic conventions. It represents the label placed on
9548 // the Deployment, the `<key>` being the label name, the value being the label
9549 // value, even if the value is empty.
9550 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
9551 return attribute.String("k8s.deployment.label."+key, val)
9552 }
9553
9554 // K8SDeploymentName returns an attribute KeyValue conforming to the
9555 // "k8s.deployment.name" semantic conventions. It represents the name of the
9556 // Deployment.
9557 func K8SDeploymentName(val string) attribute.KeyValue {
9558 return K8SDeploymentNameKey.String(val)
9559 }
9560
9561 // K8SDeploymentUID returns an attribute KeyValue conforming to the
9562 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
9563 // Deployment.
9564 func K8SDeploymentUID(val string) attribute.KeyValue {
9565 return K8SDeploymentUIDKey.String(val)
9566 }
9567
9568 // K8SHPAMetricType returns an attribute KeyValue conforming to the
9569 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
9570 // source for the horizontal pod autoscaler.
9571 func K8SHPAMetricType(val string) attribute.KeyValue {
9572 return K8SHPAMetricTypeKey.String(val)
9573 }
9574
9575 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
9576 // semantic conventions. It represents the name of the horizontal pod autoscaler.
9577 func K8SHPAName(val string) attribute.KeyValue {
9578 return K8SHPANameKey.String(val)
9579 }
9580
9581 // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
9582 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
9583 // API version of the target resource to scale for the HorizontalPodAutoscaler.
9584 func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
9585 return K8SHPAScaletargetrefAPIVersionKey.String(val)
9586 }
9587
9588 // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
9589 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
9590 // the target resource to scale for the HorizontalPodAutoscaler.
9591 func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
9592 return K8SHPAScaletargetrefKindKey.String(val)
9593 }
9594
9595 // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
9596 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
9597 // the target resource to scale for the HorizontalPodAutoscaler.
9598 func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
9599 return K8SHPAScaletargetrefNameKey.String(val)
9600 }
9601
9602 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
9603 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
9604 func K8SHPAUID(val string) attribute.KeyValue {
9605 return K8SHPAUIDKey.String(val)
9606 }
9607
9608 // K8SHugepageSize returns an attribute KeyValue conforming to the
9609 // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
9610 // of the K8s huge page.
9611 func K8SHugepageSize(val string) attribute.KeyValue {
9612 return K8SHugepageSizeKey.String(val)
9613 }
9614
9615 // K8SJobAnnotation returns an attribute KeyValue conforming to the
9616 // "k8s.job.annotation" semantic conventions. It represents the annotation placed
9617 // on the Job, the `<key>` being the annotation name, the value being the
9618 // annotation value, even if the value is empty.
9619 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
9620 return attribute.String("k8s.job.annotation."+key, val)
9621 }
9622
9623 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
9624 // semantic conventions. It represents the label placed on the Job, the `<key>`
9625 // being the label name, the value being the label value, even if the value is
9626 // empty.
9627 func K8SJobLabel(key string, val string) attribute.KeyValue {
9628 return attribute.String("k8s.job.label."+key, val)
9629 }
9630
9631 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
9632 // semantic conventions. It represents the name of the Job.
9633 func K8SJobName(val string) attribute.KeyValue {
9634 return K8SJobNameKey.String(val)
9635 }
9636
9637 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
9638 // semantic conventions. It represents the UID of the Job.
9639 func K8SJobUID(val string) attribute.KeyValue {
9640 return K8SJobUIDKey.String(val)
9641 }
9642
9643 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
9644 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
9645 // placed on the Namespace, the `<key>` being the annotation name, the value
9646 // being the annotation value, even if the value is empty.
9647 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
9648 return attribute.String("k8s.namespace.annotation."+key, val)
9649 }
9650
9651 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
9652 // "k8s.namespace.label" semantic conventions. It represents the label placed on
9653 // the Namespace, the `<key>` being the label name, the value being the label
9654 // value, even if the value is empty.
9655 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
9656 return attribute.String("k8s.namespace.label."+key, val)
9657 }
9658
9659 // K8SNamespaceName returns an attribute KeyValue conforming to the
9660 // "k8s.namespace.name" semantic conventions. It represents the name of the
9661 // namespace that the pod is running in.
9662 func K8SNamespaceName(val string) attribute.KeyValue {
9663 return K8SNamespaceNameKey.String(val)
9664 }
9665
9666 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
9667 // "k8s.node.annotation" semantic conventions. It represents the annotation
9668 // placed on the Node, the `<key>` being the annotation name, the value being the
9669 // annotation value, even if the value is empty.
9670 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
9671 return attribute.String("k8s.node.annotation."+key, val)
9672 }
9673
9674 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
9675 // semantic conventions. It represents the label placed on the Node, the `<key>`
9676 // being the label name, the value being the label value, even if the value is
9677 // empty.
9678 func K8SNodeLabel(key string, val string) attribute.KeyValue {
9679 return attribute.String("k8s.node.label."+key, val)
9680 }
9681
9682 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
9683 // semantic conventions. It represents the name of the Node.
9684 func K8SNodeName(val string) attribute.KeyValue {
9685 return K8SNodeNameKey.String(val)
9686 }
9687
9688 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
9689 // semantic conventions. It represents the UID of the Node.
9690 func K8SNodeUID(val string) attribute.KeyValue {
9691 return K8SNodeUIDKey.String(val)
9692 }
9693
9694 // K8SPodAnnotation returns an attribute KeyValue conforming to the
9695 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
9696 // on the Pod, the `<key>` being the annotation name, the value being the
9697 // annotation value.
9698 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
9699 return attribute.String("k8s.pod.annotation."+key, val)
9700 }
9701
9702 // K8SPodHostname returns an attribute KeyValue conforming to the
9703 // "k8s.pod.hostname" semantic conventions. It represents the specifies the
9704 // hostname of the Pod.
9705 func K8SPodHostname(val string) attribute.KeyValue {
9706 return K8SPodHostnameKey.String(val)
9707 }
9708
9709 // K8SPodIP returns an attribute KeyValue conforming to the "k8s.pod.ip" semantic
9710 // conventions. It represents the IP address allocated to the Pod.
9711 func K8SPodIP(val string) attribute.KeyValue {
9712 return K8SPodIPKey.String(val)
9713 }
9714
9715 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
9716 // semantic conventions. It represents the label placed on the Pod, the `<key>`
9717 // being the label name, the value being the label value.
9718 func K8SPodLabel(key string, val string) attribute.KeyValue {
9719 return attribute.String("k8s.pod.label."+key, val)
9720 }
9721
9722 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
9723 // semantic conventions. It represents the name of the Pod.
9724 func K8SPodName(val string) attribute.KeyValue {
9725 return K8SPodNameKey.String(val)
9726 }
9727
9728 // K8SPodStartTime returns an attribute KeyValue conforming to the
9729 // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
9730 // of the Pod.
9731 func K8SPodStartTime(val string) attribute.KeyValue {
9732 return K8SPodStartTimeKey.String(val)
9733 }
9734
9735 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
9736 // semantic conventions. It represents the UID of the Pod.
9737 func K8SPodUID(val string) attribute.KeyValue {
9738 return K8SPodUIDKey.String(val)
9739 }
9740
9741 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
9742 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
9743 // placed on the ReplicaSet, the `<key>` being the annotation name, the value
9744 // being the annotation value, even if the value is empty.
9745 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
9746 return attribute.String("k8s.replicaset.annotation."+key, val)
9747 }
9748
9749 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
9750 // "k8s.replicaset.label" semantic conventions. It represents the label placed on
9751 // the ReplicaSet, the `<key>` being the label name, the value being the label
9752 // value, even if the value is empty.
9753 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
9754 return attribute.String("k8s.replicaset.label."+key, val)
9755 }
9756
9757 // K8SReplicaSetName returns an attribute KeyValue conforming to the
9758 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9759 // ReplicaSet.
9760 func K8SReplicaSetName(val string) attribute.KeyValue {
9761 return K8SReplicaSetNameKey.String(val)
9762 }
9763
9764 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
9765 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9766 // ReplicaSet.
9767 func K8SReplicaSetUID(val string) attribute.KeyValue {
9768 return K8SReplicaSetUIDKey.String(val)
9769 }
9770
9771 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
9772 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9773 // of the replication controller.
9774 func K8SReplicationControllerName(val string) attribute.KeyValue {
9775 return K8SReplicationControllerNameKey.String(val)
9776 }
9777
9778 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
9779 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
9780 // the replication controller.
9781 func K8SReplicationControllerUID(val string) attribute.KeyValue {
9782 return K8SReplicationControllerUIDKey.String(val)
9783 }
9784
9785 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
9786 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9787 // resource quota.
9788 func K8SResourceQuotaName(val string) attribute.KeyValue {
9789 return K8SResourceQuotaNameKey.String(val)
9790 }
9791
9792 // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
9793 // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
9794 // of the K8s resource a resource quota defines.
9795 func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
9796 return K8SResourceQuotaResourceNameKey.String(val)
9797 }
9798
9799 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
9800 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9801 // resource quota.
9802 func K8SResourceQuotaUID(val string) attribute.KeyValue {
9803 return K8SResourceQuotaUIDKey.String(val)
9804 }
9805
9806 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
9807 // "k8s.statefulset.annotation" semantic conventions. It represents the
9808 // annotation placed on the StatefulSet, the `<key>` being the annotation name,
9809 // the value being the annotation value, even if the value is empty.
9810 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
9811 return attribute.String("k8s.statefulset.annotation."+key, val)
9812 }
9813
9814 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
9815 // "k8s.statefulset.label" semantic conventions. It represents the label placed
9816 // on the StatefulSet, the `<key>` being the label name, the value being the
9817 // label value, even if the value is empty.
9818 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
9819 return attribute.String("k8s.statefulset.label."+key, val)
9820 }
9821
9822 // K8SStatefulSetName returns an attribute KeyValue conforming to the
9823 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9824 // StatefulSet.
9825 func K8SStatefulSetName(val string) attribute.KeyValue {
9826 return K8SStatefulSetNameKey.String(val)
9827 }
9828
9829 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
9830 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9831 // StatefulSet.
9832 func K8SStatefulSetUID(val string) attribute.KeyValue {
9833 return K8SStatefulSetUIDKey.String(val)
9834 }
9835
9836 // K8SStorageclassName returns an attribute KeyValue conforming to the
9837 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9838 // [StorageClass] object.
9839 //
9840 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9841 func K8SStorageclassName(val string) attribute.KeyValue {
9842 return K8SStorageclassNameKey.String(val)
9843 }
9844
9845 // K8SVolumeName returns an attribute KeyValue conforming to the
9846 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
9847 // volume.
9848 func K8SVolumeName(val string) attribute.KeyValue {
9849 return K8SVolumeNameKey.String(val)
9850 }
9851
9852 // Enum values for k8s.container.status.reason
9853 var (
9854 // The container is being created.
9855 // Stability: development
9856 K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
9857 // The container is in a crash loop back off state.
9858 // Stability: development
9859 K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
9860 // There was an error creating the container configuration.
9861 // Stability: development
9862 K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
9863 // There was an error pulling the container image.
9864 // Stability: development
9865 K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
9866 // The container image pull is in back off state.
9867 // Stability: development
9868 K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
9869 // The container was killed due to out of memory.
9870 // Stability: development
9871 K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
9872 // The container has completed execution.
9873 // Stability: development
9874 K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
9875 // There was an error with the container.
9876 // Stability: development
9877 K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
9878 // The container cannot run.
9879 // Stability: development
9880 K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
9881 )
9882
9883 // Enum values for k8s.container.status.state
9884 var (
9885 // The container has terminated.
9886 // Stability: development
9887 K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
9888 // The container is running.
9889 // Stability: development
9890 K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
9891 // The container is waiting.
9892 // Stability: development
9893 K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
9894 )
9895
9896 // Enum values for k8s.namespace.phase
9897 var (
9898 // Active namespace phase as described by [K8s API]
9899 // Stability: development
9900 //
9901 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
9902 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
9903 // Terminating namespace phase as described by [K8s API]
9904 // Stability: development
9905 //
9906 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
9907 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
9908 )
9909
9910 // Enum values for k8s.node.condition.status
9911 var (
9912 // condition_true
9913 // Stability: development
9914 K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
9915 // condition_false
9916 // Stability: development
9917 K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
9918 // condition_unknown
9919 // Stability: development
9920 K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
9921 )
9922
9923 // Enum values for k8s.node.condition.type
9924 var (
9925 // The node is healthy and ready to accept pods
9926 // Stability: development
9927 K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
9928 // Pressure exists on the disk size—that is, if the disk capacity is low
9929 // Stability: development
9930 K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
9931 // Pressure exists on the node memory—that is, if the node memory is low
9932 // Stability: development
9933 K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
9934 // Pressure exists on the processes—that is, if there are too many processes
9935 // on the node
9936 // Stability: development
9937 K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
9938 // The network for the node is not correctly configured
9939 // Stability: development
9940 K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
9941 )
9942
9943 // Enum values for k8s.pod.status.phase
9944 var (
9945 // The pod has been accepted by the system, but one or more of the containers
9946 // has not been started. This includes time before being bound to a node, as
9947 // well as time spent pulling images onto the host.
9948 //
9949 // Stability: development
9950 K8SPodStatusPhasePending = K8SPodStatusPhaseKey.String("Pending")
9951 // The pod has been bound to a node and all of the containers have been started.
9952 // At least one container is still running or is in the process of being
9953 // restarted.
9954 //
9955 // Stability: development
9956 K8SPodStatusPhaseRunning = K8SPodStatusPhaseKey.String("Running")
9957 // All containers in the pod have voluntarily terminated with a container exit
9958 // code of 0, and the system is not going to restart any of these containers.
9959 //
9960 // Stability: development
9961 K8SPodStatusPhaseSucceeded = K8SPodStatusPhaseKey.String("Succeeded")
9962 // All containers in the pod have terminated, and at least one container has
9963 // terminated in a failure (exited with a non-zero exit code or was stopped by
9964 // the system).
9965 //
9966 // Stability: development
9967 K8SPodStatusPhaseFailed = K8SPodStatusPhaseKey.String("Failed")
9968 // For some reason the state of the pod could not be obtained, typically due to
9969 // an error in communicating with the host of the pod.
9970 //
9971 // Stability: development
9972 K8SPodStatusPhaseUnknown = K8SPodStatusPhaseKey.String("Unknown")
9973 )
9974
9975 // Enum values for k8s.pod.status.reason
9976 var (
9977 // The pod is evicted.
9978 // Stability: development
9979 K8SPodStatusReasonEvicted = K8SPodStatusReasonKey.String("Evicted")
9980 // The pod is in a status because of its node affinity
9981 // Stability: development
9982 K8SPodStatusReasonNodeAffinity = K8SPodStatusReasonKey.String("NodeAffinity")
9983 // The reason on a pod when its state cannot be confirmed as kubelet is
9984 // unresponsive on the node it is (was) running.
9985 //
9986 // Stability: development
9987 K8SPodStatusReasonNodeLost = K8SPodStatusReasonKey.String("NodeLost")
9988 // The node is shutdown
9989 // Stability: development
9990 K8SPodStatusReasonShutdown = K8SPodStatusReasonKey.String("Shutdown")
9991 // The pod was rejected admission to the node because of an error during
9992 // admission that could not be categorized.
9993 //
9994 // Stability: development
9995 K8SPodStatusReasonUnexpectedAdmissionError = K8SPodStatusReasonKey.String("UnexpectedAdmissionError")
9996 )
9997
9998 // Enum values for k8s.volume.type
9999 var (
10000 // A [persistentVolumeClaim] volume
10001 // Stability: development
10002 //
10003 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
10004 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
10005 // A [configMap] volume
10006 // Stability: development
10007 //
10008 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
10009 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
10010 // A [downwardAPI] volume
10011 // Stability: development
10012 //
10013 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
10014 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
10015 // An [emptyDir] volume
10016 // Stability: development
10017 //
10018 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
10019 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
10020 // A [secret] volume
10021 // Stability: development
10022 //
10023 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
10024 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
10025 // A [local] volume
10026 // Stability: development
10027 //
10028 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
10029 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
10030 )
10031
10032 // Namespace: log
10033 const (
10034 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
10035 // semantic conventions. It represents the basename of the file.
10036 //
10037 // Type: string
10038 // RequirementLevel: Recommended
10039 // Stability: Development
10040 //
10041 // Examples: "audit.log"
10042 LogFileNameKey = attribute.Key("log.file.name")
10043
10044 // LogFileNameResolvedKey is the attribute Key conforming to the
10045 // "log.file.name_resolved" semantic conventions. It represents the basename of
10046 // the file, with symlinks resolved.
10047 //
10048 // Type: string
10049 // RequirementLevel: Recommended
10050 // Stability: Development
10051 //
10052 // Examples: "uuid.log"
10053 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
10054
10055 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
10056 // semantic conventions. It represents the full path to the file.
10057 //
10058 // Type: string
10059 // RequirementLevel: Recommended
10060 // Stability: Development
10061 //
10062 // Examples: "/var/log/mysql/audit.log"
10063 LogFilePathKey = attribute.Key("log.file.path")
10064
10065 // LogFilePathResolvedKey is the attribute Key conforming to the
10066 // "log.file.path_resolved" semantic conventions. It represents the full path to
10067 // the file, with symlinks resolved.
10068 //
10069 // Type: string
10070 // RequirementLevel: Recommended
10071 // Stability: Development
10072 //
10073 // Examples: "/var/lib/docker/uuid.log"
10074 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
10075
10076 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
10077 // conventions. It represents the stream associated with the log. See below for
10078 // a list of well-known values.
10079 //
10080 // Type: Enum
10081 // RequirementLevel: Recommended
10082 // Stability: Development
10083 //
10084 // Examples:
10085 LogIostreamKey = attribute.Key("log.iostream")
10086
10087 // LogRecordOriginalKey is the attribute Key conforming to the
10088 // "log.record.original" semantic conventions. It represents the complete
10089 // original Log Record.
10090 //
10091 // Type: string
10092 // RequirementLevel: Recommended
10093 // Stability: Development
10094 //
10095 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
10096 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
10097 // Note: This value MAY be added when processing a Log Record which was
10098 // originally transmitted as a string or equivalent data type AND the Body field
10099 // of the Log Record does not contain the same value. (e.g. a syslog or a log
10100 // record read from a file.)
10101 LogRecordOriginalKey = attribute.Key("log.record.original")
10102
10103 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
10104 // semantic conventions. It represents a unique identifier for the Log Record.
10105 //
10106 // Type: string
10107 // RequirementLevel: Recommended
10108 // Stability: Development
10109 //
10110 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
10111 // Note: If an id is provided, other log records with the same id will be
10112 // considered duplicates and can be removed safely. This means, that two
10113 // distinguishable log records MUST have different values.
10114 // The id MAY be an
10115 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
10116 // identifiers (e.g. UUID) may be used as needed.
10117 //
10118 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
10119 LogRecordUIDKey = attribute.Key("log.record.uid")
10120 )
10121
10122 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
10123 // semantic conventions. It represents the basename of the file.
10124 func LogFileName(val string) attribute.KeyValue {
10125 return LogFileNameKey.String(val)
10126 }
10127
10128 // LogFileNameResolved returns an attribute KeyValue conforming to the
10129 // "log.file.name_resolved" semantic conventions. It represents the basename of
10130 // the file, with symlinks resolved.
10131 func LogFileNameResolved(val string) attribute.KeyValue {
10132 return LogFileNameResolvedKey.String(val)
10133 }
10134
10135 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
10136 // semantic conventions. It represents the full path to the file.
10137 func LogFilePath(val string) attribute.KeyValue {
10138 return LogFilePathKey.String(val)
10139 }
10140
10141 // LogFilePathResolved returns an attribute KeyValue conforming to the
10142 // "log.file.path_resolved" semantic conventions. It represents the full path to
10143 // the file, with symlinks resolved.
10144 func LogFilePathResolved(val string) attribute.KeyValue {
10145 return LogFilePathResolvedKey.String(val)
10146 }
10147
10148 // LogRecordOriginal returns an attribute KeyValue conforming to the
10149 // "log.record.original" semantic conventions. It represents the complete
10150 // original Log Record.
10151 func LogRecordOriginal(val string) attribute.KeyValue {
10152 return LogRecordOriginalKey.String(val)
10153 }
10154
10155 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
10156 // semantic conventions. It represents a unique identifier for the Log Record.
10157 func LogRecordUID(val string) attribute.KeyValue {
10158 return LogRecordUIDKey.String(val)
10159 }
10160
10161 // Enum values for log.iostream
10162 var (
10163 // Logs from stdout stream
10164 // Stability: development
10165 LogIostreamStdout = LogIostreamKey.String("stdout")
10166 // Events from stderr stream
10167 // Stability: development
10168 LogIostreamStderr = LogIostreamKey.String("stderr")
10169 )
10170
10171 // Namespace: mainframe
10172 const (
10173 // MainframeLparNameKey is the attribute Key conforming to the
10174 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10175 // logical partition that hosts a systems with a mainframe operating system.
10176 //
10177 // Type: string
10178 // RequirementLevel: Recommended
10179 // Stability: Development
10180 //
10181 // Examples: "LPAR01"
10182 MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
10183 )
10184
10185 // MainframeLparName returns an attribute KeyValue conforming to the
10186 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10187 // logical partition that hosts a systems with a mainframe operating system.
10188 func MainframeLparName(val string) attribute.KeyValue {
10189 return MainframeLparNameKey.String(val)
10190 }
10191
10192 // Namespace: mcp
10193 const (
10194 // McpMethodNameKey is the attribute Key conforming to the "mcp.method.name"
10195 // semantic conventions. It represents the name of the request or notification
10196 // method.
10197 //
10198 // Type: Enum
10199 // RequirementLevel: Recommended
10200 // Stability: Development
10201 //
10202 // Examples:
10203 McpMethodNameKey = attribute.Key("mcp.method.name")
10204
10205 // McpProtocolVersionKey is the attribute Key conforming to the
10206 // "mcp.protocol.version" semantic conventions. It represents the [version] of
10207 // the Model Context Protocol used.
10208 //
10209 // Type: string
10210 // RequirementLevel: Recommended
10211 // Stability: Development
10212 //
10213 // Examples: "2025-06-18"
10214 //
10215 // [version]: https://modelcontextprotocol.io/specification/versioning
10216 McpProtocolVersionKey = attribute.Key("mcp.protocol.version")
10217
10218 // McpResourceURIKey is the attribute Key conforming to the "mcp.resource.uri"
10219 // semantic conventions. It represents the value of the resource uri.
10220 //
10221 // Type: string
10222 // RequirementLevel: Recommended
10223 // Stability: Development
10224 //
10225 // Examples: "postgres://database/customers/schema",
10226 // "file:///home/user/documents/report.pdf"
10227 // Note: This is a URI of the resource provided in the following requests or
10228 // notifications: `resources/read`, `resources/subscribe`,
10229 // `resources/unsubscribe`, or `notifications/resources/updated`.
10230 McpResourceURIKey = attribute.Key("mcp.resource.uri")
10231
10232 // McpSessionIDKey is the attribute Key conforming to the "mcp.session.id"
10233 // semantic conventions. It represents the identifies [MCP session].
10234 //
10235 // Type: string
10236 // RequirementLevel: Recommended
10237 // Stability: Development
10238 //
10239 // Examples: "191c4850af6c49e08843a3f6c80e5046"
10240 //
10241 // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
10242 McpSessionIDKey = attribute.Key("mcp.session.id")
10243 )
10244
10245 // McpProtocolVersion returns an attribute KeyValue conforming to the
10246 // "mcp.protocol.version" semantic conventions. It represents the [version] of
10247 // the Model Context Protocol used.
10248 //
10249 // [version]: https://modelcontextprotocol.io/specification/versioning
10250 func McpProtocolVersion(val string) attribute.KeyValue {
10251 return McpProtocolVersionKey.String(val)
10252 }
10253
10254 // McpResourceURI returns an attribute KeyValue conforming to the
10255 // "mcp.resource.uri" semantic conventions. It represents the value of the
10256 // resource uri.
10257 func McpResourceURI(val string) attribute.KeyValue {
10258 return McpResourceURIKey.String(val)
10259 }
10260
10261 // McpSessionID returns an attribute KeyValue conforming to the "mcp.session.id"
10262 // semantic conventions. It represents the identifies [MCP session].
10263 //
10264 // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
10265 func McpSessionID(val string) attribute.KeyValue {
10266 return McpSessionIDKey.String(val)
10267 }
10268
10269 // Enum values for mcp.method.name
10270 var (
10271 // Notification cancelling a previously-issued request.
10272 //
10273 // Stability: development
10274 McpMethodNameNotificationsCancelled = McpMethodNameKey.String("notifications/cancelled")
10275 // Request to initialize the MCP client.
10276 //
10277 // Stability: development
10278 McpMethodNameInitialize = McpMethodNameKey.String("initialize")
10279 // Notification indicating that the MCP client has been initialized.
10280 //
10281 // Stability: development
10282 McpMethodNameNotificationsInitialized = McpMethodNameKey.String("notifications/initialized")
10283 // Notification indicating the progress for a long-running operation.
10284 //
10285 // Stability: development
10286 McpMethodNameNotificationsProgress = McpMethodNameKey.String("notifications/progress")
10287 // Request to check that the other party is still alive.
10288 //
10289 // Stability: development
10290 McpMethodNamePing = McpMethodNameKey.String("ping")
10291 // Request to list resources available on server.
10292 //
10293 // Stability: development
10294 McpMethodNameResourcesList = McpMethodNameKey.String("resources/list")
10295 // Request to list resource templates available on server.
10296 //
10297 // Stability: development
10298 McpMethodNameResourcesTemplatesList = McpMethodNameKey.String("resources/templates/list")
10299 // Request to read a resource.
10300 //
10301 // Stability: development
10302 McpMethodNameResourcesRead = McpMethodNameKey.String("resources/read")
10303 // Notification indicating that the list of resources has changed.
10304 //
10305 // Stability: development
10306 McpMethodNameNotificationsResourcesListChanged = McpMethodNameKey.String("notifications/resources/list_changed")
10307 // Request to subscribe to a resource.
10308 //
10309 // Stability: development
10310 McpMethodNameResourcesSubscribe = McpMethodNameKey.String("resources/subscribe")
10311 // Request to unsubscribe from resource updates.
10312 //
10313 // Stability: development
10314 McpMethodNameResourcesUnsubscribe = McpMethodNameKey.String("resources/unsubscribe")
10315 // Notification indicating that a resource has been updated.
10316 //
10317 // Stability: development
10318 McpMethodNameNotificationsResourcesUpdated = McpMethodNameKey.String("notifications/resources/updated")
10319 // Request to list prompts available on server.
10320 //
10321 // Stability: development
10322 McpMethodNamePromptsList = McpMethodNameKey.String("prompts/list")
10323 // Request to get a prompt.
10324 //
10325 // Stability: development
10326 McpMethodNamePromptsGet = McpMethodNameKey.String("prompts/get")
10327 // Notification indicating that the list of prompts has changed.
10328 //
10329 // Stability: development
10330 McpMethodNameNotificationsPromptsListChanged = McpMethodNameKey.String("notifications/prompts/list_changed")
10331 // Request to list tools available on server.
10332 //
10333 // Stability: development
10334 McpMethodNameToolsList = McpMethodNameKey.String("tools/list")
10335 // Request to call a tool.
10336 //
10337 // Stability: development
10338 McpMethodNameToolsCall = McpMethodNameKey.String("tools/call")
10339 // Notification indicating that the list of tools has changed.
10340 //
10341 // Stability: development
10342 McpMethodNameNotificationsToolsListChanged = McpMethodNameKey.String("notifications/tools/list_changed")
10343 // Request to set the logging level.
10344 //
10345 // Stability: development
10346 McpMethodNameLoggingSetLevel = McpMethodNameKey.String("logging/setLevel")
10347 // Notification indicating that a message has been received.
10348 //
10349 // Stability: development
10350 McpMethodNameNotificationsMessage = McpMethodNameKey.String("notifications/message")
10351 // Request to create a sampling message.
10352 //
10353 // Stability: development
10354 McpMethodNameSamplingCreateMessage = McpMethodNameKey.String("sampling/createMessage")
10355 // Request to complete a prompt.
10356 //
10357 // Stability: development
10358 McpMethodNameCompletionComplete = McpMethodNameKey.String("completion/complete")
10359 // Request to list roots available on server.
10360 //
10361 // Stability: development
10362 McpMethodNameRootsList = McpMethodNameKey.String("roots/list")
10363 // Notification indicating that the list of roots has changed.
10364 //
10365 // Stability: development
10366 McpMethodNameNotificationsRootsListChanged = McpMethodNameKey.String("notifications/roots/list_changed")
10367 // Request from the server to elicit additional information from the user via
10368 // the client
10369 //
10370 // Stability: development
10371 McpMethodNameElicitationCreate = McpMethodNameKey.String("elicitation/create")
10372 )
10373
10374 // Namespace: messaging
10375 const (
10376 // MessagingBatchMessageCountKey is the attribute Key conforming to the
10377 // "messaging.batch.message_count" semantic conventions. It represents the
10378 // number of messages sent, received, or processed in the scope of the batching
10379 // operation.
10380 //
10381 // Type: int
10382 // RequirementLevel: Recommended
10383 // Stability: Development
10384 //
10385 // Examples: 0, 1, 2
10386 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
10387 // spans that operate with a single message. When a messaging client library
10388 // supports both batch and single-message API for the same operation,
10389 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
10390 // and SHOULD NOT use it for single-message APIs.
10391 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
10392
10393 // MessagingClientIDKey is the attribute Key conforming to the
10394 // "messaging.client.id" semantic conventions. It represents a unique identifier
10395 // for the client that consumes or produces a message.
10396 //
10397 // Type: string
10398 // RequirementLevel: Recommended
10399 // Stability: Development
10400 //
10401 // Examples: "client-5", "myhost@8742@s8083jm"
10402 MessagingClientIDKey = attribute.Key("messaging.client.id")
10403
10404 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
10405 // "messaging.consumer.group.name" semantic conventions. It represents the name
10406 // of the consumer group with which a consumer is associated.
10407 //
10408 // Type: string
10409 // RequirementLevel: Recommended
10410 // Stability: Development
10411 //
10412 // Examples: "my-group", "indexer"
10413 // Note: Semantic conventions for individual messaging systems SHOULD document
10414 // whether `messaging.consumer.group.name` is applicable and what it means in
10415 // the context of that system.
10416 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
10417
10418 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
10419 // "messaging.destination.anonymous" semantic conventions. It represents a
10420 // boolean that is true if the message destination is anonymous (could be
10421 // unnamed or have auto-generated name).
10422 //
10423 // Type: boolean
10424 // RequirementLevel: Recommended
10425 // Stability: Development
10426 //
10427 // Examples:
10428 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
10429
10430 // MessagingDestinationNameKey is the attribute Key conforming to the
10431 // "messaging.destination.name" semantic conventions. It represents the message
10432 // destination name.
10433 //
10434 // Type: string
10435 // RequirementLevel: Recommended
10436 // Stability: Development
10437 //
10438 // Examples: "MyQueue", "MyTopic"
10439 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
10440 // other entity within the broker. If
10441 // the broker doesn't have such notion, the destination name SHOULD uniquely
10442 // identify the broker.
10443 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
10444
10445 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
10446 // "messaging.destination.partition.id" semantic conventions. It represents the
10447 // identifier of the partition messages are sent to or received from, unique
10448 // within the `messaging.destination.name`.
10449 //
10450 // Type: string
10451 // RequirementLevel: Recommended
10452 // Stability: Development
10453 //
10454 // Examples: 1
10455 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
10456
10457 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
10458 // the "messaging.destination.subscription.name" semantic conventions. It
10459 // represents the name of the destination subscription from which a message is
10460 // consumed.
10461 //
10462 // Type: string
10463 // RequirementLevel: Recommended
10464 // Stability: Development
10465 //
10466 // Examples: "subscription-a"
10467 // Note: Semantic conventions for individual messaging systems SHOULD document
10468 // whether `messaging.destination.subscription.name` is applicable and what it
10469 // means in the context of that system.
10470 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
10471
10472 // MessagingDestinationTemplateKey is the attribute Key conforming to the
10473 // "messaging.destination.template" semantic conventions. It represents the low
10474 // cardinality representation of the messaging destination name.
10475 //
10476 // Type: string
10477 // RequirementLevel: Recommended
10478 // Stability: Development
10479 //
10480 // Examples: "/customers/{customerId}"
10481 // Note: Destination names could be constructed from templates. An example would
10482 // be a destination name involving a user name or product id. Although the
10483 // destination name in this case is of high cardinality, the underlying template
10484 // is of low cardinality and can be effectively used for grouping and
10485 // aggregation.
10486 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
10487
10488 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
10489 // "messaging.destination.temporary" semantic conventions. It represents a
10490 // boolean that is true if the message destination is temporary and might not
10491 // exist anymore after messages are processed.
10492 //
10493 // Type: boolean
10494 // RequirementLevel: Recommended
10495 // Stability: Development
10496 //
10497 // Examples:
10498 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
10499
10500 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
10501 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10502 // represents the UTC epoch seconds at which the message has been accepted and
10503 // stored in the entity.
10504 //
10505 // Type: int
10506 // RequirementLevel: Recommended
10507 // Stability: Development
10508 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
10509
10510 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
10511 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10512 // represents the ack deadline in seconds set for the modify ack deadline
10513 // request.
10514 //
10515 // Type: int
10516 // RequirementLevel: Recommended
10517 // Stability: Development
10518 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
10519
10520 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
10521 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10522 // ack id for a given message.
10523 //
10524 // Type: string
10525 // RequirementLevel: Recommended
10526 // Stability: Development
10527 //
10528 // Examples: ack_id
10529 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
10530
10531 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
10532 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
10533 // It represents the delivery attempt for a given message.
10534 //
10535 // Type: int
10536 // RequirementLevel: Recommended
10537 // Stability: Development
10538 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
10539
10540 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
10541 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10542 // represents the ordering key for a given message. If the attribute is not
10543 // present, the message does not have an ordering key.
10544 //
10545 // Type: string
10546 // RequirementLevel: Recommended
10547 // Stability: Development
10548 //
10549 // Examples: ordering_key
10550 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
10551
10552 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
10553 // "messaging.kafka.message.key" semantic conventions. It represents the message
10554 // keys in Kafka are used for grouping alike messages to ensure they're
10555 // processed on the same partition. They differ from `messaging.message.id` in
10556 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
10557 //
10558 // Type: string
10559 // RequirementLevel: Recommended
10560 // Stability: Development
10561 //
10562 // Examples: myKey
10563 // Note: If the key type is not string, it's string representation has to be
10564 // supplied for the attribute. If the key has no unambiguous, canonical string
10565 // form, don't include its value.
10566 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
10567
10568 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
10569 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10570 // boolean that is true if the message is a tombstone.
10571 //
10572 // Type: boolean
10573 // RequirementLevel: Recommended
10574 // Stability: Development
10575 //
10576 // Examples:
10577 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
10578
10579 // MessagingKafkaOffsetKey is the attribute Key conforming to the
10580 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
10581 // record in the corresponding Kafka partition.
10582 //
10583 // Type: int
10584 // RequirementLevel: Recommended
10585 // Stability: Development
10586 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
10587
10588 // MessagingMessageBodySizeKey is the attribute Key conforming to the
10589 // "messaging.message.body.size" semantic conventions. It represents the size of
10590 // the message body in bytes.
10591 //
10592 // Type: int
10593 // RequirementLevel: Recommended
10594 // Stability: Development
10595 //
10596 // Note: This can refer to both the compressed or uncompressed body size. If
10597 // both sizes are known, the uncompressed
10598 // body size should be used.
10599 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
10600
10601 // MessagingMessageConversationIDKey is the attribute Key conforming to the
10602 // "messaging.message.conversation_id" semantic conventions. It represents the
10603 // conversation ID identifying the conversation to which the message belongs,
10604 // represented as a string. Sometimes called "Correlation ID".
10605 //
10606 // Type: string
10607 // RequirementLevel: Recommended
10608 // Stability: Development
10609 //
10610 // Examples: MyConversationId
10611 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
10612
10613 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
10614 // "messaging.message.envelope.size" semantic conventions. It represents the
10615 // size of the message body and metadata in bytes.
10616 //
10617 // Type: int
10618 // RequirementLevel: Recommended
10619 // Stability: Development
10620 //
10621 // Note: This can refer to both the compressed or uncompressed size. If both
10622 // sizes are known, the uncompressed
10623 // size should be used.
10624 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
10625
10626 // MessagingMessageIDKey is the attribute Key conforming to the
10627 // "messaging.message.id" semantic conventions. It represents a value used by
10628 // the messaging system as an identifier for the message, represented as a
10629 // string.
10630 //
10631 // Type: string
10632 // RequirementLevel: Recommended
10633 // Stability: Development
10634 //
10635 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
10636 MessagingMessageIDKey = attribute.Key("messaging.message.id")
10637
10638 // MessagingOperationNameKey is the attribute Key conforming to the
10639 // "messaging.operation.name" semantic conventions. It represents the
10640 // system-specific name of the messaging operation.
10641 //
10642 // Type: string
10643 // RequirementLevel: Recommended
10644 // Stability: Development
10645 //
10646 // Examples: "ack", "nack", "send"
10647 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
10648
10649 // MessagingOperationTypeKey is the attribute Key conforming to the
10650 // "messaging.operation.type" semantic conventions. It represents a string
10651 // identifying the type of the messaging operation.
10652 //
10653 // Type: Enum
10654 // RequirementLevel: Recommended
10655 // Stability: Development
10656 //
10657 // Examples:
10658 // Note: If a custom value is used, it MUST be of low cardinality.
10659 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
10660
10661 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
10662 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
10663 // represents the rabbitMQ message routing key.
10664 //
10665 // Type: string
10666 // RequirementLevel: Recommended
10667 // Stability: Development
10668 //
10669 // Examples: myKey
10670 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
10671
10672 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
10673 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
10674 // the rabbitMQ message delivery tag.
10675 //
10676 // Type: int
10677 // RequirementLevel: Recommended
10678 // Stability: Development
10679 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
10680
10681 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
10682 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
10683 // the model of message consumption. This only applies to consumer spans.
10684 //
10685 // Type: Enum
10686 // RequirementLevel: Recommended
10687 // Stability: Development
10688 //
10689 // Examples:
10690 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
10691
10692 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
10693 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
10694 // represents the delay time level for delay message, which determines the
10695 // message delay time.
10696 //
10697 // Type: int
10698 // RequirementLevel: Recommended
10699 // Stability: Development
10700 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
10701
10702 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
10703 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
10704 // It represents the timestamp in milliseconds that the delay message is
10705 // expected to be delivered to consumer.
10706 //
10707 // Type: int
10708 // RequirementLevel: Recommended
10709 // Stability: Development
10710 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
10711
10712 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
10713 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
10714 // is essential for FIFO message. Messages that belong to the same message group
10715 // are always processed one by one within the same consumer group.
10716 //
10717 // Type: string
10718 // RequirementLevel: Recommended
10719 // Stability: Development
10720 //
10721 // Examples: myMessageGroup
10722 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
10723
10724 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
10725 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
10726 // key(s) of message, another way to mark message besides message id.
10727 //
10728 // Type: string[]
10729 // RequirementLevel: Recommended
10730 // Stability: Development
10731 //
10732 // Examples: "keyA", "keyB"
10733 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
10734
10735 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
10736 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
10737 // secondary classifier of message besides topic.
10738 //
10739 // Type: string
10740 // RequirementLevel: Recommended
10741 // Stability: Development
10742 //
10743 // Examples: tagA
10744 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
10745
10746 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
10747 // "messaging.rocketmq.message.type" semantic conventions. It represents the
10748 // type of message.
10749 //
10750 // Type: Enum
10751 // RequirementLevel: Recommended
10752 // Stability: Development
10753 //
10754 // Examples:
10755 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
10756
10757 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
10758 // "messaging.rocketmq.namespace" semantic conventions. It represents the
10759 // namespace of RocketMQ resources, resources in different namespaces are
10760 // individual.
10761 //
10762 // Type: string
10763 // RequirementLevel: Recommended
10764 // Stability: Development
10765 //
10766 // Examples: myNamespace
10767 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
10768
10769 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
10770 // the "messaging.servicebus.disposition_status" semantic conventions. It
10771 // represents the describes the [settlement type].
10772 //
10773 // Type: Enum
10774 // RequirementLevel: Recommended
10775 // Stability: Development
10776 //
10777 // Examples:
10778 //
10779 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
10780 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
10781
10782 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
10783 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
10784 // represents the number of deliveries that have been attempted for this
10785 // message.
10786 //
10787 // Type: int
10788 // RequirementLevel: Recommended
10789 // Stability: Development
10790 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
10791
10792 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
10793 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
10794 // represents the UTC epoch seconds at which the message has been accepted and
10795 // stored in the entity.
10796 //
10797 // Type: int
10798 // RequirementLevel: Recommended
10799 // Stability: Development
10800 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
10801
10802 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
10803 // semantic conventions. It represents the messaging system as identified by the
10804 // client instrumentation.
10805 //
10806 // Type: Enum
10807 // RequirementLevel: Recommended
10808 // Stability: Development
10809 //
10810 // Examples:
10811 // Note: The actual messaging system may differ from the one known by the
10812 // client. For example, when using Kafka client libraries to communicate with
10813 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
10814 // instrumentation's best knowledge.
10815 MessagingSystemKey = attribute.Key("messaging.system")
10816 )
10817
10818 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
10819 // "messaging.batch.message_count" semantic conventions. It represents the number
10820 // of messages sent, received, or processed in the scope of the batching
10821 // operation.
10822 func MessagingBatchMessageCount(val int) attribute.KeyValue {
10823 return MessagingBatchMessageCountKey.Int(val)
10824 }
10825
10826 // MessagingClientID returns an attribute KeyValue conforming to the
10827 // "messaging.client.id" semantic conventions. It represents a unique identifier
10828 // for the client that consumes or produces a message.
10829 func MessagingClientID(val string) attribute.KeyValue {
10830 return MessagingClientIDKey.String(val)
10831 }
10832
10833 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
10834 // "messaging.consumer.group.name" semantic conventions. It represents the name
10835 // of the consumer group with which a consumer is associated.
10836 func MessagingConsumerGroupName(val string) attribute.KeyValue {
10837 return MessagingConsumerGroupNameKey.String(val)
10838 }
10839
10840 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
10841 // "messaging.destination.anonymous" semantic conventions. It represents a
10842 // boolean that is true if the message destination is anonymous (could be unnamed
10843 // or have auto-generated name).
10844 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
10845 return MessagingDestinationAnonymousKey.Bool(val)
10846 }
10847
10848 // MessagingDestinationName returns an attribute KeyValue conforming to the
10849 // "messaging.destination.name" semantic conventions. It represents the message
10850 // destination name.
10851 func MessagingDestinationName(val string) attribute.KeyValue {
10852 return MessagingDestinationNameKey.String(val)
10853 }
10854
10855 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
10856 // the "messaging.destination.partition.id" semantic conventions. It represents
10857 // the identifier of the partition messages are sent to or received from, unique
10858 // within the `messaging.destination.name`.
10859 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
10860 return MessagingDestinationPartitionIDKey.String(val)
10861 }
10862
10863 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
10864 // to the "messaging.destination.subscription.name" semantic conventions. It
10865 // represents the name of the destination subscription from which a message is
10866 // consumed.
10867 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
10868 return MessagingDestinationSubscriptionNameKey.String(val)
10869 }
10870
10871 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
10872 // "messaging.destination.template" semantic conventions. It represents the low
10873 // cardinality representation of the messaging destination name.
10874 func MessagingDestinationTemplate(val string) attribute.KeyValue {
10875 return MessagingDestinationTemplateKey.String(val)
10876 }
10877
10878 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
10879 // "messaging.destination.temporary" semantic conventions. It represents a
10880 // boolean that is true if the message destination is temporary and might not
10881 // exist anymore after messages are processed.
10882 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
10883 return MessagingDestinationTemporaryKey.Bool(val)
10884 }
10885
10886 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
10887 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10888 // represents the UTC epoch seconds at which the message has been accepted and
10889 // stored in the entity.
10890 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
10891 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
10892 }
10893
10894 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
10895 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10896 // represents the ack deadline in seconds set for the modify ack deadline
10897 // request.
10898 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
10899 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
10900 }
10901
10902 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
10903 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10904 // ack id for a given message.
10905 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
10906 return MessagingGCPPubSubMessageAckIDKey.String(val)
10907 }
10908
10909 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
10910 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
10911 // conventions. It represents the delivery attempt for a given message.
10912 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
10913 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
10914 }
10915
10916 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
10917 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10918 // represents the ordering key for a given message. If the attribute is not
10919 // present, the message does not have an ordering key.
10920 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
10921 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
10922 }
10923
10924 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
10925 // "messaging.kafka.message.key" semantic conventions. It represents the message
10926 // keys in Kafka are used for grouping alike messages to ensure they're processed
10927 // on the same partition. They differ from `messaging.message.id` in that they're
10928 // not unique. If the key is `null`, the attribute MUST NOT be set.
10929 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
10930 return MessagingKafkaMessageKeyKey.String(val)
10931 }
10932
10933 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
10934 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10935 // boolean that is true if the message is a tombstone.
10936 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
10937 return MessagingKafkaMessageTombstoneKey.Bool(val)
10938 }
10939
10940 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
10941 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
10942 // record in the corresponding Kafka partition.
10943 func MessagingKafkaOffset(val int) attribute.KeyValue {
10944 return MessagingKafkaOffsetKey.Int(val)
10945 }
10946
10947 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
10948 // "messaging.message.body.size" semantic conventions. It represents the size of
10949 // the message body in bytes.
10950 func MessagingMessageBodySize(val int) attribute.KeyValue {
10951 return MessagingMessageBodySizeKey.Int(val)
10952 }
10953
10954 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
10955 // "messaging.message.conversation_id" semantic conventions. It represents the
10956 // conversation ID identifying the conversation to which the message belongs,
10957 // represented as a string. Sometimes called "Correlation ID".
10958 func MessagingMessageConversationID(val string) attribute.KeyValue {
10959 return MessagingMessageConversationIDKey.String(val)
10960 }
10961
10962 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
10963 // "messaging.message.envelope.size" semantic conventions. It represents the size
10964 // of the message body and metadata in bytes.
10965 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
10966 return MessagingMessageEnvelopeSizeKey.Int(val)
10967 }
10968
10969 // MessagingMessageID returns an attribute KeyValue conforming to the
10970 // "messaging.message.id" semantic conventions. It represents a value used by the
10971 // messaging system as an identifier for the message, represented as a string.
10972 func MessagingMessageID(val string) attribute.KeyValue {
10973 return MessagingMessageIDKey.String(val)
10974 }
10975
10976 // MessagingOperationName returns an attribute KeyValue conforming to the
10977 // "messaging.operation.name" semantic conventions. It represents the
10978 // system-specific name of the messaging operation.
10979 func MessagingOperationName(val string) attribute.KeyValue {
10980 return MessagingOperationNameKey.String(val)
10981 }
10982
10983 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
10984 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
10985 // conventions. It represents the rabbitMQ message routing key.
10986 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
10987 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
10988 }
10989
10990 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
10991 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
10992 // represents the rabbitMQ message delivery tag.
10993 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
10994 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
10995 }
10996
10997 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
10998 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
10999 // conventions. It represents the delay time level for delay message, which
11000 // determines the message delay time.
11001 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
11002 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
11003 }
11004
11005 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
11006 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
11007 // conventions. It represents the timestamp in milliseconds that the delay
11008 // message is expected to be delivered to consumer.
11009 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
11010 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
11011 }
11012
11013 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
11014 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
11015 // is essential for FIFO message. Messages that belong to the same message group
11016 // are always processed one by one within the same consumer group.
11017 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
11018 return MessagingRocketMQMessageGroupKey.String(val)
11019 }
11020
11021 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
11022 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
11023 // key(s) of message, another way to mark message besides message id.
11024 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
11025 return MessagingRocketMQMessageKeysKey.StringSlice(val)
11026 }
11027
11028 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
11029 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
11030 // secondary classifier of message besides topic.
11031 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
11032 return MessagingRocketMQMessageTagKey.String(val)
11033 }
11034
11035 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
11036 // "messaging.rocketmq.namespace" semantic conventions. It represents the
11037 // namespace of RocketMQ resources, resources in different namespaces are
11038 // individual.
11039 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
11040 return MessagingRocketMQNamespaceKey.String(val)
11041 }
11042
11043 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
11044 // conforming to the "messaging.servicebus.message.delivery_count" semantic
11045 // conventions. It represents the number of deliveries that have been attempted
11046 // for this message.
11047 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
11048 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
11049 }
11050
11051 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
11052 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
11053 // conventions. It represents the UTC epoch seconds at which the message has been
11054 // accepted and stored in the entity.
11055 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
11056 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
11057 }
11058
11059 // Enum values for messaging.operation.type
11060 var (
11061 // A message is created. "Create" spans always refer to a single message and are
11062 // used to provide a unique creation context for messages in batch sending
11063 // scenarios.
11064 //
11065 // Stability: development
11066 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
11067 // One or more messages are provided for sending to an intermediary. If a single
11068 // message is sent, the context of the "Send" span can be used as the creation
11069 // context and no "Create" span needs to be created.
11070 //
11071 // Stability: development
11072 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
11073 // One or more messages are requested by a consumer. This operation refers to
11074 // pull-based scenarios, where consumers explicitly call methods of messaging
11075 // SDKs to receive messages.
11076 //
11077 // Stability: development
11078 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
11079 // One or more messages are processed by a consumer.
11080 //
11081 // Stability: development
11082 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
11083 // One or more messages are settled.
11084 //
11085 // Stability: development
11086 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
11087 )
11088
11089 // Enum values for messaging.rocketmq.consumption_model
11090 var (
11091 // Clustering consumption model
11092 // Stability: development
11093 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
11094 // Broadcasting consumption model
11095 // Stability: development
11096 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
11097 )
11098
11099 // Enum values for messaging.rocketmq.message.type
11100 var (
11101 // Normal message
11102 // Stability: development
11103 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
11104 // FIFO message
11105 // Stability: development
11106 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
11107 // Delay message
11108 // Stability: development
11109 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
11110 // Transaction message
11111 // Stability: development
11112 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
11113 )
11114
11115 // Enum values for messaging.servicebus.disposition_status
11116 var (
11117 // Message is completed
11118 // Stability: development
11119 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
11120 // Message is abandoned
11121 // Stability: development
11122 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
11123 // Message is sent to dead letter queue
11124 // Stability: development
11125 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
11126 // Message is deferred
11127 // Stability: development
11128 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
11129 )
11130
11131 // Enum values for messaging.system
11132 var (
11133 // Apache ActiveMQ
11134 // Stability: development
11135 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
11136 // Amazon Simple Notification Service (SNS)
11137 // Stability: development
11138 MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
11139 // Amazon Simple Queue Service (SQS)
11140 // Stability: development
11141 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
11142 // Azure Event Grid
11143 // Stability: development
11144 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
11145 // Azure Event Hubs
11146 // Stability: development
11147 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
11148 // Azure Service Bus
11149 // Stability: development
11150 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
11151 // Google Cloud Pub/Sub
11152 // Stability: development
11153 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
11154 // Java Message Service
11155 // Stability: development
11156 MessagingSystemJMS = MessagingSystemKey.String("jms")
11157 // Apache Kafka
11158 // Stability: development
11159 MessagingSystemKafka = MessagingSystemKey.String("kafka")
11160 // RabbitMQ
11161 // Stability: development
11162 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
11163 // Apache RocketMQ
11164 // Stability: development
11165 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
11166 // Apache Pulsar
11167 // Stability: development
11168 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
11169 )
11170
11171 // Namespace: network
11172 const (
11173 // NetworkCarrierICCKey is the attribute Key conforming to the
11174 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
11175 // alpha-2 2-character country code associated with the mobile carrier network.
11176 //
11177 // Type: string
11178 // RequirementLevel: Recommended
11179 // Stability: Development
11180 //
11181 // Examples: DE
11182 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
11183
11184 // NetworkCarrierMCCKey is the attribute Key conforming to the
11185 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
11186 // country code.
11187 //
11188 // Type: string
11189 // RequirementLevel: Recommended
11190 // Stability: Development
11191 //
11192 // Examples: 310
11193 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
11194
11195 // NetworkCarrierMNCKey is the attribute Key conforming to the
11196 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
11197 // network code.
11198 //
11199 // Type: string
11200 // RequirementLevel: Recommended
11201 // Stability: Development
11202 //
11203 // Examples: 001
11204 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
11205
11206 // NetworkCarrierNameKey is the attribute Key conforming to the
11207 // "network.carrier.name" semantic conventions. It represents the name of the
11208 // mobile carrier.
11209 //
11210 // Type: string
11211 // RequirementLevel: Recommended
11212 // Stability: Development
11213 //
11214 // Examples: sprint
11215 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
11216
11217 // NetworkConnectionStateKey is the attribute Key conforming to the
11218 // "network.connection.state" semantic conventions. It represents the state of
11219 // network connection.
11220 //
11221 // Type: Enum
11222 // RequirementLevel: Recommended
11223 // Stability: Development
11224 //
11225 // Examples: "close_wait"
11226 // Note: Connection states are defined as part of the [rfc9293]
11227 //
11228 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
11229 NetworkConnectionStateKey = attribute.Key("network.connection.state")
11230
11231 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
11232 // "network.connection.subtype" semantic conventions. It represents the this
11233 // describes more details regarding the connection.type. It may be the type of
11234 // cell technology connection, but it could be used for describing details about
11235 // a wifi connection.
11236 //
11237 // Type: Enum
11238 // RequirementLevel: Recommended
11239 // Stability: Development
11240 //
11241 // Examples: LTE
11242 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
11243
11244 // NetworkConnectionTypeKey is the attribute Key conforming to the
11245 // "network.connection.type" semantic conventions. It represents the internet
11246 // connection type.
11247 //
11248 // Type: Enum
11249 // RequirementLevel: Recommended
11250 // Stability: Development
11251 //
11252 // Examples: wifi
11253 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
11254
11255 // NetworkInterfaceNameKey is the attribute Key conforming to the
11256 // "network.interface.name" semantic conventions. It represents the network
11257 // interface name.
11258 //
11259 // Type: string
11260 // RequirementLevel: Recommended
11261 // Stability: Development
11262 //
11263 // Examples: "lo", "eth0"
11264 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
11265
11266 // NetworkIODirectionKey is the attribute Key conforming to the
11267 // "network.io.direction" semantic conventions. It represents the network IO
11268 // operation direction.
11269 //
11270 // Type: Enum
11271 // RequirementLevel: Recommended
11272 // Stability: Development
11273 //
11274 // Examples: "transmit"
11275 NetworkIODirectionKey = attribute.Key("network.io.direction")
11276
11277 // NetworkLocalAddressKey is the attribute Key conforming to the
11278 // "network.local.address" semantic conventions. It represents the local address
11279 // of the network connection - IP address or Unix domain socket name.
11280 //
11281 // Type: string
11282 // RequirementLevel: Recommended
11283 // Stability: Stable
11284 //
11285 // Examples: "10.1.2.80", "/tmp/my.sock"
11286 NetworkLocalAddressKey = attribute.Key("network.local.address")
11287
11288 // NetworkLocalPortKey is the attribute Key conforming to the
11289 // "network.local.port" semantic conventions. It represents the local port
11290 // number of the network connection.
11291 //
11292 // Type: int
11293 // RequirementLevel: Recommended
11294 // Stability: Stable
11295 //
11296 // Examples: 65123
11297 NetworkLocalPortKey = attribute.Key("network.local.port")
11298
11299 // NetworkPeerAddressKey is the attribute Key conforming to the
11300 // "network.peer.address" semantic conventions. It represents the peer address
11301 // of the network connection - IP address or Unix domain socket name.
11302 //
11303 // Type: string
11304 // RequirementLevel: Recommended
11305 // Stability: Stable
11306 //
11307 // Examples: "10.1.2.80", "/tmp/my.sock"
11308 NetworkPeerAddressKey = attribute.Key("network.peer.address")
11309
11310 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
11311 // semantic conventions. It represents the peer port number of the network
11312 // connection.
11313 //
11314 // Type: int
11315 // RequirementLevel: Recommended
11316 // Stability: Stable
11317 //
11318 // Examples: 65123
11319 NetworkPeerPortKey = attribute.Key("network.peer.port")
11320
11321 // NetworkProtocolNameKey is the attribute Key conforming to the
11322 // "network.protocol.name" semantic conventions. It represents the
11323 // [OSI application layer] or non-OSI equivalent.
11324 //
11325 // Type: string
11326 // RequirementLevel: Recommended
11327 // Stability: Stable
11328 //
11329 // Examples: "amqp", "http", "mqtt"
11330 // Note: The value SHOULD be normalized to lowercase.
11331 //
11332 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11333 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
11334
11335 // NetworkProtocolVersionKey is the attribute Key conforming to the
11336 // "network.protocol.version" semantic conventions. It represents the actual
11337 // version of the protocol used for network communication.
11338 //
11339 // Type: string
11340 // RequirementLevel: Recommended
11341 // Stability: Stable
11342 //
11343 // Examples: "1.1", "2"
11344 // Note: If protocol version is subject to negotiation (for example using [ALPN]
11345 // ), this attribute SHOULD be set to the negotiated version. If the actual
11346 // protocol version is not known, this attribute SHOULD NOT be set.
11347 //
11348 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
11349 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
11350
11351 // NetworkTransportKey is the attribute Key conforming to the
11352 // "network.transport" semantic conventions. It represents the
11353 // [OSI transport layer] or [inter-process communication method].
11354 //
11355 // Type: Enum
11356 // RequirementLevel: Recommended
11357 // Stability: Stable
11358 //
11359 // Examples: "tcp", "udp"
11360 // Note: The value SHOULD be normalized to lowercase.
11361 //
11362 // Consider always setting the transport when setting a port number, since
11363 // a port number is ambiguous without knowing the transport. For example
11364 // different processes could be listening on TCP port 12345 and UDP port 12345.
11365 //
11366 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
11367 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
11368 NetworkTransportKey = attribute.Key("network.transport")
11369
11370 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
11371 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
11372 //
11373 // Type: Enum
11374 // RequirementLevel: Recommended
11375 // Stability: Stable
11376 //
11377 // Examples: "ipv4", "ipv6"
11378 // Note: The value SHOULD be normalized to lowercase.
11379 //
11380 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
11381 NetworkTypeKey = attribute.Key("network.type")
11382 )
11383
11384 // NetworkCarrierICC returns an attribute KeyValue conforming to the
11385 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
11386 // alpha-2 2-character country code associated with the mobile carrier network.
11387 func NetworkCarrierICC(val string) attribute.KeyValue {
11388 return NetworkCarrierICCKey.String(val)
11389 }
11390
11391 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
11392 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
11393 // country code.
11394 func NetworkCarrierMCC(val string) attribute.KeyValue {
11395 return NetworkCarrierMCCKey.String(val)
11396 }
11397
11398 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
11399 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
11400 // network code.
11401 func NetworkCarrierMNC(val string) attribute.KeyValue {
11402 return NetworkCarrierMNCKey.String(val)
11403 }
11404
11405 // NetworkCarrierName returns an attribute KeyValue conforming to the
11406 // "network.carrier.name" semantic conventions. It represents the name of the
11407 // mobile carrier.
11408 func NetworkCarrierName(val string) attribute.KeyValue {
11409 return NetworkCarrierNameKey.String(val)
11410 }
11411
11412 // NetworkInterfaceName returns an attribute KeyValue conforming to the
11413 // "network.interface.name" semantic conventions. It represents the network
11414 // interface name.
11415 func NetworkInterfaceName(val string) attribute.KeyValue {
11416 return NetworkInterfaceNameKey.String(val)
11417 }
11418
11419 // NetworkLocalAddress returns an attribute KeyValue conforming to the
11420 // "network.local.address" semantic conventions. It represents the local address
11421 // of the network connection - IP address or Unix domain socket name.
11422 func NetworkLocalAddress(val string) attribute.KeyValue {
11423 return NetworkLocalAddressKey.String(val)
11424 }
11425
11426 // NetworkLocalPort returns an attribute KeyValue conforming to the
11427 // "network.local.port" semantic conventions. It represents the local port number
11428 // of the network connection.
11429 func NetworkLocalPort(val int) attribute.KeyValue {
11430 return NetworkLocalPortKey.Int(val)
11431 }
11432
11433 // NetworkPeerAddress returns an attribute KeyValue conforming to the
11434 // "network.peer.address" semantic conventions. It represents the peer address of
11435 // the network connection - IP address or Unix domain socket name.
11436 func NetworkPeerAddress(val string) attribute.KeyValue {
11437 return NetworkPeerAddressKey.String(val)
11438 }
11439
11440 // NetworkPeerPort returns an attribute KeyValue conforming to the
11441 // "network.peer.port" semantic conventions. It represents the peer port number
11442 // of the network connection.
11443 func NetworkPeerPort(val int) attribute.KeyValue {
11444 return NetworkPeerPortKey.Int(val)
11445 }
11446
11447 // NetworkProtocolName returns an attribute KeyValue conforming to the
11448 // "network.protocol.name" semantic conventions. It represents the
11449 // [OSI application layer] or non-OSI equivalent.
11450 //
11451 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11452 func NetworkProtocolName(val string) attribute.KeyValue {
11453 return NetworkProtocolNameKey.String(val)
11454 }
11455
11456 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
11457 // "network.protocol.version" semantic conventions. It represents the actual
11458 // version of the protocol used for network communication.
11459 func NetworkProtocolVersion(val string) attribute.KeyValue {
11460 return NetworkProtocolVersionKey.String(val)
11461 }
11462
11463 // Enum values for network.connection.state
11464 var (
11465 // closed
11466 // Stability: development
11467 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
11468 // close_wait
11469 // Stability: development
11470 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
11471 // closing
11472 // Stability: development
11473 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
11474 // established
11475 // Stability: development
11476 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
11477 // fin_wait_1
11478 // Stability: development
11479 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
11480 // fin_wait_2
11481 // Stability: development
11482 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
11483 // last_ack
11484 // Stability: development
11485 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
11486 // listen
11487 // Stability: development
11488 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
11489 // syn_received
11490 // Stability: development
11491 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
11492 // syn_sent
11493 // Stability: development
11494 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
11495 // time_wait
11496 // Stability: development
11497 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
11498 )
11499
11500 // Enum values for network.connection.subtype
11501 var (
11502 // GPRS
11503 // Stability: development
11504 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
11505 // EDGE
11506 // Stability: development
11507 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
11508 // UMTS
11509 // Stability: development
11510 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
11511 // CDMA
11512 // Stability: development
11513 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
11514 // EVDO Rel. 0
11515 // Stability: development
11516 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
11517 // EVDO Rev. A
11518 // Stability: development
11519 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
11520 // CDMA2000 1XRTT
11521 // Stability: development
11522 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
11523 // HSDPA
11524 // Stability: development
11525 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
11526 // HSUPA
11527 // Stability: development
11528 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
11529 // HSPA
11530 // Stability: development
11531 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
11532 // IDEN
11533 // Stability: development
11534 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
11535 // EVDO Rev. B
11536 // Stability: development
11537 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
11538 // LTE
11539 // Stability: development
11540 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
11541 // EHRPD
11542 // Stability: development
11543 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
11544 // HSPAP
11545 // Stability: development
11546 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
11547 // GSM
11548 // Stability: development
11549 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
11550 // TD-SCDMA
11551 // Stability: development
11552 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
11553 // IWLAN
11554 // Stability: development
11555 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
11556 // 5G NR (New Radio)
11557 // Stability: development
11558 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
11559 // 5G NRNSA (New Radio Non-Standalone)
11560 // Stability: development
11561 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
11562 // LTE CA
11563 // Stability: development
11564 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
11565 )
11566
11567 // Enum values for network.connection.type
11568 var (
11569 // wifi
11570 // Stability: development
11571 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
11572 // wired
11573 // Stability: development
11574 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
11575 // cell
11576 // Stability: development
11577 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
11578 // unavailable
11579 // Stability: development
11580 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
11581 // unknown
11582 // Stability: development
11583 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
11584 )
11585
11586 // Enum values for network.io.direction
11587 var (
11588 // transmit
11589 // Stability: development
11590 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
11591 // receive
11592 // Stability: development
11593 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
11594 )
11595
11596 // Enum values for network.transport
11597 var (
11598 // TCP
11599 // Stability: stable
11600 NetworkTransportTCP = NetworkTransportKey.String("tcp")
11601 // UDP
11602 // Stability: stable
11603 NetworkTransportUDP = NetworkTransportKey.String("udp")
11604 // Named or anonymous pipe.
11605 // Stability: stable
11606 NetworkTransportPipe = NetworkTransportKey.String("pipe")
11607 // Unix domain socket
11608 // Stability: stable
11609 NetworkTransportUnix = NetworkTransportKey.String("unix")
11610 // QUIC
11611 // Stability: stable
11612 NetworkTransportQUIC = NetworkTransportKey.String("quic")
11613 )
11614
11615 // Enum values for network.type
11616 var (
11617 // IPv4
11618 // Stability: stable
11619 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
11620 // IPv6
11621 // Stability: stable
11622 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
11623 )
11624
11625 // Namespace: nfs
11626 const (
11627 // NfsOperationNameKey is the attribute Key conforming to the
11628 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
11629 // name.
11630 //
11631 // Type: string
11632 // RequirementLevel: Recommended
11633 // Stability: Development
11634 //
11635 // Examples: "OPEN", "READ", "GETATTR"
11636 NfsOperationNameKey = attribute.Key("nfs.operation.name")
11637
11638 // NfsServerRepcacheStatusKey is the attribute Key conforming to the
11639 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
11640 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or
11641 // "nocache" (NFSD_STATS_RC_NOCACHE -- uncacheable).
11642 //
11643 // Type: string
11644 // RequirementLevel: Recommended
11645 // Stability: Development
11646 //
11647 // Examples: hit
11648 NfsServerRepcacheStatusKey = attribute.Key("nfs.server.repcache.status")
11649 )
11650
11651 // NfsOperationName returns an attribute KeyValue conforming to the
11652 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
11653 // name.
11654 func NfsOperationName(val string) attribute.KeyValue {
11655 return NfsOperationNameKey.String(val)
11656 }
11657
11658 // NfsServerRepcacheStatus returns an attribute KeyValue conforming to the
11659 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
11660 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or "nocache"
11661 // (NFSD_STATS_RC_NOCACHE -- uncacheable).
11662 func NfsServerRepcacheStatus(val string) attribute.KeyValue {
11663 return NfsServerRepcacheStatusKey.String(val)
11664 }
11665
11666 // Namespace: oci
11667 const (
11668 // OCIManifestDigestKey is the attribute Key conforming to the
11669 // "oci.manifest.digest" semantic conventions. It represents the digest of the
11670 // OCI image manifest. For container images specifically is the digest by which
11671 // the container image is known.
11672 //
11673 // Type: string
11674 // RequirementLevel: Recommended
11675 // Stability: Development
11676 //
11677 // Examples:
11678 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
11679 // Note: Follows [OCI Image Manifest Specification], and specifically the
11680 // [Digest property].
11681 // An example can be found in [Example Image Manifest].
11682 //
11683 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
11684 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
11685 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
11686 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
11687 )
11688
11689 // OCIManifestDigest returns an attribute KeyValue conforming to the
11690 // "oci.manifest.digest" semantic conventions. It represents the digest of the
11691 // OCI image manifest. For container images specifically is the digest by which
11692 // the container image is known.
11693 func OCIManifestDigest(val string) attribute.KeyValue {
11694 return OCIManifestDigestKey.String(val)
11695 }
11696
11697 // Namespace: onc_rpc
11698 const (
11699 // OncRPCProcedureNameKey is the attribute Key conforming to the
11700 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
11701 // procedure name.
11702 //
11703 // Type: string
11704 // RequirementLevel: Recommended
11705 // Stability: Development
11706 //
11707 // Examples: "OPEN", "READ", "GETATTR"
11708 OncRPCProcedureNameKey = attribute.Key("onc_rpc.procedure.name")
11709
11710 // OncRPCProcedureNumberKey is the attribute Key conforming to the
11711 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun
11712 // RPC procedure number.
11713 //
11714 // Type: int
11715 // RequirementLevel: Recommended
11716 // Stability: Development
11717 //
11718 // Examples:
11719 OncRPCProcedureNumberKey = attribute.Key("onc_rpc.procedure.number")
11720
11721 // OncRPCProgramNameKey is the attribute Key conforming to the
11722 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
11723 // program name.
11724 //
11725 // Type: string
11726 // RequirementLevel: Recommended
11727 // Stability: Development
11728 //
11729 // Examples: "portmapper", "nfs"
11730 OncRPCProgramNameKey = attribute.Key("onc_rpc.program.name")
11731
11732 // OncRPCVersionKey is the attribute Key conforming to the "onc_rpc.version"
11733 // semantic conventions. It represents the ONC/Sun RPC program version.
11734 //
11735 // Type: int
11736 // RequirementLevel: Recommended
11737 // Stability: Development
11738 //
11739 // Examples:
11740 OncRPCVersionKey = attribute.Key("onc_rpc.version")
11741 )
11742
11743 // OncRPCProcedureName returns an attribute KeyValue conforming to the
11744 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
11745 // procedure name.
11746 func OncRPCProcedureName(val string) attribute.KeyValue {
11747 return OncRPCProcedureNameKey.String(val)
11748 }
11749
11750 // OncRPCProcedureNumber returns an attribute KeyValue conforming to the
11751 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun RPC
11752 // procedure number.
11753 func OncRPCProcedureNumber(val int) attribute.KeyValue {
11754 return OncRPCProcedureNumberKey.Int(val)
11755 }
11756
11757 // OncRPCProgramName returns an attribute KeyValue conforming to the
11758 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
11759 // program name.
11760 func OncRPCProgramName(val string) attribute.KeyValue {
11761 return OncRPCProgramNameKey.String(val)
11762 }
11763
11764 // OncRPCVersion returns an attribute KeyValue conforming to the
11765 // "onc_rpc.version" semantic conventions. It represents the ONC/Sun RPC program
11766 // version.
11767 func OncRPCVersion(val int) attribute.KeyValue {
11768 return OncRPCVersionKey.Int(val)
11769 }
11770
11771 // Namespace: openai
11772 const (
11773 // OpenAIRequestServiceTierKey is the attribute Key conforming to the
11774 // "openai.request.service_tier" semantic conventions. It represents the service
11775 // tier requested. May be a specific tier, default, or auto.
11776 //
11777 // Type: Enum
11778 // RequirementLevel: Recommended
11779 // Stability: Development
11780 //
11781 // Examples: "auto", "default"
11782 OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
11783
11784 // OpenAIResponseServiceTierKey is the attribute Key conforming to the
11785 // "openai.response.service_tier" semantic conventions. It represents the
11786 // service tier used for the response.
11787 //
11788 // Type: string
11789 // RequirementLevel: Recommended
11790 // Stability: Development
11791 //
11792 // Examples: "scale", "default"
11793 OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
11794
11795 // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
11796 // "openai.response.system_fingerprint" semantic conventions. It represents a
11797 // fingerprint to track any eventual change in the Generative AI environment.
11798 //
11799 // Type: string
11800 // RequirementLevel: Recommended
11801 // Stability: Development
11802 //
11803 // Examples: "fp_44709d6fcb"
11804 OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
11805 )
11806
11807 // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
11808 // "openai.response.service_tier" semantic conventions. It represents the service
11809 // tier used for the response.
11810 func OpenAIResponseServiceTier(val string) attribute.KeyValue {
11811 return OpenAIResponseServiceTierKey.String(val)
11812 }
11813
11814 // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
11815 // the "openai.response.system_fingerprint" semantic conventions. It represents a
11816 // fingerprint to track any eventual change in the Generative AI environment.
11817 func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
11818 return OpenAIResponseSystemFingerprintKey.String(val)
11819 }
11820
11821 // Enum values for openai.request.service_tier
11822 var (
11823 // The system will utilize scale tier credits until they are exhausted.
11824 // Stability: development
11825 OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
11826 // The system will utilize the default scale tier.
11827 // Stability: development
11828 OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
11829 )
11830
11831 // Namespace: openshift
11832 const (
11833 // OpenShiftClusterquotaNameKey is the attribute Key conforming to the
11834 // "openshift.clusterquota.name" semantic conventions. It represents the name of
11835 // the cluster quota.
11836 //
11837 // Type: string
11838 // RequirementLevel: Recommended
11839 // Stability: Development
11840 //
11841 // Examples: "opentelemetry"
11842 OpenShiftClusterquotaNameKey = attribute.Key("openshift.clusterquota.name")
11843
11844 // OpenShiftClusterquotaUIDKey is the attribute Key conforming to the
11845 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
11846 // the cluster quota.
11847 //
11848 // Type: string
11849 // RequirementLevel: Recommended
11850 // Stability: Development
11851 //
11852 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
11853 OpenShiftClusterquotaUIDKey = attribute.Key("openshift.clusterquota.uid")
11854 )
11855
11856 // OpenShiftClusterquotaName returns an attribute KeyValue conforming to the
11857 // "openshift.clusterquota.name" semantic conventions. It represents the name of
11858 // the cluster quota.
11859 func OpenShiftClusterquotaName(val string) attribute.KeyValue {
11860 return OpenShiftClusterquotaNameKey.String(val)
11861 }
11862
11863 // OpenShiftClusterquotaUID returns an attribute KeyValue conforming to the
11864 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
11865 // the cluster quota.
11866 func OpenShiftClusterquotaUID(val string) attribute.KeyValue {
11867 return OpenShiftClusterquotaUIDKey.String(val)
11868 }
11869
11870 // Namespace: opentracing
11871 const (
11872 // OpenTracingRefTypeKey is the attribute Key conforming to the
11873 // "opentracing.ref_type" semantic conventions. It represents the parent-child
11874 // Reference type.
11875 //
11876 // Type: Enum
11877 // RequirementLevel: Recommended
11878 // Stability: Development
11879 //
11880 // Examples:
11881 // Note: The causal relationship between a child Span and a parent Span.
11882 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
11883 )
11884
11885 // Enum values for opentracing.ref_type
11886 var (
11887 // The parent Span depends on the child Span in some capacity
11888 // Stability: development
11889 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
11890 // The parent Span doesn't depend in any way on the result of the child Span
11891 // Stability: development
11892 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
11893 )
11894
11895 // Namespace: os
11896 const (
11897 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
11898 // conventions. It represents the unique identifier for a particular build or
11899 // compilation of the operating system.
11900 //
11901 // Type: string
11902 // RequirementLevel: Recommended
11903 // Stability: Development
11904 //
11905 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
11906 OSBuildIDKey = attribute.Key("os.build_id")
11907
11908 // OSDescriptionKey is the attribute Key conforming to the "os.description"
11909 // semantic conventions. It represents the human readable (not intended to be
11910 // parsed) OS version information, like e.g. reported by `ver` or
11911 // `lsb_release -a` commands.
11912 //
11913 // Type: string
11914 // RequirementLevel: Recommended
11915 // Stability: Development
11916 //
11917 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
11918 OSDescriptionKey = attribute.Key("os.description")
11919
11920 // OSNameKey is the attribute Key conforming to the "os.name" semantic
11921 // conventions. It represents the human readable operating system name.
11922 //
11923 // Type: string
11924 // RequirementLevel: Recommended
11925 // Stability: Development
11926 //
11927 // Examples: "iOS", "Android", "Ubuntu"
11928 OSNameKey = attribute.Key("os.name")
11929
11930 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
11931 // conventions. It represents the operating system type.
11932 //
11933 // Type: Enum
11934 // RequirementLevel: Recommended
11935 // Stability: Development
11936 //
11937 // Examples:
11938 OSTypeKey = attribute.Key("os.type")
11939
11940 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
11941 // conventions. It represents the version string of the operating system as
11942 // defined in [Version Attributes].
11943 //
11944 // Type: string
11945 // RequirementLevel: Recommended
11946 // Stability: Development
11947 //
11948 // Examples: "14.2.1", "18.04.1"
11949 //
11950 // [Version Attributes]: /docs/resource/README.md#version-attributes
11951 OSVersionKey = attribute.Key("os.version")
11952 )
11953
11954 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
11955 // semantic conventions. It represents the unique identifier for a particular
11956 // build or compilation of the operating system.
11957 func OSBuildID(val string) attribute.KeyValue {
11958 return OSBuildIDKey.String(val)
11959 }
11960
11961 // OSDescription returns an attribute KeyValue conforming to the "os.description"
11962 // semantic conventions. It represents the human readable (not intended to be
11963 // parsed) OS version information, like e.g. reported by `ver` or
11964 // `lsb_release -a` commands.
11965 func OSDescription(val string) attribute.KeyValue {
11966 return OSDescriptionKey.String(val)
11967 }
11968
11969 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
11970 // conventions. It represents the human readable operating system name.
11971 func OSName(val string) attribute.KeyValue {
11972 return OSNameKey.String(val)
11973 }
11974
11975 // OSVersion returns an attribute KeyValue conforming to the "os.version"
11976 // semantic conventions. It represents the version string of the operating system
11977 // as defined in [Version Attributes].
11978 //
11979 // [Version Attributes]: /docs/resource/README.md#version-attributes
11980 func OSVersion(val string) attribute.KeyValue {
11981 return OSVersionKey.String(val)
11982 }
11983
11984 // Enum values for os.type
11985 var (
11986 // Microsoft Windows
11987 // Stability: development
11988 OSTypeWindows = OSTypeKey.String("windows")
11989 // Linux
11990 // Stability: development
11991 OSTypeLinux = OSTypeKey.String("linux")
11992 // Apple Darwin
11993 // Stability: development
11994 OSTypeDarwin = OSTypeKey.String("darwin")
11995 // FreeBSD
11996 // Stability: development
11997 OSTypeFreeBSD = OSTypeKey.String("freebsd")
11998 // NetBSD
11999 // Stability: development
12000 OSTypeNetBSD = OSTypeKey.String("netbsd")
12001 // OpenBSD
12002 // Stability: development
12003 OSTypeOpenBSD = OSTypeKey.String("openbsd")
12004 // DragonFly BSD
12005 // Stability: development
12006 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
12007 // HP-UX (Hewlett Packard Unix)
12008 // Stability: development
12009 OSTypeHPUX = OSTypeKey.String("hpux")
12010 // AIX (Advanced Interactive eXecutive)
12011 // Stability: development
12012 OSTypeAIX = OSTypeKey.String("aix")
12013 // SunOS, Oracle Solaris
12014 // Stability: development
12015 OSTypeSolaris = OSTypeKey.String("solaris")
12016 // IBM z/OS
12017 // Stability: development
12018 OSTypeZOS = OSTypeKey.String("zos")
12019 )
12020
12021 // Namespace: otel
12022 const (
12023 // OTelComponentNameKey is the attribute Key conforming to the
12024 // "otel.component.name" semantic conventions. It represents a name uniquely
12025 // identifying the instance of the OpenTelemetry component within its containing
12026 // SDK instance.
12027 //
12028 // Type: string
12029 // RequirementLevel: Recommended
12030 // Stability: Development
12031 //
12032 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
12033 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
12034 // even across application or SDK restarts.
12035 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
12036 //
12037 // Implementations MAY achieve these goals by following a
12038 // `<otel.component.type>/<instance-counter>` pattern, e.g.
12039 // `batching_span_processor/0`.
12040 // Hereby `otel.component.type` refers to the corresponding attribute value of
12041 // the component.
12042 //
12043 // The value of `instance-counter` MAY be automatically assigned by the
12044 // component and uniqueness within the enclosing SDK instance MUST be
12045 // guaranteed.
12046 // For example, `<instance-counter>` MAY be implemented by using a monotonically
12047 // increasing counter (starting with `0`), which is incremented every time an
12048 // instance of the given component type is started.
12049 //
12050 // With this implementation, for example the first Batching Span Processor would
12051 // have `batching_span_processor/0`
12052 // as `otel.component.name`, the second one `batching_span_processor/1` and so
12053 // on.
12054 // These values will therefore be reused in the case of an application restart.
12055 OTelComponentNameKey = attribute.Key("otel.component.name")
12056
12057 // OTelComponentTypeKey is the attribute Key conforming to the
12058 // "otel.component.type" semantic conventions. It represents a name identifying
12059 // the type of the OpenTelemetry component.
12060 //
12061 // Type: Enum
12062 // RequirementLevel: Recommended
12063 // Stability: Development
12064 //
12065 // Examples: "batching_span_processor", "com.example.MySpanExporter"
12066 // Note: If none of the standardized values apply, implementations SHOULD use
12067 // the language-defined name of the type.
12068 // E.g. for Java the fully qualified classname SHOULD be used in this case.
12069 OTelComponentTypeKey = attribute.Key("otel.component.type")
12070
12071 // OTelEventNameKey is the attribute Key conforming to the "otel.event.name"
12072 // semantic conventions. It represents the identifies the class / type of event.
12073 //
12074 // Type: string
12075 // RequirementLevel: Recommended
12076 // Stability: Development
12077 //
12078 // Examples: "browser.mouse.click", "device.app.lifecycle"
12079 // Note: This attribute SHOULD be used by non-OTLP exporters when destination
12080 // does not support `EventName` or equivalent field. This attribute MAY be used
12081 // by applications using existing logging libraries so that it can be used to
12082 // set the `EventName` field by Collector or SDK components.
12083 OTelEventNameKey = attribute.Key("otel.event.name")
12084
12085 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
12086 // semantic conventions. It represents the name of the instrumentation scope - (
12087 // `InstrumentationScope.Name` in OTLP).
12088 //
12089 // Type: string
12090 // RequirementLevel: Recommended
12091 // Stability: Stable
12092 //
12093 // Examples: "io.opentelemetry.contrib.mongodb"
12094 OTelScopeNameKey = attribute.Key("otel.scope.name")
12095
12096 // OTelScopeSchemaURLKey is the attribute Key conforming to the
12097 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
12098 // the instrumentation scope.
12099 //
12100 // Type: string
12101 // RequirementLevel: Recommended
12102 // Stability: Development
12103 //
12104 // Examples: "https://opentelemetry.io/schemas/1.31.0"
12105 OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
12106
12107 // OTelScopeVersionKey is the attribute Key conforming to the
12108 // "otel.scope.version" semantic conventions. It represents the version of the
12109 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
12110 //
12111 // Type: string
12112 // RequirementLevel: Recommended
12113 // Stability: Stable
12114 //
12115 // Examples: "1.0.0"
12116 OTelScopeVersionKey = attribute.Key("otel.scope.version")
12117
12118 // OTelSpanParentOriginKey is the attribute Key conforming to the
12119 // "otel.span.parent.origin" semantic conventions. It represents the determines
12120 // whether the span has a parent span, and if so,
12121 // [whether it is a remote parent].
12122 //
12123 // Type: Enum
12124 // RequirementLevel: Recommended
12125 // Stability: Development
12126 //
12127 // Examples:
12128 //
12129 // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12130 OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
12131
12132 // OTelSpanSamplingResultKey is the attribute Key conforming to the
12133 // "otel.span.sampling_result" semantic conventions. It represents the result
12134 // value of the sampler for this span.
12135 //
12136 // Type: Enum
12137 // RequirementLevel: Recommended
12138 // Stability: Development
12139 //
12140 // Examples:
12141 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
12142
12143 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
12144 // semantic conventions. It represents the name of the code, either "OK" or
12145 // "ERROR". MUST NOT be set if the status code is UNSET.
12146 //
12147 // Type: Enum
12148 // RequirementLevel: Recommended
12149 // Stability: Stable
12150 //
12151 // Examples:
12152 OTelStatusCodeKey = attribute.Key("otel.status_code")
12153
12154 // OTelStatusDescriptionKey is the attribute Key conforming to the
12155 // "otel.status_description" semantic conventions. It represents the description
12156 // of the Status if it has a value, otherwise not set.
12157 //
12158 // Type: string
12159 // RequirementLevel: Recommended
12160 // Stability: Stable
12161 //
12162 // Examples: "resource not found"
12163 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
12164 )
12165
12166 // OTelComponentName returns an attribute KeyValue conforming to the
12167 // "otel.component.name" semantic conventions. It represents a name uniquely
12168 // identifying the instance of the OpenTelemetry component within its containing
12169 // SDK instance.
12170 func OTelComponentName(val string) attribute.KeyValue {
12171 return OTelComponentNameKey.String(val)
12172 }
12173
12174 // OTelEventName returns an attribute KeyValue conforming to the
12175 // "otel.event.name" semantic conventions. It represents the identifies the class
12176 // / type of event.
12177 func OTelEventName(val string) attribute.KeyValue {
12178 return OTelEventNameKey.String(val)
12179 }
12180
12181 // OTelScopeName returns an attribute KeyValue conforming to the
12182 // "otel.scope.name" semantic conventions. It represents the name of the
12183 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
12184 func OTelScopeName(val string) attribute.KeyValue {
12185 return OTelScopeNameKey.String(val)
12186 }
12187
12188 // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
12189 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
12190 // the instrumentation scope.
12191 func OTelScopeSchemaURL(val string) attribute.KeyValue {
12192 return OTelScopeSchemaURLKey.String(val)
12193 }
12194
12195 // OTelScopeVersion returns an attribute KeyValue conforming to the
12196 // "otel.scope.version" semantic conventions. It represents the version of the
12197 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
12198 func OTelScopeVersion(val string) attribute.KeyValue {
12199 return OTelScopeVersionKey.String(val)
12200 }
12201
12202 // OTelStatusDescription returns an attribute KeyValue conforming to the
12203 // "otel.status_description" semantic conventions. It represents the description
12204 // of the Status if it has a value, otherwise not set.
12205 func OTelStatusDescription(val string) attribute.KeyValue {
12206 return OTelStatusDescriptionKey.String(val)
12207 }
12208
12209 // Enum values for otel.component.type
12210 var (
12211 // The builtin SDK batching span processor
12212 //
12213 // Stability: development
12214 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
12215 // The builtin SDK simple span processor
12216 //
12217 // Stability: development
12218 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
12219 // The builtin SDK batching log record processor
12220 //
12221 // Stability: development
12222 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
12223 // The builtin SDK simple log record processor
12224 //
12225 // Stability: development
12226 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
12227 // OTLP span exporter over gRPC with protobuf serialization
12228 //
12229 // Stability: development
12230 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
12231 // OTLP span exporter over HTTP with protobuf serialization
12232 //
12233 // Stability: development
12234 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
12235 // OTLP span exporter over HTTP with JSON serialization
12236 //
12237 // Stability: development
12238 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
12239 // Zipkin span exporter over HTTP
12240 //
12241 // Stability: development
12242 OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
12243 // OTLP log record exporter over gRPC with protobuf serialization
12244 //
12245 // Stability: development
12246 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
12247 // OTLP log record exporter over HTTP with protobuf serialization
12248 //
12249 // Stability: development
12250 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
12251 // OTLP log record exporter over HTTP with JSON serialization
12252 //
12253 // Stability: development
12254 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
12255 // The builtin SDK periodically exporting metric reader
12256 //
12257 // Stability: development
12258 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
12259 // OTLP metric exporter over gRPC with protobuf serialization
12260 //
12261 // Stability: development
12262 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
12263 // OTLP metric exporter over HTTP with protobuf serialization
12264 //
12265 // Stability: development
12266 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
12267 // OTLP metric exporter over HTTP with JSON serialization
12268 //
12269 // Stability: development
12270 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
12271 // Prometheus metric exporter over HTTP with the default text-based format
12272 //
12273 // Stability: development
12274 OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
12275 )
12276
12277 // Enum values for otel.span.parent.origin
12278 var (
12279 // The span does not have a parent, it is a root span
12280 // Stability: development
12281 OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
12282 // The span has a parent and the parent's span context [isRemote()] is false
12283 // Stability: development
12284 //
12285 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12286 OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
12287 // The span has a parent and the parent's span context [isRemote()] is true
12288 // Stability: development
12289 //
12290 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12291 OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
12292 )
12293
12294 // Enum values for otel.span.sampling_result
12295 var (
12296 // The span is not sampled and not recording
12297 // Stability: development
12298 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
12299 // The span is not sampled, but recording
12300 // Stability: development
12301 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
12302 // The span is sampled and recording
12303 // Stability: development
12304 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
12305 )
12306
12307 // Enum values for otel.status_code
12308 var (
12309 // The operation has been validated by an Application developer or Operator to
12310 // have completed successfully.
12311 // Stability: stable
12312 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
12313 // The operation contains an error.
12314 // Stability: stable
12315 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
12316 )
12317
12318 // Namespace: pprof
12319 const (
12320 // PprofLocationIsFoldedKey is the attribute Key conforming to the
12321 // "pprof.location.is_folded" semantic conventions. It represents the provides
12322 // an indication that multiple symbols map to this location's address, for
12323 // example due to identical code folding by the linker. In that case the line
12324 // information represents one of the multiple symbols. This field must be
12325 // recomputed when the symbolization state of the profile changes.
12326 //
12327 // Type: boolean
12328 // RequirementLevel: Recommended
12329 // Stability: Development
12330 //
12331 // Examples:
12332 PprofLocationIsFoldedKey = attribute.Key("pprof.location.is_folded")
12333
12334 // PprofMappingHasFilenamesKey is the attribute Key conforming to the
12335 // "pprof.mapping.has_filenames" semantic conventions. It represents the
12336 // indicates that there are filenames related to this mapping.
12337 //
12338 // Type: boolean
12339 // RequirementLevel: Recommended
12340 // Stability: Development
12341 //
12342 // Examples:
12343 PprofMappingHasFilenamesKey = attribute.Key("pprof.mapping.has_filenames")
12344
12345 // PprofMappingHasFunctionsKey is the attribute Key conforming to the
12346 // "pprof.mapping.has_functions" semantic conventions. It represents the
12347 // indicates that there are functions related to this mapping.
12348 //
12349 // Type: boolean
12350 // RequirementLevel: Recommended
12351 // Stability: Development
12352 //
12353 // Examples:
12354 PprofMappingHasFunctionsKey = attribute.Key("pprof.mapping.has_functions")
12355
12356 // PprofMappingHasInlineFramesKey is the attribute Key conforming to the
12357 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
12358 // indicates that there are inline frames related to this mapping.
12359 //
12360 // Type: boolean
12361 // RequirementLevel: Recommended
12362 // Stability: Development
12363 //
12364 // Examples:
12365 PprofMappingHasInlineFramesKey = attribute.Key("pprof.mapping.has_inline_frames")
12366
12367 // PprofMappingHasLineNumbersKey is the attribute Key conforming to the
12368 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
12369 // indicates that there are line numbers related to this mapping.
12370 //
12371 // Type: boolean
12372 // RequirementLevel: Recommended
12373 // Stability: Development
12374 //
12375 // Examples:
12376 PprofMappingHasLineNumbersKey = attribute.Key("pprof.mapping.has_line_numbers")
12377
12378 // PprofProfileCommentKey is the attribute Key conforming to the
12379 // "pprof.profile.comment" semantic conventions. It represents the free-form
12380 // text associated with the profile. This field should not be used to store any
12381 // machine-readable information, it is only for human-friendly content.
12382 //
12383 // Type: string[]
12384 // RequirementLevel: Recommended
12385 // Stability: Development
12386 //
12387 // Examples: "hello world", "bazinga"
12388 PprofProfileCommentKey = attribute.Key("pprof.profile.comment")
12389
12390 // PprofProfileDocURLKey is the attribute Key conforming to the
12391 // "pprof.profile.doc_url" semantic conventions. It represents the documentation
12392 // link for this profile type.
12393 //
12394 // Type: string
12395 // RequirementLevel: Recommended
12396 // Stability: Development
12397 //
12398 // Examples: "http://pprof.example.com/cpu-profile.html"
12399 // Note: The URL must be absolute and may be missing if the profile was
12400 // generated by code that did not supply a link
12401 PprofProfileDocURLKey = attribute.Key("pprof.profile.doc_url")
12402
12403 // PprofProfileDropFramesKey is the attribute Key conforming to the
12404 // "pprof.profile.drop_frames" semantic conventions. It represents the frames
12405 // with Function.function_name fully matching the regexp will be dropped from
12406 // the samples, along with their successors.
12407 //
12408 // Type: string
12409 // RequirementLevel: Recommended
12410 // Stability: Development
12411 //
12412 // Examples: "/foobar/"
12413 PprofProfileDropFramesKey = attribute.Key("pprof.profile.drop_frames")
12414
12415 // PprofProfileKeepFramesKey is the attribute Key conforming to the
12416 // "pprof.profile.keep_frames" semantic conventions. It represents the frames
12417 // with Function.function_name fully matching the regexp will be kept, even if
12418 // it matches drop_frames.
12419 //
12420 // Type: string
12421 // RequirementLevel: Recommended
12422 // Stability: Development
12423 //
12424 // Examples: "/bazinga/"
12425 PprofProfileKeepFramesKey = attribute.Key("pprof.profile.keep_frames")
12426 )
12427
12428 // PprofLocationIsFolded returns an attribute KeyValue conforming to the
12429 // "pprof.location.is_folded" semantic conventions. It represents the provides an
12430 // indication that multiple symbols map to this location's address, for example
12431 // due to identical code folding by the linker. In that case the line information
12432 // represents one of the multiple symbols. This field must be recomputed when the
12433 // symbolization state of the profile changes.
12434 func PprofLocationIsFolded(val bool) attribute.KeyValue {
12435 return PprofLocationIsFoldedKey.Bool(val)
12436 }
12437
12438 // PprofMappingHasFilenames returns an attribute KeyValue conforming to the
12439 // "pprof.mapping.has_filenames" semantic conventions. It represents the
12440 // indicates that there are filenames related to this mapping.
12441 func PprofMappingHasFilenames(val bool) attribute.KeyValue {
12442 return PprofMappingHasFilenamesKey.Bool(val)
12443 }
12444
12445 // PprofMappingHasFunctions returns an attribute KeyValue conforming to the
12446 // "pprof.mapping.has_functions" semantic conventions. It represents the
12447 // indicates that there are functions related to this mapping.
12448 func PprofMappingHasFunctions(val bool) attribute.KeyValue {
12449 return PprofMappingHasFunctionsKey.Bool(val)
12450 }
12451
12452 // PprofMappingHasInlineFrames returns an attribute KeyValue conforming to the
12453 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
12454 // indicates that there are inline frames related to this mapping.
12455 func PprofMappingHasInlineFrames(val bool) attribute.KeyValue {
12456 return PprofMappingHasInlineFramesKey.Bool(val)
12457 }
12458
12459 // PprofMappingHasLineNumbers returns an attribute KeyValue conforming to the
12460 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
12461 // indicates that there are line numbers related to this mapping.
12462 func PprofMappingHasLineNumbers(val bool) attribute.KeyValue {
12463 return PprofMappingHasLineNumbersKey.Bool(val)
12464 }
12465
12466 // PprofProfileComment returns an attribute KeyValue conforming to the
12467 // "pprof.profile.comment" semantic conventions. It represents the free-form text
12468 // associated with the profile. This field should not be used to store any
12469 // machine-readable information, it is only for human-friendly content.
12470 func PprofProfileComment(val ...string) attribute.KeyValue {
12471 return PprofProfileCommentKey.StringSlice(val)
12472 }
12473
12474 // PprofProfileDocURL returns an attribute KeyValue conforming to the
12475 // "pprof.profile.doc_url" semantic conventions. It represents the documentation
12476 // link for this profile type.
12477 func PprofProfileDocURL(val string) attribute.KeyValue {
12478 return PprofProfileDocURLKey.String(val)
12479 }
12480
12481 // PprofProfileDropFrames returns an attribute KeyValue conforming to the
12482 // "pprof.profile.drop_frames" semantic conventions. It represents the frames
12483 // with Function.function_name fully matching the regexp will be dropped from the
12484 // samples, along with their successors.
12485 func PprofProfileDropFrames(val string) attribute.KeyValue {
12486 return PprofProfileDropFramesKey.String(val)
12487 }
12488
12489 // PprofProfileKeepFrames returns an attribute KeyValue conforming to the
12490 // "pprof.profile.keep_frames" semantic conventions. It represents the frames
12491 // with Function.function_name fully matching the regexp will be kept, even if it
12492 // matches drop_frames.
12493 func PprofProfileKeepFrames(val string) attribute.KeyValue {
12494 return PprofProfileKeepFramesKey.String(val)
12495 }
12496
12497 // Namespace: process
12498 const (
12499 // ProcessArgsCountKey is the attribute Key conforming to the
12500 // "process.args_count" semantic conventions. It represents the length of the
12501 // process.command_args array.
12502 //
12503 // Type: int
12504 // RequirementLevel: Recommended
12505 // Stability: Development
12506 //
12507 // Examples: 4
12508 // Note: This field can be useful for querying or performing bucket analysis on
12509 // how many arguments were provided to start a process. More arguments may be an
12510 // indication of suspicious activity.
12511 ProcessArgsCountKey = attribute.Key("process.args_count")
12512
12513 // ProcessCommandKey is the attribute Key conforming to the "process.command"
12514 // semantic conventions. It represents the command used to launch the process
12515 // (i.e. the command name). On Linux based systems, can be set to the zeroth
12516 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
12517 // extracted from `GetCommandLineW`.
12518 //
12519 // Type: string
12520 // RequirementLevel: Recommended
12521 // Stability: Development
12522 //
12523 // Examples: "cmd/otelcol"
12524 ProcessCommandKey = attribute.Key("process.command")
12525
12526 // ProcessCommandArgsKey is the attribute Key conforming to the
12527 // "process.command_args" semantic conventions. It represents the all the
12528 // command arguments (including the command/executable itself) as received by
12529 // the process. On Linux-based systems (and some other Unixoid systems
12530 // supporting procfs), can be set according to the list of null-delimited
12531 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
12532 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
12533 // default unless there is sanitization that excludes sensitive data.
12534 //
12535 // Type: string[]
12536 // RequirementLevel: Recommended
12537 // Stability: Development
12538 //
12539 // Examples: "cmd/otecol", "--config=config.yaml"
12540 ProcessCommandArgsKey = attribute.Key("process.command_args")
12541
12542 // ProcessCommandLineKey is the attribute Key conforming to the
12543 // "process.command_line" semantic conventions. It represents the full command
12544 // used to launch the process as a single string representing the full command.
12545 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
12546 // you have to assemble it just for monitoring; use `process.command_args`
12547 // instead. SHOULD NOT be collected by default unless there is sanitization that
12548 // excludes sensitive data.
12549 //
12550 // Type: string
12551 // RequirementLevel: Recommended
12552 // Stability: Development
12553 //
12554 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
12555 ProcessCommandLineKey = attribute.Key("process.command_line")
12556
12557 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
12558 // "process.context_switch.type" semantic conventions. It represents the
12559 // specifies whether the context switches for this data point were voluntary or
12560 // involuntary.
12561 //
12562 // Type: Enum
12563 // RequirementLevel: Recommended
12564 // Stability: Development
12565 //
12566 // Examples:
12567 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch.type")
12568
12569 // ProcessCreationTimeKey is the attribute Key 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 //
12573 // Type: string
12574 // RequirementLevel: Recommended
12575 // Stability: Development
12576 //
12577 // Examples: "2023-11-21T09:25:34.853Z"
12578 ProcessCreationTimeKey = attribute.Key("process.creation.time")
12579
12580 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
12581 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
12582 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
12583 //
12584 // Type: string
12585 // RequirementLevel: Recommended
12586 // Stability: Development
12587 //
12588 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
12589 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
12590
12591 // ProcessExecutableBuildIDGoKey is the attribute Key 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 //
12595 // Type: string
12596 // RequirementLevel: Recommended
12597 // Stability: Development
12598 //
12599 // Examples:
12600 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
12601 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
12602
12603 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
12604 // "process.executable.build_id.htlhash" semantic conventions. It represents the
12605 // profiling specific build ID for executables. See the OTel specification for
12606 // Profiles for more information.
12607 //
12608 // Type: string
12609 // RequirementLevel: Recommended
12610 // Stability: Development
12611 //
12612 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
12613 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
12614
12615 // ProcessExecutableNameKey is the attribute Key conforming to the
12616 // "process.executable.name" semantic conventions. It represents the name of the
12617 // process executable. On Linux based systems, this SHOULD be set to the base
12618 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
12619 // the base name of `GetProcessImageFileNameW`.
12620 //
12621 // Type: string
12622 // RequirementLevel: Recommended
12623 // Stability: Development
12624 //
12625 // Examples: "otelcol"
12626 ProcessExecutableNameKey = attribute.Key("process.executable.name")
12627
12628 // ProcessExecutablePathKey is the attribute Key conforming to the
12629 // "process.executable.path" semantic conventions. It represents the full path
12630 // to the process executable. On Linux based systems, can be set to the target
12631 // of `proc/[pid]/exe`. On Windows, can be set to the result of
12632 // `GetProcessImageFileNameW`.
12633 //
12634 // Type: string
12635 // RequirementLevel: Recommended
12636 // Stability: Development
12637 //
12638 // Examples: "/usr/bin/cmd/otelcol"
12639 ProcessExecutablePathKey = attribute.Key("process.executable.path")
12640
12641 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
12642 // semantic conventions. It represents the exit code of the process.
12643 //
12644 // Type: int
12645 // RequirementLevel: Recommended
12646 // Stability: Development
12647 //
12648 // Examples: 127
12649 ProcessExitCodeKey = attribute.Key("process.exit.code")
12650
12651 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
12652 // semantic conventions. It represents the date and time the process exited, in
12653 // ISO 8601 format.
12654 //
12655 // Type: string
12656 // RequirementLevel: Recommended
12657 // Stability: Development
12658 //
12659 // Examples: "2023-11-21T09:26:12.315Z"
12660 ProcessExitTimeKey = attribute.Key("process.exit.time")
12661
12662 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
12663 // "process.group_leader.pid" semantic conventions. It represents the PID of the
12664 // process's group leader. This is also the process group ID (PGID) of the
12665 // process.
12666 //
12667 // Type: int
12668 // RequirementLevel: Recommended
12669 // Stability: Development
12670 //
12671 // Examples: 23
12672 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
12673
12674 // ProcessInteractiveKey is the attribute Key conforming to the
12675 // "process.interactive" semantic conventions. It represents the whether the
12676 // process is connected to an interactive shell.
12677 //
12678 // Type: boolean
12679 // RequirementLevel: Recommended
12680 // Stability: Development
12681 //
12682 // Examples:
12683 ProcessInteractiveKey = attribute.Key("process.interactive")
12684
12685 // ProcessLinuxCgroupKey is the attribute Key conforming to the
12686 // "process.linux.cgroup" semantic conventions. It represents the control group
12687 // associated with the process.
12688 //
12689 // Type: string
12690 // RequirementLevel: Recommended
12691 // Stability: Development
12692 //
12693 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
12694 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
12695 // Note: Control groups (cgroups) are a kernel feature used to organize and
12696 // manage process resources. This attribute provides the path(s) to the
12697 // cgroup(s) associated with the process, which should match the contents of the
12698 // [/proc/[PID]/cgroup] file.
12699 //
12700 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
12701 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
12702
12703 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
12704 // semantic conventions. It represents the username of the user that owns the
12705 // process.
12706 //
12707 // Type: string
12708 // RequirementLevel: Recommended
12709 // Stability: Development
12710 //
12711 // Examples: "root"
12712 ProcessOwnerKey = attribute.Key("process.owner")
12713
12714 // ProcessParentPIDKey is the attribute Key conforming to the
12715 // "process.parent_pid" semantic conventions. It represents the parent Process
12716 // identifier (PPID).
12717 //
12718 // Type: int
12719 // RequirementLevel: Recommended
12720 // Stability: Development
12721 //
12722 // Examples: 111
12723 ProcessParentPIDKey = attribute.Key("process.parent_pid")
12724
12725 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
12726 // conventions. It represents the process identifier (PID).
12727 //
12728 // Type: int
12729 // RequirementLevel: Recommended
12730 // Stability: Development
12731 //
12732 // Examples: 1234
12733 ProcessPIDKey = attribute.Key("process.pid")
12734
12735 // ProcessRealUserIDKey is the attribute Key conforming to the
12736 // "process.real_user.id" semantic conventions. It represents the real user ID
12737 // (RUID) of the process.
12738 //
12739 // Type: int
12740 // RequirementLevel: Recommended
12741 // Stability: Development
12742 //
12743 // Examples: 1000
12744 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
12745
12746 // ProcessRealUserNameKey is the attribute Key conforming to the
12747 // "process.real_user.name" semantic conventions. It represents the username of
12748 // the real user of the process.
12749 //
12750 // Type: string
12751 // RequirementLevel: Recommended
12752 // Stability: Development
12753 //
12754 // Examples: "operator"
12755 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
12756
12757 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
12758 // "process.runtime.description" semantic conventions. It represents an
12759 // additional description about the runtime of the process, for example a
12760 // specific vendor customization of the runtime environment.
12761 //
12762 // Type: string
12763 // RequirementLevel: Recommended
12764 // Stability: Development
12765 //
12766 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
12767 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
12768
12769 // ProcessRuntimeNameKey is the attribute Key conforming to the
12770 // "process.runtime.name" semantic conventions. It represents the name of the
12771 // runtime of this process.
12772 //
12773 // Type: string
12774 // RequirementLevel: Recommended
12775 // Stability: Development
12776 //
12777 // Examples: "OpenJDK Runtime Environment"
12778 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
12779
12780 // ProcessRuntimeVersionKey is the attribute Key conforming to the
12781 // "process.runtime.version" semantic conventions. It represents the version of
12782 // the runtime of this process, as returned by the runtime without modification.
12783 //
12784 // Type: string
12785 // RequirementLevel: Recommended
12786 // Stability: Development
12787 //
12788 // Examples: 14.0.2
12789 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
12790
12791 // ProcessSavedUserIDKey is the attribute Key conforming to the
12792 // "process.saved_user.id" semantic conventions. It represents the saved user ID
12793 // (SUID) of the process.
12794 //
12795 // Type: int
12796 // RequirementLevel: Recommended
12797 // Stability: Development
12798 //
12799 // Examples: 1002
12800 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
12801
12802 // ProcessSavedUserNameKey is the attribute Key conforming to the
12803 // "process.saved_user.name" semantic conventions. It represents the username of
12804 // the saved user.
12805 //
12806 // Type: string
12807 // RequirementLevel: Recommended
12808 // Stability: Development
12809 //
12810 // Examples: "operator"
12811 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
12812
12813 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
12814 // "process.session_leader.pid" semantic conventions. It represents the PID of
12815 // the process's session leader. This is also the session ID (SID) of the
12816 // process.
12817 //
12818 // Type: int
12819 // RequirementLevel: Recommended
12820 // Stability: Development
12821 //
12822 // Examples: 14
12823 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
12824
12825 // ProcessStateKey is the attribute Key conforming to the "process.state"
12826 // semantic conventions. It represents the process state, e.g.,
12827 // [Linux Process State Codes].
12828 //
12829 // Type: Enum
12830 // RequirementLevel: Recommended
12831 // Stability: Development
12832 //
12833 // Examples: "running"
12834 //
12835 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
12836 ProcessStateKey = attribute.Key("process.state")
12837
12838 // ProcessTitleKey is the attribute Key conforming to the "process.title"
12839 // semantic conventions. It represents the process title (proctitle).
12840 //
12841 // Type: string
12842 // RequirementLevel: Recommended
12843 // Stability: Development
12844 //
12845 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
12846 // Note: In many Unix-like systems, process title (proctitle), is the string
12847 // that represents the name or command line of a running process, displayed by
12848 // system monitoring tools like ps, top, and htop.
12849 ProcessTitleKey = attribute.Key("process.title")
12850
12851 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
12852 // semantic conventions. It represents the effective user ID (EUID) of the
12853 // process.
12854 //
12855 // Type: int
12856 // RequirementLevel: Recommended
12857 // Stability: Development
12858 //
12859 // Examples: 1001
12860 ProcessUserIDKey = attribute.Key("process.user.id")
12861
12862 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
12863 // semantic conventions. It represents the username of the effective user of the
12864 // process.
12865 //
12866 // Type: string
12867 // RequirementLevel: Recommended
12868 // Stability: Development
12869 //
12870 // Examples: "root"
12871 ProcessUserNameKey = attribute.Key("process.user.name")
12872
12873 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
12874 // conventions. It represents the virtual process identifier.
12875 //
12876 // Type: int
12877 // RequirementLevel: Recommended
12878 // Stability: Development
12879 //
12880 // Examples: 12
12881 // Note: The process ID within a PID namespace. This is not necessarily unique
12882 // across all processes on the host but it is unique within the process
12883 // namespace that the process exists within.
12884 ProcessVpidKey = attribute.Key("process.vpid")
12885
12886 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
12887 // "process.working_directory" semantic conventions. It represents the working
12888 // directory of the process.
12889 //
12890 // Type: string
12891 // RequirementLevel: Recommended
12892 // Stability: Development
12893 //
12894 // Examples: "/root"
12895 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
12896 )
12897
12898 // ProcessArgsCount returns an attribute KeyValue conforming to the
12899 // "process.args_count" semantic conventions. It represents the length of the
12900 // process.command_args array.
12901 func ProcessArgsCount(val int) attribute.KeyValue {
12902 return ProcessArgsCountKey.Int(val)
12903 }
12904
12905 // ProcessCommand returns an attribute KeyValue conforming to the
12906 // "process.command" semantic conventions. It represents the command used to
12907 // launch the process (i.e. the command name). On Linux based systems, can be set
12908 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
12909 // first parameter extracted from `GetCommandLineW`.
12910 func ProcessCommand(val string) attribute.KeyValue {
12911 return ProcessCommandKey.String(val)
12912 }
12913
12914 // ProcessCommandArgs returns an attribute KeyValue conforming to the
12915 // "process.command_args" semantic conventions. It represents the all the command
12916 // arguments (including the command/executable itself) as received by the
12917 // process. On Linux-based systems (and some other Unixoid systems supporting
12918 // procfs), can be set according to the list of null-delimited strings extracted
12919 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
12920 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
12921 // is sanitization that excludes sensitive data.
12922 func ProcessCommandArgs(val ...string) attribute.KeyValue {
12923 return ProcessCommandArgsKey.StringSlice(val)
12924 }
12925
12926 // ProcessCommandLine returns an attribute KeyValue conforming to the
12927 // "process.command_line" semantic conventions. It represents the full command
12928 // used to launch the process as a single string representing the full command.
12929 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
12930 // you have to assemble it just for monitoring; use `process.command_args`
12931 // instead. SHOULD NOT be collected by default unless there is sanitization that
12932 // excludes sensitive data.
12933 func ProcessCommandLine(val string) attribute.KeyValue {
12934 return ProcessCommandLineKey.String(val)
12935 }
12936
12937 // ProcessCreationTime returns an attribute KeyValue conforming to the
12938 // "process.creation.time" semantic conventions. It represents the date and time
12939 // the process was created, in ISO 8601 format.
12940 func ProcessCreationTime(val string) attribute.KeyValue {
12941 return ProcessCreationTimeKey.String(val)
12942 }
12943
12944 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
12945 // "process.environment_variable" semantic conventions. It represents the process
12946 // environment variables, `<key>` being the environment variable name, the value
12947 // being the environment variable value.
12948 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
12949 return attribute.String("process.environment_variable."+key, val)
12950 }
12951
12952 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
12953 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
12954 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
12955 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
12956 return ProcessExecutableBuildIDGNUKey.String(val)
12957 }
12958
12959 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
12960 // "process.executable.build_id.go" semantic conventions. It represents the Go
12961 // build ID as retrieved by `go tool buildid <go executable>`.
12962 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
12963 return ProcessExecutableBuildIDGoKey.String(val)
12964 }
12965
12966 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
12967 // the "process.executable.build_id.htlhash" semantic conventions. It represents
12968 // the profiling specific build ID for executables. See the OTel specification
12969 // for Profiles for more information.
12970 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
12971 return ProcessExecutableBuildIDHtlhashKey.String(val)
12972 }
12973
12974 // ProcessExecutableName returns an attribute KeyValue conforming to the
12975 // "process.executable.name" semantic conventions. It represents the name of the
12976 // process executable. On Linux based systems, this SHOULD be set to the base
12977 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
12978 // base name of `GetProcessImageFileNameW`.
12979 func ProcessExecutableName(val string) attribute.KeyValue {
12980 return ProcessExecutableNameKey.String(val)
12981 }
12982
12983 // ProcessExecutablePath returns an attribute KeyValue conforming to the
12984 // "process.executable.path" semantic conventions. It represents the full path to
12985 // the process executable. On Linux based systems, can be set to the target of
12986 // `proc/[pid]/exe`. On Windows, can be set to the result of
12987 // `GetProcessImageFileNameW`.
12988 func ProcessExecutablePath(val string) attribute.KeyValue {
12989 return ProcessExecutablePathKey.String(val)
12990 }
12991
12992 // ProcessExitCode returns an attribute KeyValue conforming to the
12993 // "process.exit.code" semantic conventions. It represents the exit code of the
12994 // process.
12995 func ProcessExitCode(val int) attribute.KeyValue {
12996 return ProcessExitCodeKey.Int(val)
12997 }
12998
12999 // ProcessExitTime returns an attribute KeyValue conforming to the
13000 // "process.exit.time" semantic conventions. It represents the date and time the
13001 // process exited, in ISO 8601 format.
13002 func ProcessExitTime(val string) attribute.KeyValue {
13003 return ProcessExitTimeKey.String(val)
13004 }
13005
13006 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
13007 // "process.group_leader.pid" semantic conventions. It represents the PID of the
13008 // process's group leader. This is also the process group ID (PGID) of the
13009 // process.
13010 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
13011 return ProcessGroupLeaderPIDKey.Int(val)
13012 }
13013
13014 // ProcessInteractive returns an attribute KeyValue conforming to the
13015 // "process.interactive" semantic conventions. It represents the whether the
13016 // process is connected to an interactive shell.
13017 func ProcessInteractive(val bool) attribute.KeyValue {
13018 return ProcessInteractiveKey.Bool(val)
13019 }
13020
13021 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
13022 // "process.linux.cgroup" semantic conventions. It represents the control group
13023 // associated with the process.
13024 func ProcessLinuxCgroup(val string) attribute.KeyValue {
13025 return ProcessLinuxCgroupKey.String(val)
13026 }
13027
13028 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
13029 // semantic conventions. It represents the username of the user that owns the
13030 // process.
13031 func ProcessOwner(val string) attribute.KeyValue {
13032 return ProcessOwnerKey.String(val)
13033 }
13034
13035 // ProcessParentPID returns an attribute KeyValue conforming to the
13036 // "process.parent_pid" semantic conventions. It represents the parent Process
13037 // identifier (PPID).
13038 func ProcessParentPID(val int) attribute.KeyValue {
13039 return ProcessParentPIDKey.Int(val)
13040 }
13041
13042 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
13043 // semantic conventions. It represents the process identifier (PID).
13044 func ProcessPID(val int) attribute.KeyValue {
13045 return ProcessPIDKey.Int(val)
13046 }
13047
13048 // ProcessRealUserID returns an attribute KeyValue conforming to the
13049 // "process.real_user.id" semantic conventions. It represents the real user ID
13050 // (RUID) of the process.
13051 func ProcessRealUserID(val int) attribute.KeyValue {
13052 return ProcessRealUserIDKey.Int(val)
13053 }
13054
13055 // ProcessRealUserName returns an attribute KeyValue conforming to the
13056 // "process.real_user.name" semantic conventions. It represents the username of
13057 // the real user of the process.
13058 func ProcessRealUserName(val string) attribute.KeyValue {
13059 return ProcessRealUserNameKey.String(val)
13060 }
13061
13062 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
13063 // "process.runtime.description" semantic conventions. It represents an
13064 // additional description about the runtime of the process, for example a
13065 // specific vendor customization of the runtime environment.
13066 func ProcessRuntimeDescription(val string) attribute.KeyValue {
13067 return ProcessRuntimeDescriptionKey.String(val)
13068 }
13069
13070 // ProcessRuntimeName returns an attribute KeyValue conforming to the
13071 // "process.runtime.name" semantic conventions. It represents the name of the
13072 // runtime of this process.
13073 func ProcessRuntimeName(val string) attribute.KeyValue {
13074 return ProcessRuntimeNameKey.String(val)
13075 }
13076
13077 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
13078 // "process.runtime.version" semantic conventions. It represents the version of
13079 // the runtime of this process, as returned by the runtime without modification.
13080 func ProcessRuntimeVersion(val string) attribute.KeyValue {
13081 return ProcessRuntimeVersionKey.String(val)
13082 }
13083
13084 // ProcessSavedUserID returns an attribute KeyValue conforming to the
13085 // "process.saved_user.id" semantic conventions. It represents the saved user ID
13086 // (SUID) of the process.
13087 func ProcessSavedUserID(val int) attribute.KeyValue {
13088 return ProcessSavedUserIDKey.Int(val)
13089 }
13090
13091 // ProcessSavedUserName returns an attribute KeyValue conforming to the
13092 // "process.saved_user.name" semantic conventions. It represents the username of
13093 // the saved user.
13094 func ProcessSavedUserName(val string) attribute.KeyValue {
13095 return ProcessSavedUserNameKey.String(val)
13096 }
13097
13098 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
13099 // "process.session_leader.pid" semantic conventions. It represents the PID of
13100 // the process's session leader. This is also the session ID (SID) of the
13101 // process.
13102 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
13103 return ProcessSessionLeaderPIDKey.Int(val)
13104 }
13105
13106 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
13107 // semantic conventions. It represents the process title (proctitle).
13108 func ProcessTitle(val string) attribute.KeyValue {
13109 return ProcessTitleKey.String(val)
13110 }
13111
13112 // ProcessUserID returns an attribute KeyValue conforming to the
13113 // "process.user.id" semantic conventions. It represents the effective user ID
13114 // (EUID) of the process.
13115 func ProcessUserID(val int) attribute.KeyValue {
13116 return ProcessUserIDKey.Int(val)
13117 }
13118
13119 // ProcessUserName returns an attribute KeyValue conforming to the
13120 // "process.user.name" semantic conventions. It represents the username of the
13121 // effective user of the process.
13122 func ProcessUserName(val string) attribute.KeyValue {
13123 return ProcessUserNameKey.String(val)
13124 }
13125
13126 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
13127 // semantic conventions. It represents the virtual process identifier.
13128 func ProcessVpid(val int) attribute.KeyValue {
13129 return ProcessVpidKey.Int(val)
13130 }
13131
13132 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
13133 // "process.working_directory" semantic conventions. It represents the working
13134 // directory of the process.
13135 func ProcessWorkingDirectory(val string) attribute.KeyValue {
13136 return ProcessWorkingDirectoryKey.String(val)
13137 }
13138
13139 // Enum values for process.context_switch.type
13140 var (
13141 // voluntary
13142 // Stability: development
13143 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
13144 // involuntary
13145 // Stability: development
13146 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
13147 )
13148
13149 // Enum values for process.state
13150 var (
13151 // running
13152 // Stability: development
13153 ProcessStateRunning = ProcessStateKey.String("running")
13154 // sleeping
13155 // Stability: development
13156 ProcessStateSleeping = ProcessStateKey.String("sleeping")
13157 // stopped
13158 // Stability: development
13159 ProcessStateStopped = ProcessStateKey.String("stopped")
13160 // defunct
13161 // Stability: development
13162 ProcessStateDefunct = ProcessStateKey.String("defunct")
13163 )
13164
13165 // Namespace: profile
13166 const (
13167 // ProfileFrameTypeKey is the attribute Key conforming to the
13168 // "profile.frame.type" semantic conventions. It represents the describes the
13169 // interpreter or compiler of a single frame.
13170 //
13171 // Type: Enum
13172 // RequirementLevel: Recommended
13173 // Stability: Development
13174 //
13175 // Examples: "cpython"
13176 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
13177 )
13178
13179 // Enum values for profile.frame.type
13180 var (
13181 // [.NET]
13182 //
13183 // Stability: development
13184 //
13185 // [.NET]: https://wikipedia.org/wiki/.NET
13186 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
13187 // [JVM]
13188 //
13189 // Stability: development
13190 //
13191 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
13192 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
13193 // [Kernel]
13194 //
13195 // Stability: development
13196 //
13197 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
13198 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
13199 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
13200 // more precise value MUST be used.
13201 //
13202 // Stability: development
13203 //
13204 // [C]: https://wikipedia.org/wiki/C_(programming_language)
13205 // [C++]: https://wikipedia.org/wiki/C%2B%2B
13206 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
13207 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
13208 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
13209 // [Perl]
13210 //
13211 // Stability: development
13212 //
13213 // [Perl]: https://wikipedia.org/wiki/Perl
13214 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
13215 // [PHP]
13216 //
13217 // Stability: development
13218 //
13219 // [PHP]: https://wikipedia.org/wiki/PHP
13220 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
13221 // [Python]
13222 //
13223 // Stability: development
13224 //
13225 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
13226 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
13227 // [Ruby]
13228 //
13229 // Stability: development
13230 //
13231 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
13232 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
13233 // [V8JS]
13234 //
13235 // Stability: development
13236 //
13237 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
13238 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
13239 // [Erlang]
13240 //
13241 // Stability: development
13242 //
13243 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
13244 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
13245 // [Go],
13246 //
13247 // Stability: development
13248 //
13249 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
13250 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
13251 // [Rust]
13252 //
13253 // Stability: development
13254 //
13255 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
13256 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
13257 )
13258
13259 // Namespace: rpc
13260 const (
13261 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
13262 // "rpc.message.compressed_size" semantic conventions. It represents the
13263 // compressed size of the message in bytes.
13264 //
13265 // Type: int
13266 // RequirementLevel: Recommended
13267 // Stability: Development
13268 //
13269 // Examples:
13270 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
13271
13272 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
13273 // semantic conventions. It MUST be calculated as two different counters
13274 // starting from `1` one for sent messages and one for received message..
13275 //
13276 // Type: int
13277 // RequirementLevel: Recommended
13278 // Stability: Development
13279 //
13280 // Examples:
13281 // Note: This way we guarantee that the values will be consistent between
13282 // different implementations.
13283 RPCMessageIDKey = attribute.Key("rpc.message.id")
13284
13285 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
13286 // semantic conventions. It represents the whether this is a received or sent
13287 // message.
13288 //
13289 // Type: Enum
13290 // RequirementLevel: Recommended
13291 // Stability: Development
13292 //
13293 // Examples:
13294 RPCMessageTypeKey = attribute.Key("rpc.message.type")
13295
13296 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
13297 // "rpc.message.uncompressed_size" semantic conventions. It represents the
13298 // uncompressed size of the message in bytes.
13299 //
13300 // Type: int
13301 // RequirementLevel: Recommended
13302 // Stability: Development
13303 //
13304 // Examples:
13305 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
13306
13307 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
13308 // conventions. It represents the fully-qualified logical name of the method
13309 // from the RPC interface perspective.
13310 //
13311 // Type: string
13312 // RequirementLevel: Recommended
13313 // Stability: Development
13314 //
13315 // Examples: "com.example.ExampleService/exampleMethod", "EchoService/Echo",
13316 // "_OTHER"
13317 // Note: The method name MAY have unbounded cardinality in edge or error cases.
13318 //
13319 // Some RPC frameworks or libraries provide a fixed set of recognized methods
13320 // for client stubs and server implementations. Instrumentations for such
13321 // frameworks MUST set this attribute to the original method name only
13322 // when the method is recognized by the framework or library.
13323 //
13324 // When the method is not recognized, for example, when the server receives
13325 // a request for a method that is not predefined on the server, or when
13326 // instrumentation is not able to reliably detect if the method is predefined,
13327 // the attribute MUST be set to `_OTHER`. In such cases, tracing
13328 // instrumentations MUST also set `rpc.method_original` attribute to
13329 // the original method value.
13330 //
13331 // If the RPC instrumentation could end up converting valid RPC methods to
13332 // `_OTHER`, then it SHOULD provide a way to configure the list of recognized
13333 // RPC methods.
13334 //
13335 // The `rpc.method` can be different from the name of any implementing
13336 // method/function.
13337 // The `code.function.name` attribute may be used to record the fully-qualified
13338 // method actually executing the call on the server side, or the
13339 // RPC client stub method on the client side.
13340 RPCMethodKey = attribute.Key("rpc.method")
13341
13342 // RPCMethodOriginalKey is the attribute Key conforming to the
13343 // "rpc.method_original" semantic conventions. It represents the original name
13344 // of the method used by the client.
13345 //
13346 // Type: string
13347 // RequirementLevel: Recommended
13348 // Stability: Development
13349 //
13350 // Examples: "com.myservice.EchoService/catchAll",
13351 // "com.myservice.EchoService/unknownMethod", "InvalidMethod"
13352 RPCMethodOriginalKey = attribute.Key("rpc.method_original")
13353
13354 // RPCResponseStatusCodeKey is the attribute Key conforming to the
13355 // "rpc.response.status_code" semantic conventions. It represents the status
13356 // code of the RPC returned by the RPC server or generated by the client.
13357 //
13358 // Type: string
13359 // RequirementLevel: Recommended
13360 // Stability: Development
13361 //
13362 // Examples: "OK", "DEADLINE_EXCEEDED", "-32602"
13363 // Note: Usually it represents an error code, but may also represent partial
13364 // success, warning, or differentiate between various types of successful
13365 // outcomes.
13366 // Semantic conventions for individual RPC frameworks SHOULD document what
13367 // `rpc.response.status_code` means in the context of that system and which
13368 // values are considered to represent errors.
13369 RPCResponseStatusCodeKey = attribute.Key("rpc.response.status_code")
13370
13371 // RPCSystemNameKey is the attribute Key conforming to the "rpc.system.name"
13372 // semantic conventions. It represents the Remote Procedure Call (RPC) system.
13373 //
13374 // Type: Enum
13375 // RequirementLevel: Recommended
13376 // Stability: Development
13377 //
13378 // Examples:
13379 // Note: The client and server RPC systems may differ for the same RPC
13380 // interaction. For example, a client may use Apache Dubbo or Connect RPC to
13381 // communicate with a server that uses gRPC since both protocols provide
13382 // compatibility with gRPC.
13383 RPCSystemNameKey = attribute.Key("rpc.system.name")
13384 )
13385
13386 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
13387 // "rpc.message.compressed_size" semantic conventions. It represents the
13388 // compressed size of the message in bytes.
13389 func RPCMessageCompressedSize(val int) attribute.KeyValue {
13390 return RPCMessageCompressedSizeKey.Int(val)
13391 }
13392
13393 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
13394 // semantic conventions. It MUST be calculated as two different counters starting
13395 // from `1` one for sent messages and one for received message..
13396 func RPCMessageID(val int) attribute.KeyValue {
13397 return RPCMessageIDKey.Int(val)
13398 }
13399
13400 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
13401 // "rpc.message.uncompressed_size" semantic conventions. It represents the
13402 // uncompressed size of the message in bytes.
13403 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
13404 return RPCMessageUncompressedSizeKey.Int(val)
13405 }
13406
13407 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
13408 // semantic conventions. It represents the fully-qualified logical name of the
13409 // method from the RPC interface perspective.
13410 func RPCMethod(val string) attribute.KeyValue {
13411 return RPCMethodKey.String(val)
13412 }
13413
13414 // RPCMethodOriginal returns an attribute KeyValue conforming to the
13415 // "rpc.method_original" semantic conventions. It represents the original name of
13416 // the method used by the client.
13417 func RPCMethodOriginal(val string) attribute.KeyValue {
13418 return RPCMethodOriginalKey.String(val)
13419 }
13420
13421 // RPCRequestMetadata returns an attribute KeyValue conforming to the
13422 // "rpc.request.metadata" semantic conventions. It represents the RPC request
13423 // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
13424 // being the metadata values.
13425 func RPCRequestMetadata(key string, val ...string) attribute.KeyValue {
13426 return attribute.StringSlice("rpc.request.metadata."+key, val)
13427 }
13428
13429 // RPCResponseMetadata returns an attribute KeyValue conforming to the
13430 // "rpc.response.metadata" semantic conventions. It represents the RPC response
13431 // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
13432 // being the metadata values.
13433 func RPCResponseMetadata(key string, val ...string) attribute.KeyValue {
13434 return attribute.StringSlice("rpc.response.metadata."+key, val)
13435 }
13436
13437 // RPCResponseStatusCode returns an attribute KeyValue conforming to the
13438 // "rpc.response.status_code" semantic conventions. It represents the status code
13439 // of the RPC returned by the RPC server or generated by the client.
13440 func RPCResponseStatusCode(val string) attribute.KeyValue {
13441 return RPCResponseStatusCodeKey.String(val)
13442 }
13443
13444 // Enum values for rpc.message.type
13445 var (
13446 // sent
13447 // Stability: development
13448 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
13449 // received
13450 // Stability: development
13451 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
13452 )
13453
13454 // Enum values for rpc.system.name
13455 var (
13456 // [gRPC]
13457 // Stability: development
13458 //
13459 // [gRPC]: https://grpc.io/
13460 RPCSystemNameGRPC = RPCSystemNameKey.String("grpc")
13461 // [Apache Dubbo]
13462 // Stability: development
13463 //
13464 // [Apache Dubbo]: https://dubbo.apache.org/
13465 RPCSystemNameDubbo = RPCSystemNameKey.String("dubbo")
13466 // [Connect RPC]
13467 // Stability: development
13468 //
13469 // [Connect RPC]: https://connectrpc.com/
13470 RPCSystemNameConnectrpc = RPCSystemNameKey.String("connectrpc")
13471 // [JSON-RPC]
13472 // Stability: development
13473 //
13474 // [JSON-RPC]: https://www.jsonrpc.org/
13475 RPCSystemNameJSONRPC = RPCSystemNameKey.String("jsonrpc")
13476 )
13477
13478 // Namespace: security_rule
13479 const (
13480 // SecurityRuleCategoryKey is the attribute Key conforming to the
13481 // "security_rule.category" semantic conventions. It represents a categorization
13482 // value keyword used by the entity using the rule for detection of this event.
13483 //
13484 // Type: string
13485 // RequirementLevel: Recommended
13486 // Stability: Development
13487 //
13488 // Examples: "Attempted Information Leak"
13489 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
13490
13491 // SecurityRuleDescriptionKey is the attribute Key conforming to the
13492 // "security_rule.description" semantic conventions. It represents the
13493 // description of the rule generating the event.
13494 //
13495 // Type: string
13496 // RequirementLevel: Recommended
13497 // Stability: Development
13498 //
13499 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
13500 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
13501
13502 // SecurityRuleLicenseKey is the attribute Key conforming to the
13503 // "security_rule.license" semantic conventions. It represents the name of the
13504 // license under which the rule used to generate this event is made available.
13505 //
13506 // Type: string
13507 // RequirementLevel: Recommended
13508 // Stability: Development
13509 //
13510 // Examples: "Apache 2.0"
13511 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
13512
13513 // SecurityRuleNameKey is the attribute Key conforming to the
13514 // "security_rule.name" semantic conventions. It represents the name of the rule
13515 // or signature generating the event.
13516 //
13517 // Type: string
13518 // RequirementLevel: Recommended
13519 // Stability: Development
13520 //
13521 // Examples: "BLOCK_DNS_over_TLS"
13522 SecurityRuleNameKey = attribute.Key("security_rule.name")
13523
13524 // SecurityRuleReferenceKey is the attribute Key conforming to the
13525 // "security_rule.reference" semantic conventions. It represents the reference
13526 // URL to additional information about the rule used to generate this event.
13527 //
13528 // Type: string
13529 // RequirementLevel: Recommended
13530 // Stability: Development
13531 //
13532 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
13533 // Note: The URL can point to the vendor’s documentation about the rule. If
13534 // that’s not available, it can also be a link to a more general page
13535 // describing this type of alert.
13536 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
13537
13538 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
13539 // "security_rule.ruleset.name" semantic conventions. It represents the name of
13540 // the ruleset, policy, group, or parent category in which the rule used to
13541 // generate this event is a member.
13542 //
13543 // Type: string
13544 // RequirementLevel: Recommended
13545 // Stability: Development
13546 //
13547 // Examples: "Standard_Protocol_Filters"
13548 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
13549
13550 // SecurityRuleUUIDKey is the attribute Key conforming to the
13551 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
13552 // unique within the scope of a set or group of agents, observers, or other
13553 // entities using the rule for detection of this event.
13554 //
13555 // Type: string
13556 // RequirementLevel: Recommended
13557 // Stability: Development
13558 //
13559 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
13560 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
13561
13562 // SecurityRuleVersionKey is the attribute Key conforming to the
13563 // "security_rule.version" semantic conventions. It represents the version /
13564 // revision of the rule being used for analysis.
13565 //
13566 // Type: string
13567 // RequirementLevel: Recommended
13568 // Stability: Development
13569 //
13570 // Examples: "1.0.0"
13571 SecurityRuleVersionKey = attribute.Key("security_rule.version")
13572 )
13573
13574 // SecurityRuleCategory returns an attribute KeyValue conforming to the
13575 // "security_rule.category" semantic conventions. It represents a categorization
13576 // value keyword used by the entity using the rule for detection of this event.
13577 func SecurityRuleCategory(val string) attribute.KeyValue {
13578 return SecurityRuleCategoryKey.String(val)
13579 }
13580
13581 // SecurityRuleDescription returns an attribute KeyValue conforming to the
13582 // "security_rule.description" semantic conventions. It represents the
13583 // description of the rule generating the event.
13584 func SecurityRuleDescription(val string) attribute.KeyValue {
13585 return SecurityRuleDescriptionKey.String(val)
13586 }
13587
13588 // SecurityRuleLicense returns an attribute KeyValue conforming to the
13589 // "security_rule.license" semantic conventions. It represents the name of the
13590 // license under which the rule used to generate this event is made available.
13591 func SecurityRuleLicense(val string) attribute.KeyValue {
13592 return SecurityRuleLicenseKey.String(val)
13593 }
13594
13595 // SecurityRuleName returns an attribute KeyValue conforming to the
13596 // "security_rule.name" semantic conventions. It represents the name of the rule
13597 // or signature generating the event.
13598 func SecurityRuleName(val string) attribute.KeyValue {
13599 return SecurityRuleNameKey.String(val)
13600 }
13601
13602 // SecurityRuleReference returns an attribute KeyValue conforming to the
13603 // "security_rule.reference" semantic conventions. It represents the reference
13604 // URL to additional information about the rule used to generate this event.
13605 func SecurityRuleReference(val string) attribute.KeyValue {
13606 return SecurityRuleReferenceKey.String(val)
13607 }
13608
13609 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
13610 // "security_rule.ruleset.name" semantic conventions. It represents the name of
13611 // the ruleset, policy, group, or parent category in which the rule used to
13612 // generate this event is a member.
13613 func SecurityRuleRulesetName(val string) attribute.KeyValue {
13614 return SecurityRuleRulesetNameKey.String(val)
13615 }
13616
13617 // SecurityRuleUUID returns an attribute KeyValue conforming to the
13618 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
13619 // unique within the scope of a set or group of agents, observers, or other
13620 // entities using the rule for detection of this event.
13621 func SecurityRuleUUID(val string) attribute.KeyValue {
13622 return SecurityRuleUUIDKey.String(val)
13623 }
13624
13625 // SecurityRuleVersion returns an attribute KeyValue conforming to the
13626 // "security_rule.version" semantic conventions. It represents the version /
13627 // revision of the rule being used for analysis.
13628 func SecurityRuleVersion(val string) attribute.KeyValue {
13629 return SecurityRuleVersionKey.String(val)
13630 }
13631
13632 // Namespace: server
13633 const (
13634 // ServerAddressKey is the attribute Key conforming to the "server.address"
13635 // semantic conventions. It represents the server domain name if available
13636 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
13637 //
13638 // Type: string
13639 // RequirementLevel: Recommended
13640 // Stability: Stable
13641 //
13642 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
13643 // Note: When observed from the client side, and when communicating through an
13644 // intermediary, `server.address` SHOULD represent the server address behind any
13645 // intermediaries, for example proxies, if it's available.
13646 ServerAddressKey = attribute.Key("server.address")
13647
13648 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
13649 // conventions. It represents the server port number.
13650 //
13651 // Type: int
13652 // RequirementLevel: Recommended
13653 // Stability: Stable
13654 //
13655 // Examples: 80, 8080, 443
13656 // Note: When observed from the client side, and when communicating through an
13657 // intermediary, `server.port` SHOULD represent the server port behind any
13658 // intermediaries, for example proxies, if it's available.
13659 ServerPortKey = attribute.Key("server.port")
13660 )
13661
13662 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
13663 // semantic conventions. It represents the server domain name if available
13664 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
13665 func ServerAddress(val string) attribute.KeyValue {
13666 return ServerAddressKey.String(val)
13667 }
13668
13669 // ServerPort returns an attribute KeyValue conforming to the "server.port"
13670 // semantic conventions. It represents the server port number.
13671 func ServerPort(val int) attribute.KeyValue {
13672 return ServerPortKey.Int(val)
13673 }
13674
13675 // Namespace: service
13676 const (
13677 // ServiceInstanceIDKey is the attribute Key conforming to the
13678 // "service.instance.id" semantic conventions. It represents the string ID of
13679 // the service instance.
13680 //
13681 // Type: string
13682 // RequirementLevel: Recommended
13683 // Stability: Development
13684 //
13685 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
13686 // Note: MUST be unique for each instance of the same
13687 // `service.namespace,service.name` pair (in other words
13688 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
13689 // unique). The ID helps to
13690 // distinguish instances of the same service that exist at the same time (e.g.
13691 // instances of a horizontally scaled
13692 // service).
13693 //
13694 // Implementations, such as SDKs, are recommended to generate a random Version 1
13695 // or Version 4 [RFC
13696 // 4122] UUID, but are free to use an inherent unique ID as
13697 // the source of
13698 // this value if stability is desirable. In that case, the ID SHOULD be used as
13699 // source of a UUID Version 5 and
13700 // SHOULD use the following UUID as the namespace:
13701 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
13702 //
13703 // UUIDs are typically recommended, as only an opaque value for the purposes of
13704 // identifying a service instance is
13705 // needed. Similar to what can be seen in the man page for the
13706 // [`/etc/machine-id`] file, the underlying
13707 // data, such as pod name and namespace should be treated as confidential, being
13708 // the user's choice to expose it
13709 // or not via another resource attribute.
13710 //
13711 // For applications running behind an application server (like unicorn), we do
13712 // not recommend using one identifier
13713 // for all processes participating in the application. Instead, it's recommended
13714 // each division (e.g. a worker
13715 // thread in unicorn) to have its own instance.id.
13716 //
13717 // It's not recommended for a Collector to set `service.instance.id` if it can't
13718 // unambiguously determine the
13719 // service instance that is generating that telemetry. For instance, creating an
13720 // UUID based on `pod.name` will
13721 // likely be wrong, as the Collector might not know from which container within
13722 // that pod the telemetry originated.
13723 // However, Collectors can set the `service.instance.id` if they can
13724 // unambiguously determine the service instance
13725 // for that telemetry. This is typically the case for scraping receivers, as
13726 // they know the target address and
13727 // port.
13728 //
13729 // [RFC
13730 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
13731 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
13732 ServiceInstanceIDKey = attribute.Key("service.instance.id")
13733
13734 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
13735 // conventions. It represents the logical name of the service.
13736 //
13737 // Type: string
13738 // RequirementLevel: Recommended
13739 // Stability: Stable
13740 //
13741 // Examples: "shoppingcart"
13742 // Note: MUST be the same for all instances of horizontally scaled services. If
13743 // the value was not specified, SDKs MUST fallback to `unknown_service:`
13744 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
13745 // If `process.executable.name` is not available, the value MUST be set to
13746 // `unknown_service`.
13747 //
13748 // [`process.executable.name`]: process.md
13749 ServiceNameKey = attribute.Key("service.name")
13750
13751 // ServiceNamespaceKey is the attribute Key conforming to the
13752 // "service.namespace" semantic conventions. It represents a namespace for
13753 // `service.name`.
13754 //
13755 // Type: string
13756 // RequirementLevel: Recommended
13757 // Stability: Development
13758 //
13759 // Examples: "Shop"
13760 // Note: A string value having a meaning that helps to distinguish a group of
13761 // services, for example the team name that owns a group of services.
13762 // `service.name` is expected to be unique within the same namespace. If
13763 // `service.namespace` is not specified in the Resource then `service.name` is
13764 // expected to be unique for all services that have no explicit namespace
13765 // defined (so the empty/unspecified namespace is simply one more valid
13766 // namespace). Zero-length namespace string is assumed equal to unspecified
13767 // namespace.
13768 ServiceNamespaceKey = attribute.Key("service.namespace")
13769
13770 // ServicePeerNameKey is the attribute Key conforming to the "service.peer.name"
13771 // semantic conventions. It represents the logical name of the service on the
13772 // other side of the connection. SHOULD be equal to the actual [`service.name`]
13773 // resource attribute of the remote service if any.
13774 //
13775 // Type: string
13776 // RequirementLevel: Recommended
13777 // Stability: Development
13778 //
13779 // Examples: "shoppingcart"
13780 //
13781 // [`service.name`]: /docs/resource/README.md#service
13782 ServicePeerNameKey = attribute.Key("service.peer.name")
13783
13784 // ServicePeerNamespaceKey is the attribute Key conforming to the
13785 // "service.peer.namespace" semantic conventions. It represents the logical
13786 // namespace of the service on the other side of the connection. SHOULD be equal
13787 // to the actual [`service.namespace`] resource attribute of the remote service
13788 // if any.
13789 //
13790 // Type: string
13791 // RequirementLevel: Recommended
13792 // Stability: Development
13793 //
13794 // Examples: "Shop"
13795 //
13796 // [`service.namespace`]: /docs/resource/README.md#service
13797 ServicePeerNamespaceKey = attribute.Key("service.peer.namespace")
13798
13799 // ServiceVersionKey is the attribute Key conforming to the "service.version"
13800 // semantic conventions. It represents the version string of the service
13801 // component. The format is not defined by these conventions.
13802 //
13803 // Type: string
13804 // RequirementLevel: Recommended
13805 // Stability: Stable
13806 //
13807 // Examples: "2.0.0", "a01dbef8a"
13808 ServiceVersionKey = attribute.Key("service.version")
13809 )
13810
13811 // ServiceInstanceID returns an attribute KeyValue conforming to the
13812 // "service.instance.id" semantic conventions. It represents the string ID of the
13813 // service instance.
13814 func ServiceInstanceID(val string) attribute.KeyValue {
13815 return ServiceInstanceIDKey.String(val)
13816 }
13817
13818 // ServiceName returns an attribute KeyValue conforming to the "service.name"
13819 // semantic conventions. It represents the logical name of the service.
13820 func ServiceName(val string) attribute.KeyValue {
13821 return ServiceNameKey.String(val)
13822 }
13823
13824 // ServiceNamespace returns an attribute KeyValue conforming to the
13825 // "service.namespace" semantic conventions. It represents a namespace for
13826 // `service.name`.
13827 func ServiceNamespace(val string) attribute.KeyValue {
13828 return ServiceNamespaceKey.String(val)
13829 }
13830
13831 // ServicePeerName returns an attribute KeyValue conforming to the
13832 // "service.peer.name" semantic conventions. It represents the logical name of
13833 // the service on the other side of the connection. SHOULD be equal to the actual
13834 // [`service.name`] resource attribute of the remote service if any.
13835 //
13836 // [`service.name`]: /docs/resource/README.md#service
13837 func ServicePeerName(val string) attribute.KeyValue {
13838 return ServicePeerNameKey.String(val)
13839 }
13840
13841 // ServicePeerNamespace returns an attribute KeyValue conforming to the
13842 // "service.peer.namespace" semantic conventions. It represents the logical
13843 // namespace of the service on the other side of the connection. SHOULD be equal
13844 // to the actual [`service.namespace`] resource attribute of the remote service
13845 // if any.
13846 //
13847 // [`service.namespace`]: /docs/resource/README.md#service
13848 func ServicePeerNamespace(val string) attribute.KeyValue {
13849 return ServicePeerNamespaceKey.String(val)
13850 }
13851
13852 // ServiceVersion returns an attribute KeyValue conforming to the
13853 // "service.version" semantic conventions. It represents the version string of
13854 // the service component. The format is not defined by these conventions.
13855 func ServiceVersion(val string) attribute.KeyValue {
13856 return ServiceVersionKey.String(val)
13857 }
13858
13859 // Namespace: session
13860 const (
13861 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
13862 // conventions. It represents a unique id to identify a session.
13863 //
13864 // Type: string
13865 // RequirementLevel: Recommended
13866 // Stability: Development
13867 //
13868 // Examples: 00112233-4455-6677-8899-aabbccddeeff
13869 SessionIDKey = attribute.Key("session.id")
13870
13871 // SessionPreviousIDKey is the attribute Key conforming to the
13872 // "session.previous_id" semantic conventions. It represents the previous
13873 // `session.id` for this user, when known.
13874 //
13875 // Type: string
13876 // RequirementLevel: Recommended
13877 // Stability: Development
13878 //
13879 // Examples: 00112233-4455-6677-8899-aabbccddeeff
13880 SessionPreviousIDKey = attribute.Key("session.previous_id")
13881 )
13882
13883 // SessionID returns an attribute KeyValue conforming to the "session.id"
13884 // semantic conventions. It represents a unique id to identify a session.
13885 func SessionID(val string) attribute.KeyValue {
13886 return SessionIDKey.String(val)
13887 }
13888
13889 // SessionPreviousID returns an attribute KeyValue conforming to the
13890 // "session.previous_id" semantic conventions. It represents the previous
13891 // `session.id` for this user, when known.
13892 func SessionPreviousID(val string) attribute.KeyValue {
13893 return SessionPreviousIDKey.String(val)
13894 }
13895
13896 // Namespace: signalr
13897 const (
13898 // SignalRConnectionStatusKey is the attribute Key conforming to the
13899 // "signalr.connection.status" semantic conventions. It represents the signalR
13900 // HTTP connection closure status.
13901 //
13902 // Type: Enum
13903 // RequirementLevel: Recommended
13904 // Stability: Stable
13905 //
13906 // Examples: "app_shutdown", "timeout"
13907 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
13908
13909 // SignalRTransportKey is the attribute Key conforming to the
13910 // "signalr.transport" semantic conventions. It represents the
13911 // [SignalR transport type].
13912 //
13913 // Type: Enum
13914 // RequirementLevel: Recommended
13915 // Stability: Stable
13916 //
13917 // Examples: "web_sockets", "long_polling"
13918 //
13919 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
13920 SignalRTransportKey = attribute.Key("signalr.transport")
13921 )
13922
13923 // Enum values for signalr.connection.status
13924 var (
13925 // The connection was closed normally.
13926 // Stability: stable
13927 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
13928 // The connection was closed due to a timeout.
13929 // Stability: stable
13930 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
13931 // The connection was closed because the app is shutting down.
13932 // Stability: stable
13933 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
13934 )
13935
13936 // Enum values for signalr.transport
13937 var (
13938 // ServerSentEvents protocol
13939 // Stability: stable
13940 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
13941 // LongPolling protocol
13942 // Stability: stable
13943 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
13944 // WebSockets protocol
13945 // Stability: stable
13946 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
13947 )
13948
13949 // Namespace: source
13950 const (
13951 // SourceAddressKey is the attribute Key conforming to the "source.address"
13952 // semantic conventions. It represents the source address - domain name if
13953 // available without reverse DNS lookup; otherwise, IP address or Unix domain
13954 // socket name.
13955 //
13956 // Type: string
13957 // RequirementLevel: Recommended
13958 // Stability: Development
13959 //
13960 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
13961 // Note: When observed from the destination side, and when communicating through
13962 // an intermediary, `source.address` SHOULD represent the source address behind
13963 // any intermediaries, for example proxies, if it's available.
13964 SourceAddressKey = attribute.Key("source.address")
13965
13966 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
13967 // conventions. It represents the source port number.
13968 //
13969 // Type: int
13970 // RequirementLevel: Recommended
13971 // Stability: Development
13972 //
13973 // Examples: 3389, 2888
13974 SourcePortKey = attribute.Key("source.port")
13975 )
13976
13977 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
13978 // semantic conventions. It represents the source address - domain name if
13979 // available without reverse DNS lookup; otherwise, IP address or Unix domain
13980 // socket name.
13981 func SourceAddress(val string) attribute.KeyValue {
13982 return SourceAddressKey.String(val)
13983 }
13984
13985 // SourcePort returns an attribute KeyValue conforming to the "source.port"
13986 // semantic conventions. It represents the source port number.
13987 func SourcePort(val int) attribute.KeyValue {
13988 return SourcePortKey.Int(val)
13989 }
13990
13991 // Namespace: system
13992 const (
13993 // SystemDeviceKey is the attribute Key conforming to the "system.device"
13994 // semantic conventions. It represents the device identifier.
13995 //
13996 // Type: string
13997 // RequirementLevel: Recommended
13998 // Stability: Development
13999 //
14000 // Examples: "(identifier)"
14001 SystemDeviceKey = attribute.Key("system.device")
14002
14003 // SystemFilesystemModeKey is the attribute Key conforming to the
14004 // "system.filesystem.mode" semantic conventions. It represents the filesystem
14005 // mode.
14006 //
14007 // Type: string
14008 // RequirementLevel: Recommended
14009 // Stability: Development
14010 //
14011 // Examples: "rw, ro"
14012 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
14013
14014 // SystemFilesystemMountpointKey is the attribute Key conforming to the
14015 // "system.filesystem.mountpoint" semantic conventions. It represents the
14016 // filesystem mount path.
14017 //
14018 // Type: string
14019 // RequirementLevel: Recommended
14020 // Stability: Development
14021 //
14022 // Examples: "/mnt/data"
14023 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
14024
14025 // SystemFilesystemStateKey is the attribute Key conforming to the
14026 // "system.filesystem.state" semantic conventions. It represents the filesystem
14027 // state.
14028 //
14029 // Type: Enum
14030 // RequirementLevel: Recommended
14031 // Stability: Development
14032 //
14033 // Examples: "used"
14034 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
14035
14036 // SystemFilesystemTypeKey is the attribute Key conforming to the
14037 // "system.filesystem.type" semantic conventions. It represents the filesystem
14038 // type.
14039 //
14040 // Type: Enum
14041 // RequirementLevel: Recommended
14042 // Stability: Development
14043 //
14044 // Examples: "ext4"
14045 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
14046
14047 // SystemMemoryLinuxSlabStateKey is the attribute Key conforming to the
14048 // "system.memory.linux.slab.state" semantic conventions. It represents the
14049 // Linux Slab memory state.
14050 //
14051 // Type: Enum
14052 // RequirementLevel: Recommended
14053 // Stability: Development
14054 //
14055 // Examples: "reclaimable", "unreclaimable"
14056 SystemMemoryLinuxSlabStateKey = attribute.Key("system.memory.linux.slab.state")
14057
14058 // SystemMemoryStateKey is the attribute Key conforming to the
14059 // "system.memory.state" semantic conventions. It represents the memory state.
14060 //
14061 // Type: Enum
14062 // RequirementLevel: Recommended
14063 // Stability: Development
14064 //
14065 // Examples: "free", "cached"
14066 SystemMemoryStateKey = attribute.Key("system.memory.state")
14067
14068 // SystemPagingDirectionKey is the attribute Key conforming to the
14069 // "system.paging.direction" semantic conventions. It represents the paging
14070 // access direction.
14071 //
14072 // Type: Enum
14073 // RequirementLevel: Recommended
14074 // Stability: Development
14075 //
14076 // Examples: "in"
14077 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
14078
14079 // SystemPagingFaultTypeKey is the attribute Key conforming to the
14080 // "system.paging.fault.type" semantic conventions. It represents the paging
14081 // fault type.
14082 //
14083 // Type: Enum
14084 // RequirementLevel: Recommended
14085 // Stability: Development
14086 //
14087 // Examples: "minor"
14088 SystemPagingFaultTypeKey = attribute.Key("system.paging.fault.type")
14089
14090 // SystemPagingStateKey is the attribute Key conforming to the
14091 // "system.paging.state" semantic conventions. It represents the memory paging
14092 // state.
14093 //
14094 // Type: Enum
14095 // RequirementLevel: Recommended
14096 // Stability: Development
14097 //
14098 // Examples: "free"
14099 SystemPagingStateKey = attribute.Key("system.paging.state")
14100 )
14101
14102 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
14103 // semantic conventions. It represents the device identifier.
14104 func SystemDevice(val string) attribute.KeyValue {
14105 return SystemDeviceKey.String(val)
14106 }
14107
14108 // SystemFilesystemMode returns an attribute KeyValue conforming to the
14109 // "system.filesystem.mode" semantic conventions. It represents the filesystem
14110 // mode.
14111 func SystemFilesystemMode(val string) attribute.KeyValue {
14112 return SystemFilesystemModeKey.String(val)
14113 }
14114
14115 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
14116 // "system.filesystem.mountpoint" semantic conventions. It represents the
14117 // filesystem mount path.
14118 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
14119 return SystemFilesystemMountpointKey.String(val)
14120 }
14121
14122 // Enum values for system.filesystem.state
14123 var (
14124 // used
14125 // Stability: development
14126 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
14127 // free
14128 // Stability: development
14129 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
14130 // reserved
14131 // Stability: development
14132 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
14133 )
14134
14135 // Enum values for system.filesystem.type
14136 var (
14137 // fat32
14138 // Stability: development
14139 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
14140 // exfat
14141 // Stability: development
14142 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
14143 // ntfs
14144 // Stability: development
14145 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
14146 // refs
14147 // Stability: development
14148 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
14149 // hfsplus
14150 // Stability: development
14151 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
14152 // ext4
14153 // Stability: development
14154 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
14155 )
14156
14157 // Enum values for system.memory.linux.slab.state
14158 var (
14159 // reclaimable
14160 // Stability: development
14161 SystemMemoryLinuxSlabStateReclaimable = SystemMemoryLinuxSlabStateKey.String("reclaimable")
14162 // unreclaimable
14163 // Stability: development
14164 SystemMemoryLinuxSlabStateUnreclaimable = SystemMemoryLinuxSlabStateKey.String("unreclaimable")
14165 )
14166
14167 // Enum values for system.memory.state
14168 var (
14169 // Actual used virtual memory in bytes.
14170 // Stability: development
14171 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
14172 // free
14173 // Stability: development
14174 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
14175 // buffers
14176 // Stability: development
14177 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
14178 // cached
14179 // Stability: development
14180 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
14181 )
14182
14183 // Enum values for system.paging.direction
14184 var (
14185 // in
14186 // Stability: development
14187 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
14188 // out
14189 // Stability: development
14190 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
14191 )
14192
14193 // Enum values for system.paging.fault.type
14194 var (
14195 // major
14196 // Stability: development
14197 SystemPagingFaultTypeMajor = SystemPagingFaultTypeKey.String("major")
14198 // minor
14199 // Stability: development
14200 SystemPagingFaultTypeMinor = SystemPagingFaultTypeKey.String("minor")
14201 )
14202
14203 // Enum values for system.paging.state
14204 var (
14205 // used
14206 // Stability: development
14207 SystemPagingStateUsed = SystemPagingStateKey.String("used")
14208 // free
14209 // Stability: development
14210 SystemPagingStateFree = SystemPagingStateKey.String("free")
14211 )
14212
14213 // Namespace: telemetry
14214 const (
14215 // TelemetryDistroNameKey is the attribute Key conforming to the
14216 // "telemetry.distro.name" semantic conventions. It represents the name of the
14217 // auto instrumentation agent or distribution, if used.
14218 //
14219 // Type: string
14220 // RequirementLevel: Recommended
14221 // Stability: Development
14222 //
14223 // Examples: "parts-unlimited-java"
14224 // Note: Official auto instrumentation agents and distributions SHOULD set the
14225 // `telemetry.distro.name` attribute to
14226 // a string starting with `opentelemetry-`, e.g.
14227 // `opentelemetry-java-instrumentation`.
14228 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
14229
14230 // TelemetryDistroVersionKey is the attribute Key conforming to the
14231 // "telemetry.distro.version" semantic conventions. It represents the version
14232 // string of the auto instrumentation agent or distribution, if used.
14233 //
14234 // Type: string
14235 // RequirementLevel: Recommended
14236 // Stability: Development
14237 //
14238 // Examples: "1.2.3"
14239 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
14240
14241 // TelemetrySDKLanguageKey is the attribute Key conforming to the
14242 // "telemetry.sdk.language" semantic conventions. It represents the language of
14243 // the telemetry SDK.
14244 //
14245 // Type: Enum
14246 // RequirementLevel: Recommended
14247 // Stability: Stable
14248 //
14249 // Examples:
14250 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
14251
14252 // TelemetrySDKNameKey is the attribute Key conforming to the
14253 // "telemetry.sdk.name" semantic conventions. It represents the name of the
14254 // telemetry SDK as defined above.
14255 //
14256 // Type: string
14257 // RequirementLevel: Recommended
14258 // Stability: Stable
14259 //
14260 // Examples: "opentelemetry"
14261 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
14262 // `opentelemetry`.
14263 // If another SDK, like a fork or a vendor-provided implementation, is used,
14264 // this SDK MUST set the
14265 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
14266 // this SDK's main entry point
14267 // or another suitable identifier depending on the language.
14268 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
14269 // All custom identifiers SHOULD be stable across different versions of an
14270 // implementation.
14271 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
14272
14273 // TelemetrySDKVersionKey is the attribute Key conforming to the
14274 // "telemetry.sdk.version" semantic conventions. It represents the version
14275 // string of the telemetry SDK.
14276 //
14277 // Type: string
14278 // RequirementLevel: Recommended
14279 // Stability: Stable
14280 //
14281 // Examples: "1.2.3"
14282 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
14283 )
14284
14285 // TelemetryDistroName returns an attribute KeyValue conforming to the
14286 // "telemetry.distro.name" semantic conventions. It represents the name of the
14287 // auto instrumentation agent or distribution, if used.
14288 func TelemetryDistroName(val string) attribute.KeyValue {
14289 return TelemetryDistroNameKey.String(val)
14290 }
14291
14292 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
14293 // "telemetry.distro.version" semantic conventions. It represents the version
14294 // string of the auto instrumentation agent or distribution, if used.
14295 func TelemetryDistroVersion(val string) attribute.KeyValue {
14296 return TelemetryDistroVersionKey.String(val)
14297 }
14298
14299 // TelemetrySDKName returns an attribute KeyValue conforming to the
14300 // "telemetry.sdk.name" semantic conventions. It represents the name of the
14301 // telemetry SDK as defined above.
14302 func TelemetrySDKName(val string) attribute.KeyValue {
14303 return TelemetrySDKNameKey.String(val)
14304 }
14305
14306 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
14307 // "telemetry.sdk.version" semantic conventions. It represents the version string
14308 // of the telemetry SDK.
14309 func TelemetrySDKVersion(val string) attribute.KeyValue {
14310 return TelemetrySDKVersionKey.String(val)
14311 }
14312
14313 // Enum values for telemetry.sdk.language
14314 var (
14315 // cpp
14316 // Stability: stable
14317 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
14318 // dotnet
14319 // Stability: stable
14320 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
14321 // erlang
14322 // Stability: stable
14323 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
14324 // go
14325 // Stability: stable
14326 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
14327 // java
14328 // Stability: stable
14329 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
14330 // nodejs
14331 // Stability: stable
14332 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
14333 // php
14334 // Stability: stable
14335 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
14336 // python
14337 // Stability: stable
14338 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
14339 // ruby
14340 // Stability: stable
14341 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
14342 // rust
14343 // Stability: stable
14344 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
14345 // swift
14346 // Stability: stable
14347 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
14348 // webjs
14349 // Stability: stable
14350 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
14351 )
14352
14353 // Namespace: test
14354 const (
14355 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
14356 // semantic conventions. It represents the fully qualified human readable name
14357 // of the [test case].
14358 //
14359 // Type: string
14360 // RequirementLevel: Recommended
14361 // Stability: Development
14362 //
14363 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
14364 // "ExampleTestCase1_test1"
14365 //
14366 // [test case]: https://wikipedia.org/wiki/Test_case
14367 TestCaseNameKey = attribute.Key("test.case.name")
14368
14369 // TestCaseResultStatusKey is the attribute Key conforming to the
14370 // "test.case.result.status" semantic conventions. It represents the status of
14371 // the actual test case result from test execution.
14372 //
14373 // Type: Enum
14374 // RequirementLevel: Recommended
14375 // Stability: Development
14376 //
14377 // Examples: "pass", "fail"
14378 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
14379
14380 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
14381 // semantic conventions. It represents the human readable name of a [test suite]
14382 // .
14383 //
14384 // Type: string
14385 // RequirementLevel: Recommended
14386 // Stability: Development
14387 //
14388 // Examples: "TestSuite1"
14389 //
14390 // [test suite]: https://wikipedia.org/wiki/Test_suite
14391 TestSuiteNameKey = attribute.Key("test.suite.name")
14392
14393 // TestSuiteRunStatusKey is the attribute Key conforming to the
14394 // "test.suite.run.status" semantic conventions. It represents the status of the
14395 // test suite run.
14396 //
14397 // Type: Enum
14398 // RequirementLevel: Recommended
14399 // Stability: Development
14400 //
14401 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
14402 // "in_progress"
14403 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
14404 )
14405
14406 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
14407 // semantic conventions. It represents the fully qualified human readable name of
14408 // the [test case].
14409 //
14410 // [test case]: https://wikipedia.org/wiki/Test_case
14411 func TestCaseName(val string) attribute.KeyValue {
14412 return TestCaseNameKey.String(val)
14413 }
14414
14415 // TestSuiteName returns an attribute KeyValue conforming to the
14416 // "test.suite.name" semantic conventions. It represents the human readable name
14417 // of a [test suite].
14418 //
14419 // [test suite]: https://wikipedia.org/wiki/Test_suite
14420 func TestSuiteName(val string) attribute.KeyValue {
14421 return TestSuiteNameKey.String(val)
14422 }
14423
14424 // Enum values for test.case.result.status
14425 var (
14426 // pass
14427 // Stability: development
14428 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
14429 // fail
14430 // Stability: development
14431 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
14432 )
14433
14434 // Enum values for test.suite.run.status
14435 var (
14436 // success
14437 // Stability: development
14438 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
14439 // failure
14440 // Stability: development
14441 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
14442 // skipped
14443 // Stability: development
14444 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
14445 // aborted
14446 // Stability: development
14447 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
14448 // timed_out
14449 // Stability: development
14450 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
14451 // in_progress
14452 // Stability: development
14453 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
14454 )
14455
14456 // Namespace: thread
14457 const (
14458 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
14459 // conventions. It represents the current "managed" thread ID (as opposed to OS
14460 // thread ID).
14461 //
14462 // Type: int
14463 // RequirementLevel: Recommended
14464 // Stability: Development
14465 //
14466 // Note:
14467 // Examples of where the value can be extracted from:
14468 //
14469 // | Language or platform | Source |
14470 // | --- | --- |
14471 // | JVM | `Thread.currentThread().threadId()` |
14472 // | .NET | `Thread.CurrentThread.ManagedThreadId` |
14473 // | Python | `threading.current_thread().ident` |
14474 // | Ruby | `Thread.current.object_id` |
14475 // | C++ | `std::this_thread::get_id()` |
14476 // | Erlang | `erlang:self()` |
14477 ThreadIDKey = attribute.Key("thread.id")
14478
14479 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
14480 // conventions. It represents the current thread name.
14481 //
14482 // Type: string
14483 // RequirementLevel: Recommended
14484 // Stability: Development
14485 //
14486 // Examples: main
14487 // Note:
14488 // Examples of where the value can be extracted from:
14489 //
14490 // | Language or platform | Source |
14491 // | --- | --- |
14492 // | JVM | `Thread.currentThread().getName()` |
14493 // | .NET | `Thread.CurrentThread.Name` |
14494 // | Python | `threading.current_thread().name` |
14495 // | Ruby | `Thread.current.name` |
14496 // | Erlang | `erlang:process_info(self(), registered_name)` |
14497 ThreadNameKey = attribute.Key("thread.name")
14498 )
14499
14500 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
14501 // conventions. It represents the current "managed" thread ID (as opposed to OS
14502 // thread ID).
14503 func ThreadID(val int) attribute.KeyValue {
14504 return ThreadIDKey.Int(val)
14505 }
14506
14507 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
14508 // semantic conventions. It represents the current thread name.
14509 func ThreadName(val string) attribute.KeyValue {
14510 return ThreadNameKey.String(val)
14511 }
14512
14513 // Namespace: tls
14514 const (
14515 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
14516 // conventions. It represents the string indicating the [cipher] used during the
14517 // current connection.
14518 //
14519 // Type: string
14520 // RequirementLevel: Recommended
14521 // Stability: Development
14522 //
14523 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
14524 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
14525 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
14526 // of the [registered TLS Cipher Suits].
14527 //
14528 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
14529 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
14530 TLSCipherKey = attribute.Key("tls.cipher")
14531
14532 // TLSClientCertificateKey is the attribute Key conforming to the
14533 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
14534 // stand-alone certificate offered by the client. This is usually
14535 // mutually-exclusive of `client.certificate_chain` since this value also exists
14536 // in that list.
14537 //
14538 // Type: string
14539 // RequirementLevel: Recommended
14540 // Stability: Development
14541 //
14542 // Examples: "MII..."
14543 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
14544
14545 // TLSClientCertificateChainKey is the attribute Key conforming to the
14546 // "tls.client.certificate_chain" semantic conventions. It represents the array
14547 // of PEM-encoded certificates that make up the certificate chain offered by the
14548 // client. This is usually mutually-exclusive of `client.certificate` since that
14549 // value should be the first certificate in the chain.
14550 //
14551 // Type: string[]
14552 // RequirementLevel: Recommended
14553 // Stability: Development
14554 //
14555 // Examples: "MII...", "MI..."
14556 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
14557
14558 // TLSClientHashMd5Key is the attribute Key conforming to the
14559 // "tls.client.hash.md5" semantic conventions. It represents the certificate
14560 // fingerprint using the MD5 digest of DER-encoded version of certificate
14561 // offered by the client. For consistency with other hash values, this value
14562 // should be formatted as an uppercase hash.
14563 //
14564 // Type: string
14565 // RequirementLevel: Recommended
14566 // Stability: Development
14567 //
14568 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
14569 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
14570
14571 // TLSClientHashSha1Key is the attribute Key conforming to the
14572 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
14573 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14574 // offered by the client. For consistency with other hash values, this value
14575 // should be formatted as an uppercase hash.
14576 //
14577 // Type: string
14578 // RequirementLevel: Recommended
14579 // Stability: Development
14580 //
14581 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
14582 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
14583
14584 // TLSClientHashSha256Key is the attribute Key conforming to the
14585 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
14586 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14587 // offered by the client. For consistency with other hash values, this value
14588 // should be formatted as an uppercase hash.
14589 //
14590 // Type: string
14591 // RequirementLevel: Recommended
14592 // Stability: Development
14593 //
14594 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
14595 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
14596
14597 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
14598 // semantic conventions. It represents the distinguished name of [subject] of
14599 // the issuer of the x.509 certificate presented by the client.
14600 //
14601 // Type: string
14602 // RequirementLevel: Recommended
14603 // Stability: Development
14604 //
14605 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
14606 //
14607 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14608 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
14609
14610 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
14611 // semantic conventions. It represents a hash that identifies clients based on
14612 // how they perform an SSL/TLS handshake.
14613 //
14614 // Type: string
14615 // RequirementLevel: Recommended
14616 // Stability: Development
14617 //
14618 // Examples: "d4e5b18d6b55c71272893221c96ba240"
14619 TLSClientJa3Key = attribute.Key("tls.client.ja3")
14620
14621 // TLSClientNotAfterKey is the attribute Key conforming to the
14622 // "tls.client.not_after" semantic conventions. It represents the date/Time
14623 // indicating when client certificate is no longer considered valid.
14624 //
14625 // Type: string
14626 // RequirementLevel: Recommended
14627 // Stability: Development
14628 //
14629 // Examples: "2021-01-01T00:00:00.000Z"
14630 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
14631
14632 // TLSClientNotBeforeKey is the attribute Key conforming to the
14633 // "tls.client.not_before" semantic conventions. It represents the date/Time
14634 // indicating when client certificate is first considered valid.
14635 //
14636 // Type: string
14637 // RequirementLevel: Recommended
14638 // Stability: Development
14639 //
14640 // Examples: "1970-01-01T00:00:00.000Z"
14641 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
14642
14643 // TLSClientSubjectKey is the attribute Key conforming to the
14644 // "tls.client.subject" semantic conventions. It represents the distinguished
14645 // name of subject of the x.509 certificate presented by the client.
14646 //
14647 // Type: string
14648 // RequirementLevel: Recommended
14649 // Stability: Development
14650 //
14651 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
14652 TLSClientSubjectKey = attribute.Key("tls.client.subject")
14653
14654 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
14655 // "tls.client.supported_ciphers" semantic conventions. It represents the array
14656 // of ciphers offered by the client during the client hello.
14657 //
14658 // Type: string[]
14659 // RequirementLevel: Recommended
14660 // Stability: Development
14661 //
14662 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
14663 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
14664 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
14665
14666 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
14667 // conventions. It represents the string indicating the curve used for the given
14668 // cipher, when applicable.
14669 //
14670 // Type: string
14671 // RequirementLevel: Recommended
14672 // Stability: Development
14673 //
14674 // Examples: "secp256r1"
14675 TLSCurveKey = attribute.Key("tls.curve")
14676
14677 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
14678 // semantic conventions. It represents the boolean flag indicating if the TLS
14679 // negotiation was successful and transitioned to an encrypted tunnel.
14680 //
14681 // Type: boolean
14682 // RequirementLevel: Recommended
14683 // Stability: Development
14684 //
14685 // Examples: true
14686 TLSEstablishedKey = attribute.Key("tls.established")
14687
14688 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
14689 // semantic conventions. It represents the string indicating the protocol being
14690 // tunneled. Per the values in the [IANA registry], this string should be lower
14691 // case.
14692 //
14693 // Type: string
14694 // RequirementLevel: Recommended
14695 // Stability: Development
14696 //
14697 // Examples: "http/1.1"
14698 //
14699 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
14700 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
14701
14702 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
14703 // semantic conventions. It represents the normalized lowercase protocol name
14704 // parsed from original string of the negotiated [SSL/TLS protocol version].
14705 //
14706 // Type: Enum
14707 // RequirementLevel: Recommended
14708 // Stability: Development
14709 //
14710 // Examples:
14711 //
14712 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14713 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
14714
14715 // TLSProtocolVersionKey is the attribute Key conforming to the
14716 // "tls.protocol.version" semantic conventions. It represents the numeric part
14717 // of the version parsed from the original string of the negotiated
14718 // [SSL/TLS protocol version].
14719 //
14720 // Type: string
14721 // RequirementLevel: Recommended
14722 // Stability: Development
14723 //
14724 // Examples: "1.2", "3"
14725 //
14726 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14727 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
14728
14729 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
14730 // conventions. It represents the boolean flag indicating if this TLS connection
14731 // was resumed from an existing TLS negotiation.
14732 //
14733 // Type: boolean
14734 // RequirementLevel: Recommended
14735 // Stability: Development
14736 //
14737 // Examples: true
14738 TLSResumedKey = attribute.Key("tls.resumed")
14739
14740 // TLSServerCertificateKey is the attribute Key conforming to the
14741 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
14742 // stand-alone certificate offered by the server. This is usually
14743 // mutually-exclusive of `server.certificate_chain` since this value also exists
14744 // in that list.
14745 //
14746 // Type: string
14747 // RequirementLevel: Recommended
14748 // Stability: Development
14749 //
14750 // Examples: "MII..."
14751 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
14752
14753 // TLSServerCertificateChainKey is the attribute Key conforming to the
14754 // "tls.server.certificate_chain" semantic conventions. It represents the array
14755 // of PEM-encoded certificates that make up the certificate chain offered by the
14756 // server. This is usually mutually-exclusive of `server.certificate` since that
14757 // value should be the first certificate in the chain.
14758 //
14759 // Type: string[]
14760 // RequirementLevel: Recommended
14761 // Stability: Development
14762 //
14763 // Examples: "MII...", "MI..."
14764 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
14765
14766 // TLSServerHashMd5Key is the attribute Key conforming to the
14767 // "tls.server.hash.md5" semantic conventions. It represents the certificate
14768 // fingerprint using the MD5 digest of DER-encoded version of certificate
14769 // offered by the server. For consistency with other hash values, this value
14770 // should be formatted as an uppercase hash.
14771 //
14772 // Type: string
14773 // RequirementLevel: Recommended
14774 // Stability: Development
14775 //
14776 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
14777 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
14778
14779 // TLSServerHashSha1Key is the attribute Key conforming to the
14780 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
14781 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14782 // offered by the server. For consistency with other hash values, this value
14783 // should be formatted as an uppercase hash.
14784 //
14785 // Type: string
14786 // RequirementLevel: Recommended
14787 // Stability: Development
14788 //
14789 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
14790 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
14791
14792 // TLSServerHashSha256Key is the attribute Key conforming to the
14793 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
14794 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14795 // offered by the server. For consistency with other hash values, this value
14796 // should be formatted as an uppercase hash.
14797 //
14798 // Type: string
14799 // RequirementLevel: Recommended
14800 // Stability: Development
14801 //
14802 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
14803 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
14804
14805 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
14806 // semantic conventions. It represents the distinguished name of [subject] of
14807 // the issuer of the x.509 certificate presented by the client.
14808 //
14809 // Type: string
14810 // RequirementLevel: Recommended
14811 // Stability: Development
14812 //
14813 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
14814 //
14815 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14816 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
14817
14818 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
14819 // semantic conventions. It represents a hash that identifies servers based on
14820 // how they perform an SSL/TLS handshake.
14821 //
14822 // Type: string
14823 // RequirementLevel: Recommended
14824 // Stability: Development
14825 //
14826 // Examples: "d4e5b18d6b55c71272893221c96ba240"
14827 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
14828
14829 // TLSServerNotAfterKey is the attribute Key conforming to the
14830 // "tls.server.not_after" semantic conventions. It represents the date/Time
14831 // indicating when server certificate is no longer considered valid.
14832 //
14833 // Type: string
14834 // RequirementLevel: Recommended
14835 // Stability: Development
14836 //
14837 // Examples: "2021-01-01T00:00:00.000Z"
14838 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
14839
14840 // TLSServerNotBeforeKey is the attribute Key conforming to the
14841 // "tls.server.not_before" semantic conventions. It represents the date/Time
14842 // indicating when server certificate is first considered valid.
14843 //
14844 // Type: string
14845 // RequirementLevel: Recommended
14846 // Stability: Development
14847 //
14848 // Examples: "1970-01-01T00:00:00.000Z"
14849 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
14850
14851 // TLSServerSubjectKey is the attribute Key conforming to the
14852 // "tls.server.subject" semantic conventions. It represents the distinguished
14853 // name of subject of the x.509 certificate presented by the server.
14854 //
14855 // Type: string
14856 // RequirementLevel: Recommended
14857 // Stability: Development
14858 //
14859 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
14860 TLSServerSubjectKey = attribute.Key("tls.server.subject")
14861 )
14862
14863 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
14864 // semantic conventions. It represents the string indicating the [cipher] used
14865 // during the current connection.
14866 //
14867 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
14868 func TLSCipher(val string) attribute.KeyValue {
14869 return TLSCipherKey.String(val)
14870 }
14871
14872 // TLSClientCertificate returns an attribute KeyValue conforming to the
14873 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
14874 // stand-alone certificate offered by the client. This is usually
14875 // mutually-exclusive of `client.certificate_chain` since this value also exists
14876 // in that list.
14877 func TLSClientCertificate(val string) attribute.KeyValue {
14878 return TLSClientCertificateKey.String(val)
14879 }
14880
14881 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
14882 // "tls.client.certificate_chain" semantic conventions. It represents the array
14883 // of PEM-encoded certificates that make up the certificate chain offered by the
14884 // client. This is usually mutually-exclusive of `client.certificate` since that
14885 // value should be the first certificate in the chain.
14886 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
14887 return TLSClientCertificateChainKey.StringSlice(val)
14888 }
14889
14890 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
14891 // "tls.client.hash.md5" semantic conventions. It represents the certificate
14892 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
14893 // by the client. For consistency with other hash values, this value should be
14894 // formatted as an uppercase hash.
14895 func TLSClientHashMd5(val string) attribute.KeyValue {
14896 return TLSClientHashMd5Key.String(val)
14897 }
14898
14899 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
14900 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
14901 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14902 // offered by the client. For consistency with other hash values, this value
14903 // should be formatted as an uppercase hash.
14904 func TLSClientHashSha1(val string) attribute.KeyValue {
14905 return TLSClientHashSha1Key.String(val)
14906 }
14907
14908 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
14909 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
14910 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14911 // offered by the client. For consistency with other hash values, this value
14912 // should be formatted as an uppercase hash.
14913 func TLSClientHashSha256(val string) attribute.KeyValue {
14914 return TLSClientHashSha256Key.String(val)
14915 }
14916
14917 // TLSClientIssuer returns an attribute KeyValue conforming to the
14918 // "tls.client.issuer" semantic conventions. It represents the distinguished name
14919 // of [subject] of the issuer of the x.509 certificate presented by the client.
14920 //
14921 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14922 func TLSClientIssuer(val string) attribute.KeyValue {
14923 return TLSClientIssuerKey.String(val)
14924 }
14925
14926 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
14927 // semantic conventions. It represents a hash that identifies clients based on
14928 // how they perform an SSL/TLS handshake.
14929 func TLSClientJa3(val string) attribute.KeyValue {
14930 return TLSClientJa3Key.String(val)
14931 }
14932
14933 // TLSClientNotAfter returns an attribute KeyValue conforming to the
14934 // "tls.client.not_after" semantic conventions. It represents the date/Time
14935 // indicating when client certificate is no longer considered valid.
14936 func TLSClientNotAfter(val string) attribute.KeyValue {
14937 return TLSClientNotAfterKey.String(val)
14938 }
14939
14940 // TLSClientNotBefore returns an attribute KeyValue conforming to the
14941 // "tls.client.not_before" semantic conventions. It represents the date/Time
14942 // indicating when client certificate is first considered valid.
14943 func TLSClientNotBefore(val string) attribute.KeyValue {
14944 return TLSClientNotBeforeKey.String(val)
14945 }
14946
14947 // TLSClientSubject returns an attribute KeyValue conforming to the
14948 // "tls.client.subject" semantic conventions. It represents the distinguished
14949 // name of subject of the x.509 certificate presented by the client.
14950 func TLSClientSubject(val string) attribute.KeyValue {
14951 return TLSClientSubjectKey.String(val)
14952 }
14953
14954 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
14955 // "tls.client.supported_ciphers" semantic conventions. It represents the array
14956 // of ciphers offered by the client during the client hello.
14957 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
14958 return TLSClientSupportedCiphersKey.StringSlice(val)
14959 }
14960
14961 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
14962 // conventions. It represents the string indicating the curve used for the given
14963 // cipher, when applicable.
14964 func TLSCurve(val string) attribute.KeyValue {
14965 return TLSCurveKey.String(val)
14966 }
14967
14968 // TLSEstablished returns an attribute KeyValue conforming to the
14969 // "tls.established" semantic conventions. It represents the boolean flag
14970 // indicating if the TLS negotiation was successful and transitioned to an
14971 // encrypted tunnel.
14972 func TLSEstablished(val bool) attribute.KeyValue {
14973 return TLSEstablishedKey.Bool(val)
14974 }
14975
14976 // TLSNextProtocol returns an attribute KeyValue conforming to the
14977 // "tls.next_protocol" semantic conventions. It represents the string indicating
14978 // the protocol being tunneled. Per the values in the [IANA registry], this
14979 // string should be lower case.
14980 //
14981 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
14982 func TLSNextProtocol(val string) attribute.KeyValue {
14983 return TLSNextProtocolKey.String(val)
14984 }
14985
14986 // TLSProtocolVersion returns an attribute KeyValue conforming to the
14987 // "tls.protocol.version" semantic conventions. It represents the numeric part of
14988 // the version parsed from the original string of the negotiated
14989 // [SSL/TLS protocol version].
14990 //
14991 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14992 func TLSProtocolVersion(val string) attribute.KeyValue {
14993 return TLSProtocolVersionKey.String(val)
14994 }
14995
14996 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
14997 // semantic conventions. It represents the boolean flag indicating if this TLS
14998 // connection was resumed from an existing TLS negotiation.
14999 func TLSResumed(val bool) attribute.KeyValue {
15000 return TLSResumedKey.Bool(val)
15001 }
15002
15003 // TLSServerCertificate returns an attribute KeyValue conforming to the
15004 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
15005 // stand-alone certificate offered by the server. This is usually
15006 // mutually-exclusive of `server.certificate_chain` since this value also exists
15007 // in that list.
15008 func TLSServerCertificate(val string) attribute.KeyValue {
15009 return TLSServerCertificateKey.String(val)
15010 }
15011
15012 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
15013 // "tls.server.certificate_chain" semantic conventions. It represents the array
15014 // of PEM-encoded certificates that make up the certificate chain offered by the
15015 // server. This is usually mutually-exclusive of `server.certificate` since that
15016 // value should be the first certificate in the chain.
15017 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
15018 return TLSServerCertificateChainKey.StringSlice(val)
15019 }
15020
15021 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
15022 // "tls.server.hash.md5" semantic conventions. It represents the certificate
15023 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
15024 // by the server. For consistency with other hash values, this value should be
15025 // formatted as an uppercase hash.
15026 func TLSServerHashMd5(val string) attribute.KeyValue {
15027 return TLSServerHashMd5Key.String(val)
15028 }
15029
15030 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
15031 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
15032 // fingerprint using the SHA1 digest of DER-encoded version of certificate
15033 // offered by the server. For consistency with other hash values, this value
15034 // should be formatted as an uppercase hash.
15035 func TLSServerHashSha1(val string) attribute.KeyValue {
15036 return TLSServerHashSha1Key.String(val)
15037 }
15038
15039 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
15040 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
15041 // fingerprint using the SHA256 digest of DER-encoded version of certificate
15042 // offered by the server. For consistency with other hash values, this value
15043 // should be formatted as an uppercase hash.
15044 func TLSServerHashSha256(val string) attribute.KeyValue {
15045 return TLSServerHashSha256Key.String(val)
15046 }
15047
15048 // TLSServerIssuer returns an attribute KeyValue conforming to the
15049 // "tls.server.issuer" semantic conventions. It represents the distinguished name
15050 // of [subject] of the issuer of the x.509 certificate presented by the client.
15051 //
15052 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
15053 func TLSServerIssuer(val string) attribute.KeyValue {
15054 return TLSServerIssuerKey.String(val)
15055 }
15056
15057 // TLSServerJa3s returns an attribute KeyValue conforming to the
15058 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
15059 // servers based on how they perform an SSL/TLS handshake.
15060 func TLSServerJa3s(val string) attribute.KeyValue {
15061 return TLSServerJa3sKey.String(val)
15062 }
15063
15064 // TLSServerNotAfter returns an attribute KeyValue conforming to the
15065 // "tls.server.not_after" semantic conventions. It represents the date/Time
15066 // indicating when server certificate is no longer considered valid.
15067 func TLSServerNotAfter(val string) attribute.KeyValue {
15068 return TLSServerNotAfterKey.String(val)
15069 }
15070
15071 // TLSServerNotBefore returns an attribute KeyValue conforming to the
15072 // "tls.server.not_before" semantic conventions. It represents the date/Time
15073 // indicating when server certificate is first considered valid.
15074 func TLSServerNotBefore(val string) attribute.KeyValue {
15075 return TLSServerNotBeforeKey.String(val)
15076 }
15077
15078 // TLSServerSubject returns an attribute KeyValue conforming to the
15079 // "tls.server.subject" semantic conventions. It represents the distinguished
15080 // name of subject of the x.509 certificate presented by the server.
15081 func TLSServerSubject(val string) attribute.KeyValue {
15082 return TLSServerSubjectKey.String(val)
15083 }
15084
15085 // Enum values for tls.protocol.name
15086 var (
15087 // ssl
15088 // Stability: development
15089 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
15090 // tls
15091 // Stability: development
15092 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
15093 )
15094
15095 // Namespace: url
15096 const (
15097 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
15098 // conventions. It represents the domain extracted from the `url.full`, such as
15099 // "opentelemetry.io".
15100 //
15101 // Type: string
15102 // RequirementLevel: Recommended
15103 // Stability: Development
15104 //
15105 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
15106 // "[1080:0:0:0:8:800:200C:417A]"
15107 // Note: In some cases a URL may refer to an IP and/or port directly, without a
15108 // domain name. In this case, the IP address would go to the domain field. If
15109 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
15110 // and `]` characters should also be captured in the domain field.
15111 //
15112 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
15113 URLDomainKey = attribute.Key("url.domain")
15114
15115 // URLExtensionKey is the attribute Key conforming to the "url.extension"
15116 // semantic conventions. It represents the file extension extracted from the
15117 // `url.full`, excluding the leading dot.
15118 //
15119 // Type: string
15120 // RequirementLevel: Recommended
15121 // Stability: Development
15122 //
15123 // Examples: "png", "gz"
15124 // Note: The file extension is only set if it exists, as not every url has a
15125 // file extension. When the file name has multiple extensions `example.tar.gz`,
15126 // only the last one should be captured `gz`, not `tar.gz`.
15127 URLExtensionKey = attribute.Key("url.extension")
15128
15129 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
15130 // conventions. It represents the [URI fragment] component.
15131 //
15132 // Type: string
15133 // RequirementLevel: Recommended
15134 // Stability: Stable
15135 //
15136 // Examples: "SemConv"
15137 //
15138 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
15139 URLFragmentKey = attribute.Key("url.fragment")
15140
15141 // URLFullKey is the attribute Key conforming to the "url.full" semantic
15142 // conventions. It represents the absolute URL describing a network resource
15143 // according to [RFC3986].
15144 //
15145 // Type: string
15146 // RequirementLevel: Recommended
15147 // Stability: Stable
15148 //
15149 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
15150 // Note: For network calls, URL usually has
15151 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
15152 // is not transmitted over HTTP, but if it is known, it SHOULD be included
15153 // nevertheless.
15154 //
15155 // `url.full` MUST NOT contain credentials passed via URL in form of
15156 // `https://username:[email protected]/`.
15157 // In such case username and password SHOULD be redacted and attribute's value
15158 // SHOULD be `https://REDACTED:[email protected]/`.
15159 //
15160 // `url.full` SHOULD capture the absolute URL when it is available (or can be
15161 // reconstructed).
15162 //
15163 // Sensitive content provided in `url.full` SHOULD be scrubbed when
15164 // instrumentations can identify it.
15165 //
15166 //
15167 // Query string values for the following keys SHOULD be redacted by default and
15168 // replaced by the
15169 // value `REDACTED`:
15170 //
15171 // - [`AWSAccessKeyId`]
15172 // - [`Signature`]
15173 // - [`sig`]
15174 // - [`X-Goog-Signature`]
15175 //
15176 // This list is subject to change over time.
15177 //
15178 // When a query string value is redacted, the query string key SHOULD still be
15179 // preserved, e.g.
15180 // `https://www.example.com/path?color=blue&sig=REDACTED`.
15181 //
15182 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
15183 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15184 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15185 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
15186 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
15187 URLFullKey = attribute.Key("url.full")
15188
15189 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
15190 // conventions. It represents the unmodified original URL as seen in the event
15191 // source.
15192 //
15193 // Type: string
15194 // RequirementLevel: Recommended
15195 // Stability: Development
15196 //
15197 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
15198 // "search?q=OpenTelemetry"
15199 // Note: In network monitoring, the observed URL may be a full URL, whereas in
15200 // access logs, the URL is often just represented as a path. This field is meant
15201 // to represent the URL as it was observed, complete or not.
15202 // `url.original` might contain credentials passed via URL in form of
15203 // `https://username:[email protected]/`. In such case password and
15204 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
15205 URLOriginalKey = attribute.Key("url.original")
15206
15207 // URLPathKey is the attribute Key conforming to the "url.path" semantic
15208 // conventions. It represents the [URI path] component.
15209 //
15210 // Type: string
15211 // RequirementLevel: Recommended
15212 // Stability: Stable
15213 //
15214 // Examples: "/search"
15215 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
15216 // instrumentations can identify it.
15217 //
15218 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
15219 URLPathKey = attribute.Key("url.path")
15220
15221 // URLPortKey is the attribute Key conforming to the "url.port" semantic
15222 // conventions. It represents the port extracted from the `url.full`.
15223 //
15224 // Type: int
15225 // RequirementLevel: Recommended
15226 // Stability: Development
15227 //
15228 // Examples: 443
15229 URLPortKey = attribute.Key("url.port")
15230
15231 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
15232 // conventions. It represents the [URI query] component.
15233 //
15234 // Type: string
15235 // RequirementLevel: Recommended
15236 // Stability: Stable
15237 //
15238 // Examples: "q=OpenTelemetry"
15239 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
15240 // instrumentations can identify it.
15241 //
15242 //
15243 // Query string values for the following keys SHOULD be redacted by default and
15244 // replaced by the value `REDACTED`:
15245 //
15246 // - [`AWSAccessKeyId`]
15247 // - [`Signature`]
15248 // - [`sig`]
15249 // - [`X-Goog-Signature`]
15250 //
15251 // This list is subject to change over time.
15252 //
15253 // When a query string value is redacted, the query string key SHOULD still be
15254 // preserved, e.g.
15255 // `q=OpenTelemetry&sig=REDACTED`.
15256 //
15257 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
15258 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15259 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15260 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
15261 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
15262 URLQueryKey = attribute.Key("url.query")
15263
15264 // URLRegisteredDomainKey is the attribute Key conforming to the
15265 // "url.registered_domain" semantic conventions. It represents the highest
15266 // registered url domain, stripped of the subdomain.
15267 //
15268 // Type: string
15269 // RequirementLevel: Recommended
15270 // Stability: Development
15271 //
15272 // Examples: "example.com", "foo.co.uk"
15273 // Note: This value can be determined precisely with the [public suffix list].
15274 // For example, the registered domain for `foo.example.com` is `example.com`.
15275 // Trying to approximate this by simply taking the last two labels will not work
15276 // well for TLDs such as `co.uk`.
15277 //
15278 // [public suffix list]: https://publicsuffix.org/
15279 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
15280
15281 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
15282 // conventions. It represents the [URI scheme] component identifying the used
15283 // protocol.
15284 //
15285 // Type: string
15286 // RequirementLevel: Recommended
15287 // Stability: Stable
15288 //
15289 // Examples: "https", "ftp", "telnet"
15290 //
15291 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
15292 URLSchemeKey = attribute.Key("url.scheme")
15293
15294 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
15295 // semantic conventions. It represents the subdomain portion of a fully
15296 // qualified domain name includes all of the names except the host name under
15297 // the registered_domain. In a partially qualified domain, or if the
15298 // qualification level of the full name cannot be determined, subdomain contains
15299 // all of the names below the registered domain.
15300 //
15301 // Type: string
15302 // RequirementLevel: Recommended
15303 // Stability: Development
15304 //
15305 // Examples: "east", "sub2.sub1"
15306 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
15307 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
15308 // subdomain field should contain `sub2.sub1`, with no trailing period.
15309 URLSubdomainKey = attribute.Key("url.subdomain")
15310
15311 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
15312 // conventions. It represents the low-cardinality template of an
15313 // [absolute path reference].
15314 //
15315 // Type: string
15316 // RequirementLevel: Recommended
15317 // Stability: Development
15318 //
15319 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
15320 //
15321 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
15322 URLTemplateKey = attribute.Key("url.template")
15323
15324 // URLTopLevelDomainKey is the attribute Key conforming to the
15325 // "url.top_level_domain" semantic conventions. It represents the effective top
15326 // level domain (eTLD), also known as the domain suffix, is the last part of the
15327 // domain name. For example, the top level domain for example.com is `com`.
15328 //
15329 // Type: string
15330 // RequirementLevel: Recommended
15331 // Stability: Development
15332 //
15333 // Examples: "com", "co.uk"
15334 // Note: This value can be determined precisely with the [public suffix list].
15335 //
15336 // [public suffix list]: https://publicsuffix.org/
15337 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
15338 )
15339
15340 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
15341 // semantic conventions. It represents the domain extracted from the `url.full`,
15342 // such as "opentelemetry.io".
15343 func URLDomain(val string) attribute.KeyValue {
15344 return URLDomainKey.String(val)
15345 }
15346
15347 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
15348 // semantic conventions. It represents the file extension extracted from the
15349 // `url.full`, excluding the leading dot.
15350 func URLExtension(val string) attribute.KeyValue {
15351 return URLExtensionKey.String(val)
15352 }
15353
15354 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
15355 // semantic conventions. It represents the [URI fragment] component.
15356 //
15357 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
15358 func URLFragment(val string) attribute.KeyValue {
15359 return URLFragmentKey.String(val)
15360 }
15361
15362 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
15363 // conventions. It represents the absolute URL describing a network resource
15364 // according to [RFC3986].
15365 //
15366 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
15367 func URLFull(val string) attribute.KeyValue {
15368 return URLFullKey.String(val)
15369 }
15370
15371 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
15372 // semantic conventions. It represents the unmodified original URL as seen in the
15373 // event source.
15374 func URLOriginal(val string) attribute.KeyValue {
15375 return URLOriginalKey.String(val)
15376 }
15377
15378 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
15379 // conventions. It represents the [URI path] component.
15380 //
15381 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
15382 func URLPath(val string) attribute.KeyValue {
15383 return URLPathKey.String(val)
15384 }
15385
15386 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
15387 // conventions. It represents the port extracted from the `url.full`.
15388 func URLPort(val int) attribute.KeyValue {
15389 return URLPortKey.Int(val)
15390 }
15391
15392 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
15393 // conventions. It represents the [URI query] component.
15394 //
15395 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
15396 func URLQuery(val string) attribute.KeyValue {
15397 return URLQueryKey.String(val)
15398 }
15399
15400 // URLRegisteredDomain returns an attribute KeyValue conforming to the
15401 // "url.registered_domain" semantic conventions. It represents the highest
15402 // registered url domain, stripped of the subdomain.
15403 func URLRegisteredDomain(val string) attribute.KeyValue {
15404 return URLRegisteredDomainKey.String(val)
15405 }
15406
15407 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
15408 // semantic conventions. It represents the [URI scheme] component identifying the
15409 // used protocol.
15410 //
15411 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
15412 func URLScheme(val string) attribute.KeyValue {
15413 return URLSchemeKey.String(val)
15414 }
15415
15416 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
15417 // semantic conventions. It represents the subdomain portion of a fully qualified
15418 // domain name includes all of the names except the host name under the
15419 // registered_domain. In a partially qualified domain, or if the qualification
15420 // level of the full name cannot be determined, subdomain contains all of the
15421 // names below the registered domain.
15422 func URLSubdomain(val string) attribute.KeyValue {
15423 return URLSubdomainKey.String(val)
15424 }
15425
15426 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
15427 // semantic conventions. It represents the low-cardinality template of an
15428 // [absolute path reference].
15429 //
15430 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
15431 func URLTemplate(val string) attribute.KeyValue {
15432 return URLTemplateKey.String(val)
15433 }
15434
15435 // URLTopLevelDomain returns an attribute KeyValue conforming to the
15436 // "url.top_level_domain" semantic conventions. It represents the effective top
15437 // level domain (eTLD), also known as the domain suffix, is the last part of the
15438 // domain name. For example, the top level domain for example.com is `com`.
15439 func URLTopLevelDomain(val string) attribute.KeyValue {
15440 return URLTopLevelDomainKey.String(val)
15441 }
15442
15443 // Namespace: user
15444 const (
15445 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
15446 // conventions. It represents the user email address.
15447 //
15448 // Type: string
15449 // RequirementLevel: Recommended
15450 // Stability: Development
15451 //
15452 // Examples: "[email protected]"
15453 UserEmailKey = attribute.Key("user.email")
15454
15455 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
15456 // semantic conventions. It represents the user's full name.
15457 //
15458 // Type: string
15459 // RequirementLevel: Recommended
15460 // Stability: Development
15461 //
15462 // Examples: "Albert Einstein"
15463 UserFullNameKey = attribute.Key("user.full_name")
15464
15465 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
15466 // conventions. It represents the unique user hash to correlate information for
15467 // a user in anonymized form.
15468 //
15469 // Type: string
15470 // RequirementLevel: Recommended
15471 // Stability: Development
15472 //
15473 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
15474 // Note: Useful if `user.id` or `user.name` contain confidential information and
15475 // cannot be used.
15476 UserHashKey = attribute.Key("user.hash")
15477
15478 // UserIDKey is the attribute Key conforming to the "user.id" semantic
15479 // conventions. It represents the unique identifier of the user.
15480 //
15481 // Type: string
15482 // RequirementLevel: Recommended
15483 // Stability: Development
15484 //
15485 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
15486 UserIDKey = attribute.Key("user.id")
15487
15488 // UserNameKey is the attribute Key conforming to the "user.name" semantic
15489 // conventions. It represents the short name or login/username of the user.
15490 //
15491 // Type: string
15492 // RequirementLevel: Recommended
15493 // Stability: Development
15494 //
15495 // Examples: "a.einstein"
15496 UserNameKey = attribute.Key("user.name")
15497
15498 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
15499 // conventions. It represents the array of user roles at the time of the event.
15500 //
15501 // Type: string[]
15502 // RequirementLevel: Recommended
15503 // Stability: Development
15504 //
15505 // Examples: "admin", "reporting_user"
15506 UserRolesKey = attribute.Key("user.roles")
15507 )
15508
15509 // UserEmail returns an attribute KeyValue conforming to the "user.email"
15510 // semantic conventions. It represents the user email address.
15511 func UserEmail(val string) attribute.KeyValue {
15512 return UserEmailKey.String(val)
15513 }
15514
15515 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
15516 // semantic conventions. It represents the user's full name.
15517 func UserFullName(val string) attribute.KeyValue {
15518 return UserFullNameKey.String(val)
15519 }
15520
15521 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
15522 // conventions. It represents the unique user hash to correlate information for a
15523 // user in anonymized form.
15524 func UserHash(val string) attribute.KeyValue {
15525 return UserHashKey.String(val)
15526 }
15527
15528 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
15529 // conventions. It represents the unique identifier of the user.
15530 func UserID(val string) attribute.KeyValue {
15531 return UserIDKey.String(val)
15532 }
15533
15534 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
15535 // conventions. It represents the short name or login/username of the user.
15536 func UserName(val string) attribute.KeyValue {
15537 return UserNameKey.String(val)
15538 }
15539
15540 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
15541 // semantic conventions. It represents the array of user roles at the time of the
15542 // event.
15543 func UserRoles(val ...string) attribute.KeyValue {
15544 return UserRolesKey.StringSlice(val)
15545 }
15546
15547 // Namespace: user_agent
15548 const (
15549 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
15550 // semantic conventions. It represents the name of the user-agent extracted from
15551 // original. Usually refers to the browser's name.
15552 //
15553 // Type: string
15554 // RequirementLevel: Recommended
15555 // Stability: Development
15556 //
15557 // Examples: "Safari", "YourApp"
15558 // Note: [Example] of extracting browser's name from original string. In the
15559 // case of using a user-agent for non-browser products, such as microservices
15560 // with multiple names/versions inside the `user_agent.original`, the most
15561 // significant name SHOULD be selected. In such a scenario it should align with
15562 // `user_agent.version`
15563 //
15564 // [Example]: https://uaparser.dev/#demo
15565 UserAgentNameKey = attribute.Key("user_agent.name")
15566
15567 // UserAgentOriginalKey is the attribute Key conforming to the
15568 // "user_agent.original" semantic conventions. It represents the value of the
15569 // [HTTP User-Agent] header sent by the client.
15570 //
15571 // Type: string
15572 // RequirementLevel: Recommended
15573 // Stability: Stable
15574 //
15575 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
15576 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
15577 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
15578 // grpc-java-okhttp/1.27.2"
15579 //
15580 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
15581 UserAgentOriginalKey = attribute.Key("user_agent.original")
15582
15583 // UserAgentOSNameKey is the attribute Key conforming to the
15584 // "user_agent.os.name" semantic conventions. It represents the human readable
15585 // operating system name.
15586 //
15587 // Type: string
15588 // RequirementLevel: Recommended
15589 // Stability: Development
15590 //
15591 // Examples: "iOS", "Android", "Ubuntu"
15592 // Note: For mapping user agent strings to OS names, libraries such as
15593 // [ua-parser] can be utilized.
15594 //
15595 // [ua-parser]: https://github.com/ua-parser
15596 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
15597
15598 // UserAgentOSVersionKey is the attribute Key conforming to the
15599 // "user_agent.os.version" semantic conventions. It represents the version
15600 // string of the operating system as defined in [Version Attributes].
15601 //
15602 // Type: string
15603 // RequirementLevel: Recommended
15604 // Stability: Development
15605 //
15606 // Examples: "14.2.1", "18.04.1"
15607 // Note: For mapping user agent strings to OS versions, libraries such as
15608 // [ua-parser] can be utilized.
15609 //
15610 // [Version Attributes]: /docs/resource/README.md#version-attributes
15611 // [ua-parser]: https://github.com/ua-parser
15612 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
15613
15614 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
15615 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
15616 // the category of synthetic traffic, such as tests or bots.
15617 //
15618 // Type: Enum
15619 // RequirementLevel: Recommended
15620 // Stability: Development
15621 //
15622 // Examples:
15623 // Note: This attribute MAY be derived from the contents of the
15624 // `user_agent.original` attribute. Components that populate the attribute are
15625 // responsible for determining what they consider to be synthetic bot or test
15626 // traffic. This attribute can either be set for self-identification purposes,
15627 // or on telemetry detected to be generated as a result of a synthetic request.
15628 // This attribute is useful for distinguishing between genuine client traffic
15629 // and synthetic traffic generated by bots or tests.
15630 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
15631
15632 // UserAgentVersionKey is the attribute Key conforming to the
15633 // "user_agent.version" semantic conventions. It represents the version of the
15634 // user-agent extracted from original. Usually refers to the browser's version.
15635 //
15636 // Type: string
15637 // RequirementLevel: Recommended
15638 // Stability: Development
15639 //
15640 // Examples: "14.1.2", "1.0.0"
15641 // Note: [Example] of extracting browser's version from original string. In the
15642 // case of using a user-agent for non-browser products, such as microservices
15643 // with multiple names/versions inside the `user_agent.original`, the most
15644 // significant version SHOULD be selected. In such a scenario it should align
15645 // with `user_agent.name`
15646 //
15647 // [Example]: https://uaparser.dev/#demo
15648 UserAgentVersionKey = attribute.Key("user_agent.version")
15649 )
15650
15651 // UserAgentName returns an attribute KeyValue conforming to the
15652 // "user_agent.name" semantic conventions. It represents the name of the
15653 // user-agent extracted from original. Usually refers to the browser's name.
15654 func UserAgentName(val string) attribute.KeyValue {
15655 return UserAgentNameKey.String(val)
15656 }
15657
15658 // UserAgentOriginal returns an attribute KeyValue conforming to the
15659 // "user_agent.original" semantic conventions. It represents the value of the
15660 // [HTTP User-Agent] header sent by the client.
15661 //
15662 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
15663 func UserAgentOriginal(val string) attribute.KeyValue {
15664 return UserAgentOriginalKey.String(val)
15665 }
15666
15667 // UserAgentOSName returns an attribute KeyValue conforming to the
15668 // "user_agent.os.name" semantic conventions. It represents the human readable
15669 // operating system name.
15670 func UserAgentOSName(val string) attribute.KeyValue {
15671 return UserAgentOSNameKey.String(val)
15672 }
15673
15674 // UserAgentOSVersion returns an attribute KeyValue conforming to the
15675 // "user_agent.os.version" semantic conventions. It represents the version string
15676 // of the operating system as defined in [Version Attributes].
15677 //
15678 // [Version Attributes]: /docs/resource/README.md#version-attributes
15679 func UserAgentOSVersion(val string) attribute.KeyValue {
15680 return UserAgentOSVersionKey.String(val)
15681 }
15682
15683 // UserAgentVersion returns an attribute KeyValue conforming to the
15684 // "user_agent.version" semantic conventions. It represents the version of the
15685 // user-agent extracted from original. Usually refers to the browser's version.
15686 func UserAgentVersion(val string) attribute.KeyValue {
15687 return UserAgentVersionKey.String(val)
15688 }
15689
15690 // Enum values for user_agent.synthetic.type
15691 var (
15692 // Bot source.
15693 // Stability: development
15694 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
15695 // Synthetic test source.
15696 // Stability: development
15697 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
15698 )
15699
15700 // Namespace: vcs
15701 const (
15702 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
15703 // semantic conventions. It represents the ID of the change (pull request/merge
15704 // request/changelist) if applicable. This is usually a unique (within
15705 // repository) identifier generated by the VCS system.
15706 //
15707 // Type: string
15708 // RequirementLevel: Recommended
15709 // Stability: Development
15710 //
15711 // Examples: "123"
15712 VCSChangeIDKey = attribute.Key("vcs.change.id")
15713
15714 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
15715 // semantic conventions. It represents the state of the change (pull
15716 // request/merge request/changelist).
15717 //
15718 // Type: Enum
15719 // RequirementLevel: Recommended
15720 // Stability: Development
15721 //
15722 // Examples: "open", "closed", "merged"
15723 VCSChangeStateKey = attribute.Key("vcs.change.state")
15724
15725 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
15726 // semantic conventions. It represents the human readable title of the change
15727 // (pull request/merge request/changelist). This title is often a brief summary
15728 // of the change and may get merged in to a ref as the commit summary.
15729 //
15730 // Type: string
15731 // RequirementLevel: Recommended
15732 // Stability: Development
15733 //
15734 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
15735 // dependency"
15736 VCSChangeTitleKey = attribute.Key("vcs.change.title")
15737
15738 // VCSLineChangeTypeKey is the attribute Key conforming to the
15739 // "vcs.line_change.type" semantic conventions. It represents the type of line
15740 // change being measured on a branch or change.
15741 //
15742 // Type: Enum
15743 // RequirementLevel: Recommended
15744 // Stability: Development
15745 //
15746 // Examples: "added", "removed"
15747 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
15748
15749 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
15750 // semantic conventions. It represents the group owner within the version
15751 // control system.
15752 //
15753 // Type: string
15754 // RequirementLevel: Recommended
15755 // Stability: Development
15756 //
15757 // Examples: "my-org", "myteam", "business-unit"
15758 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
15759
15760 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
15761 // semantic conventions. It represents the name of the version control system
15762 // provider.
15763 //
15764 // Type: Enum
15765 // RequirementLevel: Recommended
15766 // Stability: Development
15767 //
15768 // Examples: "github", "gitlab", "gitea", "bitbucket"
15769 VCSProviderNameKey = attribute.Key("vcs.provider.name")
15770
15771 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
15772 // semantic conventions. It represents the name of the [reference] such as
15773 // **branch** or **tag** in the repository.
15774 //
15775 // Type: string
15776 // RequirementLevel: Recommended
15777 // Stability: Development
15778 //
15779 // Examples: "my-feature-branch", "tag-1-test"
15780 // Note: `base` refers to the starting point of a change. For example, `main`
15781 // would be the base reference of type branch if you've created a new
15782 // reference of type branch from it and created new commits.
15783 //
15784 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15785 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
15786
15787 // VCSRefBaseRevisionKey is the attribute Key conforming to the
15788 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
15789 // literally [revised version], The revision most often refers to a commit
15790 // object in Git, or a revision number in SVN.
15791 //
15792 // Type: string
15793 // RequirementLevel: Recommended
15794 // Stability: Development
15795 //
15796 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
15797 // "main", "123", "HEAD"
15798 // Note: `base` refers to the starting point of a change. For example, `main`
15799 // would be the base reference of type branch if you've created a new
15800 // reference of type branch from it and created new commits. The
15801 // revision can be a full [hash value (see
15802 // glossary)],
15803 // of the recorded change to a ref within a repository pointing to a
15804 // commit [commit] object. It does
15805 // not necessarily have to be a hash; it can simply define a [revision
15806 // number]
15807 // which is an integer that is monotonically increasing. In cases where
15808 // it is identical to the `ref.base.name`, it SHOULD still be included.
15809 // It is up to the implementer to decide which value to set as the
15810 // revision based on the VCS system and situational context.
15811 //
15812 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15813 // [hash value (see
15814 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
15815 // [commit]: https://git-scm.com/docs/git-commit
15816 // [revision
15817 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
15818 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
15819
15820 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
15821 // semantic conventions. It represents the type of the [reference] in the
15822 // repository.
15823 //
15824 // Type: Enum
15825 // RequirementLevel: Recommended
15826 // Stability: Development
15827 //
15828 // Examples: "branch", "tag"
15829 // Note: `base` refers to the starting point of a change. For example, `main`
15830 // would be the base reference of type branch if you've created a new
15831 // reference of type branch from it and created new commits.
15832 //
15833 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15834 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
15835
15836 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
15837 // semantic conventions. It represents the name of the [reference] such as
15838 // **branch** or **tag** in the repository.
15839 //
15840 // Type: string
15841 // RequirementLevel: Recommended
15842 // Stability: Development
15843 //
15844 // Examples: "my-feature-branch", "tag-1-test"
15845 // Note: `head` refers to where you are right now; the current reference at a
15846 // given time.
15847 //
15848 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15849 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
15850
15851 // VCSRefHeadRevisionKey is the attribute Key conforming to the
15852 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
15853 // literally [revised version], The revision most often refers to a commit
15854 // object in Git, or a revision number in SVN.
15855 //
15856 // Type: string
15857 // RequirementLevel: Recommended
15858 // Stability: Development
15859 //
15860 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
15861 // "main", "123", "HEAD"
15862 // Note: `head` refers to where you are right now; the current reference at a
15863 // given time.The revision can be a full [hash value (see
15864 // glossary)],
15865 // of the recorded change to a ref within a repository pointing to a
15866 // commit [commit] object. It does
15867 // not necessarily have to be a hash; it can simply define a [revision
15868 // number]
15869 // which is an integer that is monotonically increasing. In cases where
15870 // it is identical to the `ref.head.name`, it SHOULD still be included.
15871 // It is up to the implementer to decide which value to set as the
15872 // revision based on the VCS system and situational context.
15873 //
15874 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15875 // [hash value (see
15876 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
15877 // [commit]: https://git-scm.com/docs/git-commit
15878 // [revision
15879 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
15880 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
15881
15882 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
15883 // semantic conventions. It represents the type of the [reference] in the
15884 // repository.
15885 //
15886 // Type: Enum
15887 // RequirementLevel: Recommended
15888 // Stability: Development
15889 //
15890 // Examples: "branch", "tag"
15891 // Note: `head` refers to where you are right now; the current reference at a
15892 // given time.
15893 //
15894 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15895 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
15896
15897 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
15898 // conventions. It represents the type of the [reference] in the repository.
15899 //
15900 // Type: Enum
15901 // RequirementLevel: Recommended
15902 // Stability: Development
15903 //
15904 // Examples: "branch", "tag"
15905 //
15906 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15907 VCSRefTypeKey = attribute.Key("vcs.ref.type")
15908
15909 // VCSRepositoryNameKey is the attribute Key conforming to the
15910 // "vcs.repository.name" semantic conventions. It represents the human readable
15911 // name of the repository. It SHOULD NOT include any additional identifier like
15912 // Group/SubGroup in GitLab or organization in GitHub.
15913 //
15914 // Type: string
15915 // RequirementLevel: Recommended
15916 // Stability: Development
15917 //
15918 // Examples: "semantic-conventions", "my-cool-repo"
15919 // Note: Due to it only being the name, it can clash with forks of the same
15920 // repository if collecting telemetry across multiple orgs or groups in
15921 // the same backends.
15922 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
15923
15924 // VCSRepositoryURLFullKey is the attribute Key conforming to the
15925 // "vcs.repository.url.full" semantic conventions. It represents the
15926 // [canonical URL] of the repository providing the complete HTTP(S) address in
15927 // order to locate and identify the repository through a browser.
15928 //
15929 // Type: string
15930 // RequirementLevel: Recommended
15931 // Stability: Development
15932 //
15933 // Examples:
15934 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
15935 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
15936 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
15937 // the `.git` extension.
15938 //
15939 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
15940 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
15941
15942 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
15943 // "vcs.revision_delta.direction" semantic conventions. It represents the type
15944 // of revision comparison.
15945 //
15946 // Type: Enum
15947 // RequirementLevel: Recommended
15948 // Stability: Development
15949 //
15950 // Examples: "ahead", "behind"
15951 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
15952 )
15953
15954 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
15955 // semantic conventions. It represents the ID of the change (pull request/merge
15956 // request/changelist) if applicable. This is usually a unique (within
15957 // repository) identifier generated by the VCS system.
15958 func VCSChangeID(val string) attribute.KeyValue {
15959 return VCSChangeIDKey.String(val)
15960 }
15961
15962 // VCSChangeTitle returns an attribute KeyValue conforming to the
15963 // "vcs.change.title" semantic conventions. It represents the human readable
15964 // title of the change (pull request/merge request/changelist). This title is
15965 // often a brief summary of the change and may get merged in to a ref as the
15966 // commit summary.
15967 func VCSChangeTitle(val string) attribute.KeyValue {
15968 return VCSChangeTitleKey.String(val)
15969 }
15970
15971 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
15972 // semantic conventions. It represents the group owner within the version control
15973 // system.
15974 func VCSOwnerName(val string) attribute.KeyValue {
15975 return VCSOwnerNameKey.String(val)
15976 }
15977
15978 // VCSRefBaseName returns an attribute KeyValue conforming to the
15979 // "vcs.ref.base.name" semantic conventions. It represents the name of the
15980 // [reference] such as **branch** or **tag** in the repository.
15981 //
15982 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15983 func VCSRefBaseName(val string) attribute.KeyValue {
15984 return VCSRefBaseNameKey.String(val)
15985 }
15986
15987 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
15988 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
15989 // literally [revised version], The revision most often refers to a commit object
15990 // in Git, or a revision number in SVN.
15991 //
15992 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15993 func VCSRefBaseRevision(val string) attribute.KeyValue {
15994 return VCSRefBaseRevisionKey.String(val)
15995 }
15996
15997 // VCSRefHeadName returns an attribute KeyValue conforming to the
15998 // "vcs.ref.head.name" semantic conventions. It represents the name of the
15999 // [reference] such as **branch** or **tag** in the repository.
16000 //
16001 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16002 func VCSRefHeadName(val string) attribute.KeyValue {
16003 return VCSRefHeadNameKey.String(val)
16004 }
16005
16006 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
16007 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
16008 // literally [revised version], The revision most often refers to a commit object
16009 // in Git, or a revision number in SVN.
16010 //
16011 // [revised version]: https://www.merriam-webster.com/dictionary/revision
16012 func VCSRefHeadRevision(val string) attribute.KeyValue {
16013 return VCSRefHeadRevisionKey.String(val)
16014 }
16015
16016 // VCSRepositoryName returns an attribute KeyValue conforming to the
16017 // "vcs.repository.name" semantic conventions. It represents the human readable
16018 // name of the repository. It SHOULD NOT include any additional identifier like
16019 // Group/SubGroup in GitLab or organization in GitHub.
16020 func VCSRepositoryName(val string) attribute.KeyValue {
16021 return VCSRepositoryNameKey.String(val)
16022 }
16023
16024 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
16025 // "vcs.repository.url.full" semantic conventions. It represents the
16026 // [canonical URL] of the repository providing the complete HTTP(S) address in
16027 // order to locate and identify the repository through a browser.
16028 //
16029 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
16030 func VCSRepositoryURLFull(val string) attribute.KeyValue {
16031 return VCSRepositoryURLFullKey.String(val)
16032 }
16033
16034 // Enum values for vcs.change.state
16035 var (
16036 // Open means the change is currently active and under review. It hasn't been
16037 // merged into the target branch yet, and it's still possible to make changes or
16038 // add comments.
16039 // Stability: development
16040 VCSChangeStateOpen = VCSChangeStateKey.String("open")
16041 // WIP (work-in-progress, draft) means the change is still in progress and not
16042 // yet ready for a full review. It might still undergo significant changes.
16043 // Stability: development
16044 VCSChangeStateWip = VCSChangeStateKey.String("wip")
16045 // Closed means the merge request has been closed without merging. This can
16046 // happen for various reasons, such as the changes being deemed unnecessary, the
16047 // issue being resolved in another way, or the author deciding to withdraw the
16048 // request.
16049 // Stability: development
16050 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
16051 // Merged indicates that the change has been successfully integrated into the
16052 // target codebase.
16053 // Stability: development
16054 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
16055 )
16056
16057 // Enum values for vcs.line_change.type
16058 var (
16059 // How many lines were added.
16060 // Stability: development
16061 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
16062 // How many lines were removed.
16063 // Stability: development
16064 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
16065 )
16066
16067 // Enum values for vcs.provider.name
16068 var (
16069 // [GitHub]
16070 // Stability: development
16071 //
16072 // [GitHub]: https://github.com
16073 VCSProviderNameGithub = VCSProviderNameKey.String("github")
16074 // [GitLab]
16075 // Stability: development
16076 //
16077 // [GitLab]: https://gitlab.com
16078 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
16079 // [Gitea]
16080 // Stability: development
16081 //
16082 // [Gitea]: https://gitea.io
16083 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
16084 // [Bitbucket]
16085 // Stability: development
16086 //
16087 // [Bitbucket]: https://bitbucket.org
16088 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
16089 )
16090
16091 // Enum values for vcs.ref.base.type
16092 var (
16093 // [branch]
16094 // Stability: development
16095 //
16096 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16097 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
16098 // [tag]
16099 // Stability: development
16100 //
16101 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16102 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
16103 )
16104
16105 // Enum values for vcs.ref.head.type
16106 var (
16107 // [branch]
16108 // Stability: development
16109 //
16110 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16111 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
16112 // [tag]
16113 // Stability: development
16114 //
16115 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16116 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
16117 )
16118
16119 // Enum values for vcs.ref.type
16120 var (
16121 // [branch]
16122 // Stability: development
16123 //
16124 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16125 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
16126 // [tag]
16127 // Stability: development
16128 //
16129 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16130 VCSRefTypeTag = VCSRefTypeKey.String("tag")
16131 )
16132
16133 // Enum values for vcs.revision_delta.direction
16134 var (
16135 // How many revisions the change is behind the target ref.
16136 // Stability: development
16137 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
16138 // How many revisions the change is ahead of the target ref.
16139 // Stability: development
16140 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
16141 )
16142
16143 // Namespace: webengine
16144 const (
16145 // WebEngineDescriptionKey is the attribute Key conforming to the
16146 // "webengine.description" semantic conventions. It represents the additional
16147 // description of the web engine (e.g. detailed version and edition
16148 // information).
16149 //
16150 // Type: string
16151 // RequirementLevel: Recommended
16152 // Stability: Development
16153 //
16154 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
16155 // 2.2.2.Final"
16156 WebEngineDescriptionKey = attribute.Key("webengine.description")
16157
16158 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
16159 // semantic conventions. It represents the name of the web engine.
16160 //
16161 // Type: string
16162 // RequirementLevel: Recommended
16163 // Stability: Development
16164 //
16165 // Examples: "WildFly"
16166 WebEngineNameKey = attribute.Key("webengine.name")
16167
16168 // WebEngineVersionKey is the attribute Key conforming to the
16169 // "webengine.version" semantic conventions. It represents the version of the
16170 // web engine.
16171 //
16172 // Type: string
16173 // RequirementLevel: Recommended
16174 // Stability: Development
16175 //
16176 // Examples: "21.0.0"
16177 WebEngineVersionKey = attribute.Key("webengine.version")
16178 )
16179
16180 // WebEngineDescription returns an attribute KeyValue conforming to the
16181 // "webengine.description" semantic conventions. It represents the additional
16182 // description of the web engine (e.g. detailed version and edition information).
16183 func WebEngineDescription(val string) attribute.KeyValue {
16184 return WebEngineDescriptionKey.String(val)
16185 }
16186
16187 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
16188 // semantic conventions. It represents the name of the web engine.
16189 func WebEngineName(val string) attribute.KeyValue {
16190 return WebEngineNameKey.String(val)
16191 }
16192
16193 // WebEngineVersion returns an attribute KeyValue conforming to the
16194 // "webengine.version" semantic conventions. It represents the version of the web
16195 // engine.
16196 func WebEngineVersion(val string) attribute.KeyValue {
16197 return WebEngineVersionKey.String(val)
16198 }
16199
16200 // Namespace: zos
16201 const (
16202 // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
16203 // conventions. It represents the System Management Facility (SMF) Identifier
16204 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
16205 // and is used for system and performance analysis.
16206 //
16207 // Type: string
16208 // RequirementLevel: Recommended
16209 // Stability: Development
16210 //
16211 // Examples: "SYS1"
16212 ZOSSmfIDKey = attribute.Key("zos.smf.id")
16213
16214 // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
16215 // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
16216 // system belongs too.
16217 //
16218 // Type: string
16219 // RequirementLevel: Recommended
16220 // Stability: Development
16221 //
16222 // Examples: "SYSPLEX1"
16223 ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
16224 )
16225
16226 // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
16227 // conventions. It represents the System Management Facility (SMF) Identifier
16228 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
16229 // and is used for system and performance analysis.
16230 func ZOSSmfID(val string) attribute.KeyValue {
16231 return ZOSSmfIDKey.String(val)
16232 }
16233
16234 // ZOSSysplexName returns an attribute KeyValue conforming to the
16235 // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
16236 // to which the z/OS system belongs too.
16237 func ZOSSysplexName(val string) attribute.KeyValue {
16238 return ZOSSysplexNameKey.String(val)
16239 }