| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame^] | 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | // Code generated from semantic convention specification. DO NOT EDIT. |
| 5 | |
| 6 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.34.0" |
| 7 | |
| 8 | import "go.opentelemetry.io/otel/attribute" |
| 9 | |
| 10 | // Namespace: android |
| 11 | const ( |
| 12 | // AndroidAppStateKey is the attribute Key conforming to the "android.app.state" |
| 13 | // semantic conventions. It represents the this attribute represents the state |
| 14 | // of the application. |
| 15 | // |
| 16 | // Type: Enum |
| 17 | // RequirementLevel: Recommended |
| 18 | // Stability: Development |
| 19 | // |
| 20 | // Examples: "created" |
| 21 | // Note: The Android lifecycle states are defined in |
| 22 | // [Activity lifecycle callbacks], and from which the `OS identifiers` are |
| 23 | // derived. |
| 24 | // |
| 25 | // [Activity lifecycle callbacks]: https://developer.android.com/guide/components/activities/activity-lifecycle#lc |
| 26 | AndroidAppStateKey = attribute.Key("android.app.state") |
| 27 | |
| 28 | // AndroidOSAPILevelKey is the attribute Key conforming to the |
| 29 | // "android.os.api_level" semantic conventions. It represents the uniquely |
| 30 | // identifies the framework API revision offered by a version (`os.version`) of |
| 31 | // the android operating system. More information can be found [here]. |
| 32 | // |
| 33 | // Type: string |
| 34 | // RequirementLevel: Recommended |
| 35 | // Stability: Development |
| 36 | // |
| 37 | // Examples: "33", "32" |
| 38 | // |
| 39 | // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels |
| 40 | AndroidOSAPILevelKey = attribute.Key("android.os.api_level") |
| 41 | ) |
| 42 | |
| 43 | // AndroidOSAPILevel returns an attribute KeyValue conforming to the |
| 44 | // "android.os.api_level" semantic conventions. It represents the uniquely |
| 45 | // identifies the framework API revision offered by a version (`os.version`) of |
| 46 | // the android operating system. More information can be found [here]. |
| 47 | // |
| 48 | // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels |
| 49 | func AndroidOSAPILevel(val string) attribute.KeyValue { |
| 50 | return AndroidOSAPILevelKey.String(val) |
| 51 | } |
| 52 | |
| 53 | // Enum values for android.app.state |
| 54 | var ( |
| 55 | // Any time before Activity.onResume() or, if the app has no Activity, |
| 56 | // Context.startService() has been called in the app for the first time. |
| 57 | // |
| 58 | // Stability: development |
| 59 | AndroidAppStateCreated = AndroidAppStateKey.String("created") |
| 60 | // Any time after Activity.onPause() or, if the app has no Activity, |
| 61 | // Context.stopService() has been called when the app was in the foreground |
| 62 | // state. |
| 63 | // |
| 64 | // Stability: development |
| 65 | AndroidAppStateBackground = AndroidAppStateKey.String("background") |
| 66 | // Any time after Activity.onResume() or, if the app has no Activity, |
| 67 | // Context.startService() has been called when the app was in either the created |
| 68 | // or background states. |
| 69 | // |
| 70 | // Stability: development |
| 71 | AndroidAppStateForeground = AndroidAppStateKey.String("foreground") |
| 72 | ) |
| 73 | |
| 74 | // Namespace: app |
| 75 | const ( |
| 76 | // AppInstallationIDKey is the attribute Key conforming to the |
| 77 | // "app.installation.id" semantic conventions. It represents a unique identifier |
| 78 | // representing the installation of an application on a specific device. |
| 79 | // |
| 80 | // Type: string |
| 81 | // RequirementLevel: Recommended |
| 82 | // Stability: Development |
| 83 | // |
| 84 | // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092" |
| 85 | // Note: Its value SHOULD persist across launches of the same application |
| 86 | // installation, including through application upgrades. |
| 87 | // It SHOULD change if the application is uninstalled or if all applications of |
| 88 | // the vendor are uninstalled. |
| 89 | // Additionally, users might be able to reset this value (e.g. by clearing |
| 90 | // application data). |
| 91 | // If an app is installed multiple times on the same device (e.g. in different |
| 92 | // accounts on Android), each `app.installation.id` SHOULD have a different |
| 93 | // value. |
| 94 | // If multiple OpenTelemetry SDKs are used within the same application, they |
| 95 | // SHOULD use the same value for `app.installation.id`. |
| 96 | // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the |
| 97 | // `app.installation.id`. |
| 98 | // |
| 99 | // For iOS, this value SHOULD be equal to the [vendor identifier]. |
| 100 | // |
| 101 | // For Android, examples of `app.installation.id` implementations include: |
| 102 | // |
| 103 | // - [Firebase Installation ID]. |
| 104 | // - A globally unique UUID which is persisted across sessions in your |
| 105 | // application. |
| 106 | // - [App set ID]. |
| 107 | // - [`Settings.getString(Settings.Secure.ANDROID_ID)`]. |
| 108 | // |
| 109 | // More information about Android identifier best practices can be found [here] |
| 110 | // . |
| 111 | // |
| 112 | // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor |
| 113 | // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations |
| 114 | // [App set ID]: https://developer.android.com/identity/app-set-id |
| 115 | // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID |
| 116 | // [here]: https://developer.android.com/training/articles/user-data-ids |
| 117 | AppInstallationIDKey = attribute.Key("app.installation.id") |
| 118 | |
| 119 | // AppScreenCoordinateXKey is the attribute Key conforming to the |
| 120 | // "app.screen.coordinate.x" semantic conventions. It represents the x |
| 121 | // (horizontal) coordinate of a screen coordinate, in screen pixels. |
| 122 | // |
| 123 | // Type: int |
| 124 | // RequirementLevel: Recommended |
| 125 | // Stability: Development |
| 126 | // |
| 127 | // Examples: 0, 131 |
| 128 | AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x") |
| 129 | |
| 130 | // AppScreenCoordinateYKey is the attribute Key conforming to the |
| 131 | // "app.screen.coordinate.y" semantic conventions. It represents the y |
| 132 | // (vertical) component of a screen coordinate, in screen pixels. |
| 133 | // |
| 134 | // Type: int |
| 135 | // RequirementLevel: Recommended |
| 136 | // Stability: Development |
| 137 | // |
| 138 | // Examples: 12, 99 |
| 139 | AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y") |
| 140 | |
| 141 | // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id" |
| 142 | // semantic conventions. It represents an identifier that uniquely |
| 143 | // differentiates this widget from other widgets in the same application. |
| 144 | // |
| 145 | // Type: string |
| 146 | // RequirementLevel: Recommended |
| 147 | // Stability: Development |
| 148 | // |
| 149 | // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829" |
| 150 | // Note: A widget is an application component, typically an on-screen visual GUI |
| 151 | // element. |
| 152 | AppWidgetIDKey = attribute.Key("app.widget.id") |
| 153 | |
| 154 | // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name" |
| 155 | // semantic conventions. It represents the name of an application widget. |
| 156 | // |
| 157 | // Type: string |
| 158 | // RequirementLevel: Recommended |
| 159 | // Stability: Development |
| 160 | // |
| 161 | // Examples: "submit", "attack", "Clear Cart" |
| 162 | // Note: A widget is an application component, typically an on-screen visual GUI |
| 163 | // element. |
| 164 | AppWidgetNameKey = attribute.Key("app.widget.name") |
| 165 | ) |
| 166 | |
| 167 | // AppInstallationID returns an attribute KeyValue conforming to the |
| 168 | // "app.installation.id" semantic conventions. It represents a unique identifier |
| 169 | // representing the installation of an application on a specific device. |
| 170 | func AppInstallationID(val string) attribute.KeyValue { |
| 171 | return AppInstallationIDKey.String(val) |
| 172 | } |
| 173 | |
| 174 | // AppScreenCoordinateX returns an attribute KeyValue conforming to the |
| 175 | // "app.screen.coordinate.x" semantic conventions. It represents the x |
| 176 | // (horizontal) coordinate of a screen coordinate, in screen pixels. |
| 177 | func AppScreenCoordinateX(val int) attribute.KeyValue { |
| 178 | return AppScreenCoordinateXKey.Int(val) |
| 179 | } |
| 180 | |
| 181 | // AppScreenCoordinateY returns an attribute KeyValue conforming to the |
| 182 | // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical) |
| 183 | // component of a screen coordinate, in screen pixels. |
| 184 | func AppScreenCoordinateY(val int) attribute.KeyValue { |
| 185 | return AppScreenCoordinateYKey.Int(val) |
| 186 | } |
| 187 | |
| 188 | // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id" |
| 189 | // semantic conventions. It represents an identifier that uniquely differentiates |
| 190 | // this widget from other widgets in the same application. |
| 191 | func AppWidgetID(val string) attribute.KeyValue { |
| 192 | return AppWidgetIDKey.String(val) |
| 193 | } |
| 194 | |
| 195 | // AppWidgetName returns an attribute KeyValue conforming to the |
| 196 | // "app.widget.name" semantic conventions. It represents the name of an |
| 197 | // application widget. |
| 198 | func AppWidgetName(val string) attribute.KeyValue { |
| 199 | return AppWidgetNameKey.String(val) |
| 200 | } |
| 201 | |
| 202 | // Namespace: artifact |
| 203 | const ( |
| 204 | // ArtifactAttestationFilenameKey is the attribute Key conforming to the |
| 205 | // "artifact.attestation.filename" semantic conventions. It represents the |
| 206 | // provenance filename of the built attestation which directly relates to the |
| 207 | // build artifact filename. This filename SHOULD accompany the artifact at |
| 208 | // publish time. See the [SLSA Relationship] specification for more information. |
| 209 | // |
| 210 | // Type: string |
| 211 | // RequirementLevel: Recommended |
| 212 | // Stability: Development |
| 213 | // |
| 214 | // Examples: "golang-binary-amd64-v0.1.0.attestation", |
| 215 | // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation", |
| 216 | // "file-name-package.tar.gz.intoto.json1" |
| 217 | // |
| 218 | // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations |
| 219 | ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename") |
| 220 | |
| 221 | // ArtifactAttestationHashKey is the attribute Key conforming to the |
| 222 | // "artifact.attestation.hash" semantic conventions. It represents the full |
| 223 | // [hash value (see glossary)], of the built attestation. Some envelopes in the |
| 224 | // [software attestation space] also refer to this as the **digest**. |
| 225 | // |
| 226 | // Type: string |
| 227 | // RequirementLevel: Recommended |
| 228 | // Stability: Development |
| 229 | // |
| 230 | // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408" |
| 231 | // |
| 232 | // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 233 | // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec |
| 234 | ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash") |
| 235 | |
| 236 | // ArtifactAttestationIDKey is the attribute Key conforming to the |
| 237 | // "artifact.attestation.id" semantic conventions. It represents the id of the |
| 238 | // build [software attestation]. |
| 239 | // |
| 240 | // Type: string |
| 241 | // RequirementLevel: Recommended |
| 242 | // Stability: Development |
| 243 | // |
| 244 | // Examples: "123" |
| 245 | // |
| 246 | // [software attestation]: https://slsa.dev/attestation-model |
| 247 | ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id") |
| 248 | |
| 249 | // ArtifactFilenameKey is the attribute Key conforming to the |
| 250 | // "artifact.filename" semantic conventions. It represents the human readable |
| 251 | // file name of the artifact, typically generated during build and release |
| 252 | // processes. Often includes the package name and version in the file name. |
| 253 | // |
| 254 | // Type: string |
| 255 | // RequirementLevel: Recommended |
| 256 | // Stability: Development |
| 257 | // |
| 258 | // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0", |
| 259 | // "release-1.tar.gz", "file-name-package.tar.gz" |
| 260 | // Note: This file name can also act as the [Package Name] |
| 261 | // in cases where the package ecosystem maps accordingly. |
| 262 | // Additionally, the artifact [can be published] |
| 263 | // for others, but that is not a guarantee. |
| 264 | // |
| 265 | // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model |
| 266 | // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain |
| 267 | ArtifactFilenameKey = attribute.Key("artifact.filename") |
| 268 | |
| 269 | // ArtifactHashKey is the attribute Key conforming to the "artifact.hash" |
| 270 | // semantic conventions. It represents the full [hash value (see glossary)], |
| 271 | // often found in checksum.txt on a release of the artifact and used to verify |
| 272 | // package integrity. |
| 273 | // |
| 274 | // Type: string |
| 275 | // RequirementLevel: Recommended |
| 276 | // Stability: Development |
| 277 | // |
| 278 | // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9" |
| 279 | // Note: The specific algorithm used to create the cryptographic hash value is |
| 280 | // not defined. In situations where an artifact has multiple |
| 281 | // cryptographic hashes, it is up to the implementer to choose which |
| 282 | // hash value to set here; this should be the most secure hash algorithm |
| 283 | // that is suitable for the situation and consistent with the |
| 284 | // corresponding attestation. The implementer can then provide the other |
| 285 | // hash values through an additional set of attribute extensions as they |
| 286 | // deem necessary. |
| 287 | // |
| 288 | // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 289 | ArtifactHashKey = attribute.Key("artifact.hash") |
| 290 | |
| 291 | // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl" |
| 292 | // semantic conventions. It represents the [Package URL] of the |
| 293 | // [package artifact] provides a standard way to identify and locate the |
| 294 | // packaged artifact. |
| 295 | // |
| 296 | // Type: string |
| 297 | // RequirementLevel: Recommended |
| 298 | // Stability: Development |
| 299 | // |
| 300 | // Examples: "pkg:github/package-url/purl-spec@1209109710924", |
| 301 | // "pkg:npm/foo@12.12.3" |
| 302 | // |
| 303 | // [Package URL]: https://github.com/package-url/purl-spec |
| 304 | // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model |
| 305 | ArtifactPurlKey = attribute.Key("artifact.purl") |
| 306 | |
| 307 | // ArtifactVersionKey is the attribute Key conforming to the "artifact.version" |
| 308 | // semantic conventions. It represents the version of the artifact. |
| 309 | // |
| 310 | // Type: string |
| 311 | // RequirementLevel: Recommended |
| 312 | // Stability: Development |
| 313 | // |
| 314 | // Examples: "v0.1.0", "1.2.1", "122691-build" |
| 315 | ArtifactVersionKey = attribute.Key("artifact.version") |
| 316 | ) |
| 317 | |
| 318 | // ArtifactAttestationFilename returns an attribute KeyValue conforming to the |
| 319 | // "artifact.attestation.filename" semantic conventions. It represents the |
| 320 | // provenance filename of the built attestation which directly relates to the |
| 321 | // build artifact filename. This filename SHOULD accompany the artifact at |
| 322 | // publish time. See the [SLSA Relationship] specification for more information. |
| 323 | // |
| 324 | // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations |
| 325 | func ArtifactAttestationFilename(val string) attribute.KeyValue { |
| 326 | return ArtifactAttestationFilenameKey.String(val) |
| 327 | } |
| 328 | |
| 329 | // ArtifactAttestationHash returns an attribute KeyValue conforming to the |
| 330 | // "artifact.attestation.hash" semantic conventions. It represents the full |
| 331 | // [hash value (see glossary)], of the built attestation. Some envelopes in the |
| 332 | // [software attestation space] also refer to this as the **digest**. |
| 333 | // |
| 334 | // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 335 | // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec |
| 336 | func ArtifactAttestationHash(val string) attribute.KeyValue { |
| 337 | return ArtifactAttestationHashKey.String(val) |
| 338 | } |
| 339 | |
| 340 | // ArtifactAttestationID returns an attribute KeyValue conforming to the |
| 341 | // "artifact.attestation.id" semantic conventions. It represents the id of the |
| 342 | // build [software attestation]. |
| 343 | // |
| 344 | // [software attestation]: https://slsa.dev/attestation-model |
| 345 | func ArtifactAttestationID(val string) attribute.KeyValue { |
| 346 | return ArtifactAttestationIDKey.String(val) |
| 347 | } |
| 348 | |
| 349 | // ArtifactFilename returns an attribute KeyValue conforming to the |
| 350 | // "artifact.filename" semantic conventions. It represents the human readable |
| 351 | // file name of the artifact, typically generated during build and release |
| 352 | // processes. Often includes the package name and version in the file name. |
| 353 | func ArtifactFilename(val string) attribute.KeyValue { |
| 354 | return ArtifactFilenameKey.String(val) |
| 355 | } |
| 356 | |
| 357 | // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash" |
| 358 | // semantic conventions. It represents the full [hash value (see glossary)], |
| 359 | // often found in checksum.txt on a release of the artifact and used to verify |
| 360 | // package integrity. |
| 361 | // |
| 362 | // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 363 | func ArtifactHash(val string) attribute.KeyValue { |
| 364 | return ArtifactHashKey.String(val) |
| 365 | } |
| 366 | |
| 367 | // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl" |
| 368 | // semantic conventions. It represents the [Package URL] of the |
| 369 | // [package artifact] provides a standard way to identify and locate the packaged |
| 370 | // artifact. |
| 371 | // |
| 372 | // [Package URL]: https://github.com/package-url/purl-spec |
| 373 | // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model |
| 374 | func ArtifactPurl(val string) attribute.KeyValue { |
| 375 | return ArtifactPurlKey.String(val) |
| 376 | } |
| 377 | |
| 378 | // ArtifactVersion returns an attribute KeyValue conforming to the |
| 379 | // "artifact.version" semantic conventions. It represents the version of the |
| 380 | // artifact. |
| 381 | func ArtifactVersion(val string) attribute.KeyValue { |
| 382 | return ArtifactVersionKey.String(val) |
| 383 | } |
| 384 | |
| 385 | // Namespace: aws |
| 386 | const ( |
| 387 | // AWSBedrockGuardrailIDKey is the attribute Key conforming to the |
| 388 | // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique |
| 389 | // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and |
| 390 | // prevent unwanted behavior from model responses or user messages. |
| 391 | // |
| 392 | // Type: string |
| 393 | // RequirementLevel: Recommended |
| 394 | // Stability: Development |
| 395 | // |
| 396 | // Examples: "sgi5gkybzqak" |
| 397 | // |
| 398 | // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html |
| 399 | AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id") |
| 400 | |
| 401 | // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the |
| 402 | // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the |
| 403 | // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a |
| 404 | // bank of information that can be queried by models to generate more relevant |
| 405 | // responses and augment prompts. |
| 406 | // |
| 407 | // Type: string |
| 408 | // RequirementLevel: Recommended |
| 409 | // Stability: Development |
| 410 | // |
| 411 | // Examples: "XFWUPB9PAW" |
| 412 | // |
| 413 | // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html |
| 414 | AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id") |
| 415 | |
| 416 | // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the |
| 417 | // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the |
| 418 | // JSON-serialized value of each item in the `AttributeDefinitions` request |
| 419 | // field. |
| 420 | // |
| 421 | // Type: string[] |
| 422 | // RequirementLevel: Recommended |
| 423 | // Stability: Development |
| 424 | // |
| 425 | // Examples: "{ "AttributeName": "string", "AttributeType": "string" }" |
| 426 | AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions") |
| 427 | |
| 428 | // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the |
| 429 | // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the |
| 430 | // value of the `AttributesToGet` request parameter. |
| 431 | // |
| 432 | // Type: string[] |
| 433 | // RequirementLevel: Recommended |
| 434 | // Stability: Development |
| 435 | // |
| 436 | // Examples: "lives", "id" |
| 437 | AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get") |
| 438 | |
| 439 | // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the |
| 440 | // "aws.dynamodb.consistent_read" semantic conventions. It represents the value |
| 441 | // of the `ConsistentRead` request parameter. |
| 442 | // |
| 443 | // Type: boolean |
| 444 | // RequirementLevel: Recommended |
| 445 | // Stability: Development |
| 446 | // |
| 447 | // Examples: |
| 448 | AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read") |
| 449 | |
| 450 | // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the |
| 451 | // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the |
| 452 | // JSON-serialized value of each item in the `ConsumedCapacity` response field. |
| 453 | // |
| 454 | // Type: string[] |
| 455 | // RequirementLevel: Recommended |
| 456 | // Stability: Development |
| 457 | // |
| 458 | // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : |
| 459 | // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": |
| 460 | // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, |
| 461 | // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, |
| 462 | // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, |
| 463 | // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": |
| 464 | // "string", "WriteCapacityUnits": number }" |
| 465 | AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity") |
| 466 | |
| 467 | // AWSDynamoDBCountKey is the attribute Key conforming to the |
| 468 | // "aws.dynamodb.count" semantic conventions. It represents the value of the |
| 469 | // `Count` response parameter. |
| 470 | // |
| 471 | // Type: int |
| 472 | // RequirementLevel: Recommended |
| 473 | // Stability: Development |
| 474 | // |
| 475 | // Examples: 10 |
| 476 | AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count") |
| 477 | |
| 478 | // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the |
| 479 | // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the |
| 480 | // value of the `ExclusiveStartTableName` request parameter. |
| 481 | // |
| 482 | // Type: string |
| 483 | // RequirementLevel: Recommended |
| 484 | // Stability: Development |
| 485 | // |
| 486 | // Examples: "Users", "CatsTable" |
| 487 | AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table") |
| 488 | |
| 489 | // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to |
| 490 | // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It |
| 491 | // represents the JSON-serialized value of each item in the |
| 492 | // `GlobalSecondaryIndexUpdates` request field. |
| 493 | // |
| 494 | // Type: string[] |
| 495 | // RequirementLevel: Recommended |
| 496 | // Stability: Development |
| 497 | // |
| 498 | // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ { |
| 499 | // "AttributeName": "string", "KeyType": "string" } ], "Projection": { |
| 500 | // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, |
| 501 | // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": |
| 502 | // number } }" |
| 503 | AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates") |
| 504 | |
| 505 | // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the |
| 506 | // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents |
| 507 | // the JSON-serialized value of each item of the `GlobalSecondaryIndexes` |
| 508 | // request field. |
| 509 | // |
| 510 | // Type: string[] |
| 511 | // RequirementLevel: Recommended |
| 512 | // Stability: Development |
| 513 | // |
| 514 | // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName": |
| 515 | // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ |
| 516 | // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { |
| 517 | // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" |
| 518 | AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes") |
| 519 | |
| 520 | // AWSDynamoDBIndexNameKey is the attribute Key conforming to the |
| 521 | // "aws.dynamodb.index_name" semantic conventions. It represents the value of |
| 522 | // the `IndexName` request parameter. |
| 523 | // |
| 524 | // Type: string |
| 525 | // RequirementLevel: Recommended |
| 526 | // Stability: Development |
| 527 | // |
| 528 | // Examples: "name_to_group" |
| 529 | AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name") |
| 530 | |
| 531 | // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the |
| 532 | // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents |
| 533 | // the JSON-serialized value of the `ItemCollectionMetrics` response field. |
| 534 | // |
| 535 | // Type: string |
| 536 | // RequirementLevel: Recommended |
| 537 | // Stability: Development |
| 538 | // |
| 539 | // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, |
| 540 | // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : |
| 541 | // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": |
| 542 | // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }" |
| 543 | AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics") |
| 544 | |
| 545 | // AWSDynamoDBLimitKey is the attribute Key conforming to the |
| 546 | // "aws.dynamodb.limit" semantic conventions. It represents the value of the |
| 547 | // `Limit` request parameter. |
| 548 | // |
| 549 | // Type: int |
| 550 | // RequirementLevel: Recommended |
| 551 | // Stability: Development |
| 552 | // |
| 553 | // Examples: 10 |
| 554 | AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit") |
| 555 | |
| 556 | // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the |
| 557 | // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents |
| 558 | // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request |
| 559 | // field. |
| 560 | // |
| 561 | // Type: string[] |
| 562 | // RequirementLevel: Recommended |
| 563 | // Stability: Development |
| 564 | // |
| 565 | // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": |
| 566 | // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", |
| 567 | // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], |
| 568 | // "ProjectionType": "string" } }" |
| 569 | AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes") |
| 570 | |
| 571 | // AWSDynamoDBProjectionKey is the attribute Key conforming to the |
| 572 | // "aws.dynamodb.projection" semantic conventions. It represents the value of |
| 573 | // the `ProjectionExpression` request parameter. |
| 574 | // |
| 575 | // Type: string |
| 576 | // RequirementLevel: Recommended |
| 577 | // Stability: Development |
| 578 | // |
| 579 | // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems, |
| 580 | // ProductReviews" |
| 581 | AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection") |
| 582 | |
| 583 | // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the |
| 584 | // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents |
| 585 | // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. |
| 586 | // |
| 587 | // Type: double |
| 588 | // RequirementLevel: Recommended |
| 589 | // Stability: Development |
| 590 | // |
| 591 | // Examples: 1.0, 2.0 |
| 592 | AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity") |
| 593 | |
| 594 | // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the |
| 595 | // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents |
| 596 | // the value of the `ProvisionedThroughput.WriteCapacityUnits` request |
| 597 | // parameter. |
| 598 | // |
| 599 | // Type: double |
| 600 | // RequirementLevel: Recommended |
| 601 | // Stability: Development |
| 602 | // |
| 603 | // Examples: 1.0, 2.0 |
| 604 | AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity") |
| 605 | |
| 606 | // AWSDynamoDBScanForwardKey is the attribute Key conforming to the |
| 607 | // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of |
| 608 | // the `ScanIndexForward` request parameter. |
| 609 | // |
| 610 | // Type: boolean |
| 611 | // RequirementLevel: Recommended |
| 612 | // Stability: Development |
| 613 | // |
| 614 | // Examples: |
| 615 | AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward") |
| 616 | |
| 617 | // AWSDynamoDBScannedCountKey is the attribute Key conforming to the |
| 618 | // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of |
| 619 | // the `ScannedCount` response parameter. |
| 620 | // |
| 621 | // Type: int |
| 622 | // RequirementLevel: Recommended |
| 623 | // Stability: Development |
| 624 | // |
| 625 | // Examples: 50 |
| 626 | AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count") |
| 627 | |
| 628 | // AWSDynamoDBSegmentKey is the attribute Key conforming to the |
| 629 | // "aws.dynamodb.segment" semantic conventions. It represents the value of the |
| 630 | // `Segment` request parameter. |
| 631 | // |
| 632 | // Type: int |
| 633 | // RequirementLevel: Recommended |
| 634 | // Stability: Development |
| 635 | // |
| 636 | // Examples: 10 |
| 637 | AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment") |
| 638 | |
| 639 | // AWSDynamoDBSelectKey is the attribute Key conforming to the |
| 640 | // "aws.dynamodb.select" semantic conventions. It represents the value of the |
| 641 | // `Select` request parameter. |
| 642 | // |
| 643 | // Type: string |
| 644 | // RequirementLevel: Recommended |
| 645 | // Stability: Development |
| 646 | // |
| 647 | // Examples: "ALL_ATTRIBUTES", "COUNT" |
| 648 | AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select") |
| 649 | |
| 650 | // AWSDynamoDBTableCountKey is the attribute Key conforming to the |
| 651 | // "aws.dynamodb.table_count" semantic conventions. It represents the number of |
| 652 | // items in the `TableNames` response parameter. |
| 653 | // |
| 654 | // Type: int |
| 655 | // RequirementLevel: Recommended |
| 656 | // Stability: Development |
| 657 | // |
| 658 | // Examples: 20 |
| 659 | AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count") |
| 660 | |
| 661 | // AWSDynamoDBTableNamesKey is the attribute Key conforming to the |
| 662 | // "aws.dynamodb.table_names" semantic conventions. It represents the keys in |
| 663 | // the `RequestItems` object field. |
| 664 | // |
| 665 | // Type: string[] |
| 666 | // RequirementLevel: Recommended |
| 667 | // Stability: Development |
| 668 | // |
| 669 | // Examples: "Users", "Cats" |
| 670 | AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names") |
| 671 | |
| 672 | // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the |
| 673 | // "aws.dynamodb.total_segments" semantic conventions. It represents the value |
| 674 | // of the `TotalSegments` request parameter. |
| 675 | // |
| 676 | // Type: int |
| 677 | // RequirementLevel: Recommended |
| 678 | // Stability: Development |
| 679 | // |
| 680 | // Examples: 100 |
| 681 | AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments") |
| 682 | |
| 683 | // AWSECSClusterARNKey is the attribute Key conforming to the |
| 684 | // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an |
| 685 | // [ECS cluster]. |
| 686 | // |
| 687 | // Type: string |
| 688 | // RequirementLevel: Recommended |
| 689 | // Stability: Development |
| 690 | // |
| 691 | // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" |
| 692 | // |
| 693 | // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html |
| 694 | AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn") |
| 695 | |
| 696 | // AWSECSContainerARNKey is the attribute Key conforming to the |
| 697 | // "aws.ecs.container.arn" semantic conventions. It represents the Amazon |
| 698 | // Resource Name (ARN) of an [ECS container instance]. |
| 699 | // |
| 700 | // Type: string |
| 701 | // RequirementLevel: Recommended |
| 702 | // Stability: Development |
| 703 | // |
| 704 | // Examples: |
| 705 | // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9" |
| 706 | // |
| 707 | // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html |
| 708 | AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn") |
| 709 | |
| 710 | // AWSECSLaunchtypeKey is the attribute Key conforming to the |
| 711 | // "aws.ecs.launchtype" semantic conventions. It represents the [launch type] |
| 712 | // for an ECS task. |
| 713 | // |
| 714 | // Type: Enum |
| 715 | // RequirementLevel: Recommended |
| 716 | // Stability: Development |
| 717 | // |
| 718 | // Examples: |
| 719 | // |
| 720 | // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html |
| 721 | AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype") |
| 722 | |
| 723 | // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn" |
| 724 | // semantic conventions. It represents the ARN of a running [ECS task]. |
| 725 | // |
| 726 | // Type: string |
| 727 | // RequirementLevel: Recommended |
| 728 | // Stability: Development |
| 729 | // |
| 730 | // Examples: |
| 731 | // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b", |
| 732 | // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" |
| 733 | // |
| 734 | // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids |
| 735 | AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn") |
| 736 | |
| 737 | // AWSECSTaskFamilyKey is the attribute Key conforming to the |
| 738 | // "aws.ecs.task.family" semantic conventions. It represents the family name of |
| 739 | // the [ECS task definition] used to create the ECS task. |
| 740 | // |
| 741 | // Type: string |
| 742 | // RequirementLevel: Recommended |
| 743 | // Stability: Development |
| 744 | // |
| 745 | // Examples: "opentelemetry-family" |
| 746 | // |
| 747 | // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html |
| 748 | AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family") |
| 749 | |
| 750 | // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id" |
| 751 | // semantic conventions. It represents the ID of a running ECS task. The ID MUST |
| 752 | // be extracted from `task.arn`. |
| 753 | // |
| 754 | // Type: string |
| 755 | // RequirementLevel: Recommended |
| 756 | // Stability: Development |
| 757 | // |
| 758 | // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b", |
| 759 | // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" |
| 760 | AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id") |
| 761 | |
| 762 | // AWSECSTaskRevisionKey is the attribute Key conforming to the |
| 763 | // "aws.ecs.task.revision" semantic conventions. It represents the revision for |
| 764 | // the task definition used to create the ECS task. |
| 765 | // |
| 766 | // Type: string |
| 767 | // RequirementLevel: Recommended |
| 768 | // Stability: Development |
| 769 | // |
| 770 | // Examples: "8", "26" |
| 771 | AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision") |
| 772 | |
| 773 | // AWSEKSClusterARNKey is the attribute Key conforming to the |
| 774 | // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS |
| 775 | // cluster. |
| 776 | // |
| 777 | // Type: string |
| 778 | // RequirementLevel: Recommended |
| 779 | // Stability: Development |
| 780 | // |
| 781 | // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" |
| 782 | AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn") |
| 783 | |
| 784 | // AWSExtendedRequestIDKey is the attribute Key conforming to the |
| 785 | // "aws.extended_request_id" semantic conventions. It represents the AWS |
| 786 | // extended request ID as returned in the response header `x-amz-id-2`. |
| 787 | // |
| 788 | // Type: string |
| 789 | // RequirementLevel: Recommended |
| 790 | // Stability: Development |
| 791 | // |
| 792 | // Examples: |
| 793 | // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=" |
| 794 | AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id") |
| 795 | |
| 796 | // AWSKinesisStreamNameKey is the attribute Key conforming to the |
| 797 | // "aws.kinesis.stream_name" semantic conventions. It represents the name of the |
| 798 | // AWS Kinesis [stream] the request refers to. Corresponds to the |
| 799 | // `--stream-name` parameter of the Kinesis [describe-stream] operation. |
| 800 | // |
| 801 | // Type: string |
| 802 | // RequirementLevel: Recommended |
| 803 | // Stability: Development |
| 804 | // |
| 805 | // Examples: "some-stream-name" |
| 806 | // |
| 807 | // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html |
| 808 | // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html |
| 809 | AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name") |
| 810 | |
| 811 | // AWSLambdaInvokedARNKey is the attribute Key conforming to the |
| 812 | // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked |
| 813 | // ARN as provided on the `Context` passed to the function ( |
| 814 | // `Lambda-Runtime-Invoked-Function-Arn` header on the |
| 815 | // `/runtime/invocation/next` applicable). |
| 816 | // |
| 817 | // Type: string |
| 818 | // RequirementLevel: Recommended |
| 819 | // Stability: Development |
| 820 | // |
| 821 | // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias" |
| 822 | // Note: This may be different from `cloud.resource_id` if an alias is involved. |
| 823 | AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn") |
| 824 | |
| 825 | // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the |
| 826 | // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID |
| 827 | // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda |
| 828 | // function. It's contents are read by Lambda and used to trigger a function. |
| 829 | // This isn't available in the lambda execution context or the lambda runtime |
| 830 | // environtment. This is going to be populated by the AWS SDK for each language |
| 831 | // when that UUID is present. Some of these operations are |
| 832 | // Create/Delete/Get/List/Update EventSourceMapping. |
| 833 | // |
| 834 | // Type: string |
| 835 | // RequirementLevel: Recommended |
| 836 | // Stability: Development |
| 837 | // |
| 838 | // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7" |
| 839 | // |
| 840 | // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html |
| 841 | AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id") |
| 842 | |
| 843 | // AWSLogGroupARNsKey is the attribute Key conforming to the |
| 844 | // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource |
| 845 | // Name(s) (ARN) of the AWS log group(s). |
| 846 | // |
| 847 | // Type: string[] |
| 848 | // RequirementLevel: Recommended |
| 849 | // Stability: Development |
| 850 | // |
| 851 | // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*" |
| 852 | // Note: See the [log group ARN format documentation]. |
| 853 | // |
| 854 | // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format |
| 855 | AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns") |
| 856 | |
| 857 | // AWSLogGroupNamesKey is the attribute Key conforming to the |
| 858 | // "aws.log.group.names" semantic conventions. It represents the name(s) of the |
| 859 | // AWS log group(s) an application is writing to. |
| 860 | // |
| 861 | // Type: string[] |
| 862 | // RequirementLevel: Recommended |
| 863 | // Stability: Development |
| 864 | // |
| 865 | // Examples: "/aws/lambda/my-function", "opentelemetry-service" |
| 866 | // Note: Multiple log groups must be supported for cases like multi-container |
| 867 | // applications, where a single application has sidecar containers, and each |
| 868 | // write to their own log group. |
| 869 | AWSLogGroupNamesKey = attribute.Key("aws.log.group.names") |
| 870 | |
| 871 | // AWSLogStreamARNsKey is the attribute Key conforming to the |
| 872 | // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the |
| 873 | // AWS log stream(s). |
| 874 | // |
| 875 | // Type: string[] |
| 876 | // RequirementLevel: Recommended |
| 877 | // Stability: Development |
| 878 | // |
| 879 | // Examples: |
| 880 | // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" |
| 881 | // Note: See the [log stream ARN format documentation]. One log group can |
| 882 | // contain several log streams, so these ARNs necessarily identify both a log |
| 883 | // group and a log stream. |
| 884 | // |
| 885 | // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format |
| 886 | AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns") |
| 887 | |
| 888 | // AWSLogStreamNamesKey is the attribute Key conforming to the |
| 889 | // "aws.log.stream.names" semantic conventions. It represents the name(s) of the |
| 890 | // AWS log stream(s) an application is writing to. |
| 891 | // |
| 892 | // Type: string[] |
| 893 | // RequirementLevel: Recommended |
| 894 | // Stability: Development |
| 895 | // |
| 896 | // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" |
| 897 | AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names") |
| 898 | |
| 899 | // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id" |
| 900 | // semantic conventions. It represents the AWS request ID as returned in the |
| 901 | // response headers `x-amzn-requestid`, `x-amzn-request-id` or |
| 902 | // `x-amz-request-id`. |
| 903 | // |
| 904 | // Type: string |
| 905 | // RequirementLevel: Recommended |
| 906 | // Stability: Development |
| 907 | // |
| 908 | // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ" |
| 909 | AWSRequestIDKey = attribute.Key("aws.request_id") |
| 910 | |
| 911 | // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket" |
| 912 | // semantic conventions. It represents the S3 bucket name the request refers to. |
| 913 | // Corresponds to the `--bucket` parameter of the [S3 API] operations. |
| 914 | // |
| 915 | // Type: string |
| 916 | // RequirementLevel: Recommended |
| 917 | // Stability: Development |
| 918 | // |
| 919 | // Examples: "some-bucket-name" |
| 920 | // Note: The `bucket` attribute is applicable to all S3 operations that |
| 921 | // reference a bucket, i.e. that require the bucket name as a mandatory |
| 922 | // parameter. |
| 923 | // This applies to almost all S3 operations except `list-buckets`. |
| 924 | // |
| 925 | // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html |
| 926 | AWSS3BucketKey = attribute.Key("aws.s3.bucket") |
| 927 | |
| 928 | // AWSS3CopySourceKey is the attribute Key conforming to the |
| 929 | // "aws.s3.copy_source" semantic conventions. It represents the source object |
| 930 | // (in the form `bucket`/`key`) for the copy operation. |
| 931 | // |
| 932 | // Type: string |
| 933 | // RequirementLevel: Recommended |
| 934 | // Stability: Development |
| 935 | // |
| 936 | // Examples: "someFile.yml" |
| 937 | // Note: The `copy_source` attribute applies to S3 copy operations and |
| 938 | // corresponds to the `--copy-source` parameter |
| 939 | // of the [copy-object operation within the S3 API]. |
| 940 | // This applies in particular to the following operations: |
| 941 | // |
| 942 | // - [copy-object] |
| 943 | // - [upload-part-copy] |
| 944 | // |
| 945 | // |
| 946 | // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html |
| 947 | // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html |
| 948 | // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html |
| 949 | AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source") |
| 950 | |
| 951 | // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete" |
| 952 | // semantic conventions. It represents the delete request container that |
| 953 | // specifies the objects to be deleted. |
| 954 | // |
| 955 | // Type: string |
| 956 | // RequirementLevel: Recommended |
| 957 | // Stability: Development |
| 958 | // |
| 959 | // Examples: |
| 960 | // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" |
| 961 | // Note: The `delete` attribute is only applicable to the [delete-object] |
| 962 | // operation. |
| 963 | // The `delete` attribute corresponds to the `--delete` parameter of the |
| 964 | // [delete-objects operation within the S3 API]. |
| 965 | // |
| 966 | // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html |
| 967 | // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html |
| 968 | AWSS3DeleteKey = attribute.Key("aws.s3.delete") |
| 969 | |
| 970 | // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic |
| 971 | // conventions. It represents the S3 object key the request refers to. |
| 972 | // Corresponds to the `--key` parameter of the [S3 API] operations. |
| 973 | // |
| 974 | // Type: string |
| 975 | // RequirementLevel: Recommended |
| 976 | // Stability: Development |
| 977 | // |
| 978 | // Examples: "someFile.yml" |
| 979 | // Note: The `key` attribute is applicable to all object-related S3 operations, |
| 980 | // i.e. that require the object key as a mandatory parameter. |
| 981 | // This applies in particular to the following operations: |
| 982 | // |
| 983 | // - [copy-object] |
| 984 | // - [delete-object] |
| 985 | // - [get-object] |
| 986 | // - [head-object] |
| 987 | // - [put-object] |
| 988 | // - [restore-object] |
| 989 | // - [select-object-content] |
| 990 | // - [abort-multipart-upload] |
| 991 | // - [complete-multipart-upload] |
| 992 | // - [create-multipart-upload] |
| 993 | // - [list-parts] |
| 994 | // - [upload-part] |
| 995 | // - [upload-part-copy] |
| 996 | // |
| 997 | // |
| 998 | // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html |
| 999 | // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html |
| 1000 | // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html |
| 1001 | // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html |
| 1002 | // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html |
| 1003 | // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html |
| 1004 | // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html |
| 1005 | // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html |
| 1006 | // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html |
| 1007 | // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html |
| 1008 | // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html |
| 1009 | // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html |
| 1010 | // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html |
| 1011 | // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html |
| 1012 | AWSS3KeyKey = attribute.Key("aws.s3.key") |
| 1013 | |
| 1014 | // AWSS3PartNumberKey is the attribute Key conforming to the |
| 1015 | // "aws.s3.part_number" semantic conventions. It represents the part number of |
| 1016 | // the part being uploaded in a multipart-upload operation. This is a positive |
| 1017 | // integer between 1 and 10,000. |
| 1018 | // |
| 1019 | // Type: int |
| 1020 | // RequirementLevel: Recommended |
| 1021 | // Stability: Development |
| 1022 | // |
| 1023 | // Examples: 3456 |
| 1024 | // Note: The `part_number` attribute is only applicable to the [upload-part] |
| 1025 | // and [upload-part-copy] operations. |
| 1026 | // The `part_number` attribute corresponds to the `--part-number` parameter of |
| 1027 | // the |
| 1028 | // [upload-part operation within the S3 API]. |
| 1029 | // |
| 1030 | // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html |
| 1031 | // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html |
| 1032 | // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html |
| 1033 | AWSS3PartNumberKey = attribute.Key("aws.s3.part_number") |
| 1034 | |
| 1035 | // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id" |
| 1036 | // semantic conventions. It represents the upload ID that identifies the |
| 1037 | // multipart upload. |
| 1038 | // |
| 1039 | // Type: string |
| 1040 | // RequirementLevel: Recommended |
| 1041 | // Stability: Development |
| 1042 | // |
| 1043 | // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ" |
| 1044 | // Note: The `upload_id` attribute applies to S3 multipart-upload operations and |
| 1045 | // corresponds to the `--upload-id` parameter |
| 1046 | // of the [S3 API] multipart operations. |
| 1047 | // This applies in particular to the following operations: |
| 1048 | // |
| 1049 | // - [abort-multipart-upload] |
| 1050 | // - [complete-multipart-upload] |
| 1051 | // - [list-parts] |
| 1052 | // - [upload-part] |
| 1053 | // - [upload-part-copy] |
| 1054 | // |
| 1055 | // |
| 1056 | // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html |
| 1057 | // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html |
| 1058 | // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html |
| 1059 | // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html |
| 1060 | // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html |
| 1061 | // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html |
| 1062 | AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id") |
| 1063 | |
| 1064 | // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the |
| 1065 | // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN |
| 1066 | // of the Secret stored in the Secrets Mangger. |
| 1067 | // |
| 1068 | // Type: string |
| 1069 | // RequirementLevel: Recommended |
| 1070 | // Stability: Development |
| 1071 | // |
| 1072 | // Examples: |
| 1073 | // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters" |
| 1074 | AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn") |
| 1075 | |
| 1076 | // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn" |
| 1077 | // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon |
| 1078 | // SNS [topic] is a logical access point that acts as a communication channel. |
| 1079 | // |
| 1080 | // Type: string |
| 1081 | // RequirementLevel: Recommended |
| 1082 | // Stability: Development |
| 1083 | // |
| 1084 | // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE" |
| 1085 | // |
| 1086 | // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html |
| 1087 | AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn") |
| 1088 | |
| 1089 | // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url" |
| 1090 | // semantic conventions. It represents the URL of the AWS SQS Queue. It's a |
| 1091 | // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is |
| 1092 | // used to access the queue and perform actions on it. |
| 1093 | // |
| 1094 | // Type: string |
| 1095 | // RequirementLevel: Recommended |
| 1096 | // Stability: Development |
| 1097 | // |
| 1098 | // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue" |
| 1099 | AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url") |
| 1100 | |
| 1101 | // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the |
| 1102 | // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN |
| 1103 | // of the AWS Step Functions Activity. |
| 1104 | // |
| 1105 | // Type: string |
| 1106 | // RequirementLevel: Recommended |
| 1107 | // Stability: Development |
| 1108 | // |
| 1109 | // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting" |
| 1110 | AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn") |
| 1111 | |
| 1112 | // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the |
| 1113 | // "aws.step_functions.state_machine.arn" semantic conventions. It represents |
| 1114 | // the ARN of the AWS Step Functions State Machine. |
| 1115 | // |
| 1116 | // Type: string |
| 1117 | // RequirementLevel: Recommended |
| 1118 | // Stability: Development |
| 1119 | // |
| 1120 | // Examples: |
| 1121 | // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1" |
| 1122 | AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn") |
| 1123 | ) |
| 1124 | |
| 1125 | // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the |
| 1126 | // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique |
| 1127 | // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and |
| 1128 | // prevent unwanted behavior from model responses or user messages. |
| 1129 | // |
| 1130 | // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html |
| 1131 | func AWSBedrockGuardrailID(val string) attribute.KeyValue { |
| 1132 | return AWSBedrockGuardrailIDKey.String(val) |
| 1133 | } |
| 1134 | |
| 1135 | // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the |
| 1136 | // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique |
| 1137 | // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of |
| 1138 | // information that can be queried by models to generate more relevant responses |
| 1139 | // and augment prompts. |
| 1140 | // |
| 1141 | // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html |
| 1142 | func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue { |
| 1143 | return AWSBedrockKnowledgeBaseIDKey.String(val) |
| 1144 | } |
| 1145 | |
| 1146 | // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to |
| 1147 | // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents |
| 1148 | // the JSON-serialized value of each item in the `AttributeDefinitions` request |
| 1149 | // field. |
| 1150 | func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue { |
| 1151 | return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val) |
| 1152 | } |
| 1153 | |
| 1154 | // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the |
| 1155 | // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value |
| 1156 | // of the `AttributesToGet` request parameter. |
| 1157 | func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue { |
| 1158 | return AWSDynamoDBAttributesToGetKey.StringSlice(val) |
| 1159 | } |
| 1160 | |
| 1161 | // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the |
| 1162 | // "aws.dynamodb.consistent_read" semantic conventions. It represents the value |
| 1163 | // of the `ConsistentRead` request parameter. |
| 1164 | func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue { |
| 1165 | return AWSDynamoDBConsistentReadKey.Bool(val) |
| 1166 | } |
| 1167 | |
| 1168 | // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the |
| 1169 | // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the |
| 1170 | // JSON-serialized value of each item in the `ConsumedCapacity` response field. |
| 1171 | func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue { |
| 1172 | return AWSDynamoDBConsumedCapacityKey.StringSlice(val) |
| 1173 | } |
| 1174 | |
| 1175 | // AWSDynamoDBCount returns an attribute KeyValue conforming to the |
| 1176 | // "aws.dynamodb.count" semantic conventions. It represents the value of the |
| 1177 | // `Count` response parameter. |
| 1178 | func AWSDynamoDBCount(val int) attribute.KeyValue { |
| 1179 | return AWSDynamoDBCountKey.Int(val) |
| 1180 | } |
| 1181 | |
| 1182 | // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the |
| 1183 | // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the |
| 1184 | // value of the `ExclusiveStartTableName` request parameter. |
| 1185 | func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue { |
| 1186 | return AWSDynamoDBExclusiveStartTableKey.String(val) |
| 1187 | } |
| 1188 | |
| 1189 | // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue |
| 1190 | // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic |
| 1191 | // conventions. It represents the JSON-serialized value of each item in the |
| 1192 | // `GlobalSecondaryIndexUpdates` request field. |
| 1193 | func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue { |
| 1194 | return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val) |
| 1195 | } |
| 1196 | |
| 1197 | // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to |
| 1198 | // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It |
| 1199 | // represents the JSON-serialized value of each item of the |
| 1200 | // `GlobalSecondaryIndexes` request field. |
| 1201 | func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue { |
| 1202 | return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val) |
| 1203 | } |
| 1204 | |
| 1205 | // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the |
| 1206 | // "aws.dynamodb.index_name" semantic conventions. It represents the value of the |
| 1207 | // `IndexName` request parameter. |
| 1208 | func AWSDynamoDBIndexName(val string) attribute.KeyValue { |
| 1209 | return AWSDynamoDBIndexNameKey.String(val) |
| 1210 | } |
| 1211 | |
| 1212 | // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to |
| 1213 | // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents |
| 1214 | // the JSON-serialized value of the `ItemCollectionMetrics` response field. |
| 1215 | func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue { |
| 1216 | return AWSDynamoDBItemCollectionMetricsKey.String(val) |
| 1217 | } |
| 1218 | |
| 1219 | // AWSDynamoDBLimit returns an attribute KeyValue conforming to the |
| 1220 | // "aws.dynamodb.limit" semantic conventions. It represents the value of the |
| 1221 | // `Limit` request parameter. |
| 1222 | func AWSDynamoDBLimit(val int) attribute.KeyValue { |
| 1223 | return AWSDynamoDBLimitKey.Int(val) |
| 1224 | } |
| 1225 | |
| 1226 | // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to |
| 1227 | // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents |
| 1228 | // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request |
| 1229 | // field. |
| 1230 | func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue { |
| 1231 | return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val) |
| 1232 | } |
| 1233 | |
| 1234 | // AWSDynamoDBProjection returns an attribute KeyValue conforming to the |
| 1235 | // "aws.dynamodb.projection" semantic conventions. It represents the value of the |
| 1236 | // `ProjectionExpression` request parameter. |
| 1237 | func AWSDynamoDBProjection(val string) attribute.KeyValue { |
| 1238 | return AWSDynamoDBProjectionKey.String(val) |
| 1239 | } |
| 1240 | |
| 1241 | // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to |
| 1242 | // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It |
| 1243 | // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request |
| 1244 | // parameter. |
| 1245 | func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue { |
| 1246 | return AWSDynamoDBProvisionedReadCapacityKey.Float64(val) |
| 1247 | } |
| 1248 | |
| 1249 | // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming |
| 1250 | // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It |
| 1251 | // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request |
| 1252 | // parameter. |
| 1253 | func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue { |
| 1254 | return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val) |
| 1255 | } |
| 1256 | |
| 1257 | // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the |
| 1258 | // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of |
| 1259 | // the `ScanIndexForward` request parameter. |
| 1260 | func AWSDynamoDBScanForward(val bool) attribute.KeyValue { |
| 1261 | return AWSDynamoDBScanForwardKey.Bool(val) |
| 1262 | } |
| 1263 | |
| 1264 | // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the |
| 1265 | // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of |
| 1266 | // the `ScannedCount` response parameter. |
| 1267 | func AWSDynamoDBScannedCount(val int) attribute.KeyValue { |
| 1268 | return AWSDynamoDBScannedCountKey.Int(val) |
| 1269 | } |
| 1270 | |
| 1271 | // AWSDynamoDBSegment returns an attribute KeyValue conforming to the |
| 1272 | // "aws.dynamodb.segment" semantic conventions. It represents the value of the |
| 1273 | // `Segment` request parameter. |
| 1274 | func AWSDynamoDBSegment(val int) attribute.KeyValue { |
| 1275 | return AWSDynamoDBSegmentKey.Int(val) |
| 1276 | } |
| 1277 | |
| 1278 | // AWSDynamoDBSelect returns an attribute KeyValue conforming to the |
| 1279 | // "aws.dynamodb.select" semantic conventions. It represents the value of the |
| 1280 | // `Select` request parameter. |
| 1281 | func AWSDynamoDBSelect(val string) attribute.KeyValue { |
| 1282 | return AWSDynamoDBSelectKey.String(val) |
| 1283 | } |
| 1284 | |
| 1285 | // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the |
| 1286 | // "aws.dynamodb.table_count" semantic conventions. It represents the number of |
| 1287 | // items in the `TableNames` response parameter. |
| 1288 | func AWSDynamoDBTableCount(val int) attribute.KeyValue { |
| 1289 | return AWSDynamoDBTableCountKey.Int(val) |
| 1290 | } |
| 1291 | |
| 1292 | // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the |
| 1293 | // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the |
| 1294 | // `RequestItems` object field. |
| 1295 | func AWSDynamoDBTableNames(val ...string) attribute.KeyValue { |
| 1296 | return AWSDynamoDBTableNamesKey.StringSlice(val) |
| 1297 | } |
| 1298 | |
| 1299 | // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the |
| 1300 | // "aws.dynamodb.total_segments" semantic conventions. It represents the value of |
| 1301 | // the `TotalSegments` request parameter. |
| 1302 | func AWSDynamoDBTotalSegments(val int) attribute.KeyValue { |
| 1303 | return AWSDynamoDBTotalSegmentsKey.Int(val) |
| 1304 | } |
| 1305 | |
| 1306 | // AWSECSClusterARN returns an attribute KeyValue conforming to the |
| 1307 | // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an |
| 1308 | // [ECS cluster]. |
| 1309 | // |
| 1310 | // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html |
| 1311 | func AWSECSClusterARN(val string) attribute.KeyValue { |
| 1312 | return AWSECSClusterARNKey.String(val) |
| 1313 | } |
| 1314 | |
| 1315 | // AWSECSContainerARN returns an attribute KeyValue conforming to the |
| 1316 | // "aws.ecs.container.arn" semantic conventions. It represents the Amazon |
| 1317 | // Resource Name (ARN) of an [ECS container instance]. |
| 1318 | // |
| 1319 | // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html |
| 1320 | func AWSECSContainerARN(val string) attribute.KeyValue { |
| 1321 | return AWSECSContainerARNKey.String(val) |
| 1322 | } |
| 1323 | |
| 1324 | // AWSECSTaskARN returns an attribute KeyValue conforming to the |
| 1325 | // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running |
| 1326 | // [ECS task]. |
| 1327 | // |
| 1328 | // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids |
| 1329 | func AWSECSTaskARN(val string) attribute.KeyValue { |
| 1330 | return AWSECSTaskARNKey.String(val) |
| 1331 | } |
| 1332 | |
| 1333 | // AWSECSTaskFamily returns an attribute KeyValue conforming to the |
| 1334 | // "aws.ecs.task.family" semantic conventions. It represents the family name of |
| 1335 | // the [ECS task definition] used to create the ECS task. |
| 1336 | // |
| 1337 | // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html |
| 1338 | func AWSECSTaskFamily(val string) attribute.KeyValue { |
| 1339 | return AWSECSTaskFamilyKey.String(val) |
| 1340 | } |
| 1341 | |
| 1342 | // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id" |
| 1343 | // semantic conventions. It represents the ID of a running ECS task. The ID MUST |
| 1344 | // be extracted from `task.arn`. |
| 1345 | func AWSECSTaskID(val string) attribute.KeyValue { |
| 1346 | return AWSECSTaskIDKey.String(val) |
| 1347 | } |
| 1348 | |
| 1349 | // AWSECSTaskRevision returns an attribute KeyValue conforming to the |
| 1350 | // "aws.ecs.task.revision" semantic conventions. It represents the revision for |
| 1351 | // the task definition used to create the ECS task. |
| 1352 | func AWSECSTaskRevision(val string) attribute.KeyValue { |
| 1353 | return AWSECSTaskRevisionKey.String(val) |
| 1354 | } |
| 1355 | |
| 1356 | // AWSEKSClusterARN returns an attribute KeyValue conforming to the |
| 1357 | // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS |
| 1358 | // cluster. |
| 1359 | func AWSEKSClusterARN(val string) attribute.KeyValue { |
| 1360 | return AWSEKSClusterARNKey.String(val) |
| 1361 | } |
| 1362 | |
| 1363 | // AWSExtendedRequestID returns an attribute KeyValue conforming to the |
| 1364 | // "aws.extended_request_id" semantic conventions. It represents the AWS extended |
| 1365 | // request ID as returned in the response header `x-amz-id-2`. |
| 1366 | func AWSExtendedRequestID(val string) attribute.KeyValue { |
| 1367 | return AWSExtendedRequestIDKey.String(val) |
| 1368 | } |
| 1369 | |
| 1370 | // AWSKinesisStreamName returns an attribute KeyValue conforming to the |
| 1371 | // "aws.kinesis.stream_name" semantic conventions. It represents the name of the |
| 1372 | // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name` |
| 1373 | // parameter of the Kinesis [describe-stream] operation. |
| 1374 | // |
| 1375 | // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html |
| 1376 | // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html |
| 1377 | func AWSKinesisStreamName(val string) attribute.KeyValue { |
| 1378 | return AWSKinesisStreamNameKey.String(val) |
| 1379 | } |
| 1380 | |
| 1381 | // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the |
| 1382 | // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked |
| 1383 | // ARN as provided on the `Context` passed to the function ( |
| 1384 | // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` |
| 1385 | // applicable). |
| 1386 | func AWSLambdaInvokedARN(val string) attribute.KeyValue { |
| 1387 | return AWSLambdaInvokedARNKey.String(val) |
| 1388 | } |
| 1389 | |
| 1390 | // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the |
| 1391 | // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID |
| 1392 | // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda |
| 1393 | // function. It's contents are read by Lambda and used to trigger a function. |
| 1394 | // This isn't available in the lambda execution context or the lambda runtime |
| 1395 | // environtment. This is going to be populated by the AWS SDK for each language |
| 1396 | // when that UUID is present. Some of these operations are |
| 1397 | // Create/Delete/Get/List/Update EventSourceMapping. |
| 1398 | // |
| 1399 | // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html |
| 1400 | func AWSLambdaResourceMappingID(val string) attribute.KeyValue { |
| 1401 | return AWSLambdaResourceMappingIDKey.String(val) |
| 1402 | } |
| 1403 | |
| 1404 | // AWSLogGroupARNs returns an attribute KeyValue conforming to the |
| 1405 | // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource |
| 1406 | // Name(s) (ARN) of the AWS log group(s). |
| 1407 | func AWSLogGroupARNs(val ...string) attribute.KeyValue { |
| 1408 | return AWSLogGroupARNsKey.StringSlice(val) |
| 1409 | } |
| 1410 | |
| 1411 | // AWSLogGroupNames returns an attribute KeyValue conforming to the |
| 1412 | // "aws.log.group.names" semantic conventions. It represents the name(s) of the |
| 1413 | // AWS log group(s) an application is writing to. |
| 1414 | func AWSLogGroupNames(val ...string) attribute.KeyValue { |
| 1415 | return AWSLogGroupNamesKey.StringSlice(val) |
| 1416 | } |
| 1417 | |
| 1418 | // AWSLogStreamARNs returns an attribute KeyValue conforming to the |
| 1419 | // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the |
| 1420 | // AWS log stream(s). |
| 1421 | func AWSLogStreamARNs(val ...string) attribute.KeyValue { |
| 1422 | return AWSLogStreamARNsKey.StringSlice(val) |
| 1423 | } |
| 1424 | |
| 1425 | // AWSLogStreamNames returns an attribute KeyValue conforming to the |
| 1426 | // "aws.log.stream.names" semantic conventions. It represents the name(s) of the |
| 1427 | // AWS log stream(s) an application is writing to. |
| 1428 | func AWSLogStreamNames(val ...string) attribute.KeyValue { |
| 1429 | return AWSLogStreamNamesKey.StringSlice(val) |
| 1430 | } |
| 1431 | |
| 1432 | // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id" |
| 1433 | // semantic conventions. It represents the AWS request ID as returned in the |
| 1434 | // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id` |
| 1435 | // . |
| 1436 | func AWSRequestID(val string) attribute.KeyValue { |
| 1437 | return AWSRequestIDKey.String(val) |
| 1438 | } |
| 1439 | |
| 1440 | // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket" |
| 1441 | // semantic conventions. It represents the S3 bucket name the request refers to. |
| 1442 | // Corresponds to the `--bucket` parameter of the [S3 API] operations. |
| 1443 | // |
| 1444 | // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html |
| 1445 | func AWSS3Bucket(val string) attribute.KeyValue { |
| 1446 | return AWSS3BucketKey.String(val) |
| 1447 | } |
| 1448 | |
| 1449 | // AWSS3CopySource returns an attribute KeyValue conforming to the |
| 1450 | // "aws.s3.copy_source" semantic conventions. It represents the source object (in |
| 1451 | // the form `bucket`/`key`) for the copy operation. |
| 1452 | func AWSS3CopySource(val string) attribute.KeyValue { |
| 1453 | return AWSS3CopySourceKey.String(val) |
| 1454 | } |
| 1455 | |
| 1456 | // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete" |
| 1457 | // semantic conventions. It represents the delete request container that |
| 1458 | // specifies the objects to be deleted. |
| 1459 | func AWSS3Delete(val string) attribute.KeyValue { |
| 1460 | return AWSS3DeleteKey.String(val) |
| 1461 | } |
| 1462 | |
| 1463 | // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic |
| 1464 | // conventions. It represents the S3 object key the request refers to. |
| 1465 | // Corresponds to the `--key` parameter of the [S3 API] operations. |
| 1466 | // |
| 1467 | // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html |
| 1468 | func AWSS3Key(val string) attribute.KeyValue { |
| 1469 | return AWSS3KeyKey.String(val) |
| 1470 | } |
| 1471 | |
| 1472 | // AWSS3PartNumber returns an attribute KeyValue conforming to the |
| 1473 | // "aws.s3.part_number" semantic conventions. It represents the part number of |
| 1474 | // the part being uploaded in a multipart-upload operation. This is a positive |
| 1475 | // integer between 1 and 10,000. |
| 1476 | func AWSS3PartNumber(val int) attribute.KeyValue { |
| 1477 | return AWSS3PartNumberKey.Int(val) |
| 1478 | } |
| 1479 | |
| 1480 | // AWSS3UploadID returns an attribute KeyValue conforming to the |
| 1481 | // "aws.s3.upload_id" semantic conventions. It represents the upload ID that |
| 1482 | // identifies the multipart upload. |
| 1483 | func AWSS3UploadID(val string) attribute.KeyValue { |
| 1484 | return AWSS3UploadIDKey.String(val) |
| 1485 | } |
| 1486 | |
| 1487 | // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the |
| 1488 | // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of |
| 1489 | // the Secret stored in the Secrets Mangger. |
| 1490 | func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue { |
| 1491 | return AWSSecretsmanagerSecretARNKey.String(val) |
| 1492 | } |
| 1493 | |
| 1494 | // AWSSNSTopicARN returns an attribute KeyValue conforming to the |
| 1495 | // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS |
| 1496 | // Topic. An Amazon SNS [topic] is a logical access point that acts as a |
| 1497 | // communication channel. |
| 1498 | // |
| 1499 | // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html |
| 1500 | func AWSSNSTopicARN(val string) attribute.KeyValue { |
| 1501 | return AWSSNSTopicARNKey.String(val) |
| 1502 | } |
| 1503 | |
| 1504 | // AWSSQSQueueURL returns an attribute KeyValue conforming to the |
| 1505 | // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS |
| 1506 | // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service |
| 1507 | // (SQS) and is used to access the queue and perform actions on it. |
| 1508 | func AWSSQSQueueURL(val string) attribute.KeyValue { |
| 1509 | return AWSSQSQueueURLKey.String(val) |
| 1510 | } |
| 1511 | |
| 1512 | // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the |
| 1513 | // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN |
| 1514 | // of the AWS Step Functions Activity. |
| 1515 | func AWSStepFunctionsActivityARN(val string) attribute.KeyValue { |
| 1516 | return AWSStepFunctionsActivityARNKey.String(val) |
| 1517 | } |
| 1518 | |
| 1519 | // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to |
| 1520 | // the "aws.step_functions.state_machine.arn" semantic conventions. It represents |
| 1521 | // the ARN of the AWS Step Functions State Machine. |
| 1522 | func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue { |
| 1523 | return AWSStepFunctionsStateMachineARNKey.String(val) |
| 1524 | } |
| 1525 | |
| 1526 | // Enum values for aws.ecs.launchtype |
| 1527 | var ( |
| 1528 | // ec2 |
| 1529 | // Stability: development |
| 1530 | AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2") |
| 1531 | // fargate |
| 1532 | // Stability: development |
| 1533 | AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate") |
| 1534 | ) |
| 1535 | |
| 1536 | // Namespace: az |
| 1537 | const ( |
| 1538 | // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic |
| 1539 | // conventions. It represents the [Azure Resource Provider Namespace] as |
| 1540 | // recognized by the client. |
| 1541 | // |
| 1542 | // Type: string |
| 1543 | // RequirementLevel: Recommended |
| 1544 | // Stability: Development |
| 1545 | // |
| 1546 | // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus" |
| 1547 | // |
| 1548 | // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers |
| 1549 | AzNamespaceKey = attribute.Key("az.namespace") |
| 1550 | |
| 1551 | // AzServiceRequestIDKey is the attribute Key conforming to the |
| 1552 | // "az.service_request_id" semantic conventions. It represents the unique |
| 1553 | // identifier of the service request. It's generated by the Azure service and |
| 1554 | // returned with the response. |
| 1555 | // |
| 1556 | // Type: string |
| 1557 | // RequirementLevel: Recommended |
| 1558 | // Stability: Development |
| 1559 | // |
| 1560 | // Examples: "00000000-0000-0000-0000-000000000000" |
| 1561 | AzServiceRequestIDKey = attribute.Key("az.service_request_id") |
| 1562 | ) |
| 1563 | |
| 1564 | // AzNamespace returns an attribute KeyValue conforming to the "az.namespace" |
| 1565 | // semantic conventions. It represents the [Azure Resource Provider Namespace] as |
| 1566 | // recognized by the client. |
| 1567 | // |
| 1568 | // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers |
| 1569 | func AzNamespace(val string) attribute.KeyValue { |
| 1570 | return AzNamespaceKey.String(val) |
| 1571 | } |
| 1572 | |
| 1573 | // AzServiceRequestID returns an attribute KeyValue conforming to the |
| 1574 | // "az.service_request_id" semantic conventions. It represents the unique |
| 1575 | // identifier of the service request. It's generated by the Azure service and |
| 1576 | // returned with the response. |
| 1577 | func AzServiceRequestID(val string) attribute.KeyValue { |
| 1578 | return AzServiceRequestIDKey.String(val) |
| 1579 | } |
| 1580 | |
| 1581 | // Namespace: azure |
| 1582 | const ( |
| 1583 | // AzureClientIDKey is the attribute Key conforming to the "azure.client.id" |
| 1584 | // semantic conventions. It represents the unique identifier of the client |
| 1585 | // instance. |
| 1586 | // |
| 1587 | // Type: string |
| 1588 | // RequirementLevel: Recommended |
| 1589 | // Stability: Development |
| 1590 | // |
| 1591 | // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1" |
| 1592 | AzureClientIDKey = attribute.Key("azure.client.id") |
| 1593 | |
| 1594 | // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the |
| 1595 | // "azure.cosmosdb.connection.mode" semantic conventions. It represents the |
| 1596 | // cosmos client connection mode. |
| 1597 | // |
| 1598 | // Type: Enum |
| 1599 | // RequirementLevel: Recommended |
| 1600 | // Stability: Development |
| 1601 | // |
| 1602 | // Examples: |
| 1603 | AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode") |
| 1604 | |
| 1605 | // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the |
| 1606 | // "azure.cosmosdb.consistency.level" semantic conventions. It represents the |
| 1607 | // account or request [consistency level]. |
| 1608 | // |
| 1609 | // Type: Enum |
| 1610 | // RequirementLevel: Recommended |
| 1611 | // Stability: Development |
| 1612 | // |
| 1613 | // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong", |
| 1614 | // "Session" |
| 1615 | // |
| 1616 | // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels |
| 1617 | AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level") |
| 1618 | |
| 1619 | // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to |
| 1620 | // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It |
| 1621 | // represents the list of regions contacted during operation in the order that |
| 1622 | // they were contacted. If there is more than one region listed, it indicates |
| 1623 | // that the operation was performed on multiple regions i.e. cross-regional |
| 1624 | // call. |
| 1625 | // |
| 1626 | // Type: string[] |
| 1627 | // RequirementLevel: Recommended |
| 1628 | // Stability: Development |
| 1629 | // |
| 1630 | // Examples: "North Central US", "Australia East", "Australia Southeast" |
| 1631 | // Note: Region name matches the format of `displayName` in [Azure Location API] |
| 1632 | // |
| 1633 | // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location |
| 1634 | AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions") |
| 1635 | |
| 1636 | // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the |
| 1637 | // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents |
| 1638 | // the number of request units consumed by the operation. |
| 1639 | // |
| 1640 | // Type: double |
| 1641 | // RequirementLevel: Recommended |
| 1642 | // Stability: Development |
| 1643 | // |
| 1644 | // Examples: 46.18, 1.0 |
| 1645 | AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge") |
| 1646 | |
| 1647 | // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the |
| 1648 | // "azure.cosmosdb.request.body.size" semantic conventions. It represents the |
| 1649 | // request payload size in bytes. |
| 1650 | // |
| 1651 | // Type: int |
| 1652 | // RequirementLevel: Recommended |
| 1653 | // Stability: Development |
| 1654 | // |
| 1655 | // Examples: |
| 1656 | AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size") |
| 1657 | |
| 1658 | // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the |
| 1659 | // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents |
| 1660 | // the cosmos DB sub status code. |
| 1661 | // |
| 1662 | // Type: int |
| 1663 | // RequirementLevel: Recommended |
| 1664 | // Stability: Development |
| 1665 | // |
| 1666 | // Examples: 1000, 1002 |
| 1667 | AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code") |
| 1668 | ) |
| 1669 | |
| 1670 | // AzureClientID returns an attribute KeyValue conforming to the |
| 1671 | // "azure.client.id" semantic conventions. It represents the unique identifier of |
| 1672 | // the client instance. |
| 1673 | func AzureClientID(val string) attribute.KeyValue { |
| 1674 | return AzureClientIDKey.String(val) |
| 1675 | } |
| 1676 | |
| 1677 | // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue |
| 1678 | // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic |
| 1679 | // conventions. It represents the list of regions contacted during operation in |
| 1680 | // the order that they were contacted. If there is more than one region listed, |
| 1681 | // it indicates that the operation was performed on multiple regions i.e. |
| 1682 | // cross-regional call. |
| 1683 | func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue { |
| 1684 | return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val) |
| 1685 | } |
| 1686 | |
| 1687 | // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming |
| 1688 | // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It |
| 1689 | // represents the number of request units consumed by the operation. |
| 1690 | func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue { |
| 1691 | return AzureCosmosDBOperationRequestChargeKey.Float64(val) |
| 1692 | } |
| 1693 | |
| 1694 | // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the |
| 1695 | // "azure.cosmosdb.request.body.size" semantic conventions. It represents the |
| 1696 | // request payload size in bytes. |
| 1697 | func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue { |
| 1698 | return AzureCosmosDBRequestBodySizeKey.Int(val) |
| 1699 | } |
| 1700 | |
| 1701 | // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to |
| 1702 | // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It |
| 1703 | // represents the cosmos DB sub status code. |
| 1704 | func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue { |
| 1705 | return AzureCosmosDBResponseSubStatusCodeKey.Int(val) |
| 1706 | } |
| 1707 | |
| 1708 | // Enum values for azure.cosmosdb.connection.mode |
| 1709 | var ( |
| 1710 | // Gateway (HTTP) connection. |
| 1711 | // Stability: development |
| 1712 | AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway") |
| 1713 | // Direct connection. |
| 1714 | // Stability: development |
| 1715 | AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct") |
| 1716 | ) |
| 1717 | |
| 1718 | // Enum values for azure.cosmosdb.consistency.level |
| 1719 | var ( |
| 1720 | // strong |
| 1721 | // Stability: development |
| 1722 | AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong") |
| 1723 | // bounded_staleness |
| 1724 | // Stability: development |
| 1725 | AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness") |
| 1726 | // session |
| 1727 | // Stability: development |
| 1728 | AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session") |
| 1729 | // eventual |
| 1730 | // Stability: development |
| 1731 | AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual") |
| 1732 | // consistent_prefix |
| 1733 | // Stability: development |
| 1734 | AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix") |
| 1735 | ) |
| 1736 | |
| 1737 | // Namespace: browser |
| 1738 | const ( |
| 1739 | // BrowserBrandsKey is the attribute Key conforming to the "browser.brands" |
| 1740 | // semantic conventions. It represents the array of brand name and version |
| 1741 | // separated by a space. |
| 1742 | // |
| 1743 | // Type: string[] |
| 1744 | // RequirementLevel: Recommended |
| 1745 | // Stability: Development |
| 1746 | // |
| 1747 | // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99" |
| 1748 | // Note: This value is intended to be taken from the [UA client hints API] ( |
| 1749 | // `navigator.userAgentData.brands`). |
| 1750 | // |
| 1751 | // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface |
| 1752 | BrowserBrandsKey = attribute.Key("browser.brands") |
| 1753 | |
| 1754 | // BrowserLanguageKey is the attribute Key conforming to the "browser.language" |
| 1755 | // semantic conventions. It represents the preferred language of the user using |
| 1756 | // the browser. |
| 1757 | // |
| 1758 | // Type: string |
| 1759 | // RequirementLevel: Recommended |
| 1760 | // Stability: Development |
| 1761 | // |
| 1762 | // Examples: "en", "en-US", "fr", "fr-FR" |
| 1763 | // Note: This value is intended to be taken from the Navigator API |
| 1764 | // `navigator.language`. |
| 1765 | BrowserLanguageKey = attribute.Key("browser.language") |
| 1766 | |
| 1767 | // BrowserMobileKey is the attribute Key conforming to the "browser.mobile" |
| 1768 | // semantic conventions. It represents a boolean that is true if the browser is |
| 1769 | // running on a mobile device. |
| 1770 | // |
| 1771 | // Type: boolean |
| 1772 | // RequirementLevel: Recommended |
| 1773 | // Stability: Development |
| 1774 | // |
| 1775 | // Examples: |
| 1776 | // Note: This value is intended to be taken from the [UA client hints API] ( |
| 1777 | // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be |
| 1778 | // left unset. |
| 1779 | // |
| 1780 | // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface |
| 1781 | BrowserMobileKey = attribute.Key("browser.mobile") |
| 1782 | |
| 1783 | // BrowserPlatformKey is the attribute Key conforming to the "browser.platform" |
| 1784 | // semantic conventions. It represents the platform on which the browser is |
| 1785 | // running. |
| 1786 | // |
| 1787 | // Type: string |
| 1788 | // RequirementLevel: Recommended |
| 1789 | // Stability: Development |
| 1790 | // |
| 1791 | // Examples: "Windows", "macOS", "Android" |
| 1792 | // Note: This value is intended to be taken from the [UA client hints API] ( |
| 1793 | // `navigator.userAgentData.platform`). If unavailable, the legacy |
| 1794 | // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD |
| 1795 | // be left unset in order for the values to be consistent. |
| 1796 | // The list of possible values is defined in the |
| 1797 | // [W3C User-Agent Client Hints specification]. Note that some (but not all) of |
| 1798 | // these values can overlap with values in the |
| 1799 | // [`os.type` and `os.name` attributes]. However, for consistency, the values in |
| 1800 | // the `browser.platform` attribute should capture the exact value that the user |
| 1801 | // agent provides. |
| 1802 | // |
| 1803 | // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface |
| 1804 | // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform |
| 1805 | // [`os.type` and `os.name` attributes]: ./os.md |
| 1806 | BrowserPlatformKey = attribute.Key("browser.platform") |
| 1807 | ) |
| 1808 | |
| 1809 | // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands" |
| 1810 | // semantic conventions. It represents the array of brand name and version |
| 1811 | // separated by a space. |
| 1812 | func BrowserBrands(val ...string) attribute.KeyValue { |
| 1813 | return BrowserBrandsKey.StringSlice(val) |
| 1814 | } |
| 1815 | |
| 1816 | // BrowserLanguage returns an attribute KeyValue conforming to the |
| 1817 | // "browser.language" semantic conventions. It represents the preferred language |
| 1818 | // of the user using the browser. |
| 1819 | func BrowserLanguage(val string) attribute.KeyValue { |
| 1820 | return BrowserLanguageKey.String(val) |
| 1821 | } |
| 1822 | |
| 1823 | // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile" |
| 1824 | // semantic conventions. It represents a boolean that is true if the browser is |
| 1825 | // running on a mobile device. |
| 1826 | func BrowserMobile(val bool) attribute.KeyValue { |
| 1827 | return BrowserMobileKey.Bool(val) |
| 1828 | } |
| 1829 | |
| 1830 | // BrowserPlatform returns an attribute KeyValue conforming to the |
| 1831 | // "browser.platform" semantic conventions. It represents the platform on which |
| 1832 | // the browser is running. |
| 1833 | func BrowserPlatform(val string) attribute.KeyValue { |
| 1834 | return BrowserPlatformKey.String(val) |
| 1835 | } |
| 1836 | |
| 1837 | // Namespace: cassandra |
| 1838 | const ( |
| 1839 | // CassandraConsistencyLevelKey is the attribute Key conforming to the |
| 1840 | // "cassandra.consistency.level" semantic conventions. It represents the |
| 1841 | // consistency level of the query. Based on consistency values from [CQL]. |
| 1842 | // |
| 1843 | // Type: Enum |
| 1844 | // RequirementLevel: Recommended |
| 1845 | // Stability: Development |
| 1846 | // |
| 1847 | // Examples: |
| 1848 | // |
| 1849 | // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html |
| 1850 | CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level") |
| 1851 | |
| 1852 | // CassandraCoordinatorDCKey is the attribute Key conforming to the |
| 1853 | // "cassandra.coordinator.dc" semantic conventions. It represents the data |
| 1854 | // center of the coordinating node for a query. |
| 1855 | // |
| 1856 | // Type: string |
| 1857 | // RequirementLevel: Recommended |
| 1858 | // Stability: Development |
| 1859 | // |
| 1860 | // Examples: us-west-2 |
| 1861 | CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc") |
| 1862 | |
| 1863 | // CassandraCoordinatorIDKey is the attribute Key conforming to the |
| 1864 | // "cassandra.coordinator.id" semantic conventions. It represents the ID of the |
| 1865 | // coordinating node for a query. |
| 1866 | // |
| 1867 | // Type: string |
| 1868 | // RequirementLevel: Recommended |
| 1869 | // Stability: Development |
| 1870 | // |
| 1871 | // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af |
| 1872 | CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id") |
| 1873 | |
| 1874 | // CassandraPageSizeKey is the attribute Key conforming to the |
| 1875 | // "cassandra.page.size" semantic conventions. It represents the fetch size used |
| 1876 | // for paging, i.e. how many rows will be returned at once. |
| 1877 | // |
| 1878 | // Type: int |
| 1879 | // RequirementLevel: Recommended |
| 1880 | // Stability: Development |
| 1881 | // |
| 1882 | // Examples: 5000 |
| 1883 | CassandraPageSizeKey = attribute.Key("cassandra.page.size") |
| 1884 | |
| 1885 | // CassandraQueryIdempotentKey is the attribute Key conforming to the |
| 1886 | // "cassandra.query.idempotent" semantic conventions. It represents the whether |
| 1887 | // or not the query is idempotent. |
| 1888 | // |
| 1889 | // Type: boolean |
| 1890 | // RequirementLevel: Recommended |
| 1891 | // Stability: Development |
| 1892 | // |
| 1893 | // Examples: |
| 1894 | CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent") |
| 1895 | |
| 1896 | // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the |
| 1897 | // "cassandra.speculative_execution.count" semantic conventions. It represents |
| 1898 | // the number of times a query was speculatively executed. Not set or `0` if the |
| 1899 | // query was not executed speculatively. |
| 1900 | // |
| 1901 | // Type: int |
| 1902 | // RequirementLevel: Recommended |
| 1903 | // Stability: Development |
| 1904 | // |
| 1905 | // Examples: 0, 2 |
| 1906 | CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count") |
| 1907 | ) |
| 1908 | |
| 1909 | // CassandraCoordinatorDC returns an attribute KeyValue conforming to the |
| 1910 | // "cassandra.coordinator.dc" semantic conventions. It represents the data center |
| 1911 | // of the coordinating node for a query. |
| 1912 | func CassandraCoordinatorDC(val string) attribute.KeyValue { |
| 1913 | return CassandraCoordinatorDCKey.String(val) |
| 1914 | } |
| 1915 | |
| 1916 | // CassandraCoordinatorID returns an attribute KeyValue conforming to the |
| 1917 | // "cassandra.coordinator.id" semantic conventions. It represents the ID of the |
| 1918 | // coordinating node for a query. |
| 1919 | func CassandraCoordinatorID(val string) attribute.KeyValue { |
| 1920 | return CassandraCoordinatorIDKey.String(val) |
| 1921 | } |
| 1922 | |
| 1923 | // CassandraPageSize returns an attribute KeyValue conforming to the |
| 1924 | // "cassandra.page.size" semantic conventions. It represents the fetch size used |
| 1925 | // for paging, i.e. how many rows will be returned at once. |
| 1926 | func CassandraPageSize(val int) attribute.KeyValue { |
| 1927 | return CassandraPageSizeKey.Int(val) |
| 1928 | } |
| 1929 | |
| 1930 | // CassandraQueryIdempotent returns an attribute KeyValue conforming to the |
| 1931 | // "cassandra.query.idempotent" semantic conventions. It represents the whether |
| 1932 | // or not the query is idempotent. |
| 1933 | func CassandraQueryIdempotent(val bool) attribute.KeyValue { |
| 1934 | return CassandraQueryIdempotentKey.Bool(val) |
| 1935 | } |
| 1936 | |
| 1937 | // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to |
| 1938 | // the "cassandra.speculative_execution.count" semantic conventions. It |
| 1939 | // represents the number of times a query was speculatively executed. Not set or |
| 1940 | // `0` if the query was not executed speculatively. |
| 1941 | func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue { |
| 1942 | return CassandraSpeculativeExecutionCountKey.Int(val) |
| 1943 | } |
| 1944 | |
| 1945 | // Enum values for cassandra.consistency.level |
| 1946 | var ( |
| 1947 | // all |
| 1948 | // Stability: development |
| 1949 | CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all") |
| 1950 | // each_quorum |
| 1951 | // Stability: development |
| 1952 | CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum") |
| 1953 | // quorum |
| 1954 | // Stability: development |
| 1955 | CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum") |
| 1956 | // local_quorum |
| 1957 | // Stability: development |
| 1958 | CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum") |
| 1959 | // one |
| 1960 | // Stability: development |
| 1961 | CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one") |
| 1962 | // two |
| 1963 | // Stability: development |
| 1964 | CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two") |
| 1965 | // three |
| 1966 | // Stability: development |
| 1967 | CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three") |
| 1968 | // local_one |
| 1969 | // Stability: development |
| 1970 | CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one") |
| 1971 | // any |
| 1972 | // Stability: development |
| 1973 | CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any") |
| 1974 | // serial |
| 1975 | // Stability: development |
| 1976 | CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial") |
| 1977 | // local_serial |
| 1978 | // Stability: development |
| 1979 | CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial") |
| 1980 | ) |
| 1981 | |
| 1982 | // Namespace: cicd |
| 1983 | const ( |
| 1984 | // CICDPipelineActionNameKey is the attribute Key conforming to the |
| 1985 | // "cicd.pipeline.action.name" semantic conventions. It represents the kind of |
| 1986 | // action a pipeline run is performing. |
| 1987 | // |
| 1988 | // Type: Enum |
| 1989 | // RequirementLevel: Recommended |
| 1990 | // Stability: Development |
| 1991 | // |
| 1992 | // Examples: "BUILD", "RUN", "SYNC" |
| 1993 | CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name") |
| 1994 | |
| 1995 | // CICDPipelineNameKey is the attribute Key conforming to the |
| 1996 | // "cicd.pipeline.name" semantic conventions. It represents the human readable |
| 1997 | // name of the pipeline within a CI/CD system. |
| 1998 | // |
| 1999 | // Type: string |
| 2000 | // RequirementLevel: Recommended |
| 2001 | // Stability: Development |
| 2002 | // |
| 2003 | // Examples: "Build and Test", "Lint", "Deploy Go Project", |
| 2004 | // "deploy_to_environment" |
| 2005 | CICDPipelineNameKey = attribute.Key("cicd.pipeline.name") |
| 2006 | |
| 2007 | // CICDPipelineResultKey is the attribute Key conforming to the |
| 2008 | // "cicd.pipeline.result" semantic conventions. It represents the result of a |
| 2009 | // pipeline run. |
| 2010 | // |
| 2011 | // Type: Enum |
| 2012 | // RequirementLevel: Recommended |
| 2013 | // Stability: Development |
| 2014 | // |
| 2015 | // Examples: "success", "failure", "timeout", "skipped" |
| 2016 | CICDPipelineResultKey = attribute.Key("cicd.pipeline.result") |
| 2017 | |
| 2018 | // CICDPipelineRunIDKey is the attribute Key conforming to the |
| 2019 | // "cicd.pipeline.run.id" semantic conventions. It represents the unique |
| 2020 | // identifier of a pipeline run within a CI/CD system. |
| 2021 | // |
| 2022 | // Type: string |
| 2023 | // RequirementLevel: Recommended |
| 2024 | // Stability: Development |
| 2025 | // |
| 2026 | // Examples: "120912" |
| 2027 | CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id") |
| 2028 | |
| 2029 | // CICDPipelineRunStateKey is the attribute Key conforming to the |
| 2030 | // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline |
| 2031 | // run goes through these states during its lifecycle. |
| 2032 | // |
| 2033 | // Type: Enum |
| 2034 | // RequirementLevel: Recommended |
| 2035 | // Stability: Development |
| 2036 | // |
| 2037 | // Examples: "pending", "executing", "finalizing" |
| 2038 | CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state") |
| 2039 | |
| 2040 | // CICDPipelineRunURLFullKey is the attribute Key conforming to the |
| 2041 | // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of |
| 2042 | // the pipeline run, providing the complete address in order to locate and |
| 2043 | // identify the pipeline run. |
| 2044 | // |
| 2045 | // Type: string |
| 2046 | // RequirementLevel: Recommended |
| 2047 | // Stability: Development |
| 2048 | // |
| 2049 | // Examples: |
| 2050 | // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075" |
| 2051 | // |
| 2052 | // [URL]: https://wikipedia.org/wiki/URL |
| 2053 | CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full") |
| 2054 | |
| 2055 | // CICDPipelineTaskNameKey is the attribute Key conforming to the |
| 2056 | // "cicd.pipeline.task.name" semantic conventions. It represents the human |
| 2057 | // readable name of a task within a pipeline. Task here most closely aligns with |
| 2058 | // a [computing process] in a pipeline. Other terms for tasks include commands, |
| 2059 | // steps, and procedures. |
| 2060 | // |
| 2061 | // Type: string |
| 2062 | // RequirementLevel: Recommended |
| 2063 | // Stability: Development |
| 2064 | // |
| 2065 | // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary" |
| 2066 | // |
| 2067 | // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing) |
| 2068 | CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name") |
| 2069 | |
| 2070 | // CICDPipelineTaskRunIDKey is the attribute Key conforming to the |
| 2071 | // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique |
| 2072 | // identifier of a task run within a pipeline. |
| 2073 | // |
| 2074 | // Type: string |
| 2075 | // RequirementLevel: Recommended |
| 2076 | // Stability: Development |
| 2077 | // |
| 2078 | // Examples: "12097" |
| 2079 | CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id") |
| 2080 | |
| 2081 | // CICDPipelineTaskRunResultKey is the attribute Key conforming to the |
| 2082 | // "cicd.pipeline.task.run.result" semantic conventions. It represents the |
| 2083 | // result of a task run. |
| 2084 | // |
| 2085 | // Type: Enum |
| 2086 | // RequirementLevel: Recommended |
| 2087 | // Stability: Development |
| 2088 | // |
| 2089 | // Examples: "success", "failure", "timeout", "skipped" |
| 2090 | CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result") |
| 2091 | |
| 2092 | // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the |
| 2093 | // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the |
| 2094 | // [URL] of the pipeline task run, providing the complete address in order to |
| 2095 | // locate and identify the pipeline task run. |
| 2096 | // |
| 2097 | // Type: string |
| 2098 | // RequirementLevel: Recommended |
| 2099 | // Stability: Development |
| 2100 | // |
| 2101 | // Examples: |
| 2102 | // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075" |
| 2103 | // |
| 2104 | // [URL]: https://wikipedia.org/wiki/URL |
| 2105 | CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full") |
| 2106 | |
| 2107 | // CICDPipelineTaskTypeKey is the attribute Key conforming to the |
| 2108 | // "cicd.pipeline.task.type" semantic conventions. It represents the type of the |
| 2109 | // task within a pipeline. |
| 2110 | // |
| 2111 | // Type: Enum |
| 2112 | // RequirementLevel: Recommended |
| 2113 | // Stability: Development |
| 2114 | // |
| 2115 | // Examples: "build", "test", "deploy" |
| 2116 | CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type") |
| 2117 | |
| 2118 | // CICDSystemComponentKey is the attribute Key conforming to the |
| 2119 | // "cicd.system.component" semantic conventions. It represents the name of a |
| 2120 | // component of the CICD system. |
| 2121 | // |
| 2122 | // Type: string |
| 2123 | // RequirementLevel: Recommended |
| 2124 | // Stability: Development |
| 2125 | // |
| 2126 | // Examples: "controller", "scheduler", "agent" |
| 2127 | CICDSystemComponentKey = attribute.Key("cicd.system.component") |
| 2128 | |
| 2129 | // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id" |
| 2130 | // semantic conventions. It represents the unique identifier of a worker within |
| 2131 | // a CICD system. |
| 2132 | // |
| 2133 | // Type: string |
| 2134 | // RequirementLevel: Recommended |
| 2135 | // Stability: Development |
| 2136 | // |
| 2137 | // Examples: "abc123", "10.0.1.2", "controller" |
| 2138 | CICDWorkerIDKey = attribute.Key("cicd.worker.id") |
| 2139 | |
| 2140 | // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name" |
| 2141 | // semantic conventions. It represents the name of a worker within a CICD |
| 2142 | // system. |
| 2143 | // |
| 2144 | // Type: string |
| 2145 | // RequirementLevel: Recommended |
| 2146 | // Stability: Development |
| 2147 | // |
| 2148 | // Examples: "agent-abc", "controller", "Ubuntu LTS" |
| 2149 | CICDWorkerNameKey = attribute.Key("cicd.worker.name") |
| 2150 | |
| 2151 | // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state" |
| 2152 | // semantic conventions. It represents the state of a CICD worker / agent. |
| 2153 | // |
| 2154 | // Type: Enum |
| 2155 | // RequirementLevel: Recommended |
| 2156 | // Stability: Development |
| 2157 | // |
| 2158 | // Examples: "idle", "busy", "down" |
| 2159 | CICDWorkerStateKey = attribute.Key("cicd.worker.state") |
| 2160 | |
| 2161 | // CICDWorkerURLFullKey is the attribute Key conforming to the |
| 2162 | // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the |
| 2163 | // worker, providing the complete address in order to locate and identify the |
| 2164 | // worker. |
| 2165 | // |
| 2166 | // Type: string |
| 2167 | // RequirementLevel: Recommended |
| 2168 | // Stability: Development |
| 2169 | // |
| 2170 | // Examples: "https://cicd.example.org/worker/abc123" |
| 2171 | // |
| 2172 | // [URL]: https://wikipedia.org/wiki/URL |
| 2173 | CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full") |
| 2174 | ) |
| 2175 | |
| 2176 | // CICDPipelineName returns an attribute KeyValue conforming to the |
| 2177 | // "cicd.pipeline.name" semantic conventions. It represents the human readable |
| 2178 | // name of the pipeline within a CI/CD system. |
| 2179 | func CICDPipelineName(val string) attribute.KeyValue { |
| 2180 | return CICDPipelineNameKey.String(val) |
| 2181 | } |
| 2182 | |
| 2183 | // CICDPipelineRunID returns an attribute KeyValue conforming to the |
| 2184 | // "cicd.pipeline.run.id" semantic conventions. It represents the unique |
| 2185 | // identifier of a pipeline run within a CI/CD system. |
| 2186 | func CICDPipelineRunID(val string) attribute.KeyValue { |
| 2187 | return CICDPipelineRunIDKey.String(val) |
| 2188 | } |
| 2189 | |
| 2190 | // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the |
| 2191 | // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of |
| 2192 | // the pipeline run, providing the complete address in order to locate and |
| 2193 | // identify the pipeline run. |
| 2194 | // |
| 2195 | // [URL]: https://wikipedia.org/wiki/URL |
| 2196 | func CICDPipelineRunURLFull(val string) attribute.KeyValue { |
| 2197 | return CICDPipelineRunURLFullKey.String(val) |
| 2198 | } |
| 2199 | |
| 2200 | // CICDPipelineTaskName returns an attribute KeyValue conforming to the |
| 2201 | // "cicd.pipeline.task.name" semantic conventions. It represents the human |
| 2202 | // readable name of a task within a pipeline. Task here most closely aligns with |
| 2203 | // a [computing process] in a pipeline. Other terms for tasks include commands, |
| 2204 | // steps, and procedures. |
| 2205 | // |
| 2206 | // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing) |
| 2207 | func CICDPipelineTaskName(val string) attribute.KeyValue { |
| 2208 | return CICDPipelineTaskNameKey.String(val) |
| 2209 | } |
| 2210 | |
| 2211 | // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the |
| 2212 | // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique |
| 2213 | // identifier of a task run within a pipeline. |
| 2214 | func CICDPipelineTaskRunID(val string) attribute.KeyValue { |
| 2215 | return CICDPipelineTaskRunIDKey.String(val) |
| 2216 | } |
| 2217 | |
| 2218 | // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the |
| 2219 | // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the |
| 2220 | // [URL] of the pipeline task run, providing the complete address in order to |
| 2221 | // locate and identify the pipeline task run. |
| 2222 | // |
| 2223 | // [URL]: https://wikipedia.org/wiki/URL |
| 2224 | func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue { |
| 2225 | return CICDPipelineTaskRunURLFullKey.String(val) |
| 2226 | } |
| 2227 | |
| 2228 | // CICDSystemComponent returns an attribute KeyValue conforming to the |
| 2229 | // "cicd.system.component" semantic conventions. It represents the name of a |
| 2230 | // component of the CICD system. |
| 2231 | func CICDSystemComponent(val string) attribute.KeyValue { |
| 2232 | return CICDSystemComponentKey.String(val) |
| 2233 | } |
| 2234 | |
| 2235 | // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id" |
| 2236 | // semantic conventions. It represents the unique identifier of a worker within a |
| 2237 | // CICD system. |
| 2238 | func CICDWorkerID(val string) attribute.KeyValue { |
| 2239 | return CICDWorkerIDKey.String(val) |
| 2240 | } |
| 2241 | |
| 2242 | // CICDWorkerName returns an attribute KeyValue conforming to the |
| 2243 | // "cicd.worker.name" semantic conventions. It represents the name of a worker |
| 2244 | // within a CICD system. |
| 2245 | func CICDWorkerName(val string) attribute.KeyValue { |
| 2246 | return CICDWorkerNameKey.String(val) |
| 2247 | } |
| 2248 | |
| 2249 | // CICDWorkerURLFull returns an attribute KeyValue conforming to the |
| 2250 | // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the |
| 2251 | // worker, providing the complete address in order to locate and identify the |
| 2252 | // worker. |
| 2253 | // |
| 2254 | // [URL]: https://wikipedia.org/wiki/URL |
| 2255 | func CICDWorkerURLFull(val string) attribute.KeyValue { |
| 2256 | return CICDWorkerURLFullKey.String(val) |
| 2257 | } |
| 2258 | |
| 2259 | // Enum values for cicd.pipeline.action.name |
| 2260 | var ( |
| 2261 | // The pipeline run is executing a build. |
| 2262 | // Stability: development |
| 2263 | CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD") |
| 2264 | // The pipeline run is executing. |
| 2265 | // Stability: development |
| 2266 | CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN") |
| 2267 | // The pipeline run is executing a sync. |
| 2268 | // Stability: development |
| 2269 | CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC") |
| 2270 | ) |
| 2271 | |
| 2272 | // Enum values for cicd.pipeline.result |
| 2273 | var ( |
| 2274 | // The pipeline run finished successfully. |
| 2275 | // Stability: development |
| 2276 | CICDPipelineResultSuccess = CICDPipelineResultKey.String("success") |
| 2277 | // The pipeline run did not finish successfully, eg. due to a compile error or a |
| 2278 | // failing test. Such failures are usually detected by non-zero exit codes of |
| 2279 | // the tools executed in the pipeline run. |
| 2280 | // Stability: development |
| 2281 | CICDPipelineResultFailure = CICDPipelineResultKey.String("failure") |
| 2282 | // The pipeline run failed due to an error in the CICD system, eg. due to the |
| 2283 | // worker being killed. |
| 2284 | // Stability: development |
| 2285 | CICDPipelineResultError = CICDPipelineResultKey.String("error") |
| 2286 | // A timeout caused the pipeline run to be interrupted. |
| 2287 | // Stability: development |
| 2288 | CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout") |
| 2289 | // The pipeline run was cancelled, eg. by a user manually cancelling the |
| 2290 | // pipeline run. |
| 2291 | // Stability: development |
| 2292 | CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation") |
| 2293 | // The pipeline run was skipped, eg. due to a precondition not being met. |
| 2294 | // Stability: development |
| 2295 | CICDPipelineResultSkip = CICDPipelineResultKey.String("skip") |
| 2296 | ) |
| 2297 | |
| 2298 | // Enum values for cicd.pipeline.run.state |
| 2299 | var ( |
| 2300 | // The run pending state spans from the event triggering the pipeline run until |
| 2301 | // the execution of the run starts (eg. time spent in a queue, provisioning |
| 2302 | // agents, creating run resources). |
| 2303 | // |
| 2304 | // Stability: development |
| 2305 | CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending") |
| 2306 | // The executing state spans the execution of any run tasks (eg. build, test). |
| 2307 | // Stability: development |
| 2308 | CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing") |
| 2309 | // The finalizing state spans from when the run has finished executing (eg. |
| 2310 | // cleanup of run resources). |
| 2311 | // Stability: development |
| 2312 | CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing") |
| 2313 | ) |
| 2314 | |
| 2315 | // Enum values for cicd.pipeline.task.run.result |
| 2316 | var ( |
| 2317 | // The task run finished successfully. |
| 2318 | // Stability: development |
| 2319 | CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success") |
| 2320 | // The task run did not finish successfully, eg. due to a compile error or a |
| 2321 | // failing test. Such failures are usually detected by non-zero exit codes of |
| 2322 | // the tools executed in the task run. |
| 2323 | // Stability: development |
| 2324 | CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure") |
| 2325 | // The task run failed due to an error in the CICD system, eg. due to the worker |
| 2326 | // being killed. |
| 2327 | // Stability: development |
| 2328 | CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error") |
| 2329 | // A timeout caused the task run to be interrupted. |
| 2330 | // Stability: development |
| 2331 | CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout") |
| 2332 | // The task run was cancelled, eg. by a user manually cancelling the task run. |
| 2333 | // Stability: development |
| 2334 | CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation") |
| 2335 | // The task run was skipped, eg. due to a precondition not being met. |
| 2336 | // Stability: development |
| 2337 | CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip") |
| 2338 | ) |
| 2339 | |
| 2340 | // Enum values for cicd.pipeline.task.type |
| 2341 | var ( |
| 2342 | // build |
| 2343 | // Stability: development |
| 2344 | CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build") |
| 2345 | // test |
| 2346 | // Stability: development |
| 2347 | CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test") |
| 2348 | // deploy |
| 2349 | // Stability: development |
| 2350 | CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy") |
| 2351 | ) |
| 2352 | |
| 2353 | // Enum values for cicd.worker.state |
| 2354 | var ( |
| 2355 | // The worker is not performing work for the CICD system. It is available to the |
| 2356 | // CICD system to perform work on (online / idle). |
| 2357 | // Stability: development |
| 2358 | CICDWorkerStateAvailable = CICDWorkerStateKey.String("available") |
| 2359 | // The worker is performing work for the CICD system. |
| 2360 | // Stability: development |
| 2361 | CICDWorkerStateBusy = CICDWorkerStateKey.String("busy") |
| 2362 | // The worker is not available to the CICD system (disconnected / down). |
| 2363 | // Stability: development |
| 2364 | CICDWorkerStateOffline = CICDWorkerStateKey.String("offline") |
| 2365 | ) |
| 2366 | |
| 2367 | // Namespace: client |
| 2368 | const ( |
| 2369 | // ClientAddressKey is the attribute Key conforming to the "client.address" |
| 2370 | // semantic conventions. It represents the client address - domain name if |
| 2371 | // available without reverse DNS lookup; otherwise, IP address or Unix domain |
| 2372 | // socket name. |
| 2373 | // |
| 2374 | // Type: string |
| 2375 | // RequirementLevel: Recommended |
| 2376 | // Stability: Stable |
| 2377 | // |
| 2378 | // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock" |
| 2379 | // Note: When observed from the server side, and when communicating through an |
| 2380 | // intermediary, `client.address` SHOULD represent the client address behind any |
| 2381 | // intermediaries, for example proxies, if it's available. |
| 2382 | ClientAddressKey = attribute.Key("client.address") |
| 2383 | |
| 2384 | // ClientPortKey is the attribute Key conforming to the "client.port" semantic |
| 2385 | // conventions. It represents the client port number. |
| 2386 | // |
| 2387 | // Type: int |
| 2388 | // RequirementLevel: Recommended |
| 2389 | // Stability: Stable |
| 2390 | // |
| 2391 | // Examples: 65123 |
| 2392 | // Note: When observed from the server side, and when communicating through an |
| 2393 | // intermediary, `client.port` SHOULD represent the client port behind any |
| 2394 | // intermediaries, for example proxies, if it's available. |
| 2395 | ClientPortKey = attribute.Key("client.port") |
| 2396 | ) |
| 2397 | |
| 2398 | // ClientAddress returns an attribute KeyValue conforming to the "client.address" |
| 2399 | // semantic conventions. It represents the client address - domain name if |
| 2400 | // available without reverse DNS lookup; otherwise, IP address or Unix domain |
| 2401 | // socket name. |
| 2402 | func ClientAddress(val string) attribute.KeyValue { |
| 2403 | return ClientAddressKey.String(val) |
| 2404 | } |
| 2405 | |
| 2406 | // ClientPort returns an attribute KeyValue conforming to the "client.port" |
| 2407 | // semantic conventions. It represents the client port number. |
| 2408 | func ClientPort(val int) attribute.KeyValue { |
| 2409 | return ClientPortKey.Int(val) |
| 2410 | } |
| 2411 | |
| 2412 | // Namespace: cloud |
| 2413 | const ( |
| 2414 | // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id" |
| 2415 | // semantic conventions. It represents the cloud account ID the resource is |
| 2416 | // assigned to. |
| 2417 | // |
| 2418 | // Type: string |
| 2419 | // RequirementLevel: Recommended |
| 2420 | // Stability: Development |
| 2421 | // |
| 2422 | // Examples: "111111111111", "opentelemetry" |
| 2423 | CloudAccountIDKey = attribute.Key("cloud.account.id") |
| 2424 | |
| 2425 | // CloudAvailabilityZoneKey is the attribute Key conforming to the |
| 2426 | // "cloud.availability_zone" semantic conventions. It represents the cloud |
| 2427 | // regions often have multiple, isolated locations known as zones to increase |
| 2428 | // availability. Availability zone represents the zone where the resource is |
| 2429 | // running. |
| 2430 | // |
| 2431 | // Type: string |
| 2432 | // RequirementLevel: Recommended |
| 2433 | // Stability: Development |
| 2434 | // |
| 2435 | // Examples: "us-east-1c" |
| 2436 | // Note: Availability zones are called "zones" on Alibaba Cloud and Google |
| 2437 | // Cloud. |
| 2438 | CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone") |
| 2439 | |
| 2440 | // CloudPlatformKey is the attribute Key conforming to the "cloud.platform" |
| 2441 | // semantic conventions. It represents the cloud platform in use. |
| 2442 | // |
| 2443 | // Type: Enum |
| 2444 | // RequirementLevel: Recommended |
| 2445 | // Stability: Development |
| 2446 | // |
| 2447 | // Examples: |
| 2448 | // Note: The prefix of the service SHOULD match the one specified in |
| 2449 | // `cloud.provider`. |
| 2450 | CloudPlatformKey = attribute.Key("cloud.platform") |
| 2451 | |
| 2452 | // CloudProviderKey is the attribute Key conforming to the "cloud.provider" |
| 2453 | // semantic conventions. It represents the name of the cloud provider. |
| 2454 | // |
| 2455 | // Type: Enum |
| 2456 | // RequirementLevel: Recommended |
| 2457 | // Stability: Development |
| 2458 | // |
| 2459 | // Examples: |
| 2460 | CloudProviderKey = attribute.Key("cloud.provider") |
| 2461 | |
| 2462 | // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic |
| 2463 | // conventions. It represents the geographical region within a cloud provider. |
| 2464 | // When associated with a resource, this attribute specifies the region where |
| 2465 | // the resource operates. When calling services or APIs deployed on a cloud, |
| 2466 | // this attribute identifies the region where the called destination is |
| 2467 | // deployed. |
| 2468 | // |
| 2469 | // Type: string |
| 2470 | // RequirementLevel: Recommended |
| 2471 | // Stability: Development |
| 2472 | // |
| 2473 | // Examples: "us-central1", "us-east-1" |
| 2474 | // Note: Refer to your provider's docs to see the available regions, for example |
| 2475 | // [Alibaba Cloud regions], [AWS regions], [Azure regions], |
| 2476 | // [Google Cloud regions], or [Tencent Cloud regions]. |
| 2477 | // |
| 2478 | // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm |
| 2479 | // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/ |
| 2480 | // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/ |
| 2481 | // [Google Cloud regions]: https://cloud.google.com/about/locations |
| 2482 | // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091 |
| 2483 | CloudRegionKey = attribute.Key("cloud.region") |
| 2484 | |
| 2485 | // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id" |
| 2486 | // semantic conventions. It represents the cloud provider-specific native |
| 2487 | // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a |
| 2488 | // [fully qualified resource ID] on Azure, a [full resource name] on GCP). |
| 2489 | // |
| 2490 | // Type: string |
| 2491 | // RequirementLevel: Recommended |
| 2492 | // Stability: Development |
| 2493 | // |
| 2494 | // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function", |
| 2495 | // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID", |
| 2496 | // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG> |
| 2497 | // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>" |
| 2498 | // Note: On some cloud providers, it may not be possible to determine the full |
| 2499 | // ID at startup, |
| 2500 | // so it may be necessary to set `cloud.resource_id` as a span attribute |
| 2501 | // instead. |
| 2502 | // |
| 2503 | // The exact value to use for `cloud.resource_id` depends on the cloud provider. |
| 2504 | // The following well-known definitions MUST be used if you set this attribute |
| 2505 | // and they apply: |
| 2506 | // |
| 2507 | // - **AWS Lambda:** The function [ARN]. |
| 2508 | // Take care not to use the "invoked ARN" directly but replace any |
| 2509 | // [alias suffix] |
| 2510 | // with the resolved function version, as the same runtime instance may be |
| 2511 | // invocable with |
| 2512 | // multiple different aliases. |
| 2513 | // - **GCP:** The [URI of the resource] |
| 2514 | // - **Azure:** The [Fully Qualified Resource ID] of the invoked function, |
| 2515 | // *not* the function app, having the form |
| 2516 | // |
| 2517 | // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>` |
| 2518 | // . |
| 2519 | // This means that a span attribute MUST be used, as an Azure function app |
| 2520 | // can host multiple functions that would usually share |
| 2521 | // a TracerProvider. |
| 2522 | // |
| 2523 | // |
| 2524 | // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html |
| 2525 | // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id |
| 2526 | // [full resource name]: https://google.aip.dev/122#full-resource-names |
| 2527 | // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html |
| 2528 | // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html |
| 2529 | // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names |
| 2530 | // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id |
| 2531 | CloudResourceIDKey = attribute.Key("cloud.resource_id") |
| 2532 | ) |
| 2533 | |
| 2534 | // CloudAccountID returns an attribute KeyValue conforming to the |
| 2535 | // "cloud.account.id" semantic conventions. It represents the cloud account ID |
| 2536 | // the resource is assigned to. |
| 2537 | func CloudAccountID(val string) attribute.KeyValue { |
| 2538 | return CloudAccountIDKey.String(val) |
| 2539 | } |
| 2540 | |
| 2541 | // CloudAvailabilityZone returns an attribute KeyValue conforming to the |
| 2542 | // "cloud.availability_zone" semantic conventions. It represents the cloud |
| 2543 | // regions often have multiple, isolated locations known as zones to increase |
| 2544 | // availability. Availability zone represents the zone where the resource is |
| 2545 | // running. |
| 2546 | func CloudAvailabilityZone(val string) attribute.KeyValue { |
| 2547 | return CloudAvailabilityZoneKey.String(val) |
| 2548 | } |
| 2549 | |
| 2550 | // CloudRegion returns an attribute KeyValue conforming to the "cloud.region" |
| 2551 | // semantic conventions. It represents the geographical region within a cloud |
| 2552 | // provider. When associated with a resource, this attribute specifies the region |
| 2553 | // where the resource operates. When calling services or APIs deployed on a |
| 2554 | // cloud, this attribute identifies the region where the called destination is |
| 2555 | // deployed. |
| 2556 | func CloudRegion(val string) attribute.KeyValue { |
| 2557 | return CloudRegionKey.String(val) |
| 2558 | } |
| 2559 | |
| 2560 | // CloudResourceID returns an attribute KeyValue conforming to the |
| 2561 | // "cloud.resource_id" semantic conventions. It represents the cloud |
| 2562 | // provider-specific native identifier of the monitored cloud resource (e.g. an |
| 2563 | // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] |
| 2564 | // on GCP). |
| 2565 | // |
| 2566 | // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html |
| 2567 | // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id |
| 2568 | // [full resource name]: https://google.aip.dev/122#full-resource-names |
| 2569 | func CloudResourceID(val string) attribute.KeyValue { |
| 2570 | return CloudResourceIDKey.String(val) |
| 2571 | } |
| 2572 | |
| 2573 | // Enum values for cloud.platform |
| 2574 | var ( |
| 2575 | // Alibaba Cloud Elastic Compute Service |
| 2576 | // Stability: development |
| 2577 | CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs") |
| 2578 | // Alibaba Cloud Function Compute |
| 2579 | // Stability: development |
| 2580 | CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc") |
| 2581 | // Red Hat OpenShift on Alibaba Cloud |
| 2582 | // Stability: development |
| 2583 | CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift") |
| 2584 | // AWS Elastic Compute Cloud |
| 2585 | // Stability: development |
| 2586 | CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2") |
| 2587 | // AWS Elastic Container Service |
| 2588 | // Stability: development |
| 2589 | CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs") |
| 2590 | // AWS Elastic Kubernetes Service |
| 2591 | // Stability: development |
| 2592 | CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks") |
| 2593 | // AWS Lambda |
| 2594 | // Stability: development |
| 2595 | CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda") |
| 2596 | // AWS Elastic Beanstalk |
| 2597 | // Stability: development |
| 2598 | CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk") |
| 2599 | // AWS App Runner |
| 2600 | // Stability: development |
| 2601 | CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner") |
| 2602 | // Red Hat OpenShift on AWS (ROSA) |
| 2603 | // Stability: development |
| 2604 | CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift") |
| 2605 | // Azure Virtual Machines |
| 2606 | // Stability: development |
| 2607 | CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm") |
| 2608 | // Azure Container Apps |
| 2609 | // Stability: development |
| 2610 | CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps") |
| 2611 | // Azure Container Instances |
| 2612 | // Stability: development |
| 2613 | CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances") |
| 2614 | // Azure Kubernetes Service |
| 2615 | // Stability: development |
| 2616 | CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks") |
| 2617 | // Azure Functions |
| 2618 | // Stability: development |
| 2619 | CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions") |
| 2620 | // Azure App Service |
| 2621 | // Stability: development |
| 2622 | CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service") |
| 2623 | // Azure Red Hat OpenShift |
| 2624 | // Stability: development |
| 2625 | CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure_openshift") |
| 2626 | // Google Bare Metal Solution (BMS) |
| 2627 | // Stability: development |
| 2628 | CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution") |
| 2629 | // Google Cloud Compute Engine (GCE) |
| 2630 | // Stability: development |
| 2631 | CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine") |
| 2632 | // Google Cloud Run |
| 2633 | // Stability: development |
| 2634 | CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run") |
| 2635 | // Google Cloud Kubernetes Engine (GKE) |
| 2636 | // Stability: development |
| 2637 | CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine") |
| 2638 | // Google Cloud Functions (GCF) |
| 2639 | // Stability: development |
| 2640 | CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions") |
| 2641 | // Google Cloud App Engine (GAE) |
| 2642 | // Stability: development |
| 2643 | CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine") |
| 2644 | // Red Hat OpenShift on Google Cloud |
| 2645 | // Stability: development |
| 2646 | CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift") |
| 2647 | // Red Hat OpenShift on IBM Cloud |
| 2648 | // Stability: development |
| 2649 | CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift") |
| 2650 | // Compute on Oracle Cloud Infrastructure (OCI) |
| 2651 | // Stability: development |
| 2652 | CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute") |
| 2653 | // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI) |
| 2654 | // Stability: development |
| 2655 | CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke") |
| 2656 | // Tencent Cloud Cloud Virtual Machine (CVM) |
| 2657 | // Stability: development |
| 2658 | CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm") |
| 2659 | // Tencent Cloud Elastic Kubernetes Service (EKS) |
| 2660 | // Stability: development |
| 2661 | CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks") |
| 2662 | // Tencent Cloud Serverless Cloud Function (SCF) |
| 2663 | // Stability: development |
| 2664 | CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf") |
| 2665 | ) |
| 2666 | |
| 2667 | // Enum values for cloud.provider |
| 2668 | var ( |
| 2669 | // Alibaba Cloud |
| 2670 | // Stability: development |
| 2671 | CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud") |
| 2672 | // Amazon Web Services |
| 2673 | // Stability: development |
| 2674 | CloudProviderAWS = CloudProviderKey.String("aws") |
| 2675 | // Microsoft Azure |
| 2676 | // Stability: development |
| 2677 | CloudProviderAzure = CloudProviderKey.String("azure") |
| 2678 | // Google Cloud Platform |
| 2679 | // Stability: development |
| 2680 | CloudProviderGCP = CloudProviderKey.String("gcp") |
| 2681 | // Heroku Platform as a Service |
| 2682 | // Stability: development |
| 2683 | CloudProviderHeroku = CloudProviderKey.String("heroku") |
| 2684 | // IBM Cloud |
| 2685 | // Stability: development |
| 2686 | CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud") |
| 2687 | // Oracle Cloud Infrastructure (OCI) |
| 2688 | // Stability: development |
| 2689 | CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud") |
| 2690 | // Tencent Cloud |
| 2691 | // Stability: development |
| 2692 | CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud") |
| 2693 | ) |
| 2694 | |
| 2695 | // Namespace: cloudevents |
| 2696 | const ( |
| 2697 | // CloudEventsEventIDKey is the attribute Key conforming to the |
| 2698 | // "cloudevents.event_id" semantic conventions. It represents the [event_id] |
| 2699 | // uniquely identifies the event. |
| 2700 | // |
| 2701 | // Type: string |
| 2702 | // RequirementLevel: Recommended |
| 2703 | // Stability: Development |
| 2704 | // |
| 2705 | // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001" |
| 2706 | // |
| 2707 | // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id |
| 2708 | CloudEventsEventIDKey = attribute.Key("cloudevents.event_id") |
| 2709 | |
| 2710 | // CloudEventsEventSourceKey is the attribute Key conforming to the |
| 2711 | // "cloudevents.event_source" semantic conventions. It represents the [source] |
| 2712 | // identifies the context in which an event happened. |
| 2713 | // |
| 2714 | // Type: string |
| 2715 | // RequirementLevel: Recommended |
| 2716 | // Stability: Development |
| 2717 | // |
| 2718 | // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123", |
| 2719 | // "my-service" |
| 2720 | // |
| 2721 | // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 |
| 2722 | CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source") |
| 2723 | |
| 2724 | // CloudEventsEventSpecVersionKey is the attribute Key conforming to the |
| 2725 | // "cloudevents.event_spec_version" semantic conventions. It represents the |
| 2726 | // [version of the CloudEvents specification] which the event uses. |
| 2727 | // |
| 2728 | // Type: string |
| 2729 | // RequirementLevel: Recommended |
| 2730 | // Stability: Development |
| 2731 | // |
| 2732 | // Examples: 1.0 |
| 2733 | // |
| 2734 | // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion |
| 2735 | CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version") |
| 2736 | |
| 2737 | // CloudEventsEventSubjectKey is the attribute Key conforming to the |
| 2738 | // "cloudevents.event_subject" semantic conventions. It represents the [subject] |
| 2739 | // of the event in the context of the event producer (identified by source). |
| 2740 | // |
| 2741 | // Type: string |
| 2742 | // RequirementLevel: Recommended |
| 2743 | // Stability: Development |
| 2744 | // |
| 2745 | // Examples: mynewfile.jpg |
| 2746 | // |
| 2747 | // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject |
| 2748 | CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject") |
| 2749 | |
| 2750 | // CloudEventsEventTypeKey is the attribute Key conforming to the |
| 2751 | // "cloudevents.event_type" semantic conventions. It represents the [event_type] |
| 2752 | // contains a value describing the type of event related to the originating |
| 2753 | // occurrence. |
| 2754 | // |
| 2755 | // Type: string |
| 2756 | // RequirementLevel: Recommended |
| 2757 | // Stability: Development |
| 2758 | // |
| 2759 | // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2" |
| 2760 | // |
| 2761 | // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type |
| 2762 | CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type") |
| 2763 | ) |
| 2764 | |
| 2765 | // CloudEventsEventID returns an attribute KeyValue conforming to the |
| 2766 | // "cloudevents.event_id" semantic conventions. It represents the [event_id] |
| 2767 | // uniquely identifies the event. |
| 2768 | // |
| 2769 | // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id |
| 2770 | func CloudEventsEventID(val string) attribute.KeyValue { |
| 2771 | return CloudEventsEventIDKey.String(val) |
| 2772 | } |
| 2773 | |
| 2774 | // CloudEventsEventSource returns an attribute KeyValue conforming to the |
| 2775 | // "cloudevents.event_source" semantic conventions. It represents the [source] |
| 2776 | // identifies the context in which an event happened. |
| 2777 | // |
| 2778 | // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 |
| 2779 | func CloudEventsEventSource(val string) attribute.KeyValue { |
| 2780 | return CloudEventsEventSourceKey.String(val) |
| 2781 | } |
| 2782 | |
| 2783 | // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the |
| 2784 | // "cloudevents.event_spec_version" semantic conventions. It represents the |
| 2785 | // [version of the CloudEvents specification] which the event uses. |
| 2786 | // |
| 2787 | // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion |
| 2788 | func CloudEventsEventSpecVersion(val string) attribute.KeyValue { |
| 2789 | return CloudEventsEventSpecVersionKey.String(val) |
| 2790 | } |
| 2791 | |
| 2792 | // CloudEventsEventSubject returns an attribute KeyValue conforming to the |
| 2793 | // "cloudevents.event_subject" semantic conventions. It represents the [subject] |
| 2794 | // of the event in the context of the event producer (identified by source). |
| 2795 | // |
| 2796 | // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject |
| 2797 | func CloudEventsEventSubject(val string) attribute.KeyValue { |
| 2798 | return CloudEventsEventSubjectKey.String(val) |
| 2799 | } |
| 2800 | |
| 2801 | // CloudEventsEventType returns an attribute KeyValue conforming to the |
| 2802 | // "cloudevents.event_type" semantic conventions. It represents the [event_type] |
| 2803 | // contains a value describing the type of event related to the originating |
| 2804 | // occurrence. |
| 2805 | // |
| 2806 | // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type |
| 2807 | func CloudEventsEventType(val string) attribute.KeyValue { |
| 2808 | return CloudEventsEventTypeKey.String(val) |
| 2809 | } |
| 2810 | |
| 2811 | // Namespace: cloudfoundry |
| 2812 | const ( |
| 2813 | // CloudFoundryAppIDKey is the attribute Key conforming to the |
| 2814 | // "cloudfoundry.app.id" semantic conventions. It represents the guid of the |
| 2815 | // application. |
| 2816 | // |
| 2817 | // Type: string |
| 2818 | // RequirementLevel: Recommended |
| 2819 | // Stability: Development |
| 2820 | // |
| 2821 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 2822 | // Note: Application instrumentation should use the value from environment |
| 2823 | // variable `VCAP_APPLICATION.application_id`. This is the same value as |
| 2824 | // reported by `cf app <app-name> --guid`. |
| 2825 | CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id") |
| 2826 | |
| 2827 | // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the |
| 2828 | // "cloudfoundry.app.instance.id" semantic conventions. It represents the index |
| 2829 | // of the application instance. 0 when just one instance is active. |
| 2830 | // |
| 2831 | // Type: string |
| 2832 | // RequirementLevel: Recommended |
| 2833 | // Stability: Development |
| 2834 | // |
| 2835 | // Examples: "0", "1" |
| 2836 | // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope] |
| 2837 | // . |
| 2838 | // It is used for logs and metrics emitted by CloudFoundry. It is |
| 2839 | // supposed to contain the application instance index for applications |
| 2840 | // deployed on the runtime. |
| 2841 | // |
| 2842 | // Application instrumentation should use the value from environment |
| 2843 | // variable `CF_INSTANCE_INDEX`. |
| 2844 | // |
| 2845 | // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope |
| 2846 | CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id") |
| 2847 | |
| 2848 | // CloudFoundryAppNameKey is the attribute Key conforming to the |
| 2849 | // "cloudfoundry.app.name" semantic conventions. It represents the name of the |
| 2850 | // application. |
| 2851 | // |
| 2852 | // Type: string |
| 2853 | // RequirementLevel: Recommended |
| 2854 | // Stability: Development |
| 2855 | // |
| 2856 | // Examples: "my-app-name" |
| 2857 | // Note: Application instrumentation should use the value from environment |
| 2858 | // variable `VCAP_APPLICATION.application_name`. This is the same value |
| 2859 | // as reported by `cf apps`. |
| 2860 | CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name") |
| 2861 | |
| 2862 | // CloudFoundryOrgIDKey is the attribute Key conforming to the |
| 2863 | // "cloudfoundry.org.id" semantic conventions. It represents the guid of the |
| 2864 | // CloudFoundry org the application is running in. |
| 2865 | // |
| 2866 | // Type: string |
| 2867 | // RequirementLevel: Recommended |
| 2868 | // Stability: Development |
| 2869 | // |
| 2870 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 2871 | // Note: Application instrumentation should use the value from environment |
| 2872 | // variable `VCAP_APPLICATION.org_id`. This is the same value as |
| 2873 | // reported by `cf org <org-name> --guid`. |
| 2874 | CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id") |
| 2875 | |
| 2876 | // CloudFoundryOrgNameKey is the attribute Key conforming to the |
| 2877 | // "cloudfoundry.org.name" semantic conventions. It represents the name of the |
| 2878 | // CloudFoundry organization the app is running in. |
| 2879 | // |
| 2880 | // Type: string |
| 2881 | // RequirementLevel: Recommended |
| 2882 | // Stability: Development |
| 2883 | // |
| 2884 | // Examples: "my-org-name" |
| 2885 | // Note: Application instrumentation should use the value from environment |
| 2886 | // variable `VCAP_APPLICATION.org_name`. This is the same value as |
| 2887 | // reported by `cf orgs`. |
| 2888 | CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name") |
| 2889 | |
| 2890 | // CloudFoundryProcessIDKey is the attribute Key conforming to the |
| 2891 | // "cloudfoundry.process.id" semantic conventions. It represents the UID |
| 2892 | // identifying the process. |
| 2893 | // |
| 2894 | // Type: string |
| 2895 | // RequirementLevel: Recommended |
| 2896 | // Stability: Development |
| 2897 | // |
| 2898 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 2899 | // Note: Application instrumentation should use the value from environment |
| 2900 | // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to |
| 2901 | // `VCAP_APPLICATION.app_id` for applications deployed to the runtime. |
| 2902 | // For system components, this could be the actual PID. |
| 2903 | CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id") |
| 2904 | |
| 2905 | // CloudFoundryProcessTypeKey is the attribute Key conforming to the |
| 2906 | // "cloudfoundry.process.type" semantic conventions. It represents the type of |
| 2907 | // process. |
| 2908 | // |
| 2909 | // Type: string |
| 2910 | // RequirementLevel: Recommended |
| 2911 | // Stability: Development |
| 2912 | // |
| 2913 | // Examples: "web" |
| 2914 | // Note: CloudFoundry applications can consist of multiple jobs. Usually the |
| 2915 | // main process will be of type `web`. There can be additional background |
| 2916 | // tasks or side-cars with different process types. |
| 2917 | CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type") |
| 2918 | |
| 2919 | // CloudFoundrySpaceIDKey is the attribute Key conforming to the |
| 2920 | // "cloudfoundry.space.id" semantic conventions. It represents the guid of the |
| 2921 | // CloudFoundry space the application is running in. |
| 2922 | // |
| 2923 | // Type: string |
| 2924 | // RequirementLevel: Recommended |
| 2925 | // Stability: Development |
| 2926 | // |
| 2927 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 2928 | // Note: Application instrumentation should use the value from environment |
| 2929 | // variable `VCAP_APPLICATION.space_id`. This is the same value as |
| 2930 | // reported by `cf space <space-name> --guid`. |
| 2931 | CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id") |
| 2932 | |
| 2933 | // CloudFoundrySpaceNameKey is the attribute Key conforming to the |
| 2934 | // "cloudfoundry.space.name" semantic conventions. It represents the name of the |
| 2935 | // CloudFoundry space the application is running in. |
| 2936 | // |
| 2937 | // Type: string |
| 2938 | // RequirementLevel: Recommended |
| 2939 | // Stability: Development |
| 2940 | // |
| 2941 | // Examples: "my-space-name" |
| 2942 | // Note: Application instrumentation should use the value from environment |
| 2943 | // variable `VCAP_APPLICATION.space_name`. This is the same value as |
| 2944 | // reported by `cf spaces`. |
| 2945 | CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name") |
| 2946 | |
| 2947 | // CloudFoundrySystemIDKey is the attribute Key conforming to the |
| 2948 | // "cloudfoundry.system.id" semantic conventions. It represents a guid or |
| 2949 | // another name describing the event source. |
| 2950 | // |
| 2951 | // Type: string |
| 2952 | // RequirementLevel: Recommended |
| 2953 | // Stability: Development |
| 2954 | // |
| 2955 | // Examples: "cf/gorouter" |
| 2956 | // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope]. |
| 2957 | // It is used for logs and metrics emitted by CloudFoundry. It is |
| 2958 | // supposed to contain the component name, e.g. "gorouter", for |
| 2959 | // CloudFoundry components. |
| 2960 | // |
| 2961 | // When system components are instrumented, values from the |
| 2962 | // [Bosh spec] |
| 2963 | // should be used. The `system.id` should be set to |
| 2964 | // `spec.deployment/spec.name`. |
| 2965 | // |
| 2966 | // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope |
| 2967 | // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec |
| 2968 | CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id") |
| 2969 | |
| 2970 | // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the |
| 2971 | // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid |
| 2972 | // describing the concrete instance of the event source. |
| 2973 | // |
| 2974 | // Type: string |
| 2975 | // RequirementLevel: Recommended |
| 2976 | // Stability: Development |
| 2977 | // |
| 2978 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 2979 | // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope] |
| 2980 | // . |
| 2981 | // It is used for logs and metrics emitted by CloudFoundry. It is |
| 2982 | // supposed to contain the vm id for CloudFoundry components. |
| 2983 | // |
| 2984 | // When system components are instrumented, values from the |
| 2985 | // [Bosh spec] |
| 2986 | // should be used. The `system.instance.id` should be set to `spec.id`. |
| 2987 | // |
| 2988 | // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope |
| 2989 | // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec |
| 2990 | CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id") |
| 2991 | ) |
| 2992 | |
| 2993 | // CloudFoundryAppID returns an attribute KeyValue conforming to the |
| 2994 | // "cloudfoundry.app.id" semantic conventions. It represents the guid of the |
| 2995 | // application. |
| 2996 | func CloudFoundryAppID(val string) attribute.KeyValue { |
| 2997 | return CloudFoundryAppIDKey.String(val) |
| 2998 | } |
| 2999 | |
| 3000 | // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the |
| 3001 | // "cloudfoundry.app.instance.id" semantic conventions. It represents the index |
| 3002 | // of the application instance. 0 when just one instance is active. |
| 3003 | func CloudFoundryAppInstanceID(val string) attribute.KeyValue { |
| 3004 | return CloudFoundryAppInstanceIDKey.String(val) |
| 3005 | } |
| 3006 | |
| 3007 | // CloudFoundryAppName returns an attribute KeyValue conforming to the |
| 3008 | // "cloudfoundry.app.name" semantic conventions. It represents the name of the |
| 3009 | // application. |
| 3010 | func CloudFoundryAppName(val string) attribute.KeyValue { |
| 3011 | return CloudFoundryAppNameKey.String(val) |
| 3012 | } |
| 3013 | |
| 3014 | // CloudFoundryOrgID returns an attribute KeyValue conforming to the |
| 3015 | // "cloudfoundry.org.id" semantic conventions. It represents the guid of the |
| 3016 | // CloudFoundry org the application is running in. |
| 3017 | func CloudFoundryOrgID(val string) attribute.KeyValue { |
| 3018 | return CloudFoundryOrgIDKey.String(val) |
| 3019 | } |
| 3020 | |
| 3021 | // CloudFoundryOrgName returns an attribute KeyValue conforming to the |
| 3022 | // "cloudfoundry.org.name" semantic conventions. It represents the name of the |
| 3023 | // CloudFoundry organization the app is running in. |
| 3024 | func CloudFoundryOrgName(val string) attribute.KeyValue { |
| 3025 | return CloudFoundryOrgNameKey.String(val) |
| 3026 | } |
| 3027 | |
| 3028 | // CloudFoundryProcessID returns an attribute KeyValue conforming to the |
| 3029 | // "cloudfoundry.process.id" semantic conventions. It represents the UID |
| 3030 | // identifying the process. |
| 3031 | func CloudFoundryProcessID(val string) attribute.KeyValue { |
| 3032 | return CloudFoundryProcessIDKey.String(val) |
| 3033 | } |
| 3034 | |
| 3035 | // CloudFoundryProcessType returns an attribute KeyValue conforming to the |
| 3036 | // "cloudfoundry.process.type" semantic conventions. It represents the type of |
| 3037 | // process. |
| 3038 | func CloudFoundryProcessType(val string) attribute.KeyValue { |
| 3039 | return CloudFoundryProcessTypeKey.String(val) |
| 3040 | } |
| 3041 | |
| 3042 | // CloudFoundrySpaceID returns an attribute KeyValue conforming to the |
| 3043 | // "cloudfoundry.space.id" semantic conventions. It represents the guid of the |
| 3044 | // CloudFoundry space the application is running in. |
| 3045 | func CloudFoundrySpaceID(val string) attribute.KeyValue { |
| 3046 | return CloudFoundrySpaceIDKey.String(val) |
| 3047 | } |
| 3048 | |
| 3049 | // CloudFoundrySpaceName returns an attribute KeyValue conforming to the |
| 3050 | // "cloudfoundry.space.name" semantic conventions. It represents the name of the |
| 3051 | // CloudFoundry space the application is running in. |
| 3052 | func CloudFoundrySpaceName(val string) attribute.KeyValue { |
| 3053 | return CloudFoundrySpaceNameKey.String(val) |
| 3054 | } |
| 3055 | |
| 3056 | // CloudFoundrySystemID returns an attribute KeyValue conforming to the |
| 3057 | // "cloudfoundry.system.id" semantic conventions. It represents a guid or another |
| 3058 | // name describing the event source. |
| 3059 | func CloudFoundrySystemID(val string) attribute.KeyValue { |
| 3060 | return CloudFoundrySystemIDKey.String(val) |
| 3061 | } |
| 3062 | |
| 3063 | // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the |
| 3064 | // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid |
| 3065 | // describing the concrete instance of the event source. |
| 3066 | func CloudFoundrySystemInstanceID(val string) attribute.KeyValue { |
| 3067 | return CloudFoundrySystemInstanceIDKey.String(val) |
| 3068 | } |
| 3069 | |
| 3070 | // Namespace: code |
| 3071 | const ( |
| 3072 | // CodeColumnNumberKey is the attribute Key conforming to the |
| 3073 | // "code.column.number" semantic conventions. It represents the column number in |
| 3074 | // `code.file.path` best representing the operation. It SHOULD point within the |
| 3075 | // code unit named in `code.function.name`. This attribute MUST NOT be used on |
| 3076 | // the Profile signal since the data is already captured in 'message Line'. This |
| 3077 | // constraint is imposed to prevent redundancy and maintain data integrity. |
| 3078 | // |
| 3079 | // Type: int |
| 3080 | // RequirementLevel: Recommended |
| 3081 | // Stability: Stable |
| 3082 | CodeColumnNumberKey = attribute.Key("code.column.number") |
| 3083 | |
| 3084 | // CodeFilePathKey is the attribute Key conforming to the "code.file.path" |
| 3085 | // semantic conventions. It represents the source code file name that identifies |
| 3086 | // the code unit as uniquely as possible (preferably an absolute file path). |
| 3087 | // This attribute MUST NOT be used on the Profile signal since the data is |
| 3088 | // already captured in 'message Function'. This constraint is imposed to prevent |
| 3089 | // redundancy and maintain data integrity. |
| 3090 | // |
| 3091 | // Type: string |
| 3092 | // RequirementLevel: Recommended |
| 3093 | // Stability: Stable |
| 3094 | // |
| 3095 | // Examples: /usr/local/MyApplication/content_root/app/index.php |
| 3096 | CodeFilePathKey = attribute.Key("code.file.path") |
| 3097 | |
| 3098 | // CodeFunctionNameKey is the attribute Key conforming to the |
| 3099 | // "code.function.name" semantic conventions. It represents the method or |
| 3100 | // function fully-qualified name without arguments. The value should fit the |
| 3101 | // natural representation of the language runtime, which is also likely the same |
| 3102 | // used within `code.stacktrace` attribute value. This attribute MUST NOT be |
| 3103 | // used on the Profile signal since the data is already captured in 'message |
| 3104 | // Function'. This constraint is imposed to prevent redundancy and maintain data |
| 3105 | // integrity. |
| 3106 | // |
| 3107 | // Type: string |
| 3108 | // RequirementLevel: Recommended |
| 3109 | // Stability: Stable |
| 3110 | // |
| 3111 | // Examples: "com.example.MyHttpService.serveRequest", |
| 3112 | // "GuzzleHttp\Client::transfer", "fopen" |
| 3113 | // Note: Values and format depends on each language runtime, thus it is |
| 3114 | // impossible to provide an exhaustive list of examples. |
| 3115 | // The values are usually the same (or prefixes of) the ones found in native |
| 3116 | // stack trace representation stored in |
| 3117 | // `code.stacktrace` without information on arguments. |
| 3118 | // |
| 3119 | // Examples: |
| 3120 | // |
| 3121 | // - Java method: `com.example.MyHttpService.serveRequest` |
| 3122 | // - Java anonymous class method: `com.mycompany.Main$1.myMethod` |
| 3123 | // - Java lambda method: |
| 3124 | // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod` |
| 3125 | // - PHP function: `GuzzleHttp\Client::transfer` |
| 3126 | // - Go function: `github.com/my/repo/pkg.foo.func5` |
| 3127 | // - Elixir: `OpenTelemetry.Ctx.new` |
| 3128 | // - Erlang: `opentelemetry_ctx:new` |
| 3129 | // - Rust: `playground::my_module::my_cool_func` |
| 3130 | // - C function: `fopen` |
| 3131 | CodeFunctionNameKey = attribute.Key("code.function.name") |
| 3132 | |
| 3133 | // CodeLineNumberKey is the attribute Key conforming to the "code.line.number" |
| 3134 | // semantic conventions. It represents the line number in `code.file.path` best |
| 3135 | // representing the operation. It SHOULD point within the code unit named in |
| 3136 | // `code.function.name`. This attribute MUST NOT be used on the Profile signal |
| 3137 | // since the data is already captured in 'message Line'. This constraint is |
| 3138 | // imposed to prevent redundancy and maintain data integrity. |
| 3139 | // |
| 3140 | // Type: int |
| 3141 | // RequirementLevel: Recommended |
| 3142 | // Stability: Stable |
| 3143 | CodeLineNumberKey = attribute.Key("code.line.number") |
| 3144 | |
| 3145 | // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace" |
| 3146 | // semantic conventions. It represents a stacktrace as a string in the natural |
| 3147 | // representation for the language runtime. The representation is identical to |
| 3148 | // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile |
| 3149 | // signal since the data is already captured in 'message Location'. This |
| 3150 | // constraint is imposed to prevent redundancy and maintain data integrity. |
| 3151 | // |
| 3152 | // Type: string |
| 3153 | // RequirementLevel: Recommended |
| 3154 | // Stability: Stable |
| 3155 | // |
| 3156 | // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at |
| 3157 | // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at |
| 3158 | // com.example.GenerateTrace.main(GenerateTrace.java:5) |
| 3159 | // |
| 3160 | // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation |
| 3161 | CodeStacktraceKey = attribute.Key("code.stacktrace") |
| 3162 | ) |
| 3163 | |
| 3164 | // CodeColumnNumber returns an attribute KeyValue conforming to the |
| 3165 | // "code.column.number" semantic conventions. It represents the column number in |
| 3166 | // `code.file.path` best representing the operation. It SHOULD point within the |
| 3167 | // code unit named in `code.function.name`. This attribute MUST NOT be used on |
| 3168 | // the Profile signal since the data is already captured in 'message Line'. This |
| 3169 | // constraint is imposed to prevent redundancy and maintain data integrity. |
| 3170 | func CodeColumnNumber(val int) attribute.KeyValue { |
| 3171 | return CodeColumnNumberKey.Int(val) |
| 3172 | } |
| 3173 | |
| 3174 | // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path" |
| 3175 | // semantic conventions. It represents the source code file name that identifies |
| 3176 | // the code unit as uniquely as possible (preferably an absolute file path). This |
| 3177 | // attribute MUST NOT be used on the Profile signal since the data is already |
| 3178 | // captured in 'message Function'. This constraint is imposed to prevent |
| 3179 | // redundancy and maintain data integrity. |
| 3180 | func CodeFilePath(val string) attribute.KeyValue { |
| 3181 | return CodeFilePathKey.String(val) |
| 3182 | } |
| 3183 | |
| 3184 | // CodeFunctionName returns an attribute KeyValue conforming to the |
| 3185 | // "code.function.name" semantic conventions. It represents the method or |
| 3186 | // function fully-qualified name without arguments. The value should fit the |
| 3187 | // natural representation of the language runtime, which is also likely the same |
| 3188 | // used within `code.stacktrace` attribute value. This attribute MUST NOT be used |
| 3189 | // on the Profile signal since the data is already captured in 'message |
| 3190 | // Function'. This constraint is imposed to prevent redundancy and maintain data |
| 3191 | // integrity. |
| 3192 | func CodeFunctionName(val string) attribute.KeyValue { |
| 3193 | return CodeFunctionNameKey.String(val) |
| 3194 | } |
| 3195 | |
| 3196 | // CodeLineNumber returns an attribute KeyValue conforming to the |
| 3197 | // "code.line.number" semantic conventions. It represents the line number in |
| 3198 | // `code.file.path` best representing the operation. It SHOULD point within the |
| 3199 | // code unit named in `code.function.name`. This attribute MUST NOT be used on |
| 3200 | // the Profile signal since the data is already captured in 'message Line'. This |
| 3201 | // constraint is imposed to prevent redundancy and maintain data integrity. |
| 3202 | func CodeLineNumber(val int) attribute.KeyValue { |
| 3203 | return CodeLineNumberKey.Int(val) |
| 3204 | } |
| 3205 | |
| 3206 | // CodeStacktrace returns an attribute KeyValue conforming to the |
| 3207 | // "code.stacktrace" semantic conventions. It represents a stacktrace as a string |
| 3208 | // in the natural representation for the language runtime. The representation is |
| 3209 | // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the |
| 3210 | // Profile signal since the data is already captured in 'message Location'. This |
| 3211 | // constraint is imposed to prevent redundancy and maintain data integrity. |
| 3212 | // |
| 3213 | // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation |
| 3214 | func CodeStacktrace(val string) attribute.KeyValue { |
| 3215 | return CodeStacktraceKey.String(val) |
| 3216 | } |
| 3217 | |
| 3218 | // Namespace: container |
| 3219 | const ( |
| 3220 | // ContainerCommandKey is the attribute Key conforming to the |
| 3221 | // "container.command" semantic conventions. It represents the command used to |
| 3222 | // run the container (i.e. the command name). |
| 3223 | // |
| 3224 | // Type: string |
| 3225 | // RequirementLevel: Recommended |
| 3226 | // Stability: Development |
| 3227 | // |
| 3228 | // Examples: "otelcontribcol" |
| 3229 | // Note: If using embedded credentials or sensitive data, it is recommended to |
| 3230 | // remove them to prevent potential leakage. |
| 3231 | ContainerCommandKey = attribute.Key("container.command") |
| 3232 | |
| 3233 | // ContainerCommandArgsKey is the attribute Key conforming to the |
| 3234 | // "container.command_args" semantic conventions. It represents the all the |
| 3235 | // command arguments (including the command/executable itself) run by the |
| 3236 | // container. |
| 3237 | // |
| 3238 | // Type: string[] |
| 3239 | // RequirementLevel: Recommended |
| 3240 | // Stability: Development |
| 3241 | // |
| 3242 | // Examples: "otelcontribcol", "--config", "config.yaml" |
| 3243 | ContainerCommandArgsKey = attribute.Key("container.command_args") |
| 3244 | |
| 3245 | // ContainerCommandLineKey is the attribute Key conforming to the |
| 3246 | // "container.command_line" semantic conventions. It represents the full command |
| 3247 | // run by the container as a single string representing the full command. |
| 3248 | // |
| 3249 | // Type: string |
| 3250 | // RequirementLevel: Recommended |
| 3251 | // Stability: Development |
| 3252 | // |
| 3253 | // Examples: "otelcontribcol --config config.yaml" |
| 3254 | ContainerCommandLineKey = attribute.Key("container.command_line") |
| 3255 | |
| 3256 | // ContainerCSIPluginNameKey is the attribute Key conforming to the |
| 3257 | // "container.csi.plugin.name" semantic conventions. It represents the name of |
| 3258 | // the CSI ([Container Storage Interface]) plugin used by the volume. |
| 3259 | // |
| 3260 | // Type: string |
| 3261 | // RequirementLevel: Recommended |
| 3262 | // Stability: Development |
| 3263 | // |
| 3264 | // Examples: "pd.csi.storage.gke.io" |
| 3265 | // Note: This can sometimes be referred to as a "driver" in CSI implementations. |
| 3266 | // This should represent the `name` field of the GetPluginInfo RPC. |
| 3267 | // |
| 3268 | // [Container Storage Interface]: https://github.com/container-storage-interface/spec |
| 3269 | ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name") |
| 3270 | |
| 3271 | // ContainerCSIVolumeIDKey is the attribute Key conforming to the |
| 3272 | // "container.csi.volume.id" semantic conventions. It represents the unique |
| 3273 | // volume ID returned by the CSI ([Container Storage Interface]) plugin. |
| 3274 | // |
| 3275 | // Type: string |
| 3276 | // RequirementLevel: Recommended |
| 3277 | // Stability: Development |
| 3278 | // |
| 3279 | // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk" |
| 3280 | // Note: This can sometimes be referred to as a "volume handle" in CSI |
| 3281 | // implementations. This should represent the `Volume.volume_id` field in CSI |
| 3282 | // spec. |
| 3283 | // |
| 3284 | // [Container Storage Interface]: https://github.com/container-storage-interface/spec |
| 3285 | ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id") |
| 3286 | |
| 3287 | // ContainerIDKey is the attribute Key conforming to the "container.id" semantic |
| 3288 | // conventions. It represents the container ID. Usually a UUID, as for example |
| 3289 | // used to [identify Docker containers]. The UUID might be abbreviated. |
| 3290 | // |
| 3291 | // Type: string |
| 3292 | // RequirementLevel: Recommended |
| 3293 | // Stability: Development |
| 3294 | // |
| 3295 | // Examples: "a3bf90e006b2" |
| 3296 | // |
| 3297 | // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification |
| 3298 | ContainerIDKey = attribute.Key("container.id") |
| 3299 | |
| 3300 | // ContainerImageIDKey is the attribute Key conforming to the |
| 3301 | // "container.image.id" semantic conventions. It represents the runtime specific |
| 3302 | // image identifier. Usually a hash algorithm followed by a UUID. |
| 3303 | // |
| 3304 | // Type: string |
| 3305 | // RequirementLevel: Recommended |
| 3306 | // Stability: Development |
| 3307 | // |
| 3308 | // Examples: |
| 3309 | // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f" |
| 3310 | // Note: Docker defines a sha256 of the image id; `container.image.id` |
| 3311 | // corresponds to the `Image` field from the Docker container inspect [API] |
| 3312 | // endpoint. |
| 3313 | // K8s defines a link to the container registry repository with digest |
| 3314 | // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"` |
| 3315 | // . |
| 3316 | // The ID is assigned by the container runtime and can vary in different |
| 3317 | // environments. Consider using `oci.manifest.digest` if it is important to |
| 3318 | // identify the same image in different environments/runtimes. |
| 3319 | // |
| 3320 | // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect |
| 3321 | ContainerImageIDKey = attribute.Key("container.image.id") |
| 3322 | |
| 3323 | // ContainerImageNameKey is the attribute Key conforming to the |
| 3324 | // "container.image.name" semantic conventions. It represents the name of the |
| 3325 | // image the container was built on. |
| 3326 | // |
| 3327 | // Type: string |
| 3328 | // RequirementLevel: Recommended |
| 3329 | // Stability: Development |
| 3330 | // |
| 3331 | // Examples: "gcr.io/opentelemetry/operator" |
| 3332 | ContainerImageNameKey = attribute.Key("container.image.name") |
| 3333 | |
| 3334 | // ContainerImageRepoDigestsKey is the attribute Key conforming to the |
| 3335 | // "container.image.repo_digests" semantic conventions. It represents the repo |
| 3336 | // digests of the container image as provided by the container runtime. |
| 3337 | // |
| 3338 | // Type: string[] |
| 3339 | // RequirementLevel: Recommended |
| 3340 | // Stability: Development |
| 3341 | // |
| 3342 | // Examples: |
| 3343 | // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", |
| 3344 | // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578" |
| 3345 | // Note: [Docker] and [CRI] report those under the `RepoDigests` field. |
| 3346 | // |
| 3347 | // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect |
| 3348 | // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238 |
| 3349 | ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests") |
| 3350 | |
| 3351 | // ContainerImageTagsKey is the attribute Key conforming to the |
| 3352 | // "container.image.tags" semantic conventions. It represents the container |
| 3353 | // image tags. An example can be found in [Docker Image Inspect]. Should be only |
| 3354 | // the `<tag>` section of the full name for example from |
| 3355 | // `registry.example.com/my-org/my-image:<tag>`. |
| 3356 | // |
| 3357 | // Type: string[] |
| 3358 | // RequirementLevel: Recommended |
| 3359 | // Stability: Development |
| 3360 | // |
| 3361 | // Examples: "v1.27.1", "3.5.7-0" |
| 3362 | // |
| 3363 | // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect |
| 3364 | ContainerImageTagsKey = attribute.Key("container.image.tags") |
| 3365 | |
| 3366 | // ContainerNameKey is the attribute Key conforming to the "container.name" |
| 3367 | // semantic conventions. It represents the container name used by container |
| 3368 | // runtime. |
| 3369 | // |
| 3370 | // Type: string |
| 3371 | // RequirementLevel: Recommended |
| 3372 | // Stability: Development |
| 3373 | // |
| 3374 | // Examples: "opentelemetry-autoconf" |
| 3375 | ContainerNameKey = attribute.Key("container.name") |
| 3376 | |
| 3377 | // ContainerRuntimeKey is the attribute Key conforming to the |
| 3378 | // "container.runtime" semantic conventions. It represents the container runtime |
| 3379 | // managing this container. |
| 3380 | // |
| 3381 | // Type: string |
| 3382 | // RequirementLevel: Recommended |
| 3383 | // Stability: Development |
| 3384 | // |
| 3385 | // Examples: "docker", "containerd", "rkt" |
| 3386 | ContainerRuntimeKey = attribute.Key("container.runtime") |
| 3387 | ) |
| 3388 | |
| 3389 | // ContainerCommand returns an attribute KeyValue conforming to the |
| 3390 | // "container.command" semantic conventions. It represents the command used to |
| 3391 | // run the container (i.e. the command name). |
| 3392 | func ContainerCommand(val string) attribute.KeyValue { |
| 3393 | return ContainerCommandKey.String(val) |
| 3394 | } |
| 3395 | |
| 3396 | // ContainerCommandArgs returns an attribute KeyValue conforming to the |
| 3397 | // "container.command_args" semantic conventions. It represents the all the |
| 3398 | // command arguments (including the command/executable itself) run by the |
| 3399 | // container. |
| 3400 | func ContainerCommandArgs(val ...string) attribute.KeyValue { |
| 3401 | return ContainerCommandArgsKey.StringSlice(val) |
| 3402 | } |
| 3403 | |
| 3404 | // ContainerCommandLine returns an attribute KeyValue conforming to the |
| 3405 | // "container.command_line" semantic conventions. It represents the full command |
| 3406 | // run by the container as a single string representing the full command. |
| 3407 | func ContainerCommandLine(val string) attribute.KeyValue { |
| 3408 | return ContainerCommandLineKey.String(val) |
| 3409 | } |
| 3410 | |
| 3411 | // ContainerCSIPluginName returns an attribute KeyValue conforming to the |
| 3412 | // "container.csi.plugin.name" semantic conventions. It represents the name of |
| 3413 | // the CSI ([Container Storage Interface]) plugin used by the volume. |
| 3414 | // |
| 3415 | // [Container Storage Interface]: https://github.com/container-storage-interface/spec |
| 3416 | func ContainerCSIPluginName(val string) attribute.KeyValue { |
| 3417 | return ContainerCSIPluginNameKey.String(val) |
| 3418 | } |
| 3419 | |
| 3420 | // ContainerCSIVolumeID returns an attribute KeyValue conforming to the |
| 3421 | // "container.csi.volume.id" semantic conventions. It represents the unique |
| 3422 | // volume ID returned by the CSI ([Container Storage Interface]) plugin. |
| 3423 | // |
| 3424 | // [Container Storage Interface]: https://github.com/container-storage-interface/spec |
| 3425 | func ContainerCSIVolumeID(val string) attribute.KeyValue { |
| 3426 | return ContainerCSIVolumeIDKey.String(val) |
| 3427 | } |
| 3428 | |
| 3429 | // ContainerID returns an attribute KeyValue conforming to the "container.id" |
| 3430 | // semantic conventions. It represents the container ID. Usually a UUID, as for |
| 3431 | // example used to [identify Docker containers]. The UUID might be abbreviated. |
| 3432 | // |
| 3433 | // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification |
| 3434 | func ContainerID(val string) attribute.KeyValue { |
| 3435 | return ContainerIDKey.String(val) |
| 3436 | } |
| 3437 | |
| 3438 | // ContainerImageID returns an attribute KeyValue conforming to the |
| 3439 | // "container.image.id" semantic conventions. It represents the runtime specific |
| 3440 | // image identifier. Usually a hash algorithm followed by a UUID. |
| 3441 | func ContainerImageID(val string) attribute.KeyValue { |
| 3442 | return ContainerImageIDKey.String(val) |
| 3443 | } |
| 3444 | |
| 3445 | // ContainerImageName returns an attribute KeyValue conforming to the |
| 3446 | // "container.image.name" semantic conventions. It represents the name of the |
| 3447 | // image the container was built on. |
| 3448 | func ContainerImageName(val string) attribute.KeyValue { |
| 3449 | return ContainerImageNameKey.String(val) |
| 3450 | } |
| 3451 | |
| 3452 | // ContainerImageRepoDigests returns an attribute KeyValue conforming to the |
| 3453 | // "container.image.repo_digests" semantic conventions. It represents the repo |
| 3454 | // digests of the container image as provided by the container runtime. |
| 3455 | func ContainerImageRepoDigests(val ...string) attribute.KeyValue { |
| 3456 | return ContainerImageRepoDigestsKey.StringSlice(val) |
| 3457 | } |
| 3458 | |
| 3459 | // ContainerImageTags returns an attribute KeyValue conforming to the |
| 3460 | // "container.image.tags" semantic conventions. It represents the container image |
| 3461 | // tags. An example can be found in [Docker Image Inspect]. Should be only the |
| 3462 | // `<tag>` section of the full name for example from |
| 3463 | // `registry.example.com/my-org/my-image:<tag>`. |
| 3464 | // |
| 3465 | // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect |
| 3466 | func ContainerImageTags(val ...string) attribute.KeyValue { |
| 3467 | return ContainerImageTagsKey.StringSlice(val) |
| 3468 | } |
| 3469 | |
| 3470 | // ContainerName returns an attribute KeyValue conforming to the "container.name" |
| 3471 | // semantic conventions. It represents the container name used by container |
| 3472 | // runtime. |
| 3473 | func ContainerName(val string) attribute.KeyValue { |
| 3474 | return ContainerNameKey.String(val) |
| 3475 | } |
| 3476 | |
| 3477 | // ContainerRuntime returns an attribute KeyValue conforming to the |
| 3478 | // "container.runtime" semantic conventions. It represents the container runtime |
| 3479 | // managing this container. |
| 3480 | func ContainerRuntime(val string) attribute.KeyValue { |
| 3481 | return ContainerRuntimeKey.String(val) |
| 3482 | } |
| 3483 | |
| 3484 | // Namespace: cpu |
| 3485 | const ( |
| 3486 | // CPULogicalNumberKey is the attribute Key conforming to the |
| 3487 | // "cpu.logical_number" semantic conventions. It represents the logical CPU |
| 3488 | // number [0..n-1]. |
| 3489 | // |
| 3490 | // Type: int |
| 3491 | // RequirementLevel: Recommended |
| 3492 | // Stability: Development |
| 3493 | // |
| 3494 | // Examples: 1 |
| 3495 | CPULogicalNumberKey = attribute.Key("cpu.logical_number") |
| 3496 | |
| 3497 | // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic |
| 3498 | // conventions. It represents the mode of the CPU. |
| 3499 | // |
| 3500 | // Type: Enum |
| 3501 | // RequirementLevel: Recommended |
| 3502 | // Stability: Development |
| 3503 | // |
| 3504 | // Examples: "user", "system" |
| 3505 | CPUModeKey = attribute.Key("cpu.mode") |
| 3506 | ) |
| 3507 | |
| 3508 | // CPULogicalNumber returns an attribute KeyValue conforming to the |
| 3509 | // "cpu.logical_number" semantic conventions. It represents the logical CPU |
| 3510 | // number [0..n-1]. |
| 3511 | func CPULogicalNumber(val int) attribute.KeyValue { |
| 3512 | return CPULogicalNumberKey.Int(val) |
| 3513 | } |
| 3514 | |
| 3515 | // Enum values for cpu.mode |
| 3516 | var ( |
| 3517 | // user |
| 3518 | // Stability: development |
| 3519 | CPUModeUser = CPUModeKey.String("user") |
| 3520 | // system |
| 3521 | // Stability: development |
| 3522 | CPUModeSystem = CPUModeKey.String("system") |
| 3523 | // nice |
| 3524 | // Stability: development |
| 3525 | CPUModeNice = CPUModeKey.String("nice") |
| 3526 | // idle |
| 3527 | // Stability: development |
| 3528 | CPUModeIdle = CPUModeKey.String("idle") |
| 3529 | // iowait |
| 3530 | // Stability: development |
| 3531 | CPUModeIOWait = CPUModeKey.String("iowait") |
| 3532 | // interrupt |
| 3533 | // Stability: development |
| 3534 | CPUModeInterrupt = CPUModeKey.String("interrupt") |
| 3535 | // steal |
| 3536 | // Stability: development |
| 3537 | CPUModeSteal = CPUModeKey.String("steal") |
| 3538 | // kernel |
| 3539 | // Stability: development |
| 3540 | CPUModeKernel = CPUModeKey.String("kernel") |
| 3541 | ) |
| 3542 | |
| 3543 | // Namespace: db |
| 3544 | const ( |
| 3545 | // DBClientConnectionPoolNameKey is the attribute Key conforming to the |
| 3546 | // "db.client.connection.pool.name" semantic conventions. It represents the name |
| 3547 | // of the connection pool; unique within the instrumented application. In case |
| 3548 | // the connection pool implementation doesn't provide a name, instrumentation |
| 3549 | // SHOULD use a combination of parameters that would make the name unique, for |
| 3550 | // example, combining attributes `server.address`, `server.port`, and |
| 3551 | // `db.namespace`, formatted as `server.address:server.port/db.namespace`. |
| 3552 | // Instrumentations that generate connection pool name following different |
| 3553 | // patterns SHOULD document it. |
| 3554 | // |
| 3555 | // Type: string |
| 3556 | // RequirementLevel: Recommended |
| 3557 | // Stability: Development |
| 3558 | // |
| 3559 | // Examples: "myDataSource" |
| 3560 | DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name") |
| 3561 | |
| 3562 | // DBClientConnectionStateKey is the attribute Key conforming to the |
| 3563 | // "db.client.connection.state" semantic conventions. It represents the state of |
| 3564 | // a connection in the pool. |
| 3565 | // |
| 3566 | // Type: Enum |
| 3567 | // RequirementLevel: Recommended |
| 3568 | // Stability: Development |
| 3569 | // |
| 3570 | // Examples: "idle" |
| 3571 | DBClientConnectionStateKey = attribute.Key("db.client.connection.state") |
| 3572 | |
| 3573 | // DBCollectionNameKey is the attribute Key conforming to the |
| 3574 | // "db.collection.name" semantic conventions. It represents the name of a |
| 3575 | // collection (table, container) within the database. |
| 3576 | // |
| 3577 | // Type: string |
| 3578 | // RequirementLevel: Recommended |
| 3579 | // Stability: Stable |
| 3580 | // |
| 3581 | // Examples: "public.users", "customers" |
| 3582 | // Note: It is RECOMMENDED to capture the value as provided by the application |
| 3583 | // without attempting to do any case normalization. |
| 3584 | // |
| 3585 | // The collection name SHOULD NOT be extracted from `db.query.text`, |
| 3586 | // when the database system supports query text with multiple collections |
| 3587 | // in non-batch operations. |
| 3588 | // |
| 3589 | // For batch operations, if the individual operations are known to have the same |
| 3590 | // collection name then that collection name SHOULD be used. |
| 3591 | DBCollectionNameKey = attribute.Key("db.collection.name") |
| 3592 | |
| 3593 | // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic |
| 3594 | // conventions. It represents the name of the database, fully qualified within |
| 3595 | // the server address and port. |
| 3596 | // |
| 3597 | // Type: string |
| 3598 | // RequirementLevel: Recommended |
| 3599 | // Stability: Stable |
| 3600 | // |
| 3601 | // Examples: "customers", "test.users" |
| 3602 | // Note: If a database system has multiple namespace components, they SHOULD be |
| 3603 | // concatenated from the most general to the most specific namespace component, |
| 3604 | // using `|` as a separator between the components. Any missing components (and |
| 3605 | // their associated separators) SHOULD be omitted. |
| 3606 | // Semantic conventions for individual database systems SHOULD document what |
| 3607 | // `db.namespace` means in the context of that system. |
| 3608 | // It is RECOMMENDED to capture the value as provided by the application without |
| 3609 | // attempting to do any case normalization. |
| 3610 | DBNamespaceKey = attribute.Key("db.namespace") |
| 3611 | |
| 3612 | // DBOperationBatchSizeKey is the attribute Key conforming to the |
| 3613 | // "db.operation.batch.size" semantic conventions. It represents the number of |
| 3614 | // queries included in a batch operation. |
| 3615 | // |
| 3616 | // Type: int |
| 3617 | // RequirementLevel: Recommended |
| 3618 | // Stability: Stable |
| 3619 | // |
| 3620 | // Examples: 2, 3, 4 |
| 3621 | // Note: Operations are only considered batches when they contain two or more |
| 3622 | // operations, and so `db.operation.batch.size` SHOULD never be `1`. |
| 3623 | DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size") |
| 3624 | |
| 3625 | // DBOperationNameKey is the attribute Key conforming to the "db.operation.name" |
| 3626 | // semantic conventions. It represents the name of the operation or command |
| 3627 | // being executed. |
| 3628 | // |
| 3629 | // Type: string |
| 3630 | // RequirementLevel: Recommended |
| 3631 | // Stability: Stable |
| 3632 | // |
| 3633 | // Examples: "findAndModify", "HMSET", "SELECT" |
| 3634 | // Note: It is RECOMMENDED to capture the value as provided by the application |
| 3635 | // without attempting to do any case normalization. |
| 3636 | // |
| 3637 | // The operation name SHOULD NOT be extracted from `db.query.text`, |
| 3638 | // when the database system supports query text with multiple operations |
| 3639 | // in non-batch operations. |
| 3640 | // |
| 3641 | // If spaces can occur in the operation name, multiple consecutive spaces |
| 3642 | // SHOULD be normalized to a single space. |
| 3643 | // |
| 3644 | // For batch operations, if the individual operations are known to have the same |
| 3645 | // operation name |
| 3646 | // then that operation name SHOULD be used prepended by `BATCH `, |
| 3647 | // otherwise `db.operation.name` SHOULD be `BATCH` or some other database |
| 3648 | // system specific term if more applicable. |
| 3649 | DBOperationNameKey = attribute.Key("db.operation.name") |
| 3650 | |
| 3651 | // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary" |
| 3652 | // semantic conventions. It represents the low cardinality summary of a database |
| 3653 | // query. |
| 3654 | // |
| 3655 | // Type: string |
| 3656 | // RequirementLevel: Recommended |
| 3657 | // Stability: Stable |
| 3658 | // |
| 3659 | // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get |
| 3660 | // user by id" |
| 3661 | // Note: The query summary describes a class of database queries and is useful |
| 3662 | // as a grouping key, especially when analyzing telemetry for database |
| 3663 | // calls involving complex queries. |
| 3664 | // |
| 3665 | // Summary may be available to the instrumentation through |
| 3666 | // instrumentation hooks or other means. If it is not available, |
| 3667 | // instrumentations |
| 3668 | // that support query parsing SHOULD generate a summary following |
| 3669 | // [Generating query summary] |
| 3670 | // section. |
| 3671 | // |
| 3672 | // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query |
| 3673 | DBQuerySummaryKey = attribute.Key("db.query.summary") |
| 3674 | |
| 3675 | // DBQueryTextKey is the attribute Key conforming to the "db.query.text" |
| 3676 | // semantic conventions. It represents the database query being executed. |
| 3677 | // |
| 3678 | // Type: string |
| 3679 | // RequirementLevel: Recommended |
| 3680 | // Stability: Stable |
| 3681 | // |
| 3682 | // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?" |
| 3683 | // Note: For sanitization see [Sanitization of `db.query.text`]. |
| 3684 | // For batch operations, if the individual operations are known to have the same |
| 3685 | // query text then that query text SHOULD be used, otherwise all of the |
| 3686 | // individual query texts SHOULD be concatenated with separator `; ` or some |
| 3687 | // other database system specific separator if more applicable. |
| 3688 | // Parameterized query text SHOULD NOT be sanitized. Even though parameterized |
| 3689 | // query text can potentially have sensitive data, by using a parameterized |
| 3690 | // query the user is giving a strong signal that any sensitive data will be |
| 3691 | // passed as parameter values, and the benefit to observability of capturing the |
| 3692 | // static part of the query text by default outweighs the risk. |
| 3693 | // |
| 3694 | // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext |
| 3695 | DBQueryTextKey = attribute.Key("db.query.text") |
| 3696 | |
| 3697 | // DBResponseReturnedRowsKey is the attribute Key conforming to the |
| 3698 | // "db.response.returned_rows" semantic conventions. It represents the number of |
| 3699 | // rows returned by the operation. |
| 3700 | // |
| 3701 | // Type: int |
| 3702 | // RequirementLevel: Recommended |
| 3703 | // Stability: Development |
| 3704 | // |
| 3705 | // Examples: 10, 30, 1000 |
| 3706 | DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows") |
| 3707 | |
| 3708 | // DBResponseStatusCodeKey is the attribute Key conforming to the |
| 3709 | // "db.response.status_code" semantic conventions. It represents the database |
| 3710 | // response status code. |
| 3711 | // |
| 3712 | // Type: string |
| 3713 | // RequirementLevel: Recommended |
| 3714 | // Stability: Stable |
| 3715 | // |
| 3716 | // Examples: "102", "ORA-17002", "08P01", "404" |
| 3717 | // Note: The status code returned by the database. Usually it represents an |
| 3718 | // error code, but may also represent partial success, warning, or differentiate |
| 3719 | // between various types of successful outcomes. |
| 3720 | // Semantic conventions for individual database systems SHOULD document what |
| 3721 | // `db.response.status_code` means in the context of that system. |
| 3722 | DBResponseStatusCodeKey = attribute.Key("db.response.status_code") |
| 3723 | |
| 3724 | // DBStoredProcedureNameKey is the attribute Key conforming to the |
| 3725 | // "db.stored_procedure.name" semantic conventions. It represents the name of a |
| 3726 | // stored procedure within the database. |
| 3727 | // |
| 3728 | // Type: string |
| 3729 | // RequirementLevel: Recommended |
| 3730 | // Stability: Stable |
| 3731 | // |
| 3732 | // Examples: "GetCustomer" |
| 3733 | // Note: It is RECOMMENDED to capture the value as provided by the application |
| 3734 | // without attempting to do any case normalization. |
| 3735 | // |
| 3736 | // For batch operations, if the individual operations are known to have the same |
| 3737 | // stored procedure name then that stored procedure name SHOULD be used. |
| 3738 | DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name") |
| 3739 | |
| 3740 | // DBSystemNameKey is the attribute Key conforming to the "db.system.name" |
| 3741 | // semantic conventions. It represents the database management system (DBMS) |
| 3742 | // product as identified by the client instrumentation. |
| 3743 | // |
| 3744 | // Type: Enum |
| 3745 | // RequirementLevel: Recommended |
| 3746 | // Stability: Stable |
| 3747 | // |
| 3748 | // Examples: |
| 3749 | // Note: The actual DBMS may differ from the one identified by the client. For |
| 3750 | // example, when using PostgreSQL client libraries to connect to a CockroachDB, |
| 3751 | // the `db.system.name` is set to `postgresql` based on the instrumentation's |
| 3752 | // best knowledge. |
| 3753 | DBSystemNameKey = attribute.Key("db.system.name") |
| 3754 | ) |
| 3755 | |
| 3756 | // DBClientConnectionPoolName returns an attribute KeyValue conforming to the |
| 3757 | // "db.client.connection.pool.name" semantic conventions. It represents the name |
| 3758 | // of the connection pool; unique within the instrumented application. In case |
| 3759 | // the connection pool implementation doesn't provide a name, instrumentation |
| 3760 | // SHOULD use a combination of parameters that would make the name unique, for |
| 3761 | // example, combining attributes `server.address`, `server.port`, and |
| 3762 | // `db.namespace`, formatted as `server.address:server.port/db.namespace`. |
| 3763 | // Instrumentations that generate connection pool name following different |
| 3764 | // patterns SHOULD document it. |
| 3765 | func DBClientConnectionPoolName(val string) attribute.KeyValue { |
| 3766 | return DBClientConnectionPoolNameKey.String(val) |
| 3767 | } |
| 3768 | |
| 3769 | // DBCollectionName returns an attribute KeyValue conforming to the |
| 3770 | // "db.collection.name" semantic conventions. It represents the name of a |
| 3771 | // collection (table, container) within the database. |
| 3772 | func DBCollectionName(val string) attribute.KeyValue { |
| 3773 | return DBCollectionNameKey.String(val) |
| 3774 | } |
| 3775 | |
| 3776 | // DBNamespace returns an attribute KeyValue conforming to the "db.namespace" |
| 3777 | // semantic conventions. It represents the name of the database, fully qualified |
| 3778 | // within the server address and port. |
| 3779 | func DBNamespace(val string) attribute.KeyValue { |
| 3780 | return DBNamespaceKey.String(val) |
| 3781 | } |
| 3782 | |
| 3783 | // DBOperationBatchSize returns an attribute KeyValue conforming to the |
| 3784 | // "db.operation.batch.size" semantic conventions. It represents the number of |
| 3785 | // queries included in a batch operation. |
| 3786 | func DBOperationBatchSize(val int) attribute.KeyValue { |
| 3787 | return DBOperationBatchSizeKey.Int(val) |
| 3788 | } |
| 3789 | |
| 3790 | // DBOperationName returns an attribute KeyValue conforming to the |
| 3791 | // "db.operation.name" semantic conventions. It represents the name of the |
| 3792 | // operation or command being executed. |
| 3793 | func DBOperationName(val string) attribute.KeyValue { |
| 3794 | return DBOperationNameKey.String(val) |
| 3795 | } |
| 3796 | |
| 3797 | // DBQuerySummary returns an attribute KeyValue conforming to the |
| 3798 | // "db.query.summary" semantic conventions. It represents the low cardinality |
| 3799 | // summary of a database query. |
| 3800 | func DBQuerySummary(val string) attribute.KeyValue { |
| 3801 | return DBQuerySummaryKey.String(val) |
| 3802 | } |
| 3803 | |
| 3804 | // DBQueryText returns an attribute KeyValue conforming to the "db.query.text" |
| 3805 | // semantic conventions. It represents the database query being executed. |
| 3806 | func DBQueryText(val string) attribute.KeyValue { |
| 3807 | return DBQueryTextKey.String(val) |
| 3808 | } |
| 3809 | |
| 3810 | // DBResponseReturnedRows returns an attribute KeyValue conforming to the |
| 3811 | // "db.response.returned_rows" semantic conventions. It represents the number of |
| 3812 | // rows returned by the operation. |
| 3813 | func DBResponseReturnedRows(val int) attribute.KeyValue { |
| 3814 | return DBResponseReturnedRowsKey.Int(val) |
| 3815 | } |
| 3816 | |
| 3817 | // DBResponseStatusCode returns an attribute KeyValue conforming to the |
| 3818 | // "db.response.status_code" semantic conventions. It represents the database |
| 3819 | // response status code. |
| 3820 | func DBResponseStatusCode(val string) attribute.KeyValue { |
| 3821 | return DBResponseStatusCodeKey.String(val) |
| 3822 | } |
| 3823 | |
| 3824 | // DBStoredProcedureName returns an attribute KeyValue conforming to the |
| 3825 | // "db.stored_procedure.name" semantic conventions. It represents the name of a |
| 3826 | // stored procedure within the database. |
| 3827 | func DBStoredProcedureName(val string) attribute.KeyValue { |
| 3828 | return DBStoredProcedureNameKey.String(val) |
| 3829 | } |
| 3830 | |
| 3831 | // Enum values for db.client.connection.state |
| 3832 | var ( |
| 3833 | // idle |
| 3834 | // Stability: development |
| 3835 | DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle") |
| 3836 | // used |
| 3837 | // Stability: development |
| 3838 | DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used") |
| 3839 | ) |
| 3840 | |
| 3841 | // Enum values for db.system.name |
| 3842 | var ( |
| 3843 | // Some other SQL database. Fallback only. |
| 3844 | // Stability: development |
| 3845 | DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql") |
| 3846 | // [Adabas (Adaptable Database System)] |
| 3847 | // Stability: development |
| 3848 | // |
| 3849 | // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas |
| 3850 | DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas") |
| 3851 | // [Actian Ingres] |
| 3852 | // Stability: development |
| 3853 | // |
| 3854 | // [Actian Ingres]: https://www.actian.com/databases/ingres/ |
| 3855 | DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres") |
| 3856 | // [Amazon DynamoDB] |
| 3857 | // Stability: development |
| 3858 | // |
| 3859 | // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/ |
| 3860 | DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb") |
| 3861 | // [Amazon Redshift] |
| 3862 | // Stability: development |
| 3863 | // |
| 3864 | // [Amazon Redshift]: https://aws.amazon.com/redshift/ |
| 3865 | DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift") |
| 3866 | // [Azure Cosmos DB] |
| 3867 | // Stability: development |
| 3868 | // |
| 3869 | // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db |
| 3870 | DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb") |
| 3871 | // [InterSystems Caché] |
| 3872 | // Stability: development |
| 3873 | // |
| 3874 | // [InterSystems Caché]: https://www.intersystems.com/products/cache/ |
| 3875 | DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache") |
| 3876 | // [Apache Cassandra] |
| 3877 | // Stability: development |
| 3878 | // |
| 3879 | // [Apache Cassandra]: https://cassandra.apache.org/ |
| 3880 | DBSystemNameCassandra = DBSystemNameKey.String("cassandra") |
| 3881 | // [ClickHouse] |
| 3882 | // Stability: development |
| 3883 | // |
| 3884 | // [ClickHouse]: https://clickhouse.com/ |
| 3885 | DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse") |
| 3886 | // [CockroachDB] |
| 3887 | // Stability: development |
| 3888 | // |
| 3889 | // [CockroachDB]: https://www.cockroachlabs.com/ |
| 3890 | DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb") |
| 3891 | // [Couchbase] |
| 3892 | // Stability: development |
| 3893 | // |
| 3894 | // [Couchbase]: https://www.couchbase.com/ |
| 3895 | DBSystemNameCouchbase = DBSystemNameKey.String("couchbase") |
| 3896 | // [Apache CouchDB] |
| 3897 | // Stability: development |
| 3898 | // |
| 3899 | // [Apache CouchDB]: https://couchdb.apache.org/ |
| 3900 | DBSystemNameCouchDB = DBSystemNameKey.String("couchdb") |
| 3901 | // [Apache Derby] |
| 3902 | // Stability: development |
| 3903 | // |
| 3904 | // [Apache Derby]: https://db.apache.org/derby/ |
| 3905 | DBSystemNameDerby = DBSystemNameKey.String("derby") |
| 3906 | // [Elasticsearch] |
| 3907 | // Stability: development |
| 3908 | // |
| 3909 | // [Elasticsearch]: https://www.elastic.co/elasticsearch |
| 3910 | DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch") |
| 3911 | // [Firebird] |
| 3912 | // Stability: development |
| 3913 | // |
| 3914 | // [Firebird]: https://www.firebirdsql.org/ |
| 3915 | DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql") |
| 3916 | // [Google Cloud Spanner] |
| 3917 | // Stability: development |
| 3918 | // |
| 3919 | // [Google Cloud Spanner]: https://cloud.google.com/spanner |
| 3920 | DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner") |
| 3921 | // [Apache Geode] |
| 3922 | // Stability: development |
| 3923 | // |
| 3924 | // [Apache Geode]: https://geode.apache.org/ |
| 3925 | DBSystemNameGeode = DBSystemNameKey.String("geode") |
| 3926 | // [H2 Database] |
| 3927 | // Stability: development |
| 3928 | // |
| 3929 | // [H2 Database]: https://h2database.com/ |
| 3930 | DBSystemNameH2database = DBSystemNameKey.String("h2database") |
| 3931 | // [Apache HBase] |
| 3932 | // Stability: development |
| 3933 | // |
| 3934 | // [Apache HBase]: https://hbase.apache.org/ |
| 3935 | DBSystemNameHBase = DBSystemNameKey.String("hbase") |
| 3936 | // [Apache Hive] |
| 3937 | // Stability: development |
| 3938 | // |
| 3939 | // [Apache Hive]: https://hive.apache.org/ |
| 3940 | DBSystemNameHive = DBSystemNameKey.String("hive") |
| 3941 | // [HyperSQL Database] |
| 3942 | // Stability: development |
| 3943 | // |
| 3944 | // [HyperSQL Database]: https://hsqldb.org/ |
| 3945 | DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb") |
| 3946 | // [IBM Db2] |
| 3947 | // Stability: development |
| 3948 | // |
| 3949 | // [IBM Db2]: https://www.ibm.com/db2 |
| 3950 | DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2") |
| 3951 | // [IBM Informix] |
| 3952 | // Stability: development |
| 3953 | // |
| 3954 | // [IBM Informix]: https://www.ibm.com/products/informix |
| 3955 | DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix") |
| 3956 | // [IBM Netezza] |
| 3957 | // Stability: development |
| 3958 | // |
| 3959 | // [IBM Netezza]: https://www.ibm.com/products/netezza |
| 3960 | DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza") |
| 3961 | // [InfluxDB] |
| 3962 | // Stability: development |
| 3963 | // |
| 3964 | // [InfluxDB]: https://www.influxdata.com/ |
| 3965 | DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb") |
| 3966 | // [Instant] |
| 3967 | // Stability: development |
| 3968 | // |
| 3969 | // [Instant]: https://www.instantdb.com/ |
| 3970 | DBSystemNameInstantDB = DBSystemNameKey.String("instantdb") |
| 3971 | // [MariaDB] |
| 3972 | // Stability: stable |
| 3973 | // |
| 3974 | // [MariaDB]: https://mariadb.org/ |
| 3975 | DBSystemNameMariaDB = DBSystemNameKey.String("mariadb") |
| 3976 | // [Memcached] |
| 3977 | // Stability: development |
| 3978 | // |
| 3979 | // [Memcached]: https://memcached.org/ |
| 3980 | DBSystemNameMemcached = DBSystemNameKey.String("memcached") |
| 3981 | // [MongoDB] |
| 3982 | // Stability: development |
| 3983 | // |
| 3984 | // [MongoDB]: https://www.mongodb.com/ |
| 3985 | DBSystemNameMongoDB = DBSystemNameKey.String("mongodb") |
| 3986 | // [Microsoft SQL Server] |
| 3987 | // Stability: stable |
| 3988 | // |
| 3989 | // [Microsoft SQL Server]: https://www.microsoft.com/sql-server |
| 3990 | DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server") |
| 3991 | // [MySQL] |
| 3992 | // Stability: stable |
| 3993 | // |
| 3994 | // [MySQL]: https://www.mysql.com/ |
| 3995 | DBSystemNameMySQL = DBSystemNameKey.String("mysql") |
| 3996 | // [Neo4j] |
| 3997 | // Stability: development |
| 3998 | // |
| 3999 | // [Neo4j]: https://neo4j.com/ |
| 4000 | DBSystemNameNeo4j = DBSystemNameKey.String("neo4j") |
| 4001 | // [OpenSearch] |
| 4002 | // Stability: development |
| 4003 | // |
| 4004 | // [OpenSearch]: https://opensearch.org/ |
| 4005 | DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch") |
| 4006 | // [Oracle Database] |
| 4007 | // Stability: development |
| 4008 | // |
| 4009 | // [Oracle Database]: https://www.oracle.com/database/ |
| 4010 | DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db") |
| 4011 | // [PostgreSQL] |
| 4012 | // Stability: stable |
| 4013 | // |
| 4014 | // [PostgreSQL]: https://www.postgresql.org/ |
| 4015 | DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql") |
| 4016 | // [Redis] |
| 4017 | // Stability: development |
| 4018 | // |
| 4019 | // [Redis]: https://redis.io/ |
| 4020 | DBSystemNameRedis = DBSystemNameKey.String("redis") |
| 4021 | // [SAP HANA] |
| 4022 | // Stability: development |
| 4023 | // |
| 4024 | // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html |
| 4025 | DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana") |
| 4026 | // [SAP MaxDB] |
| 4027 | // Stability: development |
| 4028 | // |
| 4029 | // [SAP MaxDB]: https://maxdb.sap.com/ |
| 4030 | DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb") |
| 4031 | // [SQLite] |
| 4032 | // Stability: development |
| 4033 | // |
| 4034 | // [SQLite]: https://www.sqlite.org/ |
| 4035 | DBSystemNameSQLite = DBSystemNameKey.String("sqlite") |
| 4036 | // [Teradata] |
| 4037 | // Stability: development |
| 4038 | // |
| 4039 | // [Teradata]: https://www.teradata.com/ |
| 4040 | DBSystemNameTeradata = DBSystemNameKey.String("teradata") |
| 4041 | // [Trino] |
| 4042 | // Stability: development |
| 4043 | // |
| 4044 | // [Trino]: https://trino.io/ |
| 4045 | DBSystemNameTrino = DBSystemNameKey.String("trino") |
| 4046 | ) |
| 4047 | |
| 4048 | // Namespace: deployment |
| 4049 | const ( |
| 4050 | // DeploymentEnvironmentNameKey is the attribute Key conforming to the |
| 4051 | // "deployment.environment.name" semantic conventions. It represents the name of |
| 4052 | // the [deployment environment] (aka deployment tier). |
| 4053 | // |
| 4054 | // Type: string |
| 4055 | // RequirementLevel: Recommended |
| 4056 | // Stability: Development |
| 4057 | // |
| 4058 | // Examples: "staging", "production" |
| 4059 | // Note: `deployment.environment.name` does not affect the uniqueness |
| 4060 | // constraints defined through |
| 4061 | // the `service.namespace`, `service.name` and `service.instance.id` resource |
| 4062 | // attributes. |
| 4063 | // This implies that resources carrying the following attribute combinations |
| 4064 | // MUST be |
| 4065 | // considered to be identifying the same service: |
| 4066 | // |
| 4067 | // - `service.name=frontend`, `deployment.environment.name=production` |
| 4068 | // - `service.name=frontend`, `deployment.environment.name=staging`. |
| 4069 | // |
| 4070 | // |
| 4071 | // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment |
| 4072 | DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name") |
| 4073 | |
| 4074 | // DeploymentIDKey is the attribute Key conforming to the "deployment.id" |
| 4075 | // semantic conventions. It represents the id of the deployment. |
| 4076 | // |
| 4077 | // Type: string |
| 4078 | // RequirementLevel: Recommended |
| 4079 | // Stability: Development |
| 4080 | // |
| 4081 | // Examples: "1208" |
| 4082 | DeploymentIDKey = attribute.Key("deployment.id") |
| 4083 | |
| 4084 | // DeploymentNameKey is the attribute Key conforming to the "deployment.name" |
| 4085 | // semantic conventions. It represents the name of the deployment. |
| 4086 | // |
| 4087 | // Type: string |
| 4088 | // RequirementLevel: Recommended |
| 4089 | // Stability: Development |
| 4090 | // |
| 4091 | // Examples: "deploy my app", "deploy-frontend" |
| 4092 | DeploymentNameKey = attribute.Key("deployment.name") |
| 4093 | |
| 4094 | // DeploymentStatusKey is the attribute Key conforming to the |
| 4095 | // "deployment.status" semantic conventions. It represents the status of the |
| 4096 | // deployment. |
| 4097 | // |
| 4098 | // Type: Enum |
| 4099 | // RequirementLevel: Recommended |
| 4100 | // Stability: Development |
| 4101 | // |
| 4102 | // Examples: |
| 4103 | DeploymentStatusKey = attribute.Key("deployment.status") |
| 4104 | ) |
| 4105 | |
| 4106 | // DeploymentEnvironmentName returns an attribute KeyValue conforming to the |
| 4107 | // "deployment.environment.name" semantic conventions. It represents the name of |
| 4108 | // the [deployment environment] (aka deployment tier). |
| 4109 | // |
| 4110 | // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment |
| 4111 | func DeploymentEnvironmentName(val string) attribute.KeyValue { |
| 4112 | return DeploymentEnvironmentNameKey.String(val) |
| 4113 | } |
| 4114 | |
| 4115 | // DeploymentID returns an attribute KeyValue conforming to the "deployment.id" |
| 4116 | // semantic conventions. It represents the id of the deployment. |
| 4117 | func DeploymentID(val string) attribute.KeyValue { |
| 4118 | return DeploymentIDKey.String(val) |
| 4119 | } |
| 4120 | |
| 4121 | // DeploymentName returns an attribute KeyValue conforming to the |
| 4122 | // "deployment.name" semantic conventions. It represents the name of the |
| 4123 | // deployment. |
| 4124 | func DeploymentName(val string) attribute.KeyValue { |
| 4125 | return DeploymentNameKey.String(val) |
| 4126 | } |
| 4127 | |
| 4128 | // Enum values for deployment.status |
| 4129 | var ( |
| 4130 | // failed |
| 4131 | // Stability: development |
| 4132 | DeploymentStatusFailed = DeploymentStatusKey.String("failed") |
| 4133 | // succeeded |
| 4134 | // Stability: development |
| 4135 | DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded") |
| 4136 | ) |
| 4137 | |
| 4138 | // Namespace: destination |
| 4139 | const ( |
| 4140 | // DestinationAddressKey is the attribute Key conforming to the |
| 4141 | // "destination.address" semantic conventions. It represents the destination |
| 4142 | // address - domain name if available without reverse DNS lookup; otherwise, IP |
| 4143 | // address or Unix domain socket name. |
| 4144 | // |
| 4145 | // Type: string |
| 4146 | // RequirementLevel: Recommended |
| 4147 | // Stability: Development |
| 4148 | // |
| 4149 | // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock" |
| 4150 | // Note: When observed from the source side, and when communicating through an |
| 4151 | // intermediary, `destination.address` SHOULD represent the destination address |
| 4152 | // behind any intermediaries, for example proxies, if it's available. |
| 4153 | DestinationAddressKey = attribute.Key("destination.address") |
| 4154 | |
| 4155 | // DestinationPortKey is the attribute Key conforming to the "destination.port" |
| 4156 | // semantic conventions. It represents the destination port number. |
| 4157 | // |
| 4158 | // Type: int |
| 4159 | // RequirementLevel: Recommended |
| 4160 | // Stability: Development |
| 4161 | // |
| 4162 | // Examples: 3389, 2888 |
| 4163 | DestinationPortKey = attribute.Key("destination.port") |
| 4164 | ) |
| 4165 | |
| 4166 | // DestinationAddress returns an attribute KeyValue conforming to the |
| 4167 | // "destination.address" semantic conventions. It represents the destination |
| 4168 | // address - domain name if available without reverse DNS lookup; otherwise, IP |
| 4169 | // address or Unix domain socket name. |
| 4170 | func DestinationAddress(val string) attribute.KeyValue { |
| 4171 | return DestinationAddressKey.String(val) |
| 4172 | } |
| 4173 | |
| 4174 | // DestinationPort returns an attribute KeyValue conforming to the |
| 4175 | // "destination.port" semantic conventions. It represents the destination port |
| 4176 | // number. |
| 4177 | func DestinationPort(val int) attribute.KeyValue { |
| 4178 | return DestinationPortKey.Int(val) |
| 4179 | } |
| 4180 | |
| 4181 | // Namespace: device |
| 4182 | const ( |
| 4183 | // DeviceIDKey is the attribute Key conforming to the "device.id" semantic |
| 4184 | // conventions. It represents a unique identifier representing the device. |
| 4185 | // |
| 4186 | // Type: string |
| 4187 | // RequirementLevel: Recommended |
| 4188 | // Stability: Development |
| 4189 | // |
| 4190 | // Examples: "123456789012345", "01:23:45:67:89:AB" |
| 4191 | // Note: Its value SHOULD be identical for all apps on a device and it SHOULD |
| 4192 | // NOT change if an app is uninstalled and re-installed. |
| 4193 | // However, it might be resettable by the user for all apps on a device. |
| 4194 | // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be |
| 4195 | // used as values. |
| 4196 | // |
| 4197 | // More information about Android identifier best practices can be found [here] |
| 4198 | // . |
| 4199 | // |
| 4200 | // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution |
| 4201 | // > should be taken when storing personal data or anything which can identify a |
| 4202 | // > user. GDPR and data protection laws may apply, |
| 4203 | // > ensure you do your own due diligence.> Due to these reasons, this |
| 4204 | // > identifier is not recommended for consumer applications and will likely |
| 4205 | // > result in rejection from both Google Play and App Store. |
| 4206 | // > However, it may be appropriate for specific enterprise scenarios, such as |
| 4207 | // > kiosk devices or enterprise-managed devices, with appropriate compliance |
| 4208 | // > clearance. |
| 4209 | // > Any instrumentation providing this identifier MUST implement it as an |
| 4210 | // > opt-in feature.> See [`app.installation.id`]> for a more |
| 4211 | // > privacy-preserving alternative. |
| 4212 | // |
| 4213 | // [here]: https://developer.android.com/training/articles/user-data-ids |
| 4214 | // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id |
| 4215 | DeviceIDKey = attribute.Key("device.id") |
| 4216 | |
| 4217 | // DeviceManufacturerKey is the attribute Key conforming to the |
| 4218 | // "device.manufacturer" semantic conventions. It represents the name of the |
| 4219 | // device manufacturer. |
| 4220 | // |
| 4221 | // Type: string |
| 4222 | // RequirementLevel: Recommended |
| 4223 | // Stability: Development |
| 4224 | // |
| 4225 | // Examples: "Apple", "Samsung" |
| 4226 | // Note: The Android OS provides this field via [Build]. iOS apps SHOULD |
| 4227 | // hardcode the value `Apple`. |
| 4228 | // |
| 4229 | // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER |
| 4230 | DeviceManufacturerKey = attribute.Key("device.manufacturer") |
| 4231 | |
| 4232 | // DeviceModelIdentifierKey is the attribute Key conforming to the |
| 4233 | // "device.model.identifier" semantic conventions. It represents the model |
| 4234 | // identifier for the device. |
| 4235 | // |
| 4236 | // Type: string |
| 4237 | // RequirementLevel: Recommended |
| 4238 | // Stability: Development |
| 4239 | // |
| 4240 | // Examples: "iPhone3,4", "SM-G920F" |
| 4241 | // Note: It's recommended this value represents a machine-readable version of |
| 4242 | // the model identifier rather than the market or consumer-friendly name of the |
| 4243 | // device. |
| 4244 | DeviceModelIdentifierKey = attribute.Key("device.model.identifier") |
| 4245 | |
| 4246 | // DeviceModelNameKey is the attribute Key conforming to the "device.model.name" |
| 4247 | // semantic conventions. It represents the marketing name for the device model. |
| 4248 | // |
| 4249 | // Type: string |
| 4250 | // RequirementLevel: Recommended |
| 4251 | // Stability: Development |
| 4252 | // |
| 4253 | // Examples: "iPhone 6s Plus", "Samsung Galaxy S6" |
| 4254 | // Note: It's recommended this value represents a human-readable version of the |
| 4255 | // device model rather than a machine-readable alternative. |
| 4256 | DeviceModelNameKey = attribute.Key("device.model.name") |
| 4257 | ) |
| 4258 | |
| 4259 | // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic |
| 4260 | // conventions. It represents a unique identifier representing the device. |
| 4261 | func DeviceID(val string) attribute.KeyValue { |
| 4262 | return DeviceIDKey.String(val) |
| 4263 | } |
| 4264 | |
| 4265 | // DeviceManufacturer returns an attribute KeyValue conforming to the |
| 4266 | // "device.manufacturer" semantic conventions. It represents the name of the |
| 4267 | // device manufacturer. |
| 4268 | func DeviceManufacturer(val string) attribute.KeyValue { |
| 4269 | return DeviceManufacturerKey.String(val) |
| 4270 | } |
| 4271 | |
| 4272 | // DeviceModelIdentifier returns an attribute KeyValue conforming to the |
| 4273 | // "device.model.identifier" semantic conventions. It represents the model |
| 4274 | // identifier for the device. |
| 4275 | func DeviceModelIdentifier(val string) attribute.KeyValue { |
| 4276 | return DeviceModelIdentifierKey.String(val) |
| 4277 | } |
| 4278 | |
| 4279 | // DeviceModelName returns an attribute KeyValue conforming to the |
| 4280 | // "device.model.name" semantic conventions. It represents the marketing name for |
| 4281 | // the device model. |
| 4282 | func DeviceModelName(val string) attribute.KeyValue { |
| 4283 | return DeviceModelNameKey.String(val) |
| 4284 | } |
| 4285 | |
| 4286 | // Namespace: disk |
| 4287 | const ( |
| 4288 | // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction" |
| 4289 | // semantic conventions. It represents the disk IO operation direction. |
| 4290 | // |
| 4291 | // Type: Enum |
| 4292 | // RequirementLevel: Recommended |
| 4293 | // Stability: Development |
| 4294 | // |
| 4295 | // Examples: "read" |
| 4296 | DiskIODirectionKey = attribute.Key("disk.io.direction") |
| 4297 | ) |
| 4298 | |
| 4299 | // Enum values for disk.io.direction |
| 4300 | var ( |
| 4301 | // read |
| 4302 | // Stability: development |
| 4303 | DiskIODirectionRead = DiskIODirectionKey.String("read") |
| 4304 | // write |
| 4305 | // Stability: development |
| 4306 | DiskIODirectionWrite = DiskIODirectionKey.String("write") |
| 4307 | ) |
| 4308 | |
| 4309 | // Namespace: dns |
| 4310 | const ( |
| 4311 | // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name" |
| 4312 | // semantic conventions. It represents the name being queried. |
| 4313 | // |
| 4314 | // Type: string |
| 4315 | // RequirementLevel: Recommended |
| 4316 | // Stability: Development |
| 4317 | // |
| 4318 | // Examples: "www.example.com", "opentelemetry.io" |
| 4319 | // Note: If the name field contains non-printable characters (below 32 or above |
| 4320 | // 126), those characters should be represented as escaped base 10 integers |
| 4321 | // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, |
| 4322 | // and line feeds should be converted to \t, \r, and \n respectively. |
| 4323 | DNSQuestionNameKey = attribute.Key("dns.question.name") |
| 4324 | ) |
| 4325 | |
| 4326 | // DNSQuestionName returns an attribute KeyValue conforming to the |
| 4327 | // "dns.question.name" semantic conventions. It represents the name being |
| 4328 | // queried. |
| 4329 | func DNSQuestionName(val string) attribute.KeyValue { |
| 4330 | return DNSQuestionNameKey.String(val) |
| 4331 | } |
| 4332 | |
| 4333 | // Namespace: elasticsearch |
| 4334 | const ( |
| 4335 | // ElasticsearchNodeNameKey is the attribute Key conforming to the |
| 4336 | // "elasticsearch.node.name" semantic conventions. It represents the represents |
| 4337 | // the human-readable identifier of the node/instance to which a request was |
| 4338 | // routed. |
| 4339 | // |
| 4340 | // Type: string |
| 4341 | // RequirementLevel: Recommended |
| 4342 | // Stability: Development |
| 4343 | // |
| 4344 | // Examples: "instance-0000000001" |
| 4345 | ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name") |
| 4346 | ) |
| 4347 | |
| 4348 | // ElasticsearchNodeName returns an attribute KeyValue conforming to the |
| 4349 | // "elasticsearch.node.name" semantic conventions. It represents the represents |
| 4350 | // the human-readable identifier of the node/instance to which a request was |
| 4351 | // routed. |
| 4352 | func ElasticsearchNodeName(val string) attribute.KeyValue { |
| 4353 | return ElasticsearchNodeNameKey.String(val) |
| 4354 | } |
| 4355 | |
| 4356 | // Namespace: enduser |
| 4357 | const ( |
| 4358 | // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic |
| 4359 | // conventions. It represents the unique identifier of an end user in the |
| 4360 | // system. It maybe a username, email address, or other identifier. |
| 4361 | // |
| 4362 | // Type: string |
| 4363 | // RequirementLevel: Recommended |
| 4364 | // Stability: Development |
| 4365 | // |
| 4366 | // Examples: "username" |
| 4367 | // Note: Unique identifier of an end user in the system. |
| 4368 | // |
| 4369 | // > [!Warning] |
| 4370 | // > This field contains sensitive (PII) information. |
| 4371 | EnduserIDKey = attribute.Key("enduser.id") |
| 4372 | |
| 4373 | // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id" |
| 4374 | // semantic conventions. It represents the pseudonymous identifier of an end |
| 4375 | // user. This identifier should be a random value that is not directly linked or |
| 4376 | // associated with the end user's actual identity. |
| 4377 | // |
| 4378 | // Type: string |
| 4379 | // RequirementLevel: Recommended |
| 4380 | // Stability: Development |
| 4381 | // |
| 4382 | // Examples: "QdH5CAWJgqVT4rOr0qtumf" |
| 4383 | // Note: Pseudonymous identifier of an end user. |
| 4384 | // |
| 4385 | // > [!Warning] |
| 4386 | // > This field contains sensitive (linkable PII) information. |
| 4387 | EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id") |
| 4388 | ) |
| 4389 | |
| 4390 | // EnduserID returns an attribute KeyValue conforming to the "enduser.id" |
| 4391 | // semantic conventions. It represents the unique identifier of an end user in |
| 4392 | // the system. It maybe a username, email address, or other identifier. |
| 4393 | func EnduserID(val string) attribute.KeyValue { |
| 4394 | return EnduserIDKey.String(val) |
| 4395 | } |
| 4396 | |
| 4397 | // EnduserPseudoID returns an attribute KeyValue conforming to the |
| 4398 | // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous |
| 4399 | // identifier of an end user. This identifier should be a random value that is |
| 4400 | // not directly linked or associated with the end user's actual identity. |
| 4401 | func EnduserPseudoID(val string) attribute.KeyValue { |
| 4402 | return EnduserPseudoIDKey.String(val) |
| 4403 | } |
| 4404 | |
| 4405 | // Namespace: error |
| 4406 | const ( |
| 4407 | // ErrorMessageKey is the attribute Key conforming to the "error.message" |
| 4408 | // semantic conventions. It represents a message providing more detail about an |
| 4409 | // error in human-readable form. |
| 4410 | // |
| 4411 | // Type: string |
| 4412 | // RequirementLevel: Recommended |
| 4413 | // Stability: Development |
| 4414 | // |
| 4415 | // Examples: "Unexpected input type: string", "The user has exceeded their |
| 4416 | // storage quota" |
| 4417 | // Note: `error.message` should provide additional context and detail about an |
| 4418 | // error. |
| 4419 | // It is NOT RECOMMENDED to duplicate the value of `error.type` in |
| 4420 | // `error.message`. |
| 4421 | // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in |
| 4422 | // `error.message`. |
| 4423 | // |
| 4424 | // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded |
| 4425 | // cardinality and overlap with span status. |
| 4426 | ErrorMessageKey = attribute.Key("error.message") |
| 4427 | |
| 4428 | // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic |
| 4429 | // conventions. It represents the describes a class of error the operation ended |
| 4430 | // with. |
| 4431 | // |
| 4432 | // Type: Enum |
| 4433 | // RequirementLevel: Recommended |
| 4434 | // Stability: Stable |
| 4435 | // |
| 4436 | // Examples: "timeout", "java.net.UnknownHostException", |
| 4437 | // "server_certificate_invalid", "500" |
| 4438 | // Note: The `error.type` SHOULD be predictable, and SHOULD have low |
| 4439 | // cardinality. |
| 4440 | // |
| 4441 | // When `error.type` is set to a type (e.g., an exception type), its |
| 4442 | // canonical class name identifying the type within the artifact SHOULD be used. |
| 4443 | // |
| 4444 | // Instrumentations SHOULD document the list of errors they report. |
| 4445 | // |
| 4446 | // The cardinality of `error.type` within one instrumentation library SHOULD be |
| 4447 | // low. |
| 4448 | // Telemetry consumers that aggregate data from multiple instrumentation |
| 4449 | // libraries and applications |
| 4450 | // should be prepared for `error.type` to have high cardinality at query time |
| 4451 | // when no |
| 4452 | // additional filters are applied. |
| 4453 | // |
| 4454 | // If the operation has completed successfully, instrumentations SHOULD NOT set |
| 4455 | // `error.type`. |
| 4456 | // |
| 4457 | // If a specific domain defines its own set of error identifiers (such as HTTP |
| 4458 | // or gRPC status codes), |
| 4459 | // it's RECOMMENDED to: |
| 4460 | // |
| 4461 | // - Use a domain-specific attribute |
| 4462 | // - Set `error.type` to capture all errors, regardless of whether they are |
| 4463 | // defined within the domain-specific set or not. |
| 4464 | ErrorTypeKey = attribute.Key("error.type") |
| 4465 | ) |
| 4466 | |
| 4467 | // ErrorMessage returns an attribute KeyValue conforming to the "error.message" |
| 4468 | // semantic conventions. It represents a message providing more detail about an |
| 4469 | // error in human-readable form. |
| 4470 | func ErrorMessage(val string) attribute.KeyValue { |
| 4471 | return ErrorMessageKey.String(val) |
| 4472 | } |
| 4473 | |
| 4474 | // Enum values for error.type |
| 4475 | var ( |
| 4476 | // A fallback error value to be used when the instrumentation doesn't define a |
| 4477 | // custom value. |
| 4478 | // |
| 4479 | // Stability: stable |
| 4480 | ErrorTypeOther = ErrorTypeKey.String("_OTHER") |
| 4481 | ) |
| 4482 | |
| 4483 | // Namespace: exception |
| 4484 | const ( |
| 4485 | // ExceptionMessageKey is the attribute Key conforming to the |
| 4486 | // "exception.message" semantic conventions. It represents the exception |
| 4487 | // message. |
| 4488 | // |
| 4489 | // Type: string |
| 4490 | // RequirementLevel: Recommended |
| 4491 | // Stability: Stable |
| 4492 | // |
| 4493 | // Examples: "Division by zero", "Can't convert 'int' object to str implicitly" |
| 4494 | ExceptionMessageKey = attribute.Key("exception.message") |
| 4495 | |
| 4496 | // ExceptionStacktraceKey is the attribute Key conforming to the |
| 4497 | // "exception.stacktrace" semantic conventions. It represents a stacktrace as a |
| 4498 | // string in the natural representation for the language runtime. The |
| 4499 | // representation is to be determined and documented by each language SIG. |
| 4500 | // |
| 4501 | // Type: string |
| 4502 | // RequirementLevel: Recommended |
| 4503 | // Stability: Stable |
| 4504 | // |
| 4505 | // Examples: Exception in thread "main" java.lang.RuntimeException: Test |
| 4506 | // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at |
| 4507 | // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at |
| 4508 | // com.example.GenerateTrace.main(GenerateTrace.java:5) |
| 4509 | ExceptionStacktraceKey = attribute.Key("exception.stacktrace") |
| 4510 | |
| 4511 | // ExceptionTypeKey is the attribute Key conforming to the "exception.type" |
| 4512 | // semantic conventions. It represents the type of the exception (its |
| 4513 | // fully-qualified class name, if applicable). The dynamic type of the exception |
| 4514 | // should be preferred over the static type in languages that support it. |
| 4515 | // |
| 4516 | // Type: string |
| 4517 | // RequirementLevel: Recommended |
| 4518 | // Stability: Stable |
| 4519 | // |
| 4520 | // Examples: "java.net.ConnectException", "OSError" |
| 4521 | ExceptionTypeKey = attribute.Key("exception.type") |
| 4522 | ) |
| 4523 | |
| 4524 | // ExceptionMessage returns an attribute KeyValue conforming to the |
| 4525 | // "exception.message" semantic conventions. It represents the exception message. |
| 4526 | func ExceptionMessage(val string) attribute.KeyValue { |
| 4527 | return ExceptionMessageKey.String(val) |
| 4528 | } |
| 4529 | |
| 4530 | // ExceptionStacktrace returns an attribute KeyValue conforming to the |
| 4531 | // "exception.stacktrace" semantic conventions. It represents a stacktrace as a |
| 4532 | // string in the natural representation for the language runtime. The |
| 4533 | // representation is to be determined and documented by each language SIG. |
| 4534 | func ExceptionStacktrace(val string) attribute.KeyValue { |
| 4535 | return ExceptionStacktraceKey.String(val) |
| 4536 | } |
| 4537 | |
| 4538 | // ExceptionType returns an attribute KeyValue conforming to the "exception.type" |
| 4539 | // semantic conventions. It represents the type of the exception (its |
| 4540 | // fully-qualified class name, if applicable). The dynamic type of the exception |
| 4541 | // should be preferred over the static type in languages that support it. |
| 4542 | func ExceptionType(val string) attribute.KeyValue { |
| 4543 | return ExceptionTypeKey.String(val) |
| 4544 | } |
| 4545 | |
| 4546 | // Namespace: faas |
| 4547 | const ( |
| 4548 | // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart" |
| 4549 | // semantic conventions. It represents a boolean that is true if the serverless |
| 4550 | // function is executed for the first time (aka cold-start). |
| 4551 | // |
| 4552 | // Type: boolean |
| 4553 | // RequirementLevel: Recommended |
| 4554 | // Stability: Development |
| 4555 | // |
| 4556 | // Examples: |
| 4557 | FaaSColdstartKey = attribute.Key("faas.coldstart") |
| 4558 | |
| 4559 | // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic |
| 4560 | // conventions. It represents a string containing the schedule period as |
| 4561 | // [Cron Expression]. |
| 4562 | // |
| 4563 | // Type: string |
| 4564 | // RequirementLevel: Recommended |
| 4565 | // Stability: Development |
| 4566 | // |
| 4567 | // Examples: 0/5 * * * ? * |
| 4568 | // |
| 4569 | // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm |
| 4570 | FaaSCronKey = attribute.Key("faas.cron") |
| 4571 | |
| 4572 | // FaaSDocumentCollectionKey is the attribute Key conforming to the |
| 4573 | // "faas.document.collection" semantic conventions. It represents the name of |
| 4574 | // the source on which the triggering operation was performed. For example, in |
| 4575 | // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the |
| 4576 | // database name. |
| 4577 | // |
| 4578 | // Type: string |
| 4579 | // RequirementLevel: Recommended |
| 4580 | // Stability: Development |
| 4581 | // |
| 4582 | // Examples: "myBucketName", "myDbName" |
| 4583 | FaaSDocumentCollectionKey = attribute.Key("faas.document.collection") |
| 4584 | |
| 4585 | // FaaSDocumentNameKey is the attribute Key conforming to the |
| 4586 | // "faas.document.name" semantic conventions. It represents the document |
| 4587 | // name/table subjected to the operation. For example, in Cloud Storage or S3 is |
| 4588 | // the name of the file, and in Cosmos DB the table name. |
| 4589 | // |
| 4590 | // Type: string |
| 4591 | // RequirementLevel: Recommended |
| 4592 | // Stability: Development |
| 4593 | // |
| 4594 | // Examples: "myFile.txt", "myTableName" |
| 4595 | FaaSDocumentNameKey = attribute.Key("faas.document.name") |
| 4596 | |
| 4597 | // FaaSDocumentOperationKey is the attribute Key conforming to the |
| 4598 | // "faas.document.operation" semantic conventions. It represents the describes |
| 4599 | // the type of the operation that was performed on the data. |
| 4600 | // |
| 4601 | // Type: Enum |
| 4602 | // RequirementLevel: Recommended |
| 4603 | // Stability: Development |
| 4604 | // |
| 4605 | // Examples: |
| 4606 | FaaSDocumentOperationKey = attribute.Key("faas.document.operation") |
| 4607 | |
| 4608 | // FaaSDocumentTimeKey is the attribute Key conforming to the |
| 4609 | // "faas.document.time" semantic conventions. It represents a string containing |
| 4610 | // the time when the data was accessed in the [ISO 8601] format expressed in |
| 4611 | // [UTC]. |
| 4612 | // |
| 4613 | // Type: string |
| 4614 | // RequirementLevel: Recommended |
| 4615 | // Stability: Development |
| 4616 | // |
| 4617 | // Examples: 2020-01-23T13:47:06Z |
| 4618 | // |
| 4619 | // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html |
| 4620 | // [UTC]: https://www.w3.org/TR/NOTE-datetime |
| 4621 | FaaSDocumentTimeKey = attribute.Key("faas.document.time") |
| 4622 | |
| 4623 | // FaaSInstanceKey is the attribute Key conforming to the "faas.instance" |
| 4624 | // semantic conventions. It represents the execution environment ID as a string, |
| 4625 | // that will be potentially reused for other invocations to the same |
| 4626 | // function/function version. |
| 4627 | // |
| 4628 | // Type: string |
| 4629 | // RequirementLevel: Recommended |
| 4630 | // Stability: Development |
| 4631 | // |
| 4632 | // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de" |
| 4633 | // Note: - **AWS Lambda:** Use the (full) log stream name. |
| 4634 | FaaSInstanceKey = attribute.Key("faas.instance") |
| 4635 | |
| 4636 | // FaaSInvocationIDKey is the attribute Key conforming to the |
| 4637 | // "faas.invocation_id" semantic conventions. It represents the invocation ID of |
| 4638 | // the current function invocation. |
| 4639 | // |
| 4640 | // Type: string |
| 4641 | // RequirementLevel: Recommended |
| 4642 | // Stability: Development |
| 4643 | // |
| 4644 | // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28 |
| 4645 | FaaSInvocationIDKey = attribute.Key("faas.invocation_id") |
| 4646 | |
| 4647 | // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name" |
| 4648 | // semantic conventions. It represents the name of the invoked function. |
| 4649 | // |
| 4650 | // Type: string |
| 4651 | // RequirementLevel: Recommended |
| 4652 | // Stability: Development |
| 4653 | // |
| 4654 | // Examples: my-function |
| 4655 | // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked |
| 4656 | // function. |
| 4657 | FaaSInvokedNameKey = attribute.Key("faas.invoked_name") |
| 4658 | |
| 4659 | // FaaSInvokedProviderKey is the attribute Key conforming to the |
| 4660 | // "faas.invoked_provider" semantic conventions. It represents the cloud |
| 4661 | // provider of the invoked function. |
| 4662 | // |
| 4663 | // Type: Enum |
| 4664 | // RequirementLevel: Recommended |
| 4665 | // Stability: Development |
| 4666 | // |
| 4667 | // Examples: |
| 4668 | // Note: SHOULD be equal to the `cloud.provider` resource attribute of the |
| 4669 | // invoked function. |
| 4670 | FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider") |
| 4671 | |
| 4672 | // FaaSInvokedRegionKey is the attribute Key conforming to the |
| 4673 | // "faas.invoked_region" semantic conventions. It represents the cloud region of |
| 4674 | // the invoked function. |
| 4675 | // |
| 4676 | // Type: string |
| 4677 | // RequirementLevel: Recommended |
| 4678 | // Stability: Development |
| 4679 | // |
| 4680 | // Examples: eu-central-1 |
| 4681 | // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked |
| 4682 | // function. |
| 4683 | FaaSInvokedRegionKey = attribute.Key("faas.invoked_region") |
| 4684 | |
| 4685 | // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory" |
| 4686 | // semantic conventions. It represents the amount of memory available to the |
| 4687 | // serverless function converted to Bytes. |
| 4688 | // |
| 4689 | // Type: int |
| 4690 | // RequirementLevel: Recommended |
| 4691 | // Stability: Development |
| 4692 | // |
| 4693 | // Note: It's recommended to set this attribute since e.g. too little memory can |
| 4694 | // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, |
| 4695 | // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this |
| 4696 | // information (which must be multiplied by 1,048,576). |
| 4697 | FaaSMaxMemoryKey = attribute.Key("faas.max_memory") |
| 4698 | |
| 4699 | // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic |
| 4700 | // conventions. It represents the name of the single function that this runtime |
| 4701 | // instance executes. |
| 4702 | // |
| 4703 | // Type: string |
| 4704 | // RequirementLevel: Recommended |
| 4705 | // Stability: Development |
| 4706 | // |
| 4707 | // Examples: "my-function", "myazurefunctionapp/some-function-name" |
| 4708 | // Note: This is the name of the function as configured/deployed on the FaaS |
| 4709 | // platform and is usually different from the name of the callback |
| 4710 | // function (which may be stored in the |
| 4711 | // [`code.namespace`/`code.function.name`] |
| 4712 | // span attributes). |
| 4713 | // |
| 4714 | // For some cloud providers, the above definition is ambiguous. The following |
| 4715 | // definition of function name MUST be used for this attribute |
| 4716 | // (and consequently the span name) for the listed cloud providers/products: |
| 4717 | // |
| 4718 | // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name |
| 4719 | // followed by a forward slash followed by the function name (this form |
| 4720 | // can also be seen in the resource JSON for the function). |
| 4721 | // This means that a span attribute MUST be used, as an Azure function |
| 4722 | // app can host multiple functions that would usually share |
| 4723 | // a TracerProvider (see also the `cloud.resource_id` attribute). |
| 4724 | // |
| 4725 | // |
| 4726 | // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes |
| 4727 | FaaSNameKey = attribute.Key("faas.name") |
| 4728 | |
| 4729 | // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic |
| 4730 | // conventions. It represents a string containing the function invocation time |
| 4731 | // in the [ISO 8601] format expressed in [UTC]. |
| 4732 | // |
| 4733 | // Type: string |
| 4734 | // RequirementLevel: Recommended |
| 4735 | // Stability: Development |
| 4736 | // |
| 4737 | // Examples: 2020-01-23T13:47:06Z |
| 4738 | // |
| 4739 | // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html |
| 4740 | // [UTC]: https://www.w3.org/TR/NOTE-datetime |
| 4741 | FaaSTimeKey = attribute.Key("faas.time") |
| 4742 | |
| 4743 | // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic |
| 4744 | // conventions. It represents the type of the trigger which caused this function |
| 4745 | // invocation. |
| 4746 | // |
| 4747 | // Type: Enum |
| 4748 | // RequirementLevel: Recommended |
| 4749 | // Stability: Development |
| 4750 | // |
| 4751 | // Examples: |
| 4752 | FaaSTriggerKey = attribute.Key("faas.trigger") |
| 4753 | |
| 4754 | // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic |
| 4755 | // conventions. It represents the immutable version of the function being |
| 4756 | // executed. |
| 4757 | // |
| 4758 | // Type: string |
| 4759 | // RequirementLevel: Recommended |
| 4760 | // Stability: Development |
| 4761 | // |
| 4762 | // Examples: "26", "pinkfroid-00002" |
| 4763 | // Note: Depending on the cloud provider and platform, use: |
| 4764 | // |
| 4765 | // - **AWS Lambda:** The [function version] |
| 4766 | // (an integer represented as a decimal string). |
| 4767 | // - **Google Cloud Run (Services):** The [revision] |
| 4768 | // (i.e., the function name plus the revision suffix). |
| 4769 | // - **Google Cloud Functions:** The value of the |
| 4770 | // [`K_REVISION` environment variable]. |
| 4771 | // - **Azure Functions:** Not applicable. Do not set this attribute. |
| 4772 | // |
| 4773 | // |
| 4774 | // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html |
| 4775 | // [revision]: https://cloud.google.com/run/docs/managing/revisions |
| 4776 | // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically |
| 4777 | FaaSVersionKey = attribute.Key("faas.version") |
| 4778 | ) |
| 4779 | |
| 4780 | // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart" |
| 4781 | // semantic conventions. It represents a boolean that is true if the serverless |
| 4782 | // function is executed for the first time (aka cold-start). |
| 4783 | func FaaSColdstart(val bool) attribute.KeyValue { |
| 4784 | return FaaSColdstartKey.Bool(val) |
| 4785 | } |
| 4786 | |
| 4787 | // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic |
| 4788 | // conventions. It represents a string containing the schedule period as |
| 4789 | // [Cron Expression]. |
| 4790 | // |
| 4791 | // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm |
| 4792 | func FaaSCron(val string) attribute.KeyValue { |
| 4793 | return FaaSCronKey.String(val) |
| 4794 | } |
| 4795 | |
| 4796 | // FaaSDocumentCollection returns an attribute KeyValue conforming to the |
| 4797 | // "faas.document.collection" semantic conventions. It represents the name of the |
| 4798 | // source on which the triggering operation was performed. For example, in Cloud |
| 4799 | // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database |
| 4800 | // name. |
| 4801 | func FaaSDocumentCollection(val string) attribute.KeyValue { |
| 4802 | return FaaSDocumentCollectionKey.String(val) |
| 4803 | } |
| 4804 | |
| 4805 | // FaaSDocumentName returns an attribute KeyValue conforming to the |
| 4806 | // "faas.document.name" semantic conventions. It represents the document |
| 4807 | // name/table subjected to the operation. For example, in Cloud Storage or S3 is |
| 4808 | // the name of the file, and in Cosmos DB the table name. |
| 4809 | func FaaSDocumentName(val string) attribute.KeyValue { |
| 4810 | return FaaSDocumentNameKey.String(val) |
| 4811 | } |
| 4812 | |
| 4813 | // FaaSDocumentTime returns an attribute KeyValue conforming to the |
| 4814 | // "faas.document.time" semantic conventions. It represents a string containing |
| 4815 | // the time when the data was accessed in the [ISO 8601] format expressed in |
| 4816 | // [UTC]. |
| 4817 | // |
| 4818 | // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html |
| 4819 | // [UTC]: https://www.w3.org/TR/NOTE-datetime |
| 4820 | func FaaSDocumentTime(val string) attribute.KeyValue { |
| 4821 | return FaaSDocumentTimeKey.String(val) |
| 4822 | } |
| 4823 | |
| 4824 | // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance" |
| 4825 | // semantic conventions. It represents the execution environment ID as a string, |
| 4826 | // that will be potentially reused for other invocations to the same |
| 4827 | // function/function version. |
| 4828 | func FaaSInstance(val string) attribute.KeyValue { |
| 4829 | return FaaSInstanceKey.String(val) |
| 4830 | } |
| 4831 | |
| 4832 | // FaaSInvocationID returns an attribute KeyValue conforming to the |
| 4833 | // "faas.invocation_id" semantic conventions. It represents the invocation ID of |
| 4834 | // the current function invocation. |
| 4835 | func FaaSInvocationID(val string) attribute.KeyValue { |
| 4836 | return FaaSInvocationIDKey.String(val) |
| 4837 | } |
| 4838 | |
| 4839 | // FaaSInvokedName returns an attribute KeyValue conforming to the |
| 4840 | // "faas.invoked_name" semantic conventions. It represents the name of the |
| 4841 | // invoked function. |
| 4842 | func FaaSInvokedName(val string) attribute.KeyValue { |
| 4843 | return FaaSInvokedNameKey.String(val) |
| 4844 | } |
| 4845 | |
| 4846 | // FaaSInvokedRegion returns an attribute KeyValue conforming to the |
| 4847 | // "faas.invoked_region" semantic conventions. It represents the cloud region of |
| 4848 | // the invoked function. |
| 4849 | func FaaSInvokedRegion(val string) attribute.KeyValue { |
| 4850 | return FaaSInvokedRegionKey.String(val) |
| 4851 | } |
| 4852 | |
| 4853 | // FaaSMaxMemory returns an attribute KeyValue conforming to the |
| 4854 | // "faas.max_memory" semantic conventions. It represents the amount of memory |
| 4855 | // available to the serverless function converted to Bytes. |
| 4856 | func FaaSMaxMemory(val int) attribute.KeyValue { |
| 4857 | return FaaSMaxMemoryKey.Int(val) |
| 4858 | } |
| 4859 | |
| 4860 | // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic |
| 4861 | // conventions. It represents the name of the single function that this runtime |
| 4862 | // instance executes. |
| 4863 | func FaaSName(val string) attribute.KeyValue { |
| 4864 | return FaaSNameKey.String(val) |
| 4865 | } |
| 4866 | |
| 4867 | // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic |
| 4868 | // conventions. It represents a string containing the function invocation time in |
| 4869 | // the [ISO 8601] format expressed in [UTC]. |
| 4870 | // |
| 4871 | // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html |
| 4872 | // [UTC]: https://www.w3.org/TR/NOTE-datetime |
| 4873 | func FaaSTime(val string) attribute.KeyValue { |
| 4874 | return FaaSTimeKey.String(val) |
| 4875 | } |
| 4876 | |
| 4877 | // FaaSVersion returns an attribute KeyValue conforming to the "faas.version" |
| 4878 | // semantic conventions. It represents the immutable version of the function |
| 4879 | // being executed. |
| 4880 | func FaaSVersion(val string) attribute.KeyValue { |
| 4881 | return FaaSVersionKey.String(val) |
| 4882 | } |
| 4883 | |
| 4884 | // Enum values for faas.document.operation |
| 4885 | var ( |
| 4886 | // When a new object is created. |
| 4887 | // Stability: development |
| 4888 | FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert") |
| 4889 | // When an object is modified. |
| 4890 | // Stability: development |
| 4891 | FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit") |
| 4892 | // When an object is deleted. |
| 4893 | // Stability: development |
| 4894 | FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete") |
| 4895 | ) |
| 4896 | |
| 4897 | // Enum values for faas.invoked_provider |
| 4898 | var ( |
| 4899 | // Alibaba Cloud |
| 4900 | // Stability: development |
| 4901 | FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud") |
| 4902 | // Amazon Web Services |
| 4903 | // Stability: development |
| 4904 | FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws") |
| 4905 | // Microsoft Azure |
| 4906 | // Stability: development |
| 4907 | FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure") |
| 4908 | // Google Cloud Platform |
| 4909 | // Stability: development |
| 4910 | FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp") |
| 4911 | // Tencent Cloud |
| 4912 | // Stability: development |
| 4913 | FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud") |
| 4914 | ) |
| 4915 | |
| 4916 | // Enum values for faas.trigger |
| 4917 | var ( |
| 4918 | // A response to some data source operation such as a database or filesystem |
| 4919 | // read/write |
| 4920 | // Stability: development |
| 4921 | FaaSTriggerDatasource = FaaSTriggerKey.String("datasource") |
| 4922 | // To provide an answer to an inbound HTTP request |
| 4923 | // Stability: development |
| 4924 | FaaSTriggerHTTP = FaaSTriggerKey.String("http") |
| 4925 | // A function is set to be executed when messages are sent to a messaging system |
| 4926 | // Stability: development |
| 4927 | FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub") |
| 4928 | // A function is scheduled to be executed regularly |
| 4929 | // Stability: development |
| 4930 | FaaSTriggerTimer = FaaSTriggerKey.String("timer") |
| 4931 | // If none of the others apply |
| 4932 | // Stability: development |
| 4933 | FaaSTriggerOther = FaaSTriggerKey.String("other") |
| 4934 | ) |
| 4935 | |
| 4936 | // Namespace: feature_flag |
| 4937 | const ( |
| 4938 | // FeatureFlagContextIDKey is the attribute Key conforming to the |
| 4939 | // "feature_flag.context.id" semantic conventions. It represents the unique |
| 4940 | // identifier for the flag evaluation context. For example, the targeting key. |
| 4941 | // |
| 4942 | // Type: string |
| 4943 | // RequirementLevel: Recommended |
| 4944 | // Stability: Development |
| 4945 | // |
| 4946 | // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db" |
| 4947 | FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id") |
| 4948 | |
| 4949 | // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key" |
| 4950 | // semantic conventions. It represents the lookup key of the feature flag. |
| 4951 | // |
| 4952 | // Type: string |
| 4953 | // RequirementLevel: Recommended |
| 4954 | // Stability: Development |
| 4955 | // |
| 4956 | // Examples: "logo-color" |
| 4957 | FeatureFlagKeyKey = attribute.Key("feature_flag.key") |
| 4958 | |
| 4959 | // FeatureFlagProviderNameKey is the attribute Key conforming to the |
| 4960 | // "feature_flag.provider.name" semantic conventions. It represents the |
| 4961 | // identifies the feature flag provider. |
| 4962 | // |
| 4963 | // Type: string |
| 4964 | // RequirementLevel: Recommended |
| 4965 | // Stability: Development |
| 4966 | // |
| 4967 | // Examples: "Flag Manager" |
| 4968 | FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name") |
| 4969 | |
| 4970 | // FeatureFlagResultReasonKey is the attribute Key conforming to the |
| 4971 | // "feature_flag.result.reason" semantic conventions. It represents the reason |
| 4972 | // code which shows how a feature flag value was determined. |
| 4973 | // |
| 4974 | // Type: Enum |
| 4975 | // RequirementLevel: Recommended |
| 4976 | // Stability: Development |
| 4977 | // |
| 4978 | // Examples: "static", "targeting_match", "error", "default" |
| 4979 | FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason") |
| 4980 | |
| 4981 | // FeatureFlagResultValueKey is the attribute Key conforming to the |
| 4982 | // "feature_flag.result.value" semantic conventions. It represents the evaluated |
| 4983 | // value of the feature flag. |
| 4984 | // |
| 4985 | // Type: any |
| 4986 | // RequirementLevel: Recommended |
| 4987 | // Stability: Development |
| 4988 | // |
| 4989 | // Examples: "#ff0000", true, 3 |
| 4990 | // Note: With some feature flag providers, feature flag results can be quite |
| 4991 | // large or contain private or sensitive details. |
| 4992 | // Because of this, `feature_flag.result.variant` is often the preferred |
| 4993 | // attribute if it is available. |
| 4994 | // |
| 4995 | // It may be desirable to redact or otherwise limit the size and scope of |
| 4996 | // `feature_flag.result.value` if possible. |
| 4997 | // Because the evaluated flag value is unstructured and may be any type, it is |
| 4998 | // left to the instrumentation author to determine how best to achieve this. |
| 4999 | FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value") |
| 5000 | |
| 5001 | // FeatureFlagResultVariantKey is the attribute Key conforming to the |
| 5002 | // "feature_flag.result.variant" semantic conventions. It represents a semantic |
| 5003 | // identifier for an evaluated flag value. |
| 5004 | // |
| 5005 | // Type: string |
| 5006 | // RequirementLevel: Recommended |
| 5007 | // Stability: Development |
| 5008 | // |
| 5009 | // Examples: "red", "true", "on" |
| 5010 | // Note: A semantic identifier, commonly referred to as a variant, provides a |
| 5011 | // means |
| 5012 | // for referring to a value without including the value itself. This can |
| 5013 | // provide additional context for understanding the meaning behind a value. |
| 5014 | // For example, the variant `red` maybe be used for the value `#c05543`. |
| 5015 | FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant") |
| 5016 | |
| 5017 | // FeatureFlagSetIDKey is the attribute Key conforming to the |
| 5018 | // "feature_flag.set.id" semantic conventions. It represents the identifier of |
| 5019 | // the [flag set] to which the feature flag belongs. |
| 5020 | // |
| 5021 | // Type: string |
| 5022 | // RequirementLevel: Recommended |
| 5023 | // Stability: Development |
| 5024 | // |
| 5025 | // Examples: "proj-1", "ab98sgs", "service1/dev" |
| 5026 | // |
| 5027 | // [flag set]: https://openfeature.dev/specification/glossary/#flag-set |
| 5028 | FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id") |
| 5029 | |
| 5030 | // FeatureFlagVersionKey is the attribute Key conforming to the |
| 5031 | // "feature_flag.version" semantic conventions. It represents the version of the |
| 5032 | // ruleset used during the evaluation. This may be any stable value which |
| 5033 | // uniquely identifies the ruleset. |
| 5034 | // |
| 5035 | // Type: string |
| 5036 | // RequirementLevel: Recommended |
| 5037 | // Stability: Development |
| 5038 | // |
| 5039 | // Examples: "1", "01ABCDEF" |
| 5040 | FeatureFlagVersionKey = attribute.Key("feature_flag.version") |
| 5041 | ) |
| 5042 | |
| 5043 | // FeatureFlagContextID returns an attribute KeyValue conforming to the |
| 5044 | // "feature_flag.context.id" semantic conventions. It represents the unique |
| 5045 | // identifier for the flag evaluation context. For example, the targeting key. |
| 5046 | func FeatureFlagContextID(val string) attribute.KeyValue { |
| 5047 | return FeatureFlagContextIDKey.String(val) |
| 5048 | } |
| 5049 | |
| 5050 | // FeatureFlagKey returns an attribute KeyValue conforming to the |
| 5051 | // "feature_flag.key" semantic conventions. It represents the lookup key of the |
| 5052 | // feature flag. |
| 5053 | func FeatureFlagKey(val string) attribute.KeyValue { |
| 5054 | return FeatureFlagKeyKey.String(val) |
| 5055 | } |
| 5056 | |
| 5057 | // FeatureFlagProviderName returns an attribute KeyValue conforming to the |
| 5058 | // "feature_flag.provider.name" semantic conventions. It represents the |
| 5059 | // identifies the feature flag provider. |
| 5060 | func FeatureFlagProviderName(val string) attribute.KeyValue { |
| 5061 | return FeatureFlagProviderNameKey.String(val) |
| 5062 | } |
| 5063 | |
| 5064 | // FeatureFlagResultVariant returns an attribute KeyValue conforming to the |
| 5065 | // "feature_flag.result.variant" semantic conventions. It represents a semantic |
| 5066 | // identifier for an evaluated flag value. |
| 5067 | func FeatureFlagResultVariant(val string) attribute.KeyValue { |
| 5068 | return FeatureFlagResultVariantKey.String(val) |
| 5069 | } |
| 5070 | |
| 5071 | // FeatureFlagSetID returns an attribute KeyValue conforming to the |
| 5072 | // "feature_flag.set.id" semantic conventions. It represents the identifier of |
| 5073 | // the [flag set] to which the feature flag belongs. |
| 5074 | // |
| 5075 | // [flag set]: https://openfeature.dev/specification/glossary/#flag-set |
| 5076 | func FeatureFlagSetID(val string) attribute.KeyValue { |
| 5077 | return FeatureFlagSetIDKey.String(val) |
| 5078 | } |
| 5079 | |
| 5080 | // FeatureFlagVersion returns an attribute KeyValue conforming to the |
| 5081 | // "feature_flag.version" semantic conventions. It represents the version of the |
| 5082 | // ruleset used during the evaluation. This may be any stable value which |
| 5083 | // uniquely identifies the ruleset. |
| 5084 | func FeatureFlagVersion(val string) attribute.KeyValue { |
| 5085 | return FeatureFlagVersionKey.String(val) |
| 5086 | } |
| 5087 | |
| 5088 | // Enum values for feature_flag.result.reason |
| 5089 | var ( |
| 5090 | // The resolved value is static (no dynamic evaluation). |
| 5091 | // Stability: development |
| 5092 | FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static") |
| 5093 | // The resolved value fell back to a pre-configured value (no dynamic evaluation |
| 5094 | // occurred or dynamic evaluation yielded no result). |
| 5095 | // Stability: development |
| 5096 | FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default") |
| 5097 | // The resolved value was the result of a dynamic evaluation, such as a rule or |
| 5098 | // specific user-targeting. |
| 5099 | // Stability: development |
| 5100 | FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match") |
| 5101 | // The resolved value was the result of pseudorandom assignment. |
| 5102 | // Stability: development |
| 5103 | FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split") |
| 5104 | // The resolved value was retrieved from cache. |
| 5105 | // Stability: development |
| 5106 | FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached") |
| 5107 | // The resolved value was the result of the flag being disabled in the |
| 5108 | // management system. |
| 5109 | // Stability: development |
| 5110 | FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled") |
| 5111 | // The reason for the resolved value could not be determined. |
| 5112 | // Stability: development |
| 5113 | FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown") |
| 5114 | // The resolved value is non-authoritative or possibly out of date |
| 5115 | // Stability: development |
| 5116 | FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale") |
| 5117 | // The resolved value was the result of an error. |
| 5118 | // Stability: development |
| 5119 | FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error") |
| 5120 | ) |
| 5121 | |
| 5122 | // Namespace: file |
| 5123 | const ( |
| 5124 | // FileAccessedKey is the attribute Key conforming to the "file.accessed" |
| 5125 | // semantic conventions. It represents the time when the file was last accessed, |
| 5126 | // in ISO 8601 format. |
| 5127 | // |
| 5128 | // Type: string |
| 5129 | // RequirementLevel: Recommended |
| 5130 | // Stability: Development |
| 5131 | // |
| 5132 | // Examples: "2021-01-01T12:00:00Z" |
| 5133 | // Note: This attribute might not be supported by some file systems — NFS, |
| 5134 | // FAT32, in embedded OS, etc. |
| 5135 | FileAccessedKey = attribute.Key("file.accessed") |
| 5136 | |
| 5137 | // FileAttributesKey is the attribute Key conforming to the "file.attributes" |
| 5138 | // semantic conventions. It represents the array of file attributes. |
| 5139 | // |
| 5140 | // Type: string[] |
| 5141 | // RequirementLevel: Recommended |
| 5142 | // Stability: Development |
| 5143 | // |
| 5144 | // Examples: "readonly", "hidden" |
| 5145 | // Note: Attributes names depend on the OS or file system. Here’s a |
| 5146 | // non-exhaustive list of values expected for this attribute: `archive`, |
| 5147 | // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, |
| 5148 | // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, |
| 5149 | // `write`. |
| 5150 | FileAttributesKey = attribute.Key("file.attributes") |
| 5151 | |
| 5152 | // FileChangedKey is the attribute Key conforming to the "file.changed" semantic |
| 5153 | // conventions. It represents the time when the file attributes or metadata was |
| 5154 | // last changed, in ISO 8601 format. |
| 5155 | // |
| 5156 | // Type: string |
| 5157 | // RequirementLevel: Recommended |
| 5158 | // Stability: Development |
| 5159 | // |
| 5160 | // Examples: "2021-01-01T12:00:00Z" |
| 5161 | // Note: `file.changed` captures the time when any of the file's properties or |
| 5162 | // attributes (including the content) are changed, while `file.modified` |
| 5163 | // captures the timestamp when the file content is modified. |
| 5164 | FileChangedKey = attribute.Key("file.changed") |
| 5165 | |
| 5166 | // FileCreatedKey is the attribute Key conforming to the "file.created" semantic |
| 5167 | // conventions. It represents the time when the file was created, in ISO 8601 |
| 5168 | // format. |
| 5169 | // |
| 5170 | // Type: string |
| 5171 | // RequirementLevel: Recommended |
| 5172 | // Stability: Development |
| 5173 | // |
| 5174 | // Examples: "2021-01-01T12:00:00Z" |
| 5175 | // Note: This attribute might not be supported by some file systems — NFS, |
| 5176 | // FAT32, in embedded OS, etc. |
| 5177 | FileCreatedKey = attribute.Key("file.created") |
| 5178 | |
| 5179 | // FileDirectoryKey is the attribute Key conforming to the "file.directory" |
| 5180 | // semantic conventions. It represents the directory where the file is located. |
| 5181 | // It should include the drive letter, when appropriate. |
| 5182 | // |
| 5183 | // Type: string |
| 5184 | // RequirementLevel: Recommended |
| 5185 | // Stability: Development |
| 5186 | // |
| 5187 | // Examples: "/home/user", "C:\Program Files\MyApp" |
| 5188 | FileDirectoryKey = attribute.Key("file.directory") |
| 5189 | |
| 5190 | // FileExtensionKey is the attribute Key conforming to the "file.extension" |
| 5191 | // semantic conventions. It represents the file extension, excluding the leading |
| 5192 | // dot. |
| 5193 | // |
| 5194 | // Type: string |
| 5195 | // RequirementLevel: Recommended |
| 5196 | // Stability: Development |
| 5197 | // |
| 5198 | // Examples: "png", "gz" |
| 5199 | // Note: When the file name has multiple extensions (example.tar.gz), only the |
| 5200 | // last one should be captured ("gz", not "tar.gz"). |
| 5201 | FileExtensionKey = attribute.Key("file.extension") |
| 5202 | |
| 5203 | // FileForkNameKey is the attribute Key conforming to the "file.fork_name" |
| 5204 | // semantic conventions. It represents the name of the fork. A fork is |
| 5205 | // additional data associated with a filesystem object. |
| 5206 | // |
| 5207 | // Type: string |
| 5208 | // RequirementLevel: Recommended |
| 5209 | // Stability: Development |
| 5210 | // |
| 5211 | // Examples: "Zone.Identifer" |
| 5212 | // Note: On Linux, a resource fork is used to store additional data with a |
| 5213 | // filesystem object. A file always has at least one fork for the data portion, |
| 5214 | // and additional forks may exist. |
| 5215 | // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default |
| 5216 | // data stream for a file is just called $DATA. Zone.Identifier is commonly used |
| 5217 | // by Windows to track contents downloaded from the Internet. An ADS is |
| 5218 | // typically of the form: C:\path\to\filename.extension:some_fork_name, and |
| 5219 | // some_fork_name is the value that should populate `fork_name`. |
| 5220 | // `filename.extension` should populate `file.name`, and `extension` should |
| 5221 | // populate `file.extension`. The full path, `file.path`, will include the fork |
| 5222 | // name. |
| 5223 | FileForkNameKey = attribute.Key("file.fork_name") |
| 5224 | |
| 5225 | // FileGroupIDKey is the attribute Key conforming to the "file.group.id" |
| 5226 | // semantic conventions. It represents the primary Group ID (GID) of the file. |
| 5227 | // |
| 5228 | // Type: string |
| 5229 | // RequirementLevel: Recommended |
| 5230 | // Stability: Development |
| 5231 | // |
| 5232 | // Examples: "1000" |
| 5233 | FileGroupIDKey = attribute.Key("file.group.id") |
| 5234 | |
| 5235 | // FileGroupNameKey is the attribute Key conforming to the "file.group.name" |
| 5236 | // semantic conventions. It represents the primary group name of the file. |
| 5237 | // |
| 5238 | // Type: string |
| 5239 | // RequirementLevel: Recommended |
| 5240 | // Stability: Development |
| 5241 | // |
| 5242 | // Examples: "users" |
| 5243 | FileGroupNameKey = attribute.Key("file.group.name") |
| 5244 | |
| 5245 | // FileInodeKey is the attribute Key conforming to the "file.inode" semantic |
| 5246 | // conventions. It represents the inode representing the file in the filesystem. |
| 5247 | // |
| 5248 | // Type: string |
| 5249 | // RequirementLevel: Recommended |
| 5250 | // Stability: Development |
| 5251 | // |
| 5252 | // Examples: "256383" |
| 5253 | FileInodeKey = attribute.Key("file.inode") |
| 5254 | |
| 5255 | // FileModeKey is the attribute Key conforming to the "file.mode" semantic |
| 5256 | // conventions. It represents the mode of the file in octal representation. |
| 5257 | // |
| 5258 | // Type: string |
| 5259 | // RequirementLevel: Recommended |
| 5260 | // Stability: Development |
| 5261 | // |
| 5262 | // Examples: "0640" |
| 5263 | FileModeKey = attribute.Key("file.mode") |
| 5264 | |
| 5265 | // FileModifiedKey is the attribute Key conforming to the "file.modified" |
| 5266 | // semantic conventions. It represents the time when the file content was last |
| 5267 | // modified, in ISO 8601 format. |
| 5268 | // |
| 5269 | // Type: string |
| 5270 | // RequirementLevel: Recommended |
| 5271 | // Stability: Development |
| 5272 | // |
| 5273 | // Examples: "2021-01-01T12:00:00Z" |
| 5274 | FileModifiedKey = attribute.Key("file.modified") |
| 5275 | |
| 5276 | // FileNameKey is the attribute Key conforming to the "file.name" semantic |
| 5277 | // conventions. It represents the name of the file including the extension, |
| 5278 | // without the directory. |
| 5279 | // |
| 5280 | // Type: string |
| 5281 | // RequirementLevel: Recommended |
| 5282 | // Stability: Development |
| 5283 | // |
| 5284 | // Examples: "example.png" |
| 5285 | FileNameKey = attribute.Key("file.name") |
| 5286 | |
| 5287 | // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id" |
| 5288 | // semantic conventions. It represents the user ID (UID) or security identifier |
| 5289 | // (SID) of the file owner. |
| 5290 | // |
| 5291 | // Type: string |
| 5292 | // RequirementLevel: Recommended |
| 5293 | // Stability: Development |
| 5294 | // |
| 5295 | // Examples: "1000" |
| 5296 | FileOwnerIDKey = attribute.Key("file.owner.id") |
| 5297 | |
| 5298 | // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name" |
| 5299 | // semantic conventions. It represents the username of the file owner. |
| 5300 | // |
| 5301 | // Type: string |
| 5302 | // RequirementLevel: Recommended |
| 5303 | // Stability: Development |
| 5304 | // |
| 5305 | // Examples: "root" |
| 5306 | FileOwnerNameKey = attribute.Key("file.owner.name") |
| 5307 | |
| 5308 | // FilePathKey is the attribute Key conforming to the "file.path" semantic |
| 5309 | // conventions. It represents the full path to the file, including the file |
| 5310 | // name. It should include the drive letter, when appropriate. |
| 5311 | // |
| 5312 | // Type: string |
| 5313 | // RequirementLevel: Recommended |
| 5314 | // Stability: Development |
| 5315 | // |
| 5316 | // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe" |
| 5317 | FilePathKey = attribute.Key("file.path") |
| 5318 | |
| 5319 | // FileSizeKey is the attribute Key conforming to the "file.size" semantic |
| 5320 | // conventions. It represents the file size in bytes. |
| 5321 | // |
| 5322 | // Type: int |
| 5323 | // RequirementLevel: Recommended |
| 5324 | // Stability: Development |
| 5325 | // |
| 5326 | // Examples: |
| 5327 | FileSizeKey = attribute.Key("file.size") |
| 5328 | |
| 5329 | // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the |
| 5330 | // "file.symbolic_link.target_path" semantic conventions. It represents the path |
| 5331 | // to the target of a symbolic link. |
| 5332 | // |
| 5333 | // Type: string |
| 5334 | // RequirementLevel: Recommended |
| 5335 | // Stability: Development |
| 5336 | // |
| 5337 | // Examples: "/usr/bin/python3" |
| 5338 | // Note: This attribute is only applicable to symbolic links. |
| 5339 | FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path") |
| 5340 | ) |
| 5341 | |
| 5342 | // FileAccessed returns an attribute KeyValue conforming to the "file.accessed" |
| 5343 | // semantic conventions. It represents the time when the file was last accessed, |
| 5344 | // in ISO 8601 format. |
| 5345 | func FileAccessed(val string) attribute.KeyValue { |
| 5346 | return FileAccessedKey.String(val) |
| 5347 | } |
| 5348 | |
| 5349 | // FileAttributes returns an attribute KeyValue conforming to the |
| 5350 | // "file.attributes" semantic conventions. It represents the array of file |
| 5351 | // attributes. |
| 5352 | func FileAttributes(val ...string) attribute.KeyValue { |
| 5353 | return FileAttributesKey.StringSlice(val) |
| 5354 | } |
| 5355 | |
| 5356 | // FileChanged returns an attribute KeyValue conforming to the "file.changed" |
| 5357 | // semantic conventions. It represents the time when the file attributes or |
| 5358 | // metadata was last changed, in ISO 8601 format. |
| 5359 | func FileChanged(val string) attribute.KeyValue { |
| 5360 | return FileChangedKey.String(val) |
| 5361 | } |
| 5362 | |
| 5363 | // FileCreated returns an attribute KeyValue conforming to the "file.created" |
| 5364 | // semantic conventions. It represents the time when the file was created, in ISO |
| 5365 | // 8601 format. |
| 5366 | func FileCreated(val string) attribute.KeyValue { |
| 5367 | return FileCreatedKey.String(val) |
| 5368 | } |
| 5369 | |
| 5370 | // FileDirectory returns an attribute KeyValue conforming to the "file.directory" |
| 5371 | // semantic conventions. It represents the directory where the file is located. |
| 5372 | // It should include the drive letter, when appropriate. |
| 5373 | func FileDirectory(val string) attribute.KeyValue { |
| 5374 | return FileDirectoryKey.String(val) |
| 5375 | } |
| 5376 | |
| 5377 | // FileExtension returns an attribute KeyValue conforming to the "file.extension" |
| 5378 | // semantic conventions. It represents the file extension, excluding the leading |
| 5379 | // dot. |
| 5380 | func FileExtension(val string) attribute.KeyValue { |
| 5381 | return FileExtensionKey.String(val) |
| 5382 | } |
| 5383 | |
| 5384 | // FileForkName returns an attribute KeyValue conforming to the "file.fork_name" |
| 5385 | // semantic conventions. It represents the name of the fork. A fork is additional |
| 5386 | // data associated with a filesystem object. |
| 5387 | func FileForkName(val string) attribute.KeyValue { |
| 5388 | return FileForkNameKey.String(val) |
| 5389 | } |
| 5390 | |
| 5391 | // FileGroupID returns an attribute KeyValue conforming to the "file.group.id" |
| 5392 | // semantic conventions. It represents the primary Group ID (GID) of the file. |
| 5393 | func FileGroupID(val string) attribute.KeyValue { |
| 5394 | return FileGroupIDKey.String(val) |
| 5395 | } |
| 5396 | |
| 5397 | // FileGroupName returns an attribute KeyValue conforming to the |
| 5398 | // "file.group.name" semantic conventions. It represents the primary group name |
| 5399 | // of the file. |
| 5400 | func FileGroupName(val string) attribute.KeyValue { |
| 5401 | return FileGroupNameKey.String(val) |
| 5402 | } |
| 5403 | |
| 5404 | // FileInode returns an attribute KeyValue conforming to the "file.inode" |
| 5405 | // semantic conventions. It represents the inode representing the file in the |
| 5406 | // filesystem. |
| 5407 | func FileInode(val string) attribute.KeyValue { |
| 5408 | return FileInodeKey.String(val) |
| 5409 | } |
| 5410 | |
| 5411 | // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic |
| 5412 | // conventions. It represents the mode of the file in octal representation. |
| 5413 | func FileMode(val string) attribute.KeyValue { |
| 5414 | return FileModeKey.String(val) |
| 5415 | } |
| 5416 | |
| 5417 | // FileModified returns an attribute KeyValue conforming to the "file.modified" |
| 5418 | // semantic conventions. It represents the time when the file content was last |
| 5419 | // modified, in ISO 8601 format. |
| 5420 | func FileModified(val string) attribute.KeyValue { |
| 5421 | return FileModifiedKey.String(val) |
| 5422 | } |
| 5423 | |
| 5424 | // FileName returns an attribute KeyValue conforming to the "file.name" semantic |
| 5425 | // conventions. It represents the name of the file including the extension, |
| 5426 | // without the directory. |
| 5427 | func FileName(val string) attribute.KeyValue { |
| 5428 | return FileNameKey.String(val) |
| 5429 | } |
| 5430 | |
| 5431 | // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id" |
| 5432 | // semantic conventions. It represents the user ID (UID) or security identifier |
| 5433 | // (SID) of the file owner. |
| 5434 | func FileOwnerID(val string) attribute.KeyValue { |
| 5435 | return FileOwnerIDKey.String(val) |
| 5436 | } |
| 5437 | |
| 5438 | // FileOwnerName returns an attribute KeyValue conforming to the |
| 5439 | // "file.owner.name" semantic conventions. It represents the username of the file |
| 5440 | // owner. |
| 5441 | func FileOwnerName(val string) attribute.KeyValue { |
| 5442 | return FileOwnerNameKey.String(val) |
| 5443 | } |
| 5444 | |
| 5445 | // FilePath returns an attribute KeyValue conforming to the "file.path" semantic |
| 5446 | // conventions. It represents the full path to the file, including the file name. |
| 5447 | // It should include the drive letter, when appropriate. |
| 5448 | func FilePath(val string) attribute.KeyValue { |
| 5449 | return FilePathKey.String(val) |
| 5450 | } |
| 5451 | |
| 5452 | // FileSize returns an attribute KeyValue conforming to the "file.size" semantic |
| 5453 | // conventions. It represents the file size in bytes. |
| 5454 | func FileSize(val int) attribute.KeyValue { |
| 5455 | return FileSizeKey.Int(val) |
| 5456 | } |
| 5457 | |
| 5458 | // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the |
| 5459 | // "file.symbolic_link.target_path" semantic conventions. It represents the path |
| 5460 | // to the target of a symbolic link. |
| 5461 | func FileSymbolicLinkTargetPath(val string) attribute.KeyValue { |
| 5462 | return FileSymbolicLinkTargetPathKey.String(val) |
| 5463 | } |
| 5464 | |
| 5465 | // Namespace: gcp |
| 5466 | const ( |
| 5467 | // GCPAppHubApplicationContainerKey is the attribute Key conforming to the |
| 5468 | // "gcp.apphub.application.container" semantic conventions. It represents the |
| 5469 | // container within GCP where the AppHub application is defined. |
| 5470 | // |
| 5471 | // Type: string |
| 5472 | // RequirementLevel: Recommended |
| 5473 | // Stability: Development |
| 5474 | // |
| 5475 | // Examples: "projects/my-container-project" |
| 5476 | GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container") |
| 5477 | |
| 5478 | // GCPAppHubApplicationIDKey is the attribute Key conforming to the |
| 5479 | // "gcp.apphub.application.id" semantic conventions. It represents the name of |
| 5480 | // the application as configured in AppHub. |
| 5481 | // |
| 5482 | // Type: string |
| 5483 | // RequirementLevel: Recommended |
| 5484 | // Stability: Development |
| 5485 | // |
| 5486 | // Examples: "my-application" |
| 5487 | GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id") |
| 5488 | |
| 5489 | // GCPAppHubApplicationLocationKey is the attribute Key conforming to the |
| 5490 | // "gcp.apphub.application.location" semantic conventions. It represents the GCP |
| 5491 | // zone or region where the application is defined. |
| 5492 | // |
| 5493 | // Type: string |
| 5494 | // RequirementLevel: Recommended |
| 5495 | // Stability: Development |
| 5496 | // |
| 5497 | // Examples: "us-central1" |
| 5498 | GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location") |
| 5499 | |
| 5500 | // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the |
| 5501 | // "gcp.apphub.service.criticality_type" semantic conventions. It represents the |
| 5502 | // criticality of a service indicates its importance to the business. |
| 5503 | // |
| 5504 | // Type: Enum |
| 5505 | // RequirementLevel: Recommended |
| 5506 | // Stability: Development |
| 5507 | // |
| 5508 | // Examples: |
| 5509 | // Note: [See AppHub type enum] |
| 5510 | // |
| 5511 | // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type |
| 5512 | GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type") |
| 5513 | |
| 5514 | // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the |
| 5515 | // "gcp.apphub.service.environment_type" semantic conventions. It represents the |
| 5516 | // environment of a service is the stage of a software lifecycle. |
| 5517 | // |
| 5518 | // Type: Enum |
| 5519 | // RequirementLevel: Recommended |
| 5520 | // Stability: Development |
| 5521 | // |
| 5522 | // Examples: |
| 5523 | // Note: [See AppHub environment type] |
| 5524 | // |
| 5525 | // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1 |
| 5526 | GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type") |
| 5527 | |
| 5528 | // GCPAppHubServiceIDKey is the attribute Key conforming to the |
| 5529 | // "gcp.apphub.service.id" semantic conventions. It represents the name of the |
| 5530 | // service as configured in AppHub. |
| 5531 | // |
| 5532 | // Type: string |
| 5533 | // RequirementLevel: Recommended |
| 5534 | // Stability: Development |
| 5535 | // |
| 5536 | // Examples: "my-service" |
| 5537 | GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id") |
| 5538 | |
| 5539 | // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the |
| 5540 | // "gcp.apphub.workload.criticality_type" semantic conventions. It represents |
| 5541 | // the criticality of a workload indicates its importance to the business. |
| 5542 | // |
| 5543 | // Type: Enum |
| 5544 | // RequirementLevel: Recommended |
| 5545 | // Stability: Development |
| 5546 | // |
| 5547 | // Examples: |
| 5548 | // Note: [See AppHub type enum] |
| 5549 | // |
| 5550 | // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type |
| 5551 | GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type") |
| 5552 | |
| 5553 | // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the |
| 5554 | // "gcp.apphub.workload.environment_type" semantic conventions. It represents |
| 5555 | // the environment of a workload is the stage of a software lifecycle. |
| 5556 | // |
| 5557 | // Type: Enum |
| 5558 | // RequirementLevel: Recommended |
| 5559 | // Stability: Development |
| 5560 | // |
| 5561 | // Examples: |
| 5562 | // Note: [See AppHub environment type] |
| 5563 | // |
| 5564 | // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1 |
| 5565 | GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type") |
| 5566 | |
| 5567 | // GCPAppHubWorkloadIDKey is the attribute Key conforming to the |
| 5568 | // "gcp.apphub.workload.id" semantic conventions. It represents the name of the |
| 5569 | // workload as configured in AppHub. |
| 5570 | // |
| 5571 | // Type: string |
| 5572 | // RequirementLevel: Recommended |
| 5573 | // Stability: Development |
| 5574 | // |
| 5575 | // Examples: "my-workload" |
| 5576 | GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id") |
| 5577 | |
| 5578 | // GCPClientServiceKey is the attribute Key conforming to the |
| 5579 | // "gcp.client.service" semantic conventions. It represents the identifies the |
| 5580 | // Google Cloud service for which the official client library is intended. |
| 5581 | // |
| 5582 | // Type: string |
| 5583 | // RequirementLevel: Recommended |
| 5584 | // Stability: Development |
| 5585 | // |
| 5586 | // Examples: "appengine", "run", "firestore", "alloydb", "spanner" |
| 5587 | // Note: Intended to be a stable identifier for Google Cloud client libraries |
| 5588 | // that is uniform across implementation languages. The value should be derived |
| 5589 | // from the canonical service domain for the service; for example, |
| 5590 | // 'foo.googleapis.com' should result in a value of 'foo'. |
| 5591 | GCPClientServiceKey = attribute.Key("gcp.client.service") |
| 5592 | |
| 5593 | // GCPCloudRunJobExecutionKey is the attribute Key conforming to the |
| 5594 | // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of |
| 5595 | // the Cloud Run [execution] being run for the Job, as set by the |
| 5596 | // [`CLOUD_RUN_EXECUTION`] environment variable. |
| 5597 | // |
| 5598 | // Type: string |
| 5599 | // RequirementLevel: Recommended |
| 5600 | // Stability: Development |
| 5601 | // |
| 5602 | // Examples: "job-name-xxxx", "sample-job-mdw84" |
| 5603 | // |
| 5604 | // [execution]: https://cloud.google.com/run/docs/managing/job-executions |
| 5605 | // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars |
| 5606 | GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution") |
| 5607 | |
| 5608 | // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the |
| 5609 | // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index |
| 5610 | // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] |
| 5611 | // environment variable. |
| 5612 | // |
| 5613 | // Type: int |
| 5614 | // RequirementLevel: Recommended |
| 5615 | // Stability: Development |
| 5616 | // |
| 5617 | // Examples: 0, 1 |
| 5618 | // |
| 5619 | // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars |
| 5620 | GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index") |
| 5621 | |
| 5622 | // GCPGCEInstanceHostnameKey is the attribute Key conforming to the |
| 5623 | // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname |
| 5624 | // of a GCE instance. This is the full value of the default or [custom hostname] |
| 5625 | // . |
| 5626 | // |
| 5627 | // Type: string |
| 5628 | // RequirementLevel: Recommended |
| 5629 | // Stability: Development |
| 5630 | // |
| 5631 | // Examples: "my-host1234.example.com", |
| 5632 | // "sample-vm.us-west1-b.c.my-project.internal" |
| 5633 | // |
| 5634 | // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm |
| 5635 | GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname") |
| 5636 | |
| 5637 | // GCPGCEInstanceNameKey is the attribute Key conforming to the |
| 5638 | // "gcp.gce.instance.name" semantic conventions. It represents the instance name |
| 5639 | // of a GCE instance. This is the value provided by `host.name`, the visible |
| 5640 | // name of the instance in the Cloud Console UI, and the prefix for the default |
| 5641 | // hostname of the instance as defined by the [default internal DNS name]. |
| 5642 | // |
| 5643 | // Type: string |
| 5644 | // RequirementLevel: Recommended |
| 5645 | // Stability: Development |
| 5646 | // |
| 5647 | // Examples: "instance-1", "my-vm-name" |
| 5648 | // |
| 5649 | // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names |
| 5650 | GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name") |
| 5651 | ) |
| 5652 | |
| 5653 | // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the |
| 5654 | // "gcp.apphub.application.container" semantic conventions. It represents the |
| 5655 | // container within GCP where the AppHub application is defined. |
| 5656 | func GCPAppHubApplicationContainer(val string) attribute.KeyValue { |
| 5657 | return GCPAppHubApplicationContainerKey.String(val) |
| 5658 | } |
| 5659 | |
| 5660 | // GCPAppHubApplicationID returns an attribute KeyValue conforming to the |
| 5661 | // "gcp.apphub.application.id" semantic conventions. It represents the name of |
| 5662 | // the application as configured in AppHub. |
| 5663 | func GCPAppHubApplicationID(val string) attribute.KeyValue { |
| 5664 | return GCPAppHubApplicationIDKey.String(val) |
| 5665 | } |
| 5666 | |
| 5667 | // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the |
| 5668 | // "gcp.apphub.application.location" semantic conventions. It represents the GCP |
| 5669 | // zone or region where the application is defined. |
| 5670 | func GCPAppHubApplicationLocation(val string) attribute.KeyValue { |
| 5671 | return GCPAppHubApplicationLocationKey.String(val) |
| 5672 | } |
| 5673 | |
| 5674 | // GCPAppHubServiceID returns an attribute KeyValue conforming to the |
| 5675 | // "gcp.apphub.service.id" semantic conventions. It represents the name of the |
| 5676 | // service as configured in AppHub. |
| 5677 | func GCPAppHubServiceID(val string) attribute.KeyValue { |
| 5678 | return GCPAppHubServiceIDKey.String(val) |
| 5679 | } |
| 5680 | |
| 5681 | // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the |
| 5682 | // "gcp.apphub.workload.id" semantic conventions. It represents the name of the |
| 5683 | // workload as configured in AppHub. |
| 5684 | func GCPAppHubWorkloadID(val string) attribute.KeyValue { |
| 5685 | return GCPAppHubWorkloadIDKey.String(val) |
| 5686 | } |
| 5687 | |
| 5688 | // GCPClientService returns an attribute KeyValue conforming to the |
| 5689 | // "gcp.client.service" semantic conventions. It represents the identifies the |
| 5690 | // Google Cloud service for which the official client library is intended. |
| 5691 | func GCPClientService(val string) attribute.KeyValue { |
| 5692 | return GCPClientServiceKey.String(val) |
| 5693 | } |
| 5694 | |
| 5695 | // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the |
| 5696 | // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of |
| 5697 | // the Cloud Run [execution] being run for the Job, as set by the |
| 5698 | // [`CLOUD_RUN_EXECUTION`] environment variable. |
| 5699 | // |
| 5700 | // [execution]: https://cloud.google.com/run/docs/managing/job-executions |
| 5701 | // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars |
| 5702 | func GCPCloudRunJobExecution(val string) attribute.KeyValue { |
| 5703 | return GCPCloudRunJobExecutionKey.String(val) |
| 5704 | } |
| 5705 | |
| 5706 | // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the |
| 5707 | // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index |
| 5708 | // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] |
| 5709 | // environment variable. |
| 5710 | // |
| 5711 | // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars |
| 5712 | func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue { |
| 5713 | return GCPCloudRunJobTaskIndexKey.Int(val) |
| 5714 | } |
| 5715 | |
| 5716 | // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the |
| 5717 | // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname |
| 5718 | // of a GCE instance. This is the full value of the default or [custom hostname] |
| 5719 | // . |
| 5720 | // |
| 5721 | // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm |
| 5722 | func GCPGCEInstanceHostname(val string) attribute.KeyValue { |
| 5723 | return GCPGCEInstanceHostnameKey.String(val) |
| 5724 | } |
| 5725 | |
| 5726 | // GCPGCEInstanceName returns an attribute KeyValue conforming to the |
| 5727 | // "gcp.gce.instance.name" semantic conventions. It represents the instance name |
| 5728 | // of a GCE instance. This is the value provided by `host.name`, the visible name |
| 5729 | // of the instance in the Cloud Console UI, and the prefix for the default |
| 5730 | // hostname of the instance as defined by the [default internal DNS name]. |
| 5731 | // |
| 5732 | // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names |
| 5733 | func GCPGCEInstanceName(val string) attribute.KeyValue { |
| 5734 | return GCPGCEInstanceNameKey.String(val) |
| 5735 | } |
| 5736 | |
| 5737 | // Enum values for gcp.apphub.service.criticality_type |
| 5738 | var ( |
| 5739 | // Mission critical service. |
| 5740 | // Stability: development |
| 5741 | GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL") |
| 5742 | // High impact. |
| 5743 | // Stability: development |
| 5744 | GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH") |
| 5745 | // Medium impact. |
| 5746 | // Stability: development |
| 5747 | GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM") |
| 5748 | // Low impact. |
| 5749 | // Stability: development |
| 5750 | GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW") |
| 5751 | ) |
| 5752 | |
| 5753 | // Enum values for gcp.apphub.service.environment_type |
| 5754 | var ( |
| 5755 | // Production environment. |
| 5756 | // Stability: development |
| 5757 | GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION") |
| 5758 | // Staging environment. |
| 5759 | // Stability: development |
| 5760 | GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING") |
| 5761 | // Test environment. |
| 5762 | // Stability: development |
| 5763 | GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST") |
| 5764 | // Development environment. |
| 5765 | // Stability: development |
| 5766 | GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT") |
| 5767 | ) |
| 5768 | |
| 5769 | // Enum values for gcp.apphub.workload.criticality_type |
| 5770 | var ( |
| 5771 | // Mission critical service. |
| 5772 | // Stability: development |
| 5773 | GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL") |
| 5774 | // High impact. |
| 5775 | // Stability: development |
| 5776 | GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH") |
| 5777 | // Medium impact. |
| 5778 | // Stability: development |
| 5779 | GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM") |
| 5780 | // Low impact. |
| 5781 | // Stability: development |
| 5782 | GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW") |
| 5783 | ) |
| 5784 | |
| 5785 | // Enum values for gcp.apphub.workload.environment_type |
| 5786 | var ( |
| 5787 | // Production environment. |
| 5788 | // Stability: development |
| 5789 | GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION") |
| 5790 | // Staging environment. |
| 5791 | // Stability: development |
| 5792 | GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING") |
| 5793 | // Test environment. |
| 5794 | // Stability: development |
| 5795 | GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST") |
| 5796 | // Development environment. |
| 5797 | // Stability: development |
| 5798 | GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT") |
| 5799 | ) |
| 5800 | |
| 5801 | // Namespace: gen_ai |
| 5802 | const ( |
| 5803 | // GenAIAgentDescriptionKey is the attribute Key conforming to the |
| 5804 | // "gen_ai.agent.description" semantic conventions. It represents the free-form |
| 5805 | // description of the GenAI agent provided by the application. |
| 5806 | // |
| 5807 | // Type: string |
| 5808 | // RequirementLevel: Recommended |
| 5809 | // Stability: Development |
| 5810 | // |
| 5811 | // Examples: "Helps with math problems", "Generates fiction stories" |
| 5812 | GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description") |
| 5813 | |
| 5814 | // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id" |
| 5815 | // semantic conventions. It represents the unique identifier of the GenAI agent. |
| 5816 | // |
| 5817 | // Type: string |
| 5818 | // RequirementLevel: Recommended |
| 5819 | // Stability: Development |
| 5820 | // |
| 5821 | // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY" |
| 5822 | GenAIAgentIDKey = attribute.Key("gen_ai.agent.id") |
| 5823 | |
| 5824 | // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name" |
| 5825 | // semantic conventions. It represents the human-readable name of the GenAI |
| 5826 | // agent provided by the application. |
| 5827 | // |
| 5828 | // Type: string |
| 5829 | // RequirementLevel: Recommended |
| 5830 | // Stability: Development |
| 5831 | // |
| 5832 | // Examples: "Math Tutor", "Fiction Writer" |
| 5833 | GenAIAgentNameKey = attribute.Key("gen_ai.agent.name") |
| 5834 | |
| 5835 | // GenAIConversationIDKey is the attribute Key conforming to the |
| 5836 | // "gen_ai.conversation.id" semantic conventions. It represents the unique |
| 5837 | // identifier for a conversation (session, thread), used to store and correlate |
| 5838 | // messages within this conversation. |
| 5839 | // |
| 5840 | // Type: string |
| 5841 | // RequirementLevel: Recommended |
| 5842 | // Stability: Development |
| 5843 | // |
| 5844 | // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY" |
| 5845 | GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id") |
| 5846 | |
| 5847 | // GenAIDataSourceIDKey is the attribute Key conforming to the |
| 5848 | // "gen_ai.data_source.id" semantic conventions. It represents the data source |
| 5849 | // identifier. |
| 5850 | // |
| 5851 | // Type: string |
| 5852 | // RequirementLevel: Recommended |
| 5853 | // Stability: Development |
| 5854 | // |
| 5855 | // Examples: "H7STPQYOND" |
| 5856 | // Note: Data sources are used by AI agents and RAG applications to store |
| 5857 | // grounding data. A data source may be an external database, object store, |
| 5858 | // document collection, website, or any other storage system used by the GenAI |
| 5859 | // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier |
| 5860 | // used by the GenAI system rather than a name specific to the external storage, |
| 5861 | // such as a database or object store. Semantic conventions referencing |
| 5862 | // `gen_ai.data_source.id` MAY also leverage additional attributes, such as |
| 5863 | // `db.*`, to further identify and describe the data source. |
| 5864 | GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id") |
| 5865 | |
| 5866 | // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the |
| 5867 | // "gen_ai.openai.request.service_tier" semantic conventions. It represents the |
| 5868 | // service tier requested. May be a specific tier, default, or auto. |
| 5869 | // |
| 5870 | // Type: Enum |
| 5871 | // RequirementLevel: Recommended |
| 5872 | // Stability: Development |
| 5873 | // |
| 5874 | // Examples: "auto", "default" |
| 5875 | GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier") |
| 5876 | |
| 5877 | // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the |
| 5878 | // "gen_ai.openai.response.service_tier" semantic conventions. It represents the |
| 5879 | // service tier used for the response. |
| 5880 | // |
| 5881 | // Type: string |
| 5882 | // RequirementLevel: Recommended |
| 5883 | // Stability: Development |
| 5884 | // |
| 5885 | // Examples: "scale", "default" |
| 5886 | GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier") |
| 5887 | |
| 5888 | // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to |
| 5889 | // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It |
| 5890 | // represents a fingerprint to track any eventual change in the Generative AI |
| 5891 | // environment. |
| 5892 | // |
| 5893 | // Type: string |
| 5894 | // RequirementLevel: Recommended |
| 5895 | // Stability: Development |
| 5896 | // |
| 5897 | // Examples: "fp_44709d6fcb" |
| 5898 | GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint") |
| 5899 | |
| 5900 | // GenAIOperationNameKey is the attribute Key conforming to the |
| 5901 | // "gen_ai.operation.name" semantic conventions. It represents the name of the |
| 5902 | // operation being performed. |
| 5903 | // |
| 5904 | // Type: Enum |
| 5905 | // RequirementLevel: Recommended |
| 5906 | // Stability: Development |
| 5907 | // |
| 5908 | // Examples: |
| 5909 | // Note: If one of the predefined values applies, but specific system uses a |
| 5910 | // different name it's RECOMMENDED to document it in the semantic conventions |
| 5911 | // for specific GenAI system and use system-specific name in the |
| 5912 | // instrumentation. If a different name is not documented, instrumentation |
| 5913 | // libraries SHOULD use applicable predefined value. |
| 5914 | GenAIOperationNameKey = attribute.Key("gen_ai.operation.name") |
| 5915 | |
| 5916 | // GenAIOutputTypeKey is the attribute Key conforming to the |
| 5917 | // "gen_ai.output.type" semantic conventions. It represents the represents the |
| 5918 | // content type requested by the client. |
| 5919 | // |
| 5920 | // Type: Enum |
| 5921 | // RequirementLevel: Recommended |
| 5922 | // Stability: Development |
| 5923 | // |
| 5924 | // Examples: |
| 5925 | // Note: This attribute SHOULD be used when the client requests output of a |
| 5926 | // specific type. The model may return zero or more outputs of this type. |
| 5927 | // This attribute specifies the output modality and not the actual output |
| 5928 | // format. For example, if an image is requested, the actual output could be a |
| 5929 | // URL pointing to an image file. |
| 5930 | // Additional output format details may be recorded in the future in the |
| 5931 | // `gen_ai.output.{type}.*` attributes. |
| 5932 | GenAIOutputTypeKey = attribute.Key("gen_ai.output.type") |
| 5933 | |
| 5934 | // GenAIRequestChoiceCountKey is the attribute Key conforming to the |
| 5935 | // "gen_ai.request.choice.count" semantic conventions. It represents the target |
| 5936 | // number of candidate completions to return. |
| 5937 | // |
| 5938 | // Type: int |
| 5939 | // RequirementLevel: Recommended |
| 5940 | // Stability: Development |
| 5941 | // |
| 5942 | // Examples: 3 |
| 5943 | GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count") |
| 5944 | |
| 5945 | // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the |
| 5946 | // "gen_ai.request.encoding_formats" semantic conventions. It represents the |
| 5947 | // encoding formats requested in an embeddings operation, if specified. |
| 5948 | // |
| 5949 | // Type: string[] |
| 5950 | // RequirementLevel: Recommended |
| 5951 | // Stability: Development |
| 5952 | // |
| 5953 | // Examples: "base64"], ["float", "binary" |
| 5954 | // Note: In some GenAI systems the encoding formats are called embedding types. |
| 5955 | // Also, some GenAI systems only accept a single format per request. |
| 5956 | GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats") |
| 5957 | |
| 5958 | // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the |
| 5959 | // "gen_ai.request.frequency_penalty" semantic conventions. It represents the |
| 5960 | // frequency penalty setting for the GenAI request. |
| 5961 | // |
| 5962 | // Type: double |
| 5963 | // RequirementLevel: Recommended |
| 5964 | // Stability: Development |
| 5965 | // |
| 5966 | // Examples: 0.1 |
| 5967 | GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty") |
| 5968 | |
| 5969 | // GenAIRequestMaxTokensKey is the attribute Key conforming to the |
| 5970 | // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum |
| 5971 | // number of tokens the model generates for a request. |
| 5972 | // |
| 5973 | // Type: int |
| 5974 | // RequirementLevel: Recommended |
| 5975 | // Stability: Development |
| 5976 | // |
| 5977 | // Examples: 100 |
| 5978 | GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens") |
| 5979 | |
| 5980 | // GenAIRequestModelKey is the attribute Key conforming to the |
| 5981 | // "gen_ai.request.model" semantic conventions. It represents the name of the |
| 5982 | // GenAI model a request is being made to. |
| 5983 | // |
| 5984 | // Type: string |
| 5985 | // RequirementLevel: Recommended |
| 5986 | // Stability: Development |
| 5987 | // |
| 5988 | // Examples: gpt-4 |
| 5989 | GenAIRequestModelKey = attribute.Key("gen_ai.request.model") |
| 5990 | |
| 5991 | // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the |
| 5992 | // "gen_ai.request.presence_penalty" semantic conventions. It represents the |
| 5993 | // presence penalty setting for the GenAI request. |
| 5994 | // |
| 5995 | // Type: double |
| 5996 | // RequirementLevel: Recommended |
| 5997 | // Stability: Development |
| 5998 | // |
| 5999 | // Examples: 0.1 |
| 6000 | GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty") |
| 6001 | |
| 6002 | // GenAIRequestSeedKey is the attribute Key conforming to the |
| 6003 | // "gen_ai.request.seed" semantic conventions. It represents the requests with |
| 6004 | // same seed value more likely to return same result. |
| 6005 | // |
| 6006 | // Type: int |
| 6007 | // RequirementLevel: Recommended |
| 6008 | // Stability: Development |
| 6009 | // |
| 6010 | // Examples: 100 |
| 6011 | GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed") |
| 6012 | |
| 6013 | // GenAIRequestStopSequencesKey is the attribute Key conforming to the |
| 6014 | // "gen_ai.request.stop_sequences" semantic conventions. It represents the list |
| 6015 | // of sequences that the model will use to stop generating further tokens. |
| 6016 | // |
| 6017 | // Type: string[] |
| 6018 | // RequirementLevel: Recommended |
| 6019 | // Stability: Development |
| 6020 | // |
| 6021 | // Examples: "forest", "lived" |
| 6022 | GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences") |
| 6023 | |
| 6024 | // GenAIRequestTemperatureKey is the attribute Key conforming to the |
| 6025 | // "gen_ai.request.temperature" semantic conventions. It represents the |
| 6026 | // temperature setting for the GenAI request. |
| 6027 | // |
| 6028 | // Type: double |
| 6029 | // RequirementLevel: Recommended |
| 6030 | // Stability: Development |
| 6031 | // |
| 6032 | // Examples: 0.0 |
| 6033 | GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature") |
| 6034 | |
| 6035 | // GenAIRequestTopKKey is the attribute Key conforming to the |
| 6036 | // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling |
| 6037 | // setting for the GenAI request. |
| 6038 | // |
| 6039 | // Type: double |
| 6040 | // RequirementLevel: Recommended |
| 6041 | // Stability: Development |
| 6042 | // |
| 6043 | // Examples: 1.0 |
| 6044 | GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k") |
| 6045 | |
| 6046 | // GenAIRequestTopPKey is the attribute Key conforming to the |
| 6047 | // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling |
| 6048 | // setting for the GenAI request. |
| 6049 | // |
| 6050 | // Type: double |
| 6051 | // RequirementLevel: Recommended |
| 6052 | // Stability: Development |
| 6053 | // |
| 6054 | // Examples: 1.0 |
| 6055 | GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p") |
| 6056 | |
| 6057 | // GenAIResponseFinishReasonsKey is the attribute Key conforming to the |
| 6058 | // "gen_ai.response.finish_reasons" semantic conventions. It represents the |
| 6059 | // array of reasons the model stopped generating tokens, corresponding to each |
| 6060 | // generation received. |
| 6061 | // |
| 6062 | // Type: string[] |
| 6063 | // RequirementLevel: Recommended |
| 6064 | // Stability: Development |
| 6065 | // |
| 6066 | // Examples: "stop"], ["stop", "length" |
| 6067 | GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons") |
| 6068 | |
| 6069 | // GenAIResponseIDKey is the attribute Key conforming to the |
| 6070 | // "gen_ai.response.id" semantic conventions. It represents the unique |
| 6071 | // identifier for the completion. |
| 6072 | // |
| 6073 | // Type: string |
| 6074 | // RequirementLevel: Recommended |
| 6075 | // Stability: Development |
| 6076 | // |
| 6077 | // Examples: "chatcmpl-123" |
| 6078 | GenAIResponseIDKey = attribute.Key("gen_ai.response.id") |
| 6079 | |
| 6080 | // GenAIResponseModelKey is the attribute Key conforming to the |
| 6081 | // "gen_ai.response.model" semantic conventions. It represents the name of the |
| 6082 | // model that generated the response. |
| 6083 | // |
| 6084 | // Type: string |
| 6085 | // RequirementLevel: Recommended |
| 6086 | // Stability: Development |
| 6087 | // |
| 6088 | // Examples: "gpt-4-0613" |
| 6089 | GenAIResponseModelKey = attribute.Key("gen_ai.response.model") |
| 6090 | |
| 6091 | // GenAISystemKey is the attribute Key conforming to the "gen_ai.system" |
| 6092 | // semantic conventions. It represents the Generative AI product as identified |
| 6093 | // by the client or server instrumentation. |
| 6094 | // |
| 6095 | // Type: Enum |
| 6096 | // RequirementLevel: Recommended |
| 6097 | // Stability: Development |
| 6098 | // |
| 6099 | // Examples: openai |
| 6100 | // Note: The `gen_ai.system` describes a family of GenAI models with specific |
| 6101 | // model identified |
| 6102 | // by `gen_ai.request.model` and `gen_ai.response.model` attributes. |
| 6103 | // |
| 6104 | // The actual GenAI product may differ from the one identified by the client. |
| 6105 | // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI |
| 6106 | // client |
| 6107 | // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the |
| 6108 | // instrumentation's best knowledge, instead of the actual system. The |
| 6109 | // `server.address` |
| 6110 | // attribute may help identify the actual system in use for `openai`. |
| 6111 | // |
| 6112 | // For custom model, a custom friendly name SHOULD be used. |
| 6113 | // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER` |
| 6114 | // . |
| 6115 | GenAISystemKey = attribute.Key("gen_ai.system") |
| 6116 | |
| 6117 | // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type" |
| 6118 | // semantic conventions. It represents the type of token being counted. |
| 6119 | // |
| 6120 | // Type: Enum |
| 6121 | // RequirementLevel: Recommended |
| 6122 | // Stability: Development |
| 6123 | // |
| 6124 | // Examples: "input", "output" |
| 6125 | GenAITokenTypeKey = attribute.Key("gen_ai.token.type") |
| 6126 | |
| 6127 | // GenAIToolCallIDKey is the attribute Key conforming to the |
| 6128 | // "gen_ai.tool.call.id" semantic conventions. It represents the tool call |
| 6129 | // identifier. |
| 6130 | // |
| 6131 | // Type: string |
| 6132 | // RequirementLevel: Recommended |
| 6133 | // Stability: Development |
| 6134 | // |
| 6135 | // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4" |
| 6136 | GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id") |
| 6137 | |
| 6138 | // GenAIToolDescriptionKey is the attribute Key conforming to the |
| 6139 | // "gen_ai.tool.description" semantic conventions. It represents the tool |
| 6140 | // description. |
| 6141 | // |
| 6142 | // Type: string |
| 6143 | // RequirementLevel: Recommended |
| 6144 | // Stability: Development |
| 6145 | // |
| 6146 | // Examples: "Multiply two numbers" |
| 6147 | GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description") |
| 6148 | |
| 6149 | // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name" |
| 6150 | // semantic conventions. It represents the name of the tool utilized by the |
| 6151 | // agent. |
| 6152 | // |
| 6153 | // Type: string |
| 6154 | // RequirementLevel: Recommended |
| 6155 | // Stability: Development |
| 6156 | // |
| 6157 | // Examples: "Flights" |
| 6158 | GenAIToolNameKey = attribute.Key("gen_ai.tool.name") |
| 6159 | |
| 6160 | // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type" |
| 6161 | // semantic conventions. It represents the type of the tool utilized by the |
| 6162 | // agent. |
| 6163 | // |
| 6164 | // Type: string |
| 6165 | // RequirementLevel: Recommended |
| 6166 | // Stability: Development |
| 6167 | // |
| 6168 | // Examples: "function", "extension", "datastore" |
| 6169 | // Note: Extension: A tool executed on the agent-side to directly call external |
| 6170 | // APIs, bridging the gap between the agent and real-world systems. |
| 6171 | // Agent-side operations involve actions that are performed by the agent on the |
| 6172 | // server or within the agent's controlled environment. |
| 6173 | // Function: A tool executed on the client-side, where the agent generates |
| 6174 | // parameters for a predefined function, and the client executes the logic. |
| 6175 | // Client-side operations are actions taken on the user's end or within the |
| 6176 | // client application. |
| 6177 | // Datastore: A tool used by the agent to access and query structured or |
| 6178 | // unstructured external data for retrieval-augmented tasks or knowledge |
| 6179 | // updates. |
| 6180 | GenAIToolTypeKey = attribute.Key("gen_ai.tool.type") |
| 6181 | |
| 6182 | // GenAIUsageInputTokensKey is the attribute Key conforming to the |
| 6183 | // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of |
| 6184 | // tokens used in the GenAI input (prompt). |
| 6185 | // |
| 6186 | // Type: int |
| 6187 | // RequirementLevel: Recommended |
| 6188 | // Stability: Development |
| 6189 | // |
| 6190 | // Examples: 100 |
| 6191 | GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens") |
| 6192 | |
| 6193 | // GenAIUsageOutputTokensKey is the attribute Key conforming to the |
| 6194 | // "gen_ai.usage.output_tokens" semantic conventions. It represents the number |
| 6195 | // of tokens used in the GenAI response (completion). |
| 6196 | // |
| 6197 | // Type: int |
| 6198 | // RequirementLevel: Recommended |
| 6199 | // Stability: Development |
| 6200 | // |
| 6201 | // Examples: 180 |
| 6202 | GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens") |
| 6203 | ) |
| 6204 | |
| 6205 | // GenAIAgentDescription returns an attribute KeyValue conforming to the |
| 6206 | // "gen_ai.agent.description" semantic conventions. It represents the free-form |
| 6207 | // description of the GenAI agent provided by the application. |
| 6208 | func GenAIAgentDescription(val string) attribute.KeyValue { |
| 6209 | return GenAIAgentDescriptionKey.String(val) |
| 6210 | } |
| 6211 | |
| 6212 | // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id" |
| 6213 | // semantic conventions. It represents the unique identifier of the GenAI agent. |
| 6214 | func GenAIAgentID(val string) attribute.KeyValue { |
| 6215 | return GenAIAgentIDKey.String(val) |
| 6216 | } |
| 6217 | |
| 6218 | // GenAIAgentName returns an attribute KeyValue conforming to the |
| 6219 | // "gen_ai.agent.name" semantic conventions. It represents the human-readable |
| 6220 | // name of the GenAI agent provided by the application. |
| 6221 | func GenAIAgentName(val string) attribute.KeyValue { |
| 6222 | return GenAIAgentNameKey.String(val) |
| 6223 | } |
| 6224 | |
| 6225 | // GenAIConversationID returns an attribute KeyValue conforming to the |
| 6226 | // "gen_ai.conversation.id" semantic conventions. It represents the unique |
| 6227 | // identifier for a conversation (session, thread), used to store and correlate |
| 6228 | // messages within this conversation. |
| 6229 | func GenAIConversationID(val string) attribute.KeyValue { |
| 6230 | return GenAIConversationIDKey.String(val) |
| 6231 | } |
| 6232 | |
| 6233 | // GenAIDataSourceID returns an attribute KeyValue conforming to the |
| 6234 | // "gen_ai.data_source.id" semantic conventions. It represents the data source |
| 6235 | // identifier. |
| 6236 | func GenAIDataSourceID(val string) attribute.KeyValue { |
| 6237 | return GenAIDataSourceIDKey.String(val) |
| 6238 | } |
| 6239 | |
| 6240 | // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the |
| 6241 | // "gen_ai.openai.response.service_tier" semantic conventions. It represents the |
| 6242 | // service tier used for the response. |
| 6243 | func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue { |
| 6244 | return GenAIOpenAIResponseServiceTierKey.String(val) |
| 6245 | } |
| 6246 | |
| 6247 | // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming |
| 6248 | // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It |
| 6249 | // represents a fingerprint to track any eventual change in the Generative AI |
| 6250 | // environment. |
| 6251 | func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue { |
| 6252 | return GenAIOpenAIResponseSystemFingerprintKey.String(val) |
| 6253 | } |
| 6254 | |
| 6255 | // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the |
| 6256 | // "gen_ai.request.choice.count" semantic conventions. It represents the target |
| 6257 | // number of candidate completions to return. |
| 6258 | func GenAIRequestChoiceCount(val int) attribute.KeyValue { |
| 6259 | return GenAIRequestChoiceCountKey.Int(val) |
| 6260 | } |
| 6261 | |
| 6262 | // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the |
| 6263 | // "gen_ai.request.encoding_formats" semantic conventions. It represents the |
| 6264 | // encoding formats requested in an embeddings operation, if specified. |
| 6265 | func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue { |
| 6266 | return GenAIRequestEncodingFormatsKey.StringSlice(val) |
| 6267 | } |
| 6268 | |
| 6269 | // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the |
| 6270 | // "gen_ai.request.frequency_penalty" semantic conventions. It represents the |
| 6271 | // frequency penalty setting for the GenAI request. |
| 6272 | func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue { |
| 6273 | return GenAIRequestFrequencyPenaltyKey.Float64(val) |
| 6274 | } |
| 6275 | |
| 6276 | // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the |
| 6277 | // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum |
| 6278 | // number of tokens the model generates for a request. |
| 6279 | func GenAIRequestMaxTokens(val int) attribute.KeyValue { |
| 6280 | return GenAIRequestMaxTokensKey.Int(val) |
| 6281 | } |
| 6282 | |
| 6283 | // GenAIRequestModel returns an attribute KeyValue conforming to the |
| 6284 | // "gen_ai.request.model" semantic conventions. It represents the name of the |
| 6285 | // GenAI model a request is being made to. |
| 6286 | func GenAIRequestModel(val string) attribute.KeyValue { |
| 6287 | return GenAIRequestModelKey.String(val) |
| 6288 | } |
| 6289 | |
| 6290 | // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the |
| 6291 | // "gen_ai.request.presence_penalty" semantic conventions. It represents the |
| 6292 | // presence penalty setting for the GenAI request. |
| 6293 | func GenAIRequestPresencePenalty(val float64) attribute.KeyValue { |
| 6294 | return GenAIRequestPresencePenaltyKey.Float64(val) |
| 6295 | } |
| 6296 | |
| 6297 | // GenAIRequestSeed returns an attribute KeyValue conforming to the |
| 6298 | // "gen_ai.request.seed" semantic conventions. It represents the requests with |
| 6299 | // same seed value more likely to return same result. |
| 6300 | func GenAIRequestSeed(val int) attribute.KeyValue { |
| 6301 | return GenAIRequestSeedKey.Int(val) |
| 6302 | } |
| 6303 | |
| 6304 | // GenAIRequestStopSequences returns an attribute KeyValue conforming to the |
| 6305 | // "gen_ai.request.stop_sequences" semantic conventions. It represents the list |
| 6306 | // of sequences that the model will use to stop generating further tokens. |
| 6307 | func GenAIRequestStopSequences(val ...string) attribute.KeyValue { |
| 6308 | return GenAIRequestStopSequencesKey.StringSlice(val) |
| 6309 | } |
| 6310 | |
| 6311 | // GenAIRequestTemperature returns an attribute KeyValue conforming to the |
| 6312 | // "gen_ai.request.temperature" semantic conventions. It represents the |
| 6313 | // temperature setting for the GenAI request. |
| 6314 | func GenAIRequestTemperature(val float64) attribute.KeyValue { |
| 6315 | return GenAIRequestTemperatureKey.Float64(val) |
| 6316 | } |
| 6317 | |
| 6318 | // GenAIRequestTopK returns an attribute KeyValue conforming to the |
| 6319 | // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling |
| 6320 | // setting for the GenAI request. |
| 6321 | func GenAIRequestTopK(val float64) attribute.KeyValue { |
| 6322 | return GenAIRequestTopKKey.Float64(val) |
| 6323 | } |
| 6324 | |
| 6325 | // GenAIRequestTopP returns an attribute KeyValue conforming to the |
| 6326 | // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling |
| 6327 | // setting for the GenAI request. |
| 6328 | func GenAIRequestTopP(val float64) attribute.KeyValue { |
| 6329 | return GenAIRequestTopPKey.Float64(val) |
| 6330 | } |
| 6331 | |
| 6332 | // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the |
| 6333 | // "gen_ai.response.finish_reasons" semantic conventions. It represents the array |
| 6334 | // of reasons the model stopped generating tokens, corresponding to each |
| 6335 | // generation received. |
| 6336 | func GenAIResponseFinishReasons(val ...string) attribute.KeyValue { |
| 6337 | return GenAIResponseFinishReasonsKey.StringSlice(val) |
| 6338 | } |
| 6339 | |
| 6340 | // GenAIResponseID returns an attribute KeyValue conforming to the |
| 6341 | // "gen_ai.response.id" semantic conventions. It represents the unique identifier |
| 6342 | // for the completion. |
| 6343 | func GenAIResponseID(val string) attribute.KeyValue { |
| 6344 | return GenAIResponseIDKey.String(val) |
| 6345 | } |
| 6346 | |
| 6347 | // GenAIResponseModel returns an attribute KeyValue conforming to the |
| 6348 | // "gen_ai.response.model" semantic conventions. It represents the name of the |
| 6349 | // model that generated the response. |
| 6350 | func GenAIResponseModel(val string) attribute.KeyValue { |
| 6351 | return GenAIResponseModelKey.String(val) |
| 6352 | } |
| 6353 | |
| 6354 | // GenAIToolCallID returns an attribute KeyValue conforming to the |
| 6355 | // "gen_ai.tool.call.id" semantic conventions. It represents the tool call |
| 6356 | // identifier. |
| 6357 | func GenAIToolCallID(val string) attribute.KeyValue { |
| 6358 | return GenAIToolCallIDKey.String(val) |
| 6359 | } |
| 6360 | |
| 6361 | // GenAIToolDescription returns an attribute KeyValue conforming to the |
| 6362 | // "gen_ai.tool.description" semantic conventions. It represents the tool |
| 6363 | // description. |
| 6364 | func GenAIToolDescription(val string) attribute.KeyValue { |
| 6365 | return GenAIToolDescriptionKey.String(val) |
| 6366 | } |
| 6367 | |
| 6368 | // GenAIToolName returns an attribute KeyValue conforming to the |
| 6369 | // "gen_ai.tool.name" semantic conventions. It represents the name of the tool |
| 6370 | // utilized by the agent. |
| 6371 | func GenAIToolName(val string) attribute.KeyValue { |
| 6372 | return GenAIToolNameKey.String(val) |
| 6373 | } |
| 6374 | |
| 6375 | // GenAIToolType returns an attribute KeyValue conforming to the |
| 6376 | // "gen_ai.tool.type" semantic conventions. It represents the type of the tool |
| 6377 | // utilized by the agent. |
| 6378 | func GenAIToolType(val string) attribute.KeyValue { |
| 6379 | return GenAIToolTypeKey.String(val) |
| 6380 | } |
| 6381 | |
| 6382 | // GenAIUsageInputTokens returns an attribute KeyValue conforming to the |
| 6383 | // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of |
| 6384 | // tokens used in the GenAI input (prompt). |
| 6385 | func GenAIUsageInputTokens(val int) attribute.KeyValue { |
| 6386 | return GenAIUsageInputTokensKey.Int(val) |
| 6387 | } |
| 6388 | |
| 6389 | // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the |
| 6390 | // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of |
| 6391 | // tokens used in the GenAI response (completion). |
| 6392 | func GenAIUsageOutputTokens(val int) attribute.KeyValue { |
| 6393 | return GenAIUsageOutputTokensKey.Int(val) |
| 6394 | } |
| 6395 | |
| 6396 | // Enum values for gen_ai.openai.request.service_tier |
| 6397 | var ( |
| 6398 | // The system will utilize scale tier credits until they are exhausted. |
| 6399 | // Stability: development |
| 6400 | GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto") |
| 6401 | // The system will utilize the default scale tier. |
| 6402 | // Stability: development |
| 6403 | GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default") |
| 6404 | ) |
| 6405 | |
| 6406 | // Enum values for gen_ai.operation.name |
| 6407 | var ( |
| 6408 | // Chat completion operation such as [OpenAI Chat API] |
| 6409 | // Stability: development |
| 6410 | // |
| 6411 | // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat |
| 6412 | GenAIOperationNameChat = GenAIOperationNameKey.String("chat") |
| 6413 | // Multimodal content generation operation such as [Gemini Generate Content] |
| 6414 | // Stability: development |
| 6415 | // |
| 6416 | // [Gemini Generate Content]: https://ai.google.dev/api/generate-content |
| 6417 | GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content") |
| 6418 | // Text completions operation such as [OpenAI Completions API (Legacy)] |
| 6419 | // Stability: development |
| 6420 | // |
| 6421 | // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions |
| 6422 | GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion") |
| 6423 | // Embeddings operation such as [OpenAI Create embeddings API] |
| 6424 | // Stability: development |
| 6425 | // |
| 6426 | // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create |
| 6427 | GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings") |
| 6428 | // Create GenAI agent |
| 6429 | // Stability: development |
| 6430 | GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent") |
| 6431 | // Invoke GenAI agent |
| 6432 | // Stability: development |
| 6433 | GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent") |
| 6434 | // Execute a tool |
| 6435 | // Stability: development |
| 6436 | GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool") |
| 6437 | ) |
| 6438 | |
| 6439 | // Enum values for gen_ai.output.type |
| 6440 | var ( |
| 6441 | // Plain text |
| 6442 | // Stability: development |
| 6443 | GenAIOutputTypeText = GenAIOutputTypeKey.String("text") |
| 6444 | // JSON object with known or unknown schema |
| 6445 | // Stability: development |
| 6446 | GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json") |
| 6447 | // Image |
| 6448 | // Stability: development |
| 6449 | GenAIOutputTypeImage = GenAIOutputTypeKey.String("image") |
| 6450 | // Speech |
| 6451 | // Stability: development |
| 6452 | GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech") |
| 6453 | ) |
| 6454 | |
| 6455 | // Enum values for gen_ai.system |
| 6456 | var ( |
| 6457 | // OpenAI |
| 6458 | // Stability: development |
| 6459 | GenAISystemOpenAI = GenAISystemKey.String("openai") |
| 6460 | // Any Google generative AI endpoint |
| 6461 | // Stability: development |
| 6462 | GenAISystemGCPGenAI = GenAISystemKey.String("gcp.gen_ai") |
| 6463 | // Vertex AI |
| 6464 | // Stability: development |
| 6465 | GenAISystemGCPVertexAI = GenAISystemKey.String("gcp.vertex_ai") |
| 6466 | // Gemini |
| 6467 | // Stability: development |
| 6468 | GenAISystemGCPGemini = GenAISystemKey.String("gcp.gemini") |
| 6469 | // Deprecated: Use 'gcp.vertex_ai' instead. |
| 6470 | GenAISystemVertexAI = GenAISystemKey.String("vertex_ai") |
| 6471 | // Deprecated: Use 'gcp.gemini' instead. |
| 6472 | GenAISystemGemini = GenAISystemKey.String("gemini") |
| 6473 | // Anthropic |
| 6474 | // Stability: development |
| 6475 | GenAISystemAnthropic = GenAISystemKey.String("anthropic") |
| 6476 | // Cohere |
| 6477 | // Stability: development |
| 6478 | GenAISystemCohere = GenAISystemKey.String("cohere") |
| 6479 | // Azure AI Inference |
| 6480 | // Stability: development |
| 6481 | GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference") |
| 6482 | // Azure OpenAI |
| 6483 | // Stability: development |
| 6484 | GenAISystemAzAIOpenAI = GenAISystemKey.String("az.ai.openai") |
| 6485 | // IBM Watsonx AI |
| 6486 | // Stability: development |
| 6487 | GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai") |
| 6488 | // AWS Bedrock |
| 6489 | // Stability: development |
| 6490 | GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock") |
| 6491 | // Perplexity |
| 6492 | // Stability: development |
| 6493 | GenAISystemPerplexity = GenAISystemKey.String("perplexity") |
| 6494 | // xAI |
| 6495 | // Stability: development |
| 6496 | GenAISystemXai = GenAISystemKey.String("xai") |
| 6497 | // DeepSeek |
| 6498 | // Stability: development |
| 6499 | GenAISystemDeepseek = GenAISystemKey.String("deepseek") |
| 6500 | // Groq |
| 6501 | // Stability: development |
| 6502 | GenAISystemGroq = GenAISystemKey.String("groq") |
| 6503 | // Mistral AI |
| 6504 | // Stability: development |
| 6505 | GenAISystemMistralAI = GenAISystemKey.String("mistral_ai") |
| 6506 | ) |
| 6507 | |
| 6508 | // Enum values for gen_ai.token.type |
| 6509 | var ( |
| 6510 | // Input tokens (prompt, input, etc.) |
| 6511 | // Stability: development |
| 6512 | GenAITokenTypeInput = GenAITokenTypeKey.String("input") |
| 6513 | // Deprecated: Replaced by `output`. |
| 6514 | GenAITokenTypeCompletion = GenAITokenTypeKey.String("output") |
| 6515 | // Output tokens (completion, response, etc.) |
| 6516 | // Stability: development |
| 6517 | GenAITokenTypeOutput = GenAITokenTypeKey.String("output") |
| 6518 | ) |
| 6519 | |
| 6520 | // Namespace: geo |
| 6521 | const ( |
| 6522 | // GeoContinentCodeKey is the attribute Key conforming to the |
| 6523 | // "geo.continent.code" semantic conventions. It represents the two-letter code |
| 6524 | // representing continent’s name. |
| 6525 | // |
| 6526 | // Type: Enum |
| 6527 | // RequirementLevel: Recommended |
| 6528 | // Stability: Development |
| 6529 | // |
| 6530 | // Examples: |
| 6531 | GeoContinentCodeKey = attribute.Key("geo.continent.code") |
| 6532 | |
| 6533 | // GeoCountryISOCodeKey is the attribute Key conforming to the |
| 6534 | // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO |
| 6535 | // Country Code ([ISO 3166-1 alpha2]). |
| 6536 | // |
| 6537 | // Type: string |
| 6538 | // RequirementLevel: Recommended |
| 6539 | // Stability: Development |
| 6540 | // |
| 6541 | // Examples: "CA" |
| 6542 | // |
| 6543 | // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes |
| 6544 | GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code") |
| 6545 | |
| 6546 | // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name" |
| 6547 | // semantic conventions. It represents the locality name. Represents the name of |
| 6548 | // a city, town, village, or similar populated place. |
| 6549 | // |
| 6550 | // Type: string |
| 6551 | // RequirementLevel: Recommended |
| 6552 | // Stability: Development |
| 6553 | // |
| 6554 | // Examples: "Montreal", "Berlin" |
| 6555 | GeoLocalityNameKey = attribute.Key("geo.locality.name") |
| 6556 | |
| 6557 | // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat" |
| 6558 | // semantic conventions. It represents the latitude of the geo location in |
| 6559 | // [WGS84]. |
| 6560 | // |
| 6561 | // Type: double |
| 6562 | // RequirementLevel: Recommended |
| 6563 | // Stability: Development |
| 6564 | // |
| 6565 | // Examples: 45.505918 |
| 6566 | // |
| 6567 | // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84 |
| 6568 | GeoLocationLatKey = attribute.Key("geo.location.lat") |
| 6569 | |
| 6570 | // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon" |
| 6571 | // semantic conventions. It represents the longitude of the geo location in |
| 6572 | // [WGS84]. |
| 6573 | // |
| 6574 | // Type: double |
| 6575 | // RequirementLevel: Recommended |
| 6576 | // Stability: Development |
| 6577 | // |
| 6578 | // Examples: -73.61483 |
| 6579 | // |
| 6580 | // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84 |
| 6581 | GeoLocationLonKey = attribute.Key("geo.location.lon") |
| 6582 | |
| 6583 | // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code" |
| 6584 | // semantic conventions. It represents the postal code associated with the |
| 6585 | // location. Values appropriate for this field may also be known as a postcode |
| 6586 | // or ZIP code and will vary widely from country to country. |
| 6587 | // |
| 6588 | // Type: string |
| 6589 | // RequirementLevel: Recommended |
| 6590 | // Stability: Development |
| 6591 | // |
| 6592 | // Examples: "94040" |
| 6593 | GeoPostalCodeKey = attribute.Key("geo.postal_code") |
| 6594 | |
| 6595 | // GeoRegionISOCodeKey is the attribute Key conforming to the |
| 6596 | // "geo.region.iso_code" semantic conventions. It represents the region ISO code |
| 6597 | // ([ISO 3166-2]). |
| 6598 | // |
| 6599 | // Type: string |
| 6600 | // RequirementLevel: Recommended |
| 6601 | // Stability: Development |
| 6602 | // |
| 6603 | // Examples: "CA-QC" |
| 6604 | // |
| 6605 | // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2 |
| 6606 | GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code") |
| 6607 | ) |
| 6608 | |
| 6609 | // GeoCountryISOCode returns an attribute KeyValue conforming to the |
| 6610 | // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO |
| 6611 | // Country Code ([ISO 3166-1 alpha2]). |
| 6612 | // |
| 6613 | // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes |
| 6614 | func GeoCountryISOCode(val string) attribute.KeyValue { |
| 6615 | return GeoCountryISOCodeKey.String(val) |
| 6616 | } |
| 6617 | |
| 6618 | // GeoLocalityName returns an attribute KeyValue conforming to the |
| 6619 | // "geo.locality.name" semantic conventions. It represents the locality name. |
| 6620 | // Represents the name of a city, town, village, or similar populated place. |
| 6621 | func GeoLocalityName(val string) attribute.KeyValue { |
| 6622 | return GeoLocalityNameKey.String(val) |
| 6623 | } |
| 6624 | |
| 6625 | // GeoLocationLat returns an attribute KeyValue conforming to the |
| 6626 | // "geo.location.lat" semantic conventions. It represents the latitude of the geo |
| 6627 | // location in [WGS84]. |
| 6628 | // |
| 6629 | // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84 |
| 6630 | func GeoLocationLat(val float64) attribute.KeyValue { |
| 6631 | return GeoLocationLatKey.Float64(val) |
| 6632 | } |
| 6633 | |
| 6634 | // GeoLocationLon returns an attribute KeyValue conforming to the |
| 6635 | // "geo.location.lon" semantic conventions. It represents the longitude of the |
| 6636 | // geo location in [WGS84]. |
| 6637 | // |
| 6638 | // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84 |
| 6639 | func GeoLocationLon(val float64) attribute.KeyValue { |
| 6640 | return GeoLocationLonKey.Float64(val) |
| 6641 | } |
| 6642 | |
| 6643 | // GeoPostalCode returns an attribute KeyValue conforming to the |
| 6644 | // "geo.postal_code" semantic conventions. It represents the postal code |
| 6645 | // associated with the location. Values appropriate for this field may also be |
| 6646 | // known as a postcode or ZIP code and will vary widely from country to country. |
| 6647 | func GeoPostalCode(val string) attribute.KeyValue { |
| 6648 | return GeoPostalCodeKey.String(val) |
| 6649 | } |
| 6650 | |
| 6651 | // GeoRegionISOCode returns an attribute KeyValue conforming to the |
| 6652 | // "geo.region.iso_code" semantic conventions. It represents the region ISO code |
| 6653 | // ([ISO 3166-2]). |
| 6654 | // |
| 6655 | // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2 |
| 6656 | func GeoRegionISOCode(val string) attribute.KeyValue { |
| 6657 | return GeoRegionISOCodeKey.String(val) |
| 6658 | } |
| 6659 | |
| 6660 | // Enum values for geo.continent.code |
| 6661 | var ( |
| 6662 | // Africa |
| 6663 | // Stability: development |
| 6664 | GeoContinentCodeAf = GeoContinentCodeKey.String("AF") |
| 6665 | // Antarctica |
| 6666 | // Stability: development |
| 6667 | GeoContinentCodeAn = GeoContinentCodeKey.String("AN") |
| 6668 | // Asia |
| 6669 | // Stability: development |
| 6670 | GeoContinentCodeAs = GeoContinentCodeKey.String("AS") |
| 6671 | // Europe |
| 6672 | // Stability: development |
| 6673 | GeoContinentCodeEu = GeoContinentCodeKey.String("EU") |
| 6674 | // North America |
| 6675 | // Stability: development |
| 6676 | GeoContinentCodeNa = GeoContinentCodeKey.String("NA") |
| 6677 | // Oceania |
| 6678 | // Stability: development |
| 6679 | GeoContinentCodeOc = GeoContinentCodeKey.String("OC") |
| 6680 | // South America |
| 6681 | // Stability: development |
| 6682 | GeoContinentCodeSa = GeoContinentCodeKey.String("SA") |
| 6683 | ) |
| 6684 | |
| 6685 | // Namespace: go |
| 6686 | const ( |
| 6687 | // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type" |
| 6688 | // semantic conventions. It represents the type of memory. |
| 6689 | // |
| 6690 | // Type: Enum |
| 6691 | // RequirementLevel: Recommended |
| 6692 | // Stability: Development |
| 6693 | // |
| 6694 | // Examples: "other", "stack" |
| 6695 | GoMemoryTypeKey = attribute.Key("go.memory.type") |
| 6696 | ) |
| 6697 | |
| 6698 | // Enum values for go.memory.type |
| 6699 | var ( |
| 6700 | // Memory allocated from the heap that is reserved for stack space, whether or |
| 6701 | // not it is currently in-use. |
| 6702 | // Stability: development |
| 6703 | GoMemoryTypeStack = GoMemoryTypeKey.String("stack") |
| 6704 | // Memory used by the Go runtime, excluding other categories of memory usage |
| 6705 | // described in this enumeration. |
| 6706 | // Stability: development |
| 6707 | GoMemoryTypeOther = GoMemoryTypeKey.String("other") |
| 6708 | ) |
| 6709 | |
| 6710 | // Namespace: graphql |
| 6711 | const ( |
| 6712 | // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document" |
| 6713 | // semantic conventions. It represents the GraphQL document being executed. |
| 6714 | // |
| 6715 | // Type: string |
| 6716 | // RequirementLevel: Recommended |
| 6717 | // Stability: Development |
| 6718 | // |
| 6719 | // Examples: query findBookById { bookById(id: ?) { name } } |
| 6720 | // Note: The value may be sanitized to exclude sensitive information. |
| 6721 | GraphQLDocumentKey = attribute.Key("graphql.document") |
| 6722 | |
| 6723 | // GraphQLOperationNameKey is the attribute Key conforming to the |
| 6724 | // "graphql.operation.name" semantic conventions. It represents the name of the |
| 6725 | // operation being executed. |
| 6726 | // |
| 6727 | // Type: string |
| 6728 | // RequirementLevel: Recommended |
| 6729 | // Stability: Development |
| 6730 | // |
| 6731 | // Examples: findBookById |
| 6732 | GraphQLOperationNameKey = attribute.Key("graphql.operation.name") |
| 6733 | |
| 6734 | // GraphQLOperationTypeKey is the attribute Key conforming to the |
| 6735 | // "graphql.operation.type" semantic conventions. It represents the type of the |
| 6736 | // operation being executed. |
| 6737 | // |
| 6738 | // Type: Enum |
| 6739 | // RequirementLevel: Recommended |
| 6740 | // Stability: Development |
| 6741 | // |
| 6742 | // Examples: "query", "mutation", "subscription" |
| 6743 | GraphQLOperationTypeKey = attribute.Key("graphql.operation.type") |
| 6744 | ) |
| 6745 | |
| 6746 | // GraphQLDocument returns an attribute KeyValue conforming to the |
| 6747 | // "graphql.document" semantic conventions. It represents the GraphQL document |
| 6748 | // being executed. |
| 6749 | func GraphQLDocument(val string) attribute.KeyValue { |
| 6750 | return GraphQLDocumentKey.String(val) |
| 6751 | } |
| 6752 | |
| 6753 | // GraphQLOperationName returns an attribute KeyValue conforming to the |
| 6754 | // "graphql.operation.name" semantic conventions. It represents the name of the |
| 6755 | // operation being executed. |
| 6756 | func GraphQLOperationName(val string) attribute.KeyValue { |
| 6757 | return GraphQLOperationNameKey.String(val) |
| 6758 | } |
| 6759 | |
| 6760 | // Enum values for graphql.operation.type |
| 6761 | var ( |
| 6762 | // GraphQL query |
| 6763 | // Stability: development |
| 6764 | GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query") |
| 6765 | // GraphQL mutation |
| 6766 | // Stability: development |
| 6767 | GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation") |
| 6768 | // GraphQL subscription |
| 6769 | // Stability: development |
| 6770 | GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription") |
| 6771 | ) |
| 6772 | |
| 6773 | // Namespace: heroku |
| 6774 | const ( |
| 6775 | // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id" |
| 6776 | // semantic conventions. It represents the unique identifier for the |
| 6777 | // application. |
| 6778 | // |
| 6779 | // Type: string |
| 6780 | // RequirementLevel: Recommended |
| 6781 | // Stability: Development |
| 6782 | // |
| 6783 | // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da" |
| 6784 | HerokuAppIDKey = attribute.Key("heroku.app.id") |
| 6785 | |
| 6786 | // HerokuReleaseCommitKey is the attribute Key conforming to the |
| 6787 | // "heroku.release.commit" semantic conventions. It represents the commit hash |
| 6788 | // for the current release. |
| 6789 | // |
| 6790 | // Type: string |
| 6791 | // RequirementLevel: Recommended |
| 6792 | // Stability: Development |
| 6793 | // |
| 6794 | // Examples: "e6134959463efd8966b20e75b913cafe3f5ec" |
| 6795 | HerokuReleaseCommitKey = attribute.Key("heroku.release.commit") |
| 6796 | |
| 6797 | // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the |
| 6798 | // "heroku.release.creation_timestamp" semantic conventions. It represents the |
| 6799 | // time and date the release was created. |
| 6800 | // |
| 6801 | // Type: string |
| 6802 | // RequirementLevel: Recommended |
| 6803 | // Stability: Development |
| 6804 | // |
| 6805 | // Examples: "2022-10-23T18:00:42Z" |
| 6806 | HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp") |
| 6807 | ) |
| 6808 | |
| 6809 | // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id" |
| 6810 | // semantic conventions. It represents the unique identifier for the application. |
| 6811 | func HerokuAppID(val string) attribute.KeyValue { |
| 6812 | return HerokuAppIDKey.String(val) |
| 6813 | } |
| 6814 | |
| 6815 | // HerokuReleaseCommit returns an attribute KeyValue conforming to the |
| 6816 | // "heroku.release.commit" semantic conventions. It represents the commit hash |
| 6817 | // for the current release. |
| 6818 | func HerokuReleaseCommit(val string) attribute.KeyValue { |
| 6819 | return HerokuReleaseCommitKey.String(val) |
| 6820 | } |
| 6821 | |
| 6822 | // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the |
| 6823 | // "heroku.release.creation_timestamp" semantic conventions. It represents the |
| 6824 | // time and date the release was created. |
| 6825 | func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue { |
| 6826 | return HerokuReleaseCreationTimestampKey.String(val) |
| 6827 | } |
| 6828 | |
| 6829 | // Namespace: host |
| 6830 | const ( |
| 6831 | // HostArchKey is the attribute Key conforming to the "host.arch" semantic |
| 6832 | // conventions. It represents the CPU architecture the host system is running |
| 6833 | // on. |
| 6834 | // |
| 6835 | // Type: Enum |
| 6836 | // RequirementLevel: Recommended |
| 6837 | // Stability: Development |
| 6838 | // |
| 6839 | // Examples: |
| 6840 | HostArchKey = attribute.Key("host.arch") |
| 6841 | |
| 6842 | // HostCPUCacheL2SizeKey is the attribute Key conforming to the |
| 6843 | // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of |
| 6844 | // level 2 memory cache available to the processor (in Bytes). |
| 6845 | // |
| 6846 | // Type: int |
| 6847 | // RequirementLevel: Recommended |
| 6848 | // Stability: Development |
| 6849 | // |
| 6850 | // Examples: 12288000 |
| 6851 | HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size") |
| 6852 | |
| 6853 | // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family" |
| 6854 | // semantic conventions. It represents the family or generation of the CPU. |
| 6855 | // |
| 6856 | // Type: string |
| 6857 | // RequirementLevel: Recommended |
| 6858 | // Stability: Development |
| 6859 | // |
| 6860 | // Examples: "6", "PA-RISC 1.1e" |
| 6861 | HostCPUFamilyKey = attribute.Key("host.cpu.family") |
| 6862 | |
| 6863 | // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id" |
| 6864 | // semantic conventions. It represents the model identifier. It provides more |
| 6865 | // granular information about the CPU, distinguishing it from other CPUs within |
| 6866 | // the same family. |
| 6867 | // |
| 6868 | // Type: string |
| 6869 | // RequirementLevel: Recommended |
| 6870 | // Stability: Development |
| 6871 | // |
| 6872 | // Examples: "6", "9000/778/B180L" |
| 6873 | HostCPUModelIDKey = attribute.Key("host.cpu.model.id") |
| 6874 | |
| 6875 | // HostCPUModelNameKey is the attribute Key conforming to the |
| 6876 | // "host.cpu.model.name" semantic conventions. It represents the model |
| 6877 | // designation of the processor. |
| 6878 | // |
| 6879 | // Type: string |
| 6880 | // RequirementLevel: Recommended |
| 6881 | // Stability: Development |
| 6882 | // |
| 6883 | // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz" |
| 6884 | HostCPUModelNameKey = attribute.Key("host.cpu.model.name") |
| 6885 | |
| 6886 | // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping" |
| 6887 | // semantic conventions. It represents the stepping or core revisions. |
| 6888 | // |
| 6889 | // Type: string |
| 6890 | // RequirementLevel: Recommended |
| 6891 | // Stability: Development |
| 6892 | // |
| 6893 | // Examples: "1", "r1p1" |
| 6894 | HostCPUSteppingKey = attribute.Key("host.cpu.stepping") |
| 6895 | |
| 6896 | // HostCPUVendorIDKey is the attribute Key conforming to the |
| 6897 | // "host.cpu.vendor.id" semantic conventions. It represents the processor |
| 6898 | // manufacturer identifier. A maximum 12-character string. |
| 6899 | // |
| 6900 | // Type: string |
| 6901 | // RequirementLevel: Recommended |
| 6902 | // Stability: Development |
| 6903 | // |
| 6904 | // Examples: "GenuineIntel" |
| 6905 | // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX |
| 6906 | // registers. Writing these to memory in this order results in a 12-character |
| 6907 | // string. |
| 6908 | // |
| 6909 | // [CPUID]: https://wiki.osdev.org/CPUID |
| 6910 | HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id") |
| 6911 | |
| 6912 | // HostIDKey is the attribute Key conforming to the "host.id" semantic |
| 6913 | // conventions. It represents the unique host ID. For Cloud, this must be the |
| 6914 | // instance_id assigned by the cloud provider. For non-containerized systems, |
| 6915 | // this should be the `machine-id`. See the table below for the sources to use |
| 6916 | // to determine the `machine-id` based on operating system. |
| 6917 | // |
| 6918 | // Type: string |
| 6919 | // RequirementLevel: Recommended |
| 6920 | // Stability: Development |
| 6921 | // |
| 6922 | // Examples: "fdbf79e8af94cb7f9e8df36789187052" |
| 6923 | HostIDKey = attribute.Key("host.id") |
| 6924 | |
| 6925 | // HostImageIDKey is the attribute Key conforming to the "host.image.id" |
| 6926 | // semantic conventions. It represents the VM image ID or host OS image ID. For |
| 6927 | // Cloud, this value is from the provider. |
| 6928 | // |
| 6929 | // Type: string |
| 6930 | // RequirementLevel: Recommended |
| 6931 | // Stability: Development |
| 6932 | // |
| 6933 | // Examples: "ami-07b06b442921831e5" |
| 6934 | HostImageIDKey = attribute.Key("host.image.id") |
| 6935 | |
| 6936 | // HostImageNameKey is the attribute Key conforming to the "host.image.name" |
| 6937 | // semantic conventions. It represents the name of the VM image or OS install |
| 6938 | // the host was instantiated from. |
| 6939 | // |
| 6940 | // Type: string |
| 6941 | // RequirementLevel: Recommended |
| 6942 | // Stability: Development |
| 6943 | // |
| 6944 | // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905" |
| 6945 | HostImageNameKey = attribute.Key("host.image.name") |
| 6946 | |
| 6947 | // HostImageVersionKey is the attribute Key conforming to the |
| 6948 | // "host.image.version" semantic conventions. It represents the version string |
| 6949 | // of the VM image or host OS as defined in [Version Attributes]. |
| 6950 | // |
| 6951 | // Type: string |
| 6952 | // RequirementLevel: Recommended |
| 6953 | // Stability: Development |
| 6954 | // |
| 6955 | // Examples: "0.1" |
| 6956 | // |
| 6957 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 6958 | HostImageVersionKey = attribute.Key("host.image.version") |
| 6959 | |
| 6960 | // HostIPKey is the attribute Key conforming to the "host.ip" semantic |
| 6961 | // conventions. It represents the available IP addresses of the host, excluding |
| 6962 | // loopback interfaces. |
| 6963 | // |
| 6964 | // Type: string[] |
| 6965 | // RequirementLevel: Recommended |
| 6966 | // Stability: Development |
| 6967 | // |
| 6968 | // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e" |
| 6969 | // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 |
| 6970 | // addresses MUST be specified in the [RFC 5952] format. |
| 6971 | // |
| 6972 | // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html |
| 6973 | HostIPKey = attribute.Key("host.ip") |
| 6974 | |
| 6975 | // HostMacKey is the attribute Key conforming to the "host.mac" semantic |
| 6976 | // conventions. It represents the available MAC addresses of the host, excluding |
| 6977 | // loopback interfaces. |
| 6978 | // |
| 6979 | // Type: string[] |
| 6980 | // RequirementLevel: Recommended |
| 6981 | // Stability: Development |
| 6982 | // |
| 6983 | // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F" |
| 6984 | // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as |
| 6985 | // hyphen-separated octets in uppercase hexadecimal form from most to least |
| 6986 | // significant. |
| 6987 | // |
| 6988 | // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf |
| 6989 | HostMacKey = attribute.Key("host.mac") |
| 6990 | |
| 6991 | // HostNameKey is the attribute Key conforming to the "host.name" semantic |
| 6992 | // conventions. It represents the name of the host. On Unix systems, it may |
| 6993 | // contain what the hostname command returns, or the fully qualified hostname, |
| 6994 | // or another name specified by the user. |
| 6995 | // |
| 6996 | // Type: string |
| 6997 | // RequirementLevel: Recommended |
| 6998 | // Stability: Development |
| 6999 | // |
| 7000 | // Examples: "opentelemetry-test" |
| 7001 | HostNameKey = attribute.Key("host.name") |
| 7002 | |
| 7003 | // HostTypeKey is the attribute Key conforming to the "host.type" semantic |
| 7004 | // conventions. It represents the type of host. For Cloud, this must be the |
| 7005 | // machine type. |
| 7006 | // |
| 7007 | // Type: string |
| 7008 | // RequirementLevel: Recommended |
| 7009 | // Stability: Development |
| 7010 | // |
| 7011 | // Examples: "n1-standard-1" |
| 7012 | HostTypeKey = attribute.Key("host.type") |
| 7013 | ) |
| 7014 | |
| 7015 | // HostCPUCacheL2Size returns an attribute KeyValue conforming to the |
| 7016 | // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of |
| 7017 | // level 2 memory cache available to the processor (in Bytes). |
| 7018 | func HostCPUCacheL2Size(val int) attribute.KeyValue { |
| 7019 | return HostCPUCacheL2SizeKey.Int(val) |
| 7020 | } |
| 7021 | |
| 7022 | // HostCPUFamily returns an attribute KeyValue conforming to the |
| 7023 | // "host.cpu.family" semantic conventions. It represents the family or generation |
| 7024 | // of the CPU. |
| 7025 | func HostCPUFamily(val string) attribute.KeyValue { |
| 7026 | return HostCPUFamilyKey.String(val) |
| 7027 | } |
| 7028 | |
| 7029 | // HostCPUModelID returns an attribute KeyValue conforming to the |
| 7030 | // "host.cpu.model.id" semantic conventions. It represents the model identifier. |
| 7031 | // It provides more granular information about the CPU, distinguishing it from |
| 7032 | // other CPUs within the same family. |
| 7033 | func HostCPUModelID(val string) attribute.KeyValue { |
| 7034 | return HostCPUModelIDKey.String(val) |
| 7035 | } |
| 7036 | |
| 7037 | // HostCPUModelName returns an attribute KeyValue conforming to the |
| 7038 | // "host.cpu.model.name" semantic conventions. It represents the model |
| 7039 | // designation of the processor. |
| 7040 | func HostCPUModelName(val string) attribute.KeyValue { |
| 7041 | return HostCPUModelNameKey.String(val) |
| 7042 | } |
| 7043 | |
| 7044 | // HostCPUStepping returns an attribute KeyValue conforming to the |
| 7045 | // "host.cpu.stepping" semantic conventions. It represents the stepping or core |
| 7046 | // revisions. |
| 7047 | func HostCPUStepping(val string) attribute.KeyValue { |
| 7048 | return HostCPUSteppingKey.String(val) |
| 7049 | } |
| 7050 | |
| 7051 | // HostCPUVendorID returns an attribute KeyValue conforming to the |
| 7052 | // "host.cpu.vendor.id" semantic conventions. It represents the processor |
| 7053 | // manufacturer identifier. A maximum 12-character string. |
| 7054 | func HostCPUVendorID(val string) attribute.KeyValue { |
| 7055 | return HostCPUVendorIDKey.String(val) |
| 7056 | } |
| 7057 | |
| 7058 | // HostID returns an attribute KeyValue conforming to the "host.id" semantic |
| 7059 | // conventions. It represents the unique host ID. For Cloud, this must be the |
| 7060 | // instance_id assigned by the cloud provider. For non-containerized systems, |
| 7061 | // this should be the `machine-id`. See the table below for the sources to use to |
| 7062 | // determine the `machine-id` based on operating system. |
| 7063 | func HostID(val string) attribute.KeyValue { |
| 7064 | return HostIDKey.String(val) |
| 7065 | } |
| 7066 | |
| 7067 | // HostImageID returns an attribute KeyValue conforming to the "host.image.id" |
| 7068 | // semantic conventions. It represents the VM image ID or host OS image ID. For |
| 7069 | // Cloud, this value is from the provider. |
| 7070 | func HostImageID(val string) attribute.KeyValue { |
| 7071 | return HostImageIDKey.String(val) |
| 7072 | } |
| 7073 | |
| 7074 | // HostImageName returns an attribute KeyValue conforming to the |
| 7075 | // "host.image.name" semantic conventions. It represents the name of the VM image |
| 7076 | // or OS install the host was instantiated from. |
| 7077 | func HostImageName(val string) attribute.KeyValue { |
| 7078 | return HostImageNameKey.String(val) |
| 7079 | } |
| 7080 | |
| 7081 | // HostImageVersion returns an attribute KeyValue conforming to the |
| 7082 | // "host.image.version" semantic conventions. It represents the version string of |
| 7083 | // the VM image or host OS as defined in [Version Attributes]. |
| 7084 | // |
| 7085 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 7086 | func HostImageVersion(val string) attribute.KeyValue { |
| 7087 | return HostImageVersionKey.String(val) |
| 7088 | } |
| 7089 | |
| 7090 | // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic |
| 7091 | // conventions. It represents the available IP addresses of the host, excluding |
| 7092 | // loopback interfaces. |
| 7093 | func HostIP(val ...string) attribute.KeyValue { |
| 7094 | return HostIPKey.StringSlice(val) |
| 7095 | } |
| 7096 | |
| 7097 | // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic |
| 7098 | // conventions. It represents the available MAC addresses of the host, excluding |
| 7099 | // loopback interfaces. |
| 7100 | func HostMac(val ...string) attribute.KeyValue { |
| 7101 | return HostMacKey.StringSlice(val) |
| 7102 | } |
| 7103 | |
| 7104 | // HostName returns an attribute KeyValue conforming to the "host.name" semantic |
| 7105 | // conventions. It represents the name of the host. On Unix systems, it may |
| 7106 | // contain what the hostname command returns, or the fully qualified hostname, or |
| 7107 | // another name specified by the user. |
| 7108 | func HostName(val string) attribute.KeyValue { |
| 7109 | return HostNameKey.String(val) |
| 7110 | } |
| 7111 | |
| 7112 | // HostType returns an attribute KeyValue conforming to the "host.type" semantic |
| 7113 | // conventions. It represents the type of host. For Cloud, this must be the |
| 7114 | // machine type. |
| 7115 | func HostType(val string) attribute.KeyValue { |
| 7116 | return HostTypeKey.String(val) |
| 7117 | } |
| 7118 | |
| 7119 | // Enum values for host.arch |
| 7120 | var ( |
| 7121 | // AMD64 |
| 7122 | // Stability: development |
| 7123 | HostArchAMD64 = HostArchKey.String("amd64") |
| 7124 | // ARM32 |
| 7125 | // Stability: development |
| 7126 | HostArchARM32 = HostArchKey.String("arm32") |
| 7127 | // ARM64 |
| 7128 | // Stability: development |
| 7129 | HostArchARM64 = HostArchKey.String("arm64") |
| 7130 | // Itanium |
| 7131 | // Stability: development |
| 7132 | HostArchIA64 = HostArchKey.String("ia64") |
| 7133 | // 32-bit PowerPC |
| 7134 | // Stability: development |
| 7135 | HostArchPPC32 = HostArchKey.String("ppc32") |
| 7136 | // 64-bit PowerPC |
| 7137 | // Stability: development |
| 7138 | HostArchPPC64 = HostArchKey.String("ppc64") |
| 7139 | // IBM z/Architecture |
| 7140 | // Stability: development |
| 7141 | HostArchS390x = HostArchKey.String("s390x") |
| 7142 | // 32-bit x86 |
| 7143 | // Stability: development |
| 7144 | HostArchX86 = HostArchKey.String("x86") |
| 7145 | ) |
| 7146 | |
| 7147 | // Namespace: http |
| 7148 | const ( |
| 7149 | // HTTPConnectionStateKey is the attribute Key conforming to the |
| 7150 | // "http.connection.state" semantic conventions. It represents the state of the |
| 7151 | // HTTP connection in the HTTP connection pool. |
| 7152 | // |
| 7153 | // Type: Enum |
| 7154 | // RequirementLevel: Recommended |
| 7155 | // Stability: Development |
| 7156 | // |
| 7157 | // Examples: "active", "idle" |
| 7158 | HTTPConnectionStateKey = attribute.Key("http.connection.state") |
| 7159 | |
| 7160 | // HTTPRequestBodySizeKey is the attribute Key conforming to the |
| 7161 | // "http.request.body.size" semantic conventions. It represents the size of the |
| 7162 | // request payload body in bytes. This is the number of bytes transferred |
| 7163 | // excluding headers and is often, but not always, present as the |
| 7164 | // [Content-Length] header. For requests using transport encoding, this should |
| 7165 | // be the compressed size. |
| 7166 | // |
| 7167 | // Type: int |
| 7168 | // RequirementLevel: Recommended |
| 7169 | // Stability: Development |
| 7170 | // |
| 7171 | // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length |
| 7172 | HTTPRequestBodySizeKey = attribute.Key("http.request.body.size") |
| 7173 | |
| 7174 | // HTTPRequestMethodKey is the attribute Key conforming to the |
| 7175 | // "http.request.method" semantic conventions. It represents the HTTP request |
| 7176 | // method. |
| 7177 | // |
| 7178 | // Type: Enum |
| 7179 | // RequirementLevel: Recommended |
| 7180 | // Stability: Stable |
| 7181 | // |
| 7182 | // Examples: "GET", "POST", "HEAD" |
| 7183 | // Note: HTTP request method value SHOULD be "known" to the instrumentation. |
| 7184 | // By default, this convention defines "known" methods as the ones listed in |
| 7185 | // [RFC9110] |
| 7186 | // and the PATCH method defined in [RFC5789]. |
| 7187 | // |
| 7188 | // If the HTTP request method is not known to instrumentation, it MUST set the |
| 7189 | // `http.request.method` attribute to `_OTHER`. |
| 7190 | // |
| 7191 | // If the HTTP instrumentation could end up converting valid HTTP request |
| 7192 | // methods to `_OTHER`, then it MUST provide a way to override |
| 7193 | // the list of known HTTP methods. If this override is done via environment |
| 7194 | // variable, then the environment variable MUST be named |
| 7195 | // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of |
| 7196 | // case-sensitive known HTTP methods |
| 7197 | // (this list MUST be a full override of the default known method, it is not a |
| 7198 | // list of known methods in addition to the defaults). |
| 7199 | // |
| 7200 | // HTTP method names are case-sensitive and `http.request.method` attribute |
| 7201 | // value MUST match a known HTTP method name exactly. |
| 7202 | // Instrumentations for specific web frameworks that consider HTTP methods to be |
| 7203 | // case insensitive, SHOULD populate a canonical equivalent. |
| 7204 | // Tracing instrumentations that do so, MUST also set |
| 7205 | // `http.request.method_original` to the original value. |
| 7206 | // |
| 7207 | // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods |
| 7208 | // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html |
| 7209 | HTTPRequestMethodKey = attribute.Key("http.request.method") |
| 7210 | |
| 7211 | // HTTPRequestMethodOriginalKey is the attribute Key conforming to the |
| 7212 | // "http.request.method_original" semantic conventions. It represents the |
| 7213 | // original HTTP method sent by the client in the request line. |
| 7214 | // |
| 7215 | // Type: string |
| 7216 | // RequirementLevel: Recommended |
| 7217 | // Stability: Stable |
| 7218 | // |
| 7219 | // Examples: "GeT", "ACL", "foo" |
| 7220 | HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original") |
| 7221 | |
| 7222 | // HTTPRequestResendCountKey is the attribute Key conforming to the |
| 7223 | // "http.request.resend_count" semantic conventions. It represents the ordinal |
| 7224 | // number of request resending attempt (for any reason, including redirects). |
| 7225 | // |
| 7226 | // Type: int |
| 7227 | // RequirementLevel: Recommended |
| 7228 | // Stability: Stable |
| 7229 | // |
| 7230 | // Note: The resend count SHOULD be updated each time an HTTP request gets |
| 7231 | // resent by the client, regardless of what was the cause of the resending (e.g. |
| 7232 | // redirection, authorization failure, 503 Server Unavailable, network issues, |
| 7233 | // or any other). |
| 7234 | HTTPRequestResendCountKey = attribute.Key("http.request.resend_count") |
| 7235 | |
| 7236 | // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size" |
| 7237 | // semantic conventions. It represents the total size of the request in bytes. |
| 7238 | // This should be the total number of bytes sent over the wire, including the |
| 7239 | // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request |
| 7240 | // body if any. |
| 7241 | // |
| 7242 | // Type: int |
| 7243 | // RequirementLevel: Recommended |
| 7244 | // Stability: Development |
| 7245 | HTTPRequestSizeKey = attribute.Key("http.request.size") |
| 7246 | |
| 7247 | // HTTPResponseBodySizeKey is the attribute Key conforming to the |
| 7248 | // "http.response.body.size" semantic conventions. It represents the size of the |
| 7249 | // response payload body in bytes. This is the number of bytes transferred |
| 7250 | // excluding headers and is often, but not always, present as the |
| 7251 | // [Content-Length] header. For requests using transport encoding, this should |
| 7252 | // be the compressed size. |
| 7253 | // |
| 7254 | // Type: int |
| 7255 | // RequirementLevel: Recommended |
| 7256 | // Stability: Development |
| 7257 | // |
| 7258 | // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length |
| 7259 | HTTPResponseBodySizeKey = attribute.Key("http.response.body.size") |
| 7260 | |
| 7261 | // HTTPResponseSizeKey is the attribute Key conforming to the |
| 7262 | // "http.response.size" semantic conventions. It represents the total size of |
| 7263 | // the response in bytes. This should be the total number of bytes sent over the |
| 7264 | // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), |
| 7265 | // headers, and response body and trailers if any. |
| 7266 | // |
| 7267 | // Type: int |
| 7268 | // RequirementLevel: Recommended |
| 7269 | // Stability: Development |
| 7270 | HTTPResponseSizeKey = attribute.Key("http.response.size") |
| 7271 | |
| 7272 | // HTTPResponseStatusCodeKey is the attribute Key conforming to the |
| 7273 | // "http.response.status_code" semantic conventions. It represents the |
| 7274 | // [HTTP response status code]. |
| 7275 | // |
| 7276 | // Type: int |
| 7277 | // RequirementLevel: Recommended |
| 7278 | // Stability: Stable |
| 7279 | // |
| 7280 | // Examples: 200 |
| 7281 | // |
| 7282 | // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 |
| 7283 | HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code") |
| 7284 | |
| 7285 | // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic |
| 7286 | // conventions. It represents the matched route, that is, the path template in |
| 7287 | // the format used by the respective server framework. |
| 7288 | // |
| 7289 | // Type: string |
| 7290 | // RequirementLevel: Recommended |
| 7291 | // Stability: Stable |
| 7292 | // |
| 7293 | // Examples: "/users/:userID?", "{controller}/{action}/{id?}" |
| 7294 | // Note: MUST NOT be populated when this is not supported by the HTTP server |
| 7295 | // framework as the route attribute should have low-cardinality and the URI path |
| 7296 | // can NOT substitute it. |
| 7297 | // SHOULD include the [application root] if there is one. |
| 7298 | // |
| 7299 | // [application root]: /docs/http/http-spans.md#http-server-definitions |
| 7300 | HTTPRouteKey = attribute.Key("http.route") |
| 7301 | ) |
| 7302 | |
| 7303 | // HTTPRequestBodySize returns an attribute KeyValue conforming to the |
| 7304 | // "http.request.body.size" semantic conventions. It represents the size of the |
| 7305 | // request payload body in bytes. This is the number of bytes transferred |
| 7306 | // excluding headers and is often, but not always, present as the |
| 7307 | // [Content-Length] header. For requests using transport encoding, this should be |
| 7308 | // the compressed size. |
| 7309 | // |
| 7310 | // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length |
| 7311 | func HTTPRequestBodySize(val int) attribute.KeyValue { |
| 7312 | return HTTPRequestBodySizeKey.Int(val) |
| 7313 | } |
| 7314 | |
| 7315 | // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the |
| 7316 | // "http.request.method_original" semantic conventions. It represents the |
| 7317 | // original HTTP method sent by the client in the request line. |
| 7318 | func HTTPRequestMethodOriginal(val string) attribute.KeyValue { |
| 7319 | return HTTPRequestMethodOriginalKey.String(val) |
| 7320 | } |
| 7321 | |
| 7322 | // HTTPRequestResendCount returns an attribute KeyValue conforming to the |
| 7323 | // "http.request.resend_count" semantic conventions. It represents the ordinal |
| 7324 | // number of request resending attempt (for any reason, including redirects). |
| 7325 | func HTTPRequestResendCount(val int) attribute.KeyValue { |
| 7326 | return HTTPRequestResendCountKey.Int(val) |
| 7327 | } |
| 7328 | |
| 7329 | // HTTPRequestSize returns an attribute KeyValue conforming to the |
| 7330 | // "http.request.size" semantic conventions. It represents the total size of the |
| 7331 | // request in bytes. This should be the total number of bytes sent over the wire, |
| 7332 | // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, |
| 7333 | // and request body if any. |
| 7334 | func HTTPRequestSize(val int) attribute.KeyValue { |
| 7335 | return HTTPRequestSizeKey.Int(val) |
| 7336 | } |
| 7337 | |
| 7338 | // HTTPResponseBodySize returns an attribute KeyValue conforming to the |
| 7339 | // "http.response.body.size" semantic conventions. It represents the size of the |
| 7340 | // response payload body in bytes. This is the number of bytes transferred |
| 7341 | // excluding headers and is often, but not always, present as the |
| 7342 | // [Content-Length] header. For requests using transport encoding, this should be |
| 7343 | // the compressed size. |
| 7344 | // |
| 7345 | // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length |
| 7346 | func HTTPResponseBodySize(val int) attribute.KeyValue { |
| 7347 | return HTTPResponseBodySizeKey.Int(val) |
| 7348 | } |
| 7349 | |
| 7350 | // HTTPResponseSize returns an attribute KeyValue conforming to the |
| 7351 | // "http.response.size" semantic conventions. It represents the total size of the |
| 7352 | // response in bytes. This should be the total number of bytes sent over the |
| 7353 | // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), |
| 7354 | // headers, and response body and trailers if any. |
| 7355 | func HTTPResponseSize(val int) attribute.KeyValue { |
| 7356 | return HTTPResponseSizeKey.Int(val) |
| 7357 | } |
| 7358 | |
| 7359 | // HTTPResponseStatusCode returns an attribute KeyValue conforming to the |
| 7360 | // "http.response.status_code" semantic conventions. It represents the |
| 7361 | // [HTTP response status code]. |
| 7362 | // |
| 7363 | // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 |
| 7364 | func HTTPResponseStatusCode(val int) attribute.KeyValue { |
| 7365 | return HTTPResponseStatusCodeKey.Int(val) |
| 7366 | } |
| 7367 | |
| 7368 | // HTTPRoute returns an attribute KeyValue conforming to the "http.route" |
| 7369 | // semantic conventions. It represents the matched route, that is, the path |
| 7370 | // template in the format used by the respective server framework. |
| 7371 | func HTTPRoute(val string) attribute.KeyValue { |
| 7372 | return HTTPRouteKey.String(val) |
| 7373 | } |
| 7374 | |
| 7375 | // Enum values for http.connection.state |
| 7376 | var ( |
| 7377 | // active state. |
| 7378 | // Stability: development |
| 7379 | HTTPConnectionStateActive = HTTPConnectionStateKey.String("active") |
| 7380 | // idle state. |
| 7381 | // Stability: development |
| 7382 | HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle") |
| 7383 | ) |
| 7384 | |
| 7385 | // Enum values for http.request.method |
| 7386 | var ( |
| 7387 | // CONNECT method. |
| 7388 | // Stability: stable |
| 7389 | HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT") |
| 7390 | // DELETE method. |
| 7391 | // Stability: stable |
| 7392 | HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE") |
| 7393 | // GET method. |
| 7394 | // Stability: stable |
| 7395 | HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET") |
| 7396 | // HEAD method. |
| 7397 | // Stability: stable |
| 7398 | HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD") |
| 7399 | // OPTIONS method. |
| 7400 | // Stability: stable |
| 7401 | HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS") |
| 7402 | // PATCH method. |
| 7403 | // Stability: stable |
| 7404 | HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH") |
| 7405 | // POST method. |
| 7406 | // Stability: stable |
| 7407 | HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST") |
| 7408 | // PUT method. |
| 7409 | // Stability: stable |
| 7410 | HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT") |
| 7411 | // TRACE method. |
| 7412 | // Stability: stable |
| 7413 | HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE") |
| 7414 | // Any HTTP method that the instrumentation has no prior knowledge of. |
| 7415 | // Stability: stable |
| 7416 | HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER") |
| 7417 | ) |
| 7418 | |
| 7419 | // Namespace: hw |
| 7420 | const ( |
| 7421 | // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions. |
| 7422 | // It represents an identifier for the hardware component, unique within the |
| 7423 | // monitored host. |
| 7424 | // |
| 7425 | // Type: string |
| 7426 | // RequirementLevel: Recommended |
| 7427 | // Stability: Development |
| 7428 | // |
| 7429 | // Examples: "win32battery_battery_testsysa33_1" |
| 7430 | HwIDKey = attribute.Key("hw.id") |
| 7431 | |
| 7432 | // HwNameKey is the attribute Key conforming to the "hw.name" semantic |
| 7433 | // conventions. It represents an easily-recognizable name for the hardware |
| 7434 | // component. |
| 7435 | // |
| 7436 | // Type: string |
| 7437 | // RequirementLevel: Recommended |
| 7438 | // Stability: Development |
| 7439 | // |
| 7440 | // Examples: "eth0" |
| 7441 | HwNameKey = attribute.Key("hw.name") |
| 7442 | |
| 7443 | // HwParentKey is the attribute Key conforming to the "hw.parent" semantic |
| 7444 | // conventions. It represents the unique identifier of the parent component |
| 7445 | // (typically the `hw.id` attribute of the enclosure, or disk controller). |
| 7446 | // |
| 7447 | // Type: string |
| 7448 | // RequirementLevel: Recommended |
| 7449 | // Stability: Development |
| 7450 | // |
| 7451 | // Examples: "dellStorage_perc_0" |
| 7452 | HwParentKey = attribute.Key("hw.parent") |
| 7453 | |
| 7454 | // HwStateKey is the attribute Key conforming to the "hw.state" semantic |
| 7455 | // conventions. It represents the current state of the component. |
| 7456 | // |
| 7457 | // Type: Enum |
| 7458 | // RequirementLevel: Recommended |
| 7459 | // Stability: Development |
| 7460 | // |
| 7461 | // Examples: |
| 7462 | HwStateKey = attribute.Key("hw.state") |
| 7463 | |
| 7464 | // HwTypeKey is the attribute Key conforming to the "hw.type" semantic |
| 7465 | // conventions. It represents the type of the component. |
| 7466 | // |
| 7467 | // Type: Enum |
| 7468 | // RequirementLevel: Recommended |
| 7469 | // Stability: Development |
| 7470 | // |
| 7471 | // Examples: |
| 7472 | // Note: Describes the category of the hardware component for which `hw.state` |
| 7473 | // is being reported. For example, `hw.type=temperature` along with |
| 7474 | // `hw.state=degraded` would indicate that the temperature of the hardware |
| 7475 | // component has been reported as `degraded`. |
| 7476 | HwTypeKey = attribute.Key("hw.type") |
| 7477 | ) |
| 7478 | |
| 7479 | // HwID returns an attribute KeyValue conforming to the "hw.id" semantic |
| 7480 | // conventions. It represents an identifier for the hardware component, unique |
| 7481 | // within the monitored host. |
| 7482 | func HwID(val string) attribute.KeyValue { |
| 7483 | return HwIDKey.String(val) |
| 7484 | } |
| 7485 | |
| 7486 | // HwName returns an attribute KeyValue conforming to the "hw.name" semantic |
| 7487 | // conventions. It represents an easily-recognizable name for the hardware |
| 7488 | // component. |
| 7489 | func HwName(val string) attribute.KeyValue { |
| 7490 | return HwNameKey.String(val) |
| 7491 | } |
| 7492 | |
| 7493 | // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic |
| 7494 | // conventions. It represents the unique identifier of the parent component |
| 7495 | // (typically the `hw.id` attribute of the enclosure, or disk controller). |
| 7496 | func HwParent(val string) attribute.KeyValue { |
| 7497 | return HwParentKey.String(val) |
| 7498 | } |
| 7499 | |
| 7500 | // Enum values for hw.state |
| 7501 | var ( |
| 7502 | // Ok |
| 7503 | // Stability: development |
| 7504 | HwStateOk = HwStateKey.String("ok") |
| 7505 | // Degraded |
| 7506 | // Stability: development |
| 7507 | HwStateDegraded = HwStateKey.String("degraded") |
| 7508 | // Failed |
| 7509 | // Stability: development |
| 7510 | HwStateFailed = HwStateKey.String("failed") |
| 7511 | ) |
| 7512 | |
| 7513 | // Enum values for hw.type |
| 7514 | var ( |
| 7515 | // Battery |
| 7516 | // Stability: development |
| 7517 | HwTypeBattery = HwTypeKey.String("battery") |
| 7518 | // CPU |
| 7519 | // Stability: development |
| 7520 | HwTypeCPU = HwTypeKey.String("cpu") |
| 7521 | // Disk controller |
| 7522 | // Stability: development |
| 7523 | HwTypeDiskController = HwTypeKey.String("disk_controller") |
| 7524 | // Enclosure |
| 7525 | // Stability: development |
| 7526 | HwTypeEnclosure = HwTypeKey.String("enclosure") |
| 7527 | // Fan |
| 7528 | // Stability: development |
| 7529 | HwTypeFan = HwTypeKey.String("fan") |
| 7530 | // GPU |
| 7531 | // Stability: development |
| 7532 | HwTypeGpu = HwTypeKey.String("gpu") |
| 7533 | // Logical disk |
| 7534 | // Stability: development |
| 7535 | HwTypeLogicalDisk = HwTypeKey.String("logical_disk") |
| 7536 | // Memory |
| 7537 | // Stability: development |
| 7538 | HwTypeMemory = HwTypeKey.String("memory") |
| 7539 | // Network |
| 7540 | // Stability: development |
| 7541 | HwTypeNetwork = HwTypeKey.String("network") |
| 7542 | // Physical disk |
| 7543 | // Stability: development |
| 7544 | HwTypePhysicalDisk = HwTypeKey.String("physical_disk") |
| 7545 | // Power supply |
| 7546 | // Stability: development |
| 7547 | HwTypePowerSupply = HwTypeKey.String("power_supply") |
| 7548 | // Tape drive |
| 7549 | // Stability: development |
| 7550 | HwTypeTapeDrive = HwTypeKey.String("tape_drive") |
| 7551 | // Temperature |
| 7552 | // Stability: development |
| 7553 | HwTypeTemperature = HwTypeKey.String("temperature") |
| 7554 | // Voltage |
| 7555 | // Stability: development |
| 7556 | HwTypeVoltage = HwTypeKey.String("voltage") |
| 7557 | ) |
| 7558 | |
| 7559 | // Namespace: ios |
| 7560 | const ( |
| 7561 | // IOSAppStateKey is the attribute Key conforming to the "ios.app.state" |
| 7562 | // semantic conventions. It represents the this attribute represents the state |
| 7563 | // of the application. |
| 7564 | // |
| 7565 | // Type: Enum |
| 7566 | // RequirementLevel: Recommended |
| 7567 | // Stability: Development |
| 7568 | // |
| 7569 | // Examples: |
| 7570 | // Note: The iOS lifecycle states are defined in the |
| 7571 | // [UIApplicationDelegate documentation], and from which the `OS terminology` |
| 7572 | // column values are derived. |
| 7573 | // |
| 7574 | // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate |
| 7575 | IOSAppStateKey = attribute.Key("ios.app.state") |
| 7576 | ) |
| 7577 | |
| 7578 | // Enum values for ios.app.state |
| 7579 | var ( |
| 7580 | // The app has become `active`. Associated with UIKit notification |
| 7581 | // `applicationDidBecomeActive`. |
| 7582 | // |
| 7583 | // Stability: development |
| 7584 | IOSAppStateActive = IOSAppStateKey.String("active") |
| 7585 | // The app is now `inactive`. Associated with UIKit notification |
| 7586 | // `applicationWillResignActive`. |
| 7587 | // |
| 7588 | // Stability: development |
| 7589 | IOSAppStateInactive = IOSAppStateKey.String("inactive") |
| 7590 | // The app is now in the background. This value is associated with UIKit |
| 7591 | // notification `applicationDidEnterBackground`. |
| 7592 | // |
| 7593 | // Stability: development |
| 7594 | IOSAppStateBackground = IOSAppStateKey.String("background") |
| 7595 | // The app is now in the foreground. This value is associated with UIKit |
| 7596 | // notification `applicationWillEnterForeground`. |
| 7597 | // |
| 7598 | // Stability: development |
| 7599 | IOSAppStateForeground = IOSAppStateKey.String("foreground") |
| 7600 | // The app is about to terminate. Associated with UIKit notification |
| 7601 | // `applicationWillTerminate`. |
| 7602 | // |
| 7603 | // Stability: development |
| 7604 | IOSAppStateTerminate = IOSAppStateKey.String("terminate") |
| 7605 | ) |
| 7606 | |
| 7607 | // Namespace: k8s |
| 7608 | const ( |
| 7609 | // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name" |
| 7610 | // semantic conventions. It represents the name of the cluster. |
| 7611 | // |
| 7612 | // Type: string |
| 7613 | // RequirementLevel: Recommended |
| 7614 | // Stability: Development |
| 7615 | // |
| 7616 | // Examples: "opentelemetry-cluster" |
| 7617 | K8SClusterNameKey = attribute.Key("k8s.cluster.name") |
| 7618 | |
| 7619 | // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid" |
| 7620 | // semantic conventions. It represents a pseudo-ID for the cluster, set to the |
| 7621 | // UID of the `kube-system` namespace. |
| 7622 | // |
| 7623 | // Type: string |
| 7624 | // RequirementLevel: Recommended |
| 7625 | // Stability: Development |
| 7626 | // |
| 7627 | // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" |
| 7628 | // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever |
| 7629 | // added, we will recommend collecting the `k8s.cluster.uid` through the |
| 7630 | // official APIs. In the meantime, we are able to use the `uid` of the |
| 7631 | // `kube-system` namespace as a proxy for cluster ID. Read on for the |
| 7632 | // rationale. |
| 7633 | // |
| 7634 | // Every object created in a K8s cluster is assigned a distinct UID. The |
| 7635 | // `kube-system` namespace is used by Kubernetes itself and will exist |
| 7636 | // for the lifetime of the cluster. Using the `uid` of the `kube-system` |
| 7637 | // namespace is a reasonable proxy for the K8s ClusterID as it will only |
| 7638 | // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are |
| 7639 | // UUIDs as standardized by |
| 7640 | // [ISO/IEC 9834-8 and ITU-T X.667]. |
| 7641 | // Which states: |
| 7642 | // |
| 7643 | // > If generated according to one of the mechanisms defined in Rec. |
| 7644 | // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be |
| 7645 | // > different from all other UUIDs generated before 3603 A.D., or is |
| 7646 | // > extremely likely to be different (depending on the mechanism chosen). |
| 7647 | // |
| 7648 | // Therefore, UIDs between clusters should be extremely unlikely to |
| 7649 | // conflict. |
| 7650 | // |
| 7651 | // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html |
| 7652 | K8SClusterUIDKey = attribute.Key("k8s.cluster.uid") |
| 7653 | |
| 7654 | // K8SContainerNameKey is the attribute Key conforming to the |
| 7655 | // "k8s.container.name" semantic conventions. It represents the name of the |
| 7656 | // Container from Pod specification, must be unique within a Pod. Container |
| 7657 | // runtime usually uses different globally unique name (`container.name`). |
| 7658 | // |
| 7659 | // Type: string |
| 7660 | // RequirementLevel: Recommended |
| 7661 | // Stability: Development |
| 7662 | // |
| 7663 | // Examples: "redis" |
| 7664 | K8SContainerNameKey = attribute.Key("k8s.container.name") |
| 7665 | |
| 7666 | // K8SContainerRestartCountKey is the attribute Key conforming to the |
| 7667 | // "k8s.container.restart_count" semantic conventions. It represents the number |
| 7668 | // of times the container was restarted. This attribute can be used to identify |
| 7669 | // a particular container (running or stopped) within a container spec. |
| 7670 | // |
| 7671 | // Type: int |
| 7672 | // RequirementLevel: Recommended |
| 7673 | // Stability: Development |
| 7674 | // |
| 7675 | // Examples: |
| 7676 | K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count") |
| 7677 | |
| 7678 | // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to |
| 7679 | // the "k8s.container.status.last_terminated_reason" semantic conventions. It |
| 7680 | // represents the last terminated reason of the Container. |
| 7681 | // |
| 7682 | // Type: string |
| 7683 | // RequirementLevel: Recommended |
| 7684 | // Stability: Development |
| 7685 | // |
| 7686 | // Examples: "Evicted", "Error" |
| 7687 | K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason") |
| 7688 | |
| 7689 | // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name" |
| 7690 | // semantic conventions. It represents the name of the CronJob. |
| 7691 | // |
| 7692 | // Type: string |
| 7693 | // RequirementLevel: Recommended |
| 7694 | // Stability: Development |
| 7695 | // |
| 7696 | // Examples: "opentelemetry" |
| 7697 | K8SCronJobNameKey = attribute.Key("k8s.cronjob.name") |
| 7698 | |
| 7699 | // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid" |
| 7700 | // semantic conventions. It represents the UID of the CronJob. |
| 7701 | // |
| 7702 | // Type: string |
| 7703 | // RequirementLevel: Recommended |
| 7704 | // Stability: Development |
| 7705 | // |
| 7706 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7707 | K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid") |
| 7708 | |
| 7709 | // K8SDaemonSetNameKey is the attribute Key conforming to the |
| 7710 | // "k8s.daemonset.name" semantic conventions. It represents the name of the |
| 7711 | // DaemonSet. |
| 7712 | // |
| 7713 | // Type: string |
| 7714 | // RequirementLevel: Recommended |
| 7715 | // Stability: Development |
| 7716 | // |
| 7717 | // Examples: "opentelemetry" |
| 7718 | K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name") |
| 7719 | |
| 7720 | // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid" |
| 7721 | // semantic conventions. It represents the UID of the DaemonSet. |
| 7722 | // |
| 7723 | // Type: string |
| 7724 | // RequirementLevel: Recommended |
| 7725 | // Stability: Development |
| 7726 | // |
| 7727 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7728 | K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid") |
| 7729 | |
| 7730 | // K8SDeploymentNameKey is the attribute Key conforming to the |
| 7731 | // "k8s.deployment.name" semantic conventions. It represents the name of the |
| 7732 | // Deployment. |
| 7733 | // |
| 7734 | // Type: string |
| 7735 | // RequirementLevel: Recommended |
| 7736 | // Stability: Development |
| 7737 | // |
| 7738 | // Examples: "opentelemetry" |
| 7739 | K8SDeploymentNameKey = attribute.Key("k8s.deployment.name") |
| 7740 | |
| 7741 | // K8SDeploymentUIDKey is the attribute Key conforming to the |
| 7742 | // "k8s.deployment.uid" semantic conventions. It represents the UID of the |
| 7743 | // Deployment. |
| 7744 | // |
| 7745 | // Type: string |
| 7746 | // RequirementLevel: Recommended |
| 7747 | // Stability: Development |
| 7748 | // |
| 7749 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7750 | K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid") |
| 7751 | |
| 7752 | // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic |
| 7753 | // conventions. It represents the name of the horizontal pod autoscaler. |
| 7754 | // |
| 7755 | // Type: string |
| 7756 | // RequirementLevel: Recommended |
| 7757 | // Stability: Development |
| 7758 | // |
| 7759 | // Examples: "opentelemetry" |
| 7760 | K8SHPANameKey = attribute.Key("k8s.hpa.name") |
| 7761 | |
| 7762 | // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic |
| 7763 | // conventions. It represents the UID of the horizontal pod autoscaler. |
| 7764 | // |
| 7765 | // Type: string |
| 7766 | // RequirementLevel: Recommended |
| 7767 | // Stability: Development |
| 7768 | // |
| 7769 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7770 | K8SHPAUIDKey = attribute.Key("k8s.hpa.uid") |
| 7771 | |
| 7772 | // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic |
| 7773 | // conventions. It represents the name of the Job. |
| 7774 | // |
| 7775 | // Type: string |
| 7776 | // RequirementLevel: Recommended |
| 7777 | // Stability: Development |
| 7778 | // |
| 7779 | // Examples: "opentelemetry" |
| 7780 | K8SJobNameKey = attribute.Key("k8s.job.name") |
| 7781 | |
| 7782 | // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic |
| 7783 | // conventions. It represents the UID of the Job. |
| 7784 | // |
| 7785 | // Type: string |
| 7786 | // RequirementLevel: Recommended |
| 7787 | // Stability: Development |
| 7788 | // |
| 7789 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7790 | K8SJobUIDKey = attribute.Key("k8s.job.uid") |
| 7791 | |
| 7792 | // K8SNamespaceNameKey is the attribute Key conforming to the |
| 7793 | // "k8s.namespace.name" semantic conventions. It represents the name of the |
| 7794 | // namespace that the pod is running in. |
| 7795 | // |
| 7796 | // Type: string |
| 7797 | // RequirementLevel: Recommended |
| 7798 | // Stability: Development |
| 7799 | // |
| 7800 | // Examples: "default" |
| 7801 | K8SNamespaceNameKey = attribute.Key("k8s.namespace.name") |
| 7802 | |
| 7803 | // K8SNamespacePhaseKey is the attribute Key conforming to the |
| 7804 | // "k8s.namespace.phase" semantic conventions. It represents the phase of the |
| 7805 | // K8s namespace. |
| 7806 | // |
| 7807 | // Type: Enum |
| 7808 | // RequirementLevel: Recommended |
| 7809 | // Stability: Development |
| 7810 | // |
| 7811 | // Examples: "active", "terminating" |
| 7812 | // Note: This attribute aligns with the `phase` field of the |
| 7813 | // [K8s NamespaceStatus] |
| 7814 | // |
| 7815 | // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core |
| 7816 | K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase") |
| 7817 | |
| 7818 | // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name" |
| 7819 | // semantic conventions. It represents the name of the Node. |
| 7820 | // |
| 7821 | // Type: string |
| 7822 | // RequirementLevel: Recommended |
| 7823 | // Stability: Development |
| 7824 | // |
| 7825 | // Examples: "node-1" |
| 7826 | K8SNodeNameKey = attribute.Key("k8s.node.name") |
| 7827 | |
| 7828 | // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic |
| 7829 | // conventions. It represents the UID of the Node. |
| 7830 | // |
| 7831 | // Type: string |
| 7832 | // RequirementLevel: Recommended |
| 7833 | // Stability: Development |
| 7834 | // |
| 7835 | // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2" |
| 7836 | K8SNodeUIDKey = attribute.Key("k8s.node.uid") |
| 7837 | |
| 7838 | // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic |
| 7839 | // conventions. It represents the name of the Pod. |
| 7840 | // |
| 7841 | // Type: string |
| 7842 | // RequirementLevel: Recommended |
| 7843 | // Stability: Development |
| 7844 | // |
| 7845 | // Examples: "opentelemetry-pod-autoconf" |
| 7846 | K8SPodNameKey = attribute.Key("k8s.pod.name") |
| 7847 | |
| 7848 | // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic |
| 7849 | // conventions. It represents the UID of the Pod. |
| 7850 | // |
| 7851 | // Type: string |
| 7852 | // RequirementLevel: Recommended |
| 7853 | // Stability: Development |
| 7854 | // |
| 7855 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7856 | K8SPodUIDKey = attribute.Key("k8s.pod.uid") |
| 7857 | |
| 7858 | // K8SReplicaSetNameKey is the attribute Key conforming to the |
| 7859 | // "k8s.replicaset.name" semantic conventions. It represents the name of the |
| 7860 | // ReplicaSet. |
| 7861 | // |
| 7862 | // Type: string |
| 7863 | // RequirementLevel: Recommended |
| 7864 | // Stability: Development |
| 7865 | // |
| 7866 | // Examples: "opentelemetry" |
| 7867 | K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name") |
| 7868 | |
| 7869 | // K8SReplicaSetUIDKey is the attribute Key conforming to the |
| 7870 | // "k8s.replicaset.uid" semantic conventions. It represents the UID of the |
| 7871 | // ReplicaSet. |
| 7872 | // |
| 7873 | // Type: string |
| 7874 | // RequirementLevel: Recommended |
| 7875 | // Stability: Development |
| 7876 | // |
| 7877 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7878 | K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid") |
| 7879 | |
| 7880 | // K8SReplicationControllerNameKey is the attribute Key conforming to the |
| 7881 | // "k8s.replicationcontroller.name" semantic conventions. It represents the name |
| 7882 | // of the replication controller. |
| 7883 | // |
| 7884 | // Type: string |
| 7885 | // RequirementLevel: Recommended |
| 7886 | // Stability: Development |
| 7887 | // |
| 7888 | // Examples: "opentelemetry" |
| 7889 | K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name") |
| 7890 | |
| 7891 | // K8SReplicationControllerUIDKey is the attribute Key conforming to the |
| 7892 | // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID |
| 7893 | // of the replication controller. |
| 7894 | // |
| 7895 | // Type: string |
| 7896 | // RequirementLevel: Recommended |
| 7897 | // Stability: Development |
| 7898 | // |
| 7899 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7900 | K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid") |
| 7901 | |
| 7902 | // K8SResourceQuotaNameKey is the attribute Key conforming to the |
| 7903 | // "k8s.resourcequota.name" semantic conventions. It represents the name of the |
| 7904 | // resource quota. |
| 7905 | // |
| 7906 | // Type: string |
| 7907 | // RequirementLevel: Recommended |
| 7908 | // Stability: Development |
| 7909 | // |
| 7910 | // Examples: "opentelemetry" |
| 7911 | K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name") |
| 7912 | |
| 7913 | // K8SResourceQuotaUIDKey is the attribute Key conforming to the |
| 7914 | // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the |
| 7915 | // resource quota. |
| 7916 | // |
| 7917 | // Type: string |
| 7918 | // RequirementLevel: Recommended |
| 7919 | // Stability: Development |
| 7920 | // |
| 7921 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7922 | K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid") |
| 7923 | |
| 7924 | // K8SStatefulSetNameKey is the attribute Key conforming to the |
| 7925 | // "k8s.statefulset.name" semantic conventions. It represents the name of the |
| 7926 | // StatefulSet. |
| 7927 | // |
| 7928 | // Type: string |
| 7929 | // RequirementLevel: Recommended |
| 7930 | // Stability: Development |
| 7931 | // |
| 7932 | // Examples: "opentelemetry" |
| 7933 | K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name") |
| 7934 | |
| 7935 | // K8SStatefulSetUIDKey is the attribute Key conforming to the |
| 7936 | // "k8s.statefulset.uid" semantic conventions. It represents the UID of the |
| 7937 | // StatefulSet. |
| 7938 | // |
| 7939 | // Type: string |
| 7940 | // RequirementLevel: Recommended |
| 7941 | // Stability: Development |
| 7942 | // |
| 7943 | // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" |
| 7944 | K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid") |
| 7945 | |
| 7946 | // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name" |
| 7947 | // semantic conventions. It represents the name of the K8s volume. |
| 7948 | // |
| 7949 | // Type: string |
| 7950 | // RequirementLevel: Recommended |
| 7951 | // Stability: Development |
| 7952 | // |
| 7953 | // Examples: "volume0" |
| 7954 | K8SVolumeNameKey = attribute.Key("k8s.volume.name") |
| 7955 | |
| 7956 | // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type" |
| 7957 | // semantic conventions. It represents the type of the K8s volume. |
| 7958 | // |
| 7959 | // Type: Enum |
| 7960 | // RequirementLevel: Recommended |
| 7961 | // Stability: Development |
| 7962 | // |
| 7963 | // Examples: "emptyDir", "persistentVolumeClaim" |
| 7964 | K8SVolumeTypeKey = attribute.Key("k8s.volume.type") |
| 7965 | ) |
| 7966 | |
| 7967 | // K8SClusterName returns an attribute KeyValue conforming to the |
| 7968 | // "k8s.cluster.name" semantic conventions. It represents the name of the |
| 7969 | // cluster. |
| 7970 | func K8SClusterName(val string) attribute.KeyValue { |
| 7971 | return K8SClusterNameKey.String(val) |
| 7972 | } |
| 7973 | |
| 7974 | // K8SClusterUID returns an attribute KeyValue conforming to the |
| 7975 | // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the |
| 7976 | // cluster, set to the UID of the `kube-system` namespace. |
| 7977 | func K8SClusterUID(val string) attribute.KeyValue { |
| 7978 | return K8SClusterUIDKey.String(val) |
| 7979 | } |
| 7980 | |
| 7981 | // K8SContainerName returns an attribute KeyValue conforming to the |
| 7982 | // "k8s.container.name" semantic conventions. It represents the name of the |
| 7983 | // Container from Pod specification, must be unique within a Pod. Container |
| 7984 | // runtime usually uses different globally unique name (`container.name`). |
| 7985 | func K8SContainerName(val string) attribute.KeyValue { |
| 7986 | return K8SContainerNameKey.String(val) |
| 7987 | } |
| 7988 | |
| 7989 | // K8SContainerRestartCount returns an attribute KeyValue conforming to the |
| 7990 | // "k8s.container.restart_count" semantic conventions. It represents the number |
| 7991 | // of times the container was restarted. This attribute can be used to identify a |
| 7992 | // particular container (running or stopped) within a container spec. |
| 7993 | func K8SContainerRestartCount(val int) attribute.KeyValue { |
| 7994 | return K8SContainerRestartCountKey.Int(val) |
| 7995 | } |
| 7996 | |
| 7997 | // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue |
| 7998 | // conforming to the "k8s.container.status.last_terminated_reason" semantic |
| 7999 | // conventions. It represents the last terminated reason of the Container. |
| 8000 | func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue { |
| 8001 | return K8SContainerStatusLastTerminatedReasonKey.String(val) |
| 8002 | } |
| 8003 | |
| 8004 | // K8SCronJobName returns an attribute KeyValue conforming to the |
| 8005 | // "k8s.cronjob.name" semantic conventions. It represents the name of the |
| 8006 | // CronJob. |
| 8007 | func K8SCronJobName(val string) attribute.KeyValue { |
| 8008 | return K8SCronJobNameKey.String(val) |
| 8009 | } |
| 8010 | |
| 8011 | // K8SCronJobUID returns an attribute KeyValue conforming to the |
| 8012 | // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. |
| 8013 | func K8SCronJobUID(val string) attribute.KeyValue { |
| 8014 | return K8SCronJobUIDKey.String(val) |
| 8015 | } |
| 8016 | |
| 8017 | // K8SDaemonSetName returns an attribute KeyValue conforming to the |
| 8018 | // "k8s.daemonset.name" semantic conventions. It represents the name of the |
| 8019 | // DaemonSet. |
| 8020 | func K8SDaemonSetName(val string) attribute.KeyValue { |
| 8021 | return K8SDaemonSetNameKey.String(val) |
| 8022 | } |
| 8023 | |
| 8024 | // K8SDaemonSetUID returns an attribute KeyValue conforming to the |
| 8025 | // "k8s.daemonset.uid" semantic conventions. It represents the UID of the |
| 8026 | // DaemonSet. |
| 8027 | func K8SDaemonSetUID(val string) attribute.KeyValue { |
| 8028 | return K8SDaemonSetUIDKey.String(val) |
| 8029 | } |
| 8030 | |
| 8031 | // K8SDeploymentName returns an attribute KeyValue conforming to the |
| 8032 | // "k8s.deployment.name" semantic conventions. It represents the name of the |
| 8033 | // Deployment. |
| 8034 | func K8SDeploymentName(val string) attribute.KeyValue { |
| 8035 | return K8SDeploymentNameKey.String(val) |
| 8036 | } |
| 8037 | |
| 8038 | // K8SDeploymentUID returns an attribute KeyValue conforming to the |
| 8039 | // "k8s.deployment.uid" semantic conventions. It represents the UID of the |
| 8040 | // Deployment. |
| 8041 | func K8SDeploymentUID(val string) attribute.KeyValue { |
| 8042 | return K8SDeploymentUIDKey.String(val) |
| 8043 | } |
| 8044 | |
| 8045 | // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name" |
| 8046 | // semantic conventions. It represents the name of the horizontal pod autoscaler. |
| 8047 | func K8SHPAName(val string) attribute.KeyValue { |
| 8048 | return K8SHPANameKey.String(val) |
| 8049 | } |
| 8050 | |
| 8051 | // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid" |
| 8052 | // semantic conventions. It represents the UID of the horizontal pod autoscaler. |
| 8053 | func K8SHPAUID(val string) attribute.KeyValue { |
| 8054 | return K8SHPAUIDKey.String(val) |
| 8055 | } |
| 8056 | |
| 8057 | // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name" |
| 8058 | // semantic conventions. It represents the name of the Job. |
| 8059 | func K8SJobName(val string) attribute.KeyValue { |
| 8060 | return K8SJobNameKey.String(val) |
| 8061 | } |
| 8062 | |
| 8063 | // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid" |
| 8064 | // semantic conventions. It represents the UID of the Job. |
| 8065 | func K8SJobUID(val string) attribute.KeyValue { |
| 8066 | return K8SJobUIDKey.String(val) |
| 8067 | } |
| 8068 | |
| 8069 | // K8SNamespaceName returns an attribute KeyValue conforming to the |
| 8070 | // "k8s.namespace.name" semantic conventions. It represents the name of the |
| 8071 | // namespace that the pod is running in. |
| 8072 | func K8SNamespaceName(val string) attribute.KeyValue { |
| 8073 | return K8SNamespaceNameKey.String(val) |
| 8074 | } |
| 8075 | |
| 8076 | // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name" |
| 8077 | // semantic conventions. It represents the name of the Node. |
| 8078 | func K8SNodeName(val string) attribute.KeyValue { |
| 8079 | return K8SNodeNameKey.String(val) |
| 8080 | } |
| 8081 | |
| 8082 | // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid" |
| 8083 | // semantic conventions. It represents the UID of the Node. |
| 8084 | func K8SNodeUID(val string) attribute.KeyValue { |
| 8085 | return K8SNodeUIDKey.String(val) |
| 8086 | } |
| 8087 | |
| 8088 | // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name" |
| 8089 | // semantic conventions. It represents the name of the Pod. |
| 8090 | func K8SPodName(val string) attribute.KeyValue { |
| 8091 | return K8SPodNameKey.String(val) |
| 8092 | } |
| 8093 | |
| 8094 | // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid" |
| 8095 | // semantic conventions. It represents the UID of the Pod. |
| 8096 | func K8SPodUID(val string) attribute.KeyValue { |
| 8097 | return K8SPodUIDKey.String(val) |
| 8098 | } |
| 8099 | |
| 8100 | // K8SReplicaSetName returns an attribute KeyValue conforming to the |
| 8101 | // "k8s.replicaset.name" semantic conventions. It represents the name of the |
| 8102 | // ReplicaSet. |
| 8103 | func K8SReplicaSetName(val string) attribute.KeyValue { |
| 8104 | return K8SReplicaSetNameKey.String(val) |
| 8105 | } |
| 8106 | |
| 8107 | // K8SReplicaSetUID returns an attribute KeyValue conforming to the |
| 8108 | // "k8s.replicaset.uid" semantic conventions. It represents the UID of the |
| 8109 | // ReplicaSet. |
| 8110 | func K8SReplicaSetUID(val string) attribute.KeyValue { |
| 8111 | return K8SReplicaSetUIDKey.String(val) |
| 8112 | } |
| 8113 | |
| 8114 | // K8SReplicationControllerName returns an attribute KeyValue conforming to the |
| 8115 | // "k8s.replicationcontroller.name" semantic conventions. It represents the name |
| 8116 | // of the replication controller. |
| 8117 | func K8SReplicationControllerName(val string) attribute.KeyValue { |
| 8118 | return K8SReplicationControllerNameKey.String(val) |
| 8119 | } |
| 8120 | |
| 8121 | // K8SReplicationControllerUID returns an attribute KeyValue conforming to the |
| 8122 | // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of |
| 8123 | // the replication controller. |
| 8124 | func K8SReplicationControllerUID(val string) attribute.KeyValue { |
| 8125 | return K8SReplicationControllerUIDKey.String(val) |
| 8126 | } |
| 8127 | |
| 8128 | // K8SResourceQuotaName returns an attribute KeyValue conforming to the |
| 8129 | // "k8s.resourcequota.name" semantic conventions. It represents the name of the |
| 8130 | // resource quota. |
| 8131 | func K8SResourceQuotaName(val string) attribute.KeyValue { |
| 8132 | return K8SResourceQuotaNameKey.String(val) |
| 8133 | } |
| 8134 | |
| 8135 | // K8SResourceQuotaUID returns an attribute KeyValue conforming to the |
| 8136 | // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the |
| 8137 | // resource quota. |
| 8138 | func K8SResourceQuotaUID(val string) attribute.KeyValue { |
| 8139 | return K8SResourceQuotaUIDKey.String(val) |
| 8140 | } |
| 8141 | |
| 8142 | // K8SStatefulSetName returns an attribute KeyValue conforming to the |
| 8143 | // "k8s.statefulset.name" semantic conventions. It represents the name of the |
| 8144 | // StatefulSet. |
| 8145 | func K8SStatefulSetName(val string) attribute.KeyValue { |
| 8146 | return K8SStatefulSetNameKey.String(val) |
| 8147 | } |
| 8148 | |
| 8149 | // K8SStatefulSetUID returns an attribute KeyValue conforming to the |
| 8150 | // "k8s.statefulset.uid" semantic conventions. It represents the UID of the |
| 8151 | // StatefulSet. |
| 8152 | func K8SStatefulSetUID(val string) attribute.KeyValue { |
| 8153 | return K8SStatefulSetUIDKey.String(val) |
| 8154 | } |
| 8155 | |
| 8156 | // K8SVolumeName returns an attribute KeyValue conforming to the |
| 8157 | // "k8s.volume.name" semantic conventions. It represents the name of the K8s |
| 8158 | // volume. |
| 8159 | func K8SVolumeName(val string) attribute.KeyValue { |
| 8160 | return K8SVolumeNameKey.String(val) |
| 8161 | } |
| 8162 | |
| 8163 | // Enum values for k8s.namespace.phase |
| 8164 | var ( |
| 8165 | // Active namespace phase as described by [K8s API] |
| 8166 | // Stability: development |
| 8167 | // |
| 8168 | // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase |
| 8169 | K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active") |
| 8170 | // Terminating namespace phase as described by [K8s API] |
| 8171 | // Stability: development |
| 8172 | // |
| 8173 | // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase |
| 8174 | K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating") |
| 8175 | ) |
| 8176 | |
| 8177 | // Enum values for k8s.volume.type |
| 8178 | var ( |
| 8179 | // A [persistentVolumeClaim] volume |
| 8180 | // Stability: development |
| 8181 | // |
| 8182 | // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim |
| 8183 | K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim") |
| 8184 | // A [configMap] volume |
| 8185 | // Stability: development |
| 8186 | // |
| 8187 | // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap |
| 8188 | K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap") |
| 8189 | // A [downwardAPI] volume |
| 8190 | // Stability: development |
| 8191 | // |
| 8192 | // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi |
| 8193 | K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI") |
| 8194 | // An [emptyDir] volume |
| 8195 | // Stability: development |
| 8196 | // |
| 8197 | // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir |
| 8198 | K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir") |
| 8199 | // A [secret] volume |
| 8200 | // Stability: development |
| 8201 | // |
| 8202 | // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret |
| 8203 | K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret") |
| 8204 | // A [local] volume |
| 8205 | // Stability: development |
| 8206 | // |
| 8207 | // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local |
| 8208 | K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local") |
| 8209 | ) |
| 8210 | |
| 8211 | // Namespace: linux |
| 8212 | const ( |
| 8213 | // LinuxMemorySlabStateKey is the attribute Key conforming to the |
| 8214 | // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab |
| 8215 | // memory state. |
| 8216 | // |
| 8217 | // Type: Enum |
| 8218 | // RequirementLevel: Recommended |
| 8219 | // Stability: Development |
| 8220 | // |
| 8221 | // Examples: "reclaimable", "unreclaimable" |
| 8222 | LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state") |
| 8223 | ) |
| 8224 | |
| 8225 | // Enum values for linux.memory.slab.state |
| 8226 | var ( |
| 8227 | // reclaimable |
| 8228 | // Stability: development |
| 8229 | LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable") |
| 8230 | // unreclaimable |
| 8231 | // Stability: development |
| 8232 | LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable") |
| 8233 | ) |
| 8234 | |
| 8235 | // Namespace: log |
| 8236 | const ( |
| 8237 | // LogFileNameKey is the attribute Key conforming to the "log.file.name" |
| 8238 | // semantic conventions. It represents the basename of the file. |
| 8239 | // |
| 8240 | // Type: string |
| 8241 | // RequirementLevel: Recommended |
| 8242 | // Stability: Development |
| 8243 | // |
| 8244 | // Examples: "audit.log" |
| 8245 | LogFileNameKey = attribute.Key("log.file.name") |
| 8246 | |
| 8247 | // LogFileNameResolvedKey is the attribute Key conforming to the |
| 8248 | // "log.file.name_resolved" semantic conventions. It represents the basename of |
| 8249 | // the file, with symlinks resolved. |
| 8250 | // |
| 8251 | // Type: string |
| 8252 | // RequirementLevel: Recommended |
| 8253 | // Stability: Development |
| 8254 | // |
| 8255 | // Examples: "uuid.log" |
| 8256 | LogFileNameResolvedKey = attribute.Key("log.file.name_resolved") |
| 8257 | |
| 8258 | // LogFilePathKey is the attribute Key conforming to the "log.file.path" |
| 8259 | // semantic conventions. It represents the full path to the file. |
| 8260 | // |
| 8261 | // Type: string |
| 8262 | // RequirementLevel: Recommended |
| 8263 | // Stability: Development |
| 8264 | // |
| 8265 | // Examples: "/var/log/mysql/audit.log" |
| 8266 | LogFilePathKey = attribute.Key("log.file.path") |
| 8267 | |
| 8268 | // LogFilePathResolvedKey is the attribute Key conforming to the |
| 8269 | // "log.file.path_resolved" semantic conventions. It represents the full path to |
| 8270 | // the file, with symlinks resolved. |
| 8271 | // |
| 8272 | // Type: string |
| 8273 | // RequirementLevel: Recommended |
| 8274 | // Stability: Development |
| 8275 | // |
| 8276 | // Examples: "/var/lib/docker/uuid.log" |
| 8277 | LogFilePathResolvedKey = attribute.Key("log.file.path_resolved") |
| 8278 | |
| 8279 | // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic |
| 8280 | // conventions. It represents the stream associated with the log. See below for |
| 8281 | // a list of well-known values. |
| 8282 | // |
| 8283 | // Type: Enum |
| 8284 | // RequirementLevel: Recommended |
| 8285 | // Stability: Development |
| 8286 | // |
| 8287 | // Examples: |
| 8288 | LogIostreamKey = attribute.Key("log.iostream") |
| 8289 | |
| 8290 | // LogRecordOriginalKey is the attribute Key conforming to the |
| 8291 | // "log.record.original" semantic conventions. It represents the complete |
| 8292 | // original Log Record. |
| 8293 | // |
| 8294 | // Type: string |
| 8295 | // RequirementLevel: Recommended |
| 8296 | // Stability: Development |
| 8297 | // |
| 8298 | // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - |
| 8299 | // Something happened", "[INFO] 8/3/24 12:34:56 Something happened" |
| 8300 | // Note: This value MAY be added when processing a Log Record which was |
| 8301 | // originally transmitted as a string or equivalent data type AND the Body field |
| 8302 | // of the Log Record does not contain the same value. (e.g. a syslog or a log |
| 8303 | // record read from a file.) |
| 8304 | LogRecordOriginalKey = attribute.Key("log.record.original") |
| 8305 | |
| 8306 | // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid" |
| 8307 | // semantic conventions. It represents a unique identifier for the Log Record. |
| 8308 | // |
| 8309 | // Type: string |
| 8310 | // RequirementLevel: Recommended |
| 8311 | // Stability: Development |
| 8312 | // |
| 8313 | // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV" |
| 8314 | // Note: If an id is provided, other log records with the same id will be |
| 8315 | // considered duplicates and can be removed safely. This means, that two |
| 8316 | // distinguishable log records MUST have different values. |
| 8317 | // The id MAY be an |
| 8318 | // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other |
| 8319 | // identifiers (e.g. UUID) may be used as needed. |
| 8320 | // |
| 8321 | // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec |
| 8322 | LogRecordUIDKey = attribute.Key("log.record.uid") |
| 8323 | ) |
| 8324 | |
| 8325 | // LogFileName returns an attribute KeyValue conforming to the "log.file.name" |
| 8326 | // semantic conventions. It represents the basename of the file. |
| 8327 | func LogFileName(val string) attribute.KeyValue { |
| 8328 | return LogFileNameKey.String(val) |
| 8329 | } |
| 8330 | |
| 8331 | // LogFileNameResolved returns an attribute KeyValue conforming to the |
| 8332 | // "log.file.name_resolved" semantic conventions. It represents the basename of |
| 8333 | // the file, with symlinks resolved. |
| 8334 | func LogFileNameResolved(val string) attribute.KeyValue { |
| 8335 | return LogFileNameResolvedKey.String(val) |
| 8336 | } |
| 8337 | |
| 8338 | // LogFilePath returns an attribute KeyValue conforming to the "log.file.path" |
| 8339 | // semantic conventions. It represents the full path to the file. |
| 8340 | func LogFilePath(val string) attribute.KeyValue { |
| 8341 | return LogFilePathKey.String(val) |
| 8342 | } |
| 8343 | |
| 8344 | // LogFilePathResolved returns an attribute KeyValue conforming to the |
| 8345 | // "log.file.path_resolved" semantic conventions. It represents the full path to |
| 8346 | // the file, with symlinks resolved. |
| 8347 | func LogFilePathResolved(val string) attribute.KeyValue { |
| 8348 | return LogFilePathResolvedKey.String(val) |
| 8349 | } |
| 8350 | |
| 8351 | // LogRecordOriginal returns an attribute KeyValue conforming to the |
| 8352 | // "log.record.original" semantic conventions. It represents the complete |
| 8353 | // original Log Record. |
| 8354 | func LogRecordOriginal(val string) attribute.KeyValue { |
| 8355 | return LogRecordOriginalKey.String(val) |
| 8356 | } |
| 8357 | |
| 8358 | // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid" |
| 8359 | // semantic conventions. It represents a unique identifier for the Log Record. |
| 8360 | func LogRecordUID(val string) attribute.KeyValue { |
| 8361 | return LogRecordUIDKey.String(val) |
| 8362 | } |
| 8363 | |
| 8364 | // Enum values for log.iostream |
| 8365 | var ( |
| 8366 | // Logs from stdout stream |
| 8367 | // Stability: development |
| 8368 | LogIostreamStdout = LogIostreamKey.String("stdout") |
| 8369 | // Events from stderr stream |
| 8370 | // Stability: development |
| 8371 | LogIostreamStderr = LogIostreamKey.String("stderr") |
| 8372 | ) |
| 8373 | |
| 8374 | // Namespace: messaging |
| 8375 | const ( |
| 8376 | // MessagingBatchMessageCountKey is the attribute Key conforming to the |
| 8377 | // "messaging.batch.message_count" semantic conventions. It represents the |
| 8378 | // number of messages sent, received, or processed in the scope of the batching |
| 8379 | // operation. |
| 8380 | // |
| 8381 | // Type: int |
| 8382 | // RequirementLevel: Recommended |
| 8383 | // Stability: Development |
| 8384 | // |
| 8385 | // Examples: 0, 1, 2 |
| 8386 | // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on |
| 8387 | // spans that operate with a single message. When a messaging client library |
| 8388 | // supports both batch and single-message API for the same operation, |
| 8389 | // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs |
| 8390 | // and SHOULD NOT use it for single-message APIs. |
| 8391 | MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count") |
| 8392 | |
| 8393 | // MessagingClientIDKey is the attribute Key conforming to the |
| 8394 | // "messaging.client.id" semantic conventions. It represents a unique identifier |
| 8395 | // for the client that consumes or produces a message. |
| 8396 | // |
| 8397 | // Type: string |
| 8398 | // RequirementLevel: Recommended |
| 8399 | // Stability: Development |
| 8400 | // |
| 8401 | // Examples: "client-5", "myhost@8742@s8083jm" |
| 8402 | MessagingClientIDKey = attribute.Key("messaging.client.id") |
| 8403 | |
| 8404 | // MessagingConsumerGroupNameKey is the attribute Key conforming to the |
| 8405 | // "messaging.consumer.group.name" semantic conventions. It represents the name |
| 8406 | // of the consumer group with which a consumer is associated. |
| 8407 | // |
| 8408 | // Type: string |
| 8409 | // RequirementLevel: Recommended |
| 8410 | // Stability: Development |
| 8411 | // |
| 8412 | // Examples: "my-group", "indexer" |
| 8413 | // Note: Semantic conventions for individual messaging systems SHOULD document |
| 8414 | // whether `messaging.consumer.group.name` is applicable and what it means in |
| 8415 | // the context of that system. |
| 8416 | MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name") |
| 8417 | |
| 8418 | // MessagingDestinationAnonymousKey is the attribute Key conforming to the |
| 8419 | // "messaging.destination.anonymous" semantic conventions. It represents a |
| 8420 | // boolean that is true if the message destination is anonymous (could be |
| 8421 | // unnamed or have auto-generated name). |
| 8422 | // |
| 8423 | // Type: boolean |
| 8424 | // RequirementLevel: Recommended |
| 8425 | // Stability: Development |
| 8426 | // |
| 8427 | // Examples: |
| 8428 | MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous") |
| 8429 | |
| 8430 | // MessagingDestinationNameKey is the attribute Key conforming to the |
| 8431 | // "messaging.destination.name" semantic conventions. It represents the message |
| 8432 | // destination name. |
| 8433 | // |
| 8434 | // Type: string |
| 8435 | // RequirementLevel: Recommended |
| 8436 | // Stability: Development |
| 8437 | // |
| 8438 | // Examples: "MyQueue", "MyTopic" |
| 8439 | // Note: Destination name SHOULD uniquely identify a specific queue, topic or |
| 8440 | // other entity within the broker. If |
| 8441 | // the broker doesn't have such notion, the destination name SHOULD uniquely |
| 8442 | // identify the broker. |
| 8443 | MessagingDestinationNameKey = attribute.Key("messaging.destination.name") |
| 8444 | |
| 8445 | // MessagingDestinationPartitionIDKey is the attribute Key conforming to the |
| 8446 | // "messaging.destination.partition.id" semantic conventions. It represents the |
| 8447 | // identifier of the partition messages are sent to or received from, unique |
| 8448 | // within the `messaging.destination.name`. |
| 8449 | // |
| 8450 | // Type: string |
| 8451 | // RequirementLevel: Recommended |
| 8452 | // Stability: Development |
| 8453 | // |
| 8454 | // Examples: 1 |
| 8455 | MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id") |
| 8456 | |
| 8457 | // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to |
| 8458 | // the "messaging.destination.subscription.name" semantic conventions. It |
| 8459 | // represents the name of the destination subscription from which a message is |
| 8460 | // consumed. |
| 8461 | // |
| 8462 | // Type: string |
| 8463 | // RequirementLevel: Recommended |
| 8464 | // Stability: Development |
| 8465 | // |
| 8466 | // Examples: "subscription-a" |
| 8467 | // Note: Semantic conventions for individual messaging systems SHOULD document |
| 8468 | // whether `messaging.destination.subscription.name` is applicable and what it |
| 8469 | // means in the context of that system. |
| 8470 | MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name") |
| 8471 | |
| 8472 | // MessagingDestinationTemplateKey is the attribute Key conforming to the |
| 8473 | // "messaging.destination.template" semantic conventions. It represents the low |
| 8474 | // cardinality representation of the messaging destination name. |
| 8475 | // |
| 8476 | // Type: string |
| 8477 | // RequirementLevel: Recommended |
| 8478 | // Stability: Development |
| 8479 | // |
| 8480 | // Examples: "/customers/{customerId}" |
| 8481 | // Note: Destination names could be constructed from templates. An example would |
| 8482 | // be a destination name involving a user name or product id. Although the |
| 8483 | // destination name in this case is of high cardinality, the underlying template |
| 8484 | // is of low cardinality and can be effectively used for grouping and |
| 8485 | // aggregation. |
| 8486 | MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template") |
| 8487 | |
| 8488 | // MessagingDestinationTemporaryKey is the attribute Key conforming to the |
| 8489 | // "messaging.destination.temporary" semantic conventions. It represents a |
| 8490 | // boolean that is true if the message destination is temporary and might not |
| 8491 | // exist anymore after messages are processed. |
| 8492 | // |
| 8493 | // Type: boolean |
| 8494 | // RequirementLevel: Recommended |
| 8495 | // Stability: Development |
| 8496 | // |
| 8497 | // Examples: |
| 8498 | MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary") |
| 8499 | |
| 8500 | // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to |
| 8501 | // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It |
| 8502 | // represents the UTC epoch seconds at which the message has been accepted and |
| 8503 | // stored in the entity. |
| 8504 | // |
| 8505 | // Type: int |
| 8506 | // RequirementLevel: Recommended |
| 8507 | // Stability: Development |
| 8508 | MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time") |
| 8509 | |
| 8510 | // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to |
| 8511 | // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It |
| 8512 | // represents the ack deadline in seconds set for the modify ack deadline |
| 8513 | // request. |
| 8514 | // |
| 8515 | // Type: int |
| 8516 | // RequirementLevel: Recommended |
| 8517 | // Stability: Development |
| 8518 | MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline") |
| 8519 | |
| 8520 | // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the |
| 8521 | // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the |
| 8522 | // ack id for a given message. |
| 8523 | // |
| 8524 | // Type: string |
| 8525 | // RequirementLevel: Recommended |
| 8526 | // Stability: Development |
| 8527 | // |
| 8528 | // Examples: ack_id |
| 8529 | MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id") |
| 8530 | |
| 8531 | // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming |
| 8532 | // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. |
| 8533 | // It represents the delivery attempt for a given message. |
| 8534 | // |
| 8535 | // Type: int |
| 8536 | // RequirementLevel: Recommended |
| 8537 | // Stability: Development |
| 8538 | MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt") |
| 8539 | |
| 8540 | // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to |
| 8541 | // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It |
| 8542 | // represents the ordering key for a given message. If the attribute is not |
| 8543 | // present, the message does not have an ordering key. |
| 8544 | // |
| 8545 | // Type: string |
| 8546 | // RequirementLevel: Recommended |
| 8547 | // Stability: Development |
| 8548 | // |
| 8549 | // Examples: ordering_key |
| 8550 | MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key") |
| 8551 | |
| 8552 | // MessagingKafkaMessageKeyKey is the attribute Key conforming to the |
| 8553 | // "messaging.kafka.message.key" semantic conventions. It represents the message |
| 8554 | // keys in Kafka are used for grouping alike messages to ensure they're |
| 8555 | // processed on the same partition. They differ from `messaging.message.id` in |
| 8556 | // that they're not unique. If the key is `null`, the attribute MUST NOT be set. |
| 8557 | // |
| 8558 | // Type: string |
| 8559 | // RequirementLevel: Recommended |
| 8560 | // Stability: Development |
| 8561 | // |
| 8562 | // Examples: myKey |
| 8563 | // Note: If the key type is not string, it's string representation has to be |
| 8564 | // supplied for the attribute. If the key has no unambiguous, canonical string |
| 8565 | // form, don't include its value. |
| 8566 | MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key") |
| 8567 | |
| 8568 | // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the |
| 8569 | // "messaging.kafka.message.tombstone" semantic conventions. It represents a |
| 8570 | // boolean that is true if the message is a tombstone. |
| 8571 | // |
| 8572 | // Type: boolean |
| 8573 | // RequirementLevel: Recommended |
| 8574 | // Stability: Development |
| 8575 | // |
| 8576 | // Examples: |
| 8577 | MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone") |
| 8578 | |
| 8579 | // MessagingKafkaOffsetKey is the attribute Key conforming to the |
| 8580 | // "messaging.kafka.offset" semantic conventions. It represents the offset of a |
| 8581 | // record in the corresponding Kafka partition. |
| 8582 | // |
| 8583 | // Type: int |
| 8584 | // RequirementLevel: Recommended |
| 8585 | // Stability: Development |
| 8586 | MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset") |
| 8587 | |
| 8588 | // MessagingMessageBodySizeKey is the attribute Key conforming to the |
| 8589 | // "messaging.message.body.size" semantic conventions. It represents the size of |
| 8590 | // the message body in bytes. |
| 8591 | // |
| 8592 | // Type: int |
| 8593 | // RequirementLevel: Recommended |
| 8594 | // Stability: Development |
| 8595 | // |
| 8596 | // Note: This can refer to both the compressed or uncompressed body size. If |
| 8597 | // both sizes are known, the uncompressed |
| 8598 | // body size should be used. |
| 8599 | MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size") |
| 8600 | |
| 8601 | // MessagingMessageConversationIDKey is the attribute Key conforming to the |
| 8602 | // "messaging.message.conversation_id" semantic conventions. It represents the |
| 8603 | // conversation ID identifying the conversation to which the message belongs, |
| 8604 | // represented as a string. Sometimes called "Correlation ID". |
| 8605 | // |
| 8606 | // Type: string |
| 8607 | // RequirementLevel: Recommended |
| 8608 | // Stability: Development |
| 8609 | // |
| 8610 | // Examples: MyConversationId |
| 8611 | MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id") |
| 8612 | |
| 8613 | // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the |
| 8614 | // "messaging.message.envelope.size" semantic conventions. It represents the |
| 8615 | // size of the message body and metadata in bytes. |
| 8616 | // |
| 8617 | // Type: int |
| 8618 | // RequirementLevel: Recommended |
| 8619 | // Stability: Development |
| 8620 | // |
| 8621 | // Note: This can refer to both the compressed or uncompressed size. If both |
| 8622 | // sizes are known, the uncompressed |
| 8623 | // size should be used. |
| 8624 | MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size") |
| 8625 | |
| 8626 | // MessagingMessageIDKey is the attribute Key conforming to the |
| 8627 | // "messaging.message.id" semantic conventions. It represents a value used by |
| 8628 | // the messaging system as an identifier for the message, represented as a |
| 8629 | // string. |
| 8630 | // |
| 8631 | // Type: string |
| 8632 | // RequirementLevel: Recommended |
| 8633 | // Stability: Development |
| 8634 | // |
| 8635 | // Examples: 452a7c7c7c7048c2f887f61572b18fc2 |
| 8636 | MessagingMessageIDKey = attribute.Key("messaging.message.id") |
| 8637 | |
| 8638 | // MessagingOperationNameKey is the attribute Key conforming to the |
| 8639 | // "messaging.operation.name" semantic conventions. It represents the |
| 8640 | // system-specific name of the messaging operation. |
| 8641 | // |
| 8642 | // Type: string |
| 8643 | // RequirementLevel: Recommended |
| 8644 | // Stability: Development |
| 8645 | // |
| 8646 | // Examples: "ack", "nack", "send" |
| 8647 | MessagingOperationNameKey = attribute.Key("messaging.operation.name") |
| 8648 | |
| 8649 | // MessagingOperationTypeKey is the attribute Key conforming to the |
| 8650 | // "messaging.operation.type" semantic conventions. It represents a string |
| 8651 | // identifying the type of the messaging operation. |
| 8652 | // |
| 8653 | // Type: Enum |
| 8654 | // RequirementLevel: Recommended |
| 8655 | // Stability: Development |
| 8656 | // |
| 8657 | // Examples: |
| 8658 | // Note: If a custom value is used, it MUST be of low cardinality. |
| 8659 | MessagingOperationTypeKey = attribute.Key("messaging.operation.type") |
| 8660 | |
| 8661 | // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to |
| 8662 | // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It |
| 8663 | // represents the rabbitMQ message routing key. |
| 8664 | // |
| 8665 | // Type: string |
| 8666 | // RequirementLevel: Recommended |
| 8667 | // Stability: Development |
| 8668 | // |
| 8669 | // Examples: myKey |
| 8670 | MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key") |
| 8671 | |
| 8672 | // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the |
| 8673 | // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents |
| 8674 | // the rabbitMQ message delivery tag. |
| 8675 | // |
| 8676 | // Type: int |
| 8677 | // RequirementLevel: Recommended |
| 8678 | // Stability: Development |
| 8679 | MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag") |
| 8680 | |
| 8681 | // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the |
| 8682 | // "messaging.rocketmq.consumption_model" semantic conventions. It represents |
| 8683 | // the model of message consumption. This only applies to consumer spans. |
| 8684 | // |
| 8685 | // Type: Enum |
| 8686 | // RequirementLevel: Recommended |
| 8687 | // Stability: Development |
| 8688 | // |
| 8689 | // Examples: |
| 8690 | MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model") |
| 8691 | |
| 8692 | // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to |
| 8693 | // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It |
| 8694 | // represents the delay time level for delay message, which determines the |
| 8695 | // message delay time. |
| 8696 | // |
| 8697 | // Type: int |
| 8698 | // RequirementLevel: Recommended |
| 8699 | // Stability: Development |
| 8700 | MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level") |
| 8701 | |
| 8702 | // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming |
| 8703 | // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. |
| 8704 | // It represents the timestamp in milliseconds that the delay message is |
| 8705 | // expected to be delivered to consumer. |
| 8706 | // |
| 8707 | // Type: int |
| 8708 | // RequirementLevel: Recommended |
| 8709 | // Stability: Development |
| 8710 | MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp") |
| 8711 | |
| 8712 | // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the |
| 8713 | // "messaging.rocketmq.message.group" semantic conventions. It represents the it |
| 8714 | // is essential for FIFO message. Messages that belong to the same message group |
| 8715 | // are always processed one by one within the same consumer group. |
| 8716 | // |
| 8717 | // Type: string |
| 8718 | // RequirementLevel: Recommended |
| 8719 | // Stability: Development |
| 8720 | // |
| 8721 | // Examples: myMessageGroup |
| 8722 | MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group") |
| 8723 | |
| 8724 | // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the |
| 8725 | // "messaging.rocketmq.message.keys" semantic conventions. It represents the |
| 8726 | // key(s) of message, another way to mark message besides message id. |
| 8727 | // |
| 8728 | // Type: string[] |
| 8729 | // RequirementLevel: Recommended |
| 8730 | // Stability: Development |
| 8731 | // |
| 8732 | // Examples: "keyA", "keyB" |
| 8733 | MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys") |
| 8734 | |
| 8735 | // MessagingRocketMQMessageTagKey is the attribute Key conforming to the |
| 8736 | // "messaging.rocketmq.message.tag" semantic conventions. It represents the |
| 8737 | // secondary classifier of message besides topic. |
| 8738 | // |
| 8739 | // Type: string |
| 8740 | // RequirementLevel: Recommended |
| 8741 | // Stability: Development |
| 8742 | // |
| 8743 | // Examples: tagA |
| 8744 | MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag") |
| 8745 | |
| 8746 | // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the |
| 8747 | // "messaging.rocketmq.message.type" semantic conventions. It represents the |
| 8748 | // type of message. |
| 8749 | // |
| 8750 | // Type: Enum |
| 8751 | // RequirementLevel: Recommended |
| 8752 | // Stability: Development |
| 8753 | // |
| 8754 | // Examples: |
| 8755 | MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type") |
| 8756 | |
| 8757 | // MessagingRocketMQNamespaceKey is the attribute Key conforming to the |
| 8758 | // "messaging.rocketmq.namespace" semantic conventions. It represents the |
| 8759 | // namespace of RocketMQ resources, resources in different namespaces are |
| 8760 | // individual. |
| 8761 | // |
| 8762 | // Type: string |
| 8763 | // RequirementLevel: Recommended |
| 8764 | // Stability: Development |
| 8765 | // |
| 8766 | // Examples: myNamespace |
| 8767 | MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace") |
| 8768 | |
| 8769 | // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to |
| 8770 | // the "messaging.servicebus.disposition_status" semantic conventions. It |
| 8771 | // represents the describes the [settlement type]. |
| 8772 | // |
| 8773 | // Type: Enum |
| 8774 | // RequirementLevel: Recommended |
| 8775 | // Stability: Development |
| 8776 | // |
| 8777 | // Examples: |
| 8778 | // |
| 8779 | // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock |
| 8780 | MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status") |
| 8781 | |
| 8782 | // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to |
| 8783 | // the "messaging.servicebus.message.delivery_count" semantic conventions. It |
| 8784 | // represents the number of deliveries that have been attempted for this |
| 8785 | // message. |
| 8786 | // |
| 8787 | // Type: int |
| 8788 | // RequirementLevel: Recommended |
| 8789 | // Stability: Development |
| 8790 | MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count") |
| 8791 | |
| 8792 | // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to |
| 8793 | // the "messaging.servicebus.message.enqueued_time" semantic conventions. It |
| 8794 | // represents the UTC epoch seconds at which the message has been accepted and |
| 8795 | // stored in the entity. |
| 8796 | // |
| 8797 | // Type: int |
| 8798 | // RequirementLevel: Recommended |
| 8799 | // Stability: Development |
| 8800 | MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time") |
| 8801 | |
| 8802 | // MessagingSystemKey is the attribute Key conforming to the "messaging.system" |
| 8803 | // semantic conventions. It represents the messaging system as identified by the |
| 8804 | // client instrumentation. |
| 8805 | // |
| 8806 | // Type: Enum |
| 8807 | // RequirementLevel: Recommended |
| 8808 | // Stability: Development |
| 8809 | // |
| 8810 | // Examples: |
| 8811 | // Note: The actual messaging system may differ from the one known by the |
| 8812 | // client. For example, when using Kafka client libraries to communicate with |
| 8813 | // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the |
| 8814 | // instrumentation's best knowledge. |
| 8815 | MessagingSystemKey = attribute.Key("messaging.system") |
| 8816 | ) |
| 8817 | |
| 8818 | // MessagingBatchMessageCount returns an attribute KeyValue conforming to the |
| 8819 | // "messaging.batch.message_count" semantic conventions. It represents the number |
| 8820 | // of messages sent, received, or processed in the scope of the batching |
| 8821 | // operation. |
| 8822 | func MessagingBatchMessageCount(val int) attribute.KeyValue { |
| 8823 | return MessagingBatchMessageCountKey.Int(val) |
| 8824 | } |
| 8825 | |
| 8826 | // MessagingClientID returns an attribute KeyValue conforming to the |
| 8827 | // "messaging.client.id" semantic conventions. It represents a unique identifier |
| 8828 | // for the client that consumes or produces a message. |
| 8829 | func MessagingClientID(val string) attribute.KeyValue { |
| 8830 | return MessagingClientIDKey.String(val) |
| 8831 | } |
| 8832 | |
| 8833 | // MessagingConsumerGroupName returns an attribute KeyValue conforming to the |
| 8834 | // "messaging.consumer.group.name" semantic conventions. It represents the name |
| 8835 | // of the consumer group with which a consumer is associated. |
| 8836 | func MessagingConsumerGroupName(val string) attribute.KeyValue { |
| 8837 | return MessagingConsumerGroupNameKey.String(val) |
| 8838 | } |
| 8839 | |
| 8840 | // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the |
| 8841 | // "messaging.destination.anonymous" semantic conventions. It represents a |
| 8842 | // boolean that is true if the message destination is anonymous (could be unnamed |
| 8843 | // or have auto-generated name). |
| 8844 | func MessagingDestinationAnonymous(val bool) attribute.KeyValue { |
| 8845 | return MessagingDestinationAnonymousKey.Bool(val) |
| 8846 | } |
| 8847 | |
| 8848 | // MessagingDestinationName returns an attribute KeyValue conforming to the |
| 8849 | // "messaging.destination.name" semantic conventions. It represents the message |
| 8850 | // destination name. |
| 8851 | func MessagingDestinationName(val string) attribute.KeyValue { |
| 8852 | return MessagingDestinationNameKey.String(val) |
| 8853 | } |
| 8854 | |
| 8855 | // MessagingDestinationPartitionID returns an attribute KeyValue conforming to |
| 8856 | // the "messaging.destination.partition.id" semantic conventions. It represents |
| 8857 | // the identifier of the partition messages are sent to or received from, unique |
| 8858 | // within the `messaging.destination.name`. |
| 8859 | func MessagingDestinationPartitionID(val string) attribute.KeyValue { |
| 8860 | return MessagingDestinationPartitionIDKey.String(val) |
| 8861 | } |
| 8862 | |
| 8863 | // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming |
| 8864 | // to the "messaging.destination.subscription.name" semantic conventions. It |
| 8865 | // represents the name of the destination subscription from which a message is |
| 8866 | // consumed. |
| 8867 | func MessagingDestinationSubscriptionName(val string) attribute.KeyValue { |
| 8868 | return MessagingDestinationSubscriptionNameKey.String(val) |
| 8869 | } |
| 8870 | |
| 8871 | // MessagingDestinationTemplate returns an attribute KeyValue conforming to the |
| 8872 | // "messaging.destination.template" semantic conventions. It represents the low |
| 8873 | // cardinality representation of the messaging destination name. |
| 8874 | func MessagingDestinationTemplate(val string) attribute.KeyValue { |
| 8875 | return MessagingDestinationTemplateKey.String(val) |
| 8876 | } |
| 8877 | |
| 8878 | // MessagingDestinationTemporary returns an attribute KeyValue conforming to the |
| 8879 | // "messaging.destination.temporary" semantic conventions. It represents a |
| 8880 | // boolean that is true if the message destination is temporary and might not |
| 8881 | // exist anymore after messages are processed. |
| 8882 | func MessagingDestinationTemporary(val bool) attribute.KeyValue { |
| 8883 | return MessagingDestinationTemporaryKey.Bool(val) |
| 8884 | } |
| 8885 | |
| 8886 | // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming |
| 8887 | // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It |
| 8888 | // represents the UTC epoch seconds at which the message has been accepted and |
| 8889 | // stored in the entity. |
| 8890 | func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue { |
| 8891 | return MessagingEventHubsMessageEnqueuedTimeKey.Int(val) |
| 8892 | } |
| 8893 | |
| 8894 | // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming |
| 8895 | // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It |
| 8896 | // represents the ack deadline in seconds set for the modify ack deadline |
| 8897 | // request. |
| 8898 | func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue { |
| 8899 | return MessagingGCPPubSubMessageAckDeadlineKey.Int(val) |
| 8900 | } |
| 8901 | |
| 8902 | // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the |
| 8903 | // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the |
| 8904 | // ack id for a given message. |
| 8905 | func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue { |
| 8906 | return MessagingGCPPubSubMessageAckIDKey.String(val) |
| 8907 | } |
| 8908 | |
| 8909 | // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue |
| 8910 | // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic |
| 8911 | // conventions. It represents the delivery attempt for a given message. |
| 8912 | func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue { |
| 8913 | return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val) |
| 8914 | } |
| 8915 | |
| 8916 | // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming |
| 8917 | // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It |
| 8918 | // represents the ordering key for a given message. If the attribute is not |
| 8919 | // present, the message does not have an ordering key. |
| 8920 | func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue { |
| 8921 | return MessagingGCPPubSubMessageOrderingKeyKey.String(val) |
| 8922 | } |
| 8923 | |
| 8924 | // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the |
| 8925 | // "messaging.kafka.message.key" semantic conventions. It represents the message |
| 8926 | // keys in Kafka are used for grouping alike messages to ensure they're processed |
| 8927 | // on the same partition. They differ from `messaging.message.id` in that they're |
| 8928 | // not unique. If the key is `null`, the attribute MUST NOT be set. |
| 8929 | func MessagingKafkaMessageKey(val string) attribute.KeyValue { |
| 8930 | return MessagingKafkaMessageKeyKey.String(val) |
| 8931 | } |
| 8932 | |
| 8933 | // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the |
| 8934 | // "messaging.kafka.message.tombstone" semantic conventions. It represents a |
| 8935 | // boolean that is true if the message is a tombstone. |
| 8936 | func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue { |
| 8937 | return MessagingKafkaMessageTombstoneKey.Bool(val) |
| 8938 | } |
| 8939 | |
| 8940 | // MessagingKafkaOffset returns an attribute KeyValue conforming to the |
| 8941 | // "messaging.kafka.offset" semantic conventions. It represents the offset of a |
| 8942 | // record in the corresponding Kafka partition. |
| 8943 | func MessagingKafkaOffset(val int) attribute.KeyValue { |
| 8944 | return MessagingKafkaOffsetKey.Int(val) |
| 8945 | } |
| 8946 | |
| 8947 | // MessagingMessageBodySize returns an attribute KeyValue conforming to the |
| 8948 | // "messaging.message.body.size" semantic conventions. It represents the size of |
| 8949 | // the message body in bytes. |
| 8950 | func MessagingMessageBodySize(val int) attribute.KeyValue { |
| 8951 | return MessagingMessageBodySizeKey.Int(val) |
| 8952 | } |
| 8953 | |
| 8954 | // MessagingMessageConversationID returns an attribute KeyValue conforming to the |
| 8955 | // "messaging.message.conversation_id" semantic conventions. It represents the |
| 8956 | // conversation ID identifying the conversation to which the message belongs, |
| 8957 | // represented as a string. Sometimes called "Correlation ID". |
| 8958 | func MessagingMessageConversationID(val string) attribute.KeyValue { |
| 8959 | return MessagingMessageConversationIDKey.String(val) |
| 8960 | } |
| 8961 | |
| 8962 | // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the |
| 8963 | // "messaging.message.envelope.size" semantic conventions. It represents the size |
| 8964 | // of the message body and metadata in bytes. |
| 8965 | func MessagingMessageEnvelopeSize(val int) attribute.KeyValue { |
| 8966 | return MessagingMessageEnvelopeSizeKey.Int(val) |
| 8967 | } |
| 8968 | |
| 8969 | // MessagingMessageID returns an attribute KeyValue conforming to the |
| 8970 | // "messaging.message.id" semantic conventions. It represents a value used by the |
| 8971 | // messaging system as an identifier for the message, represented as a string. |
| 8972 | func MessagingMessageID(val string) attribute.KeyValue { |
| 8973 | return MessagingMessageIDKey.String(val) |
| 8974 | } |
| 8975 | |
| 8976 | // MessagingOperationName returns an attribute KeyValue conforming to the |
| 8977 | // "messaging.operation.name" semantic conventions. It represents the |
| 8978 | // system-specific name of the messaging operation. |
| 8979 | func MessagingOperationName(val string) attribute.KeyValue { |
| 8980 | return MessagingOperationNameKey.String(val) |
| 8981 | } |
| 8982 | |
| 8983 | // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue |
| 8984 | // conforming to the "messaging.rabbitmq.destination.routing_key" semantic |
| 8985 | // conventions. It represents the rabbitMQ message routing key. |
| 8986 | func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue { |
| 8987 | return MessagingRabbitMQDestinationRoutingKeyKey.String(val) |
| 8988 | } |
| 8989 | |
| 8990 | // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming |
| 8991 | // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It |
| 8992 | // represents the rabbitMQ message delivery tag. |
| 8993 | func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue { |
| 8994 | return MessagingRabbitMQMessageDeliveryTagKey.Int(val) |
| 8995 | } |
| 8996 | |
| 8997 | // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue |
| 8998 | // conforming to the "messaging.rocketmq.message.delay_time_level" semantic |
| 8999 | // conventions. It represents the delay time level for delay message, which |
| 9000 | // determines the message delay time. |
| 9001 | func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue { |
| 9002 | return MessagingRocketMQMessageDelayTimeLevelKey.Int(val) |
| 9003 | } |
| 9004 | |
| 9005 | // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue |
| 9006 | // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic |
| 9007 | // conventions. It represents the timestamp in milliseconds that the delay |
| 9008 | // message is expected to be delivered to consumer. |
| 9009 | func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue { |
| 9010 | return MessagingRocketMQMessageDeliveryTimestampKey.Int(val) |
| 9011 | } |
| 9012 | |
| 9013 | // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the |
| 9014 | // "messaging.rocketmq.message.group" semantic conventions. It represents the it |
| 9015 | // is essential for FIFO message. Messages that belong to the same message group |
| 9016 | // are always processed one by one within the same consumer group. |
| 9017 | func MessagingRocketMQMessageGroup(val string) attribute.KeyValue { |
| 9018 | return MessagingRocketMQMessageGroupKey.String(val) |
| 9019 | } |
| 9020 | |
| 9021 | // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the |
| 9022 | // "messaging.rocketmq.message.keys" semantic conventions. It represents the |
| 9023 | // key(s) of message, another way to mark message besides message id. |
| 9024 | func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue { |
| 9025 | return MessagingRocketMQMessageKeysKey.StringSlice(val) |
| 9026 | } |
| 9027 | |
| 9028 | // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the |
| 9029 | // "messaging.rocketmq.message.tag" semantic conventions. It represents the |
| 9030 | // secondary classifier of message besides topic. |
| 9031 | func MessagingRocketMQMessageTag(val string) attribute.KeyValue { |
| 9032 | return MessagingRocketMQMessageTagKey.String(val) |
| 9033 | } |
| 9034 | |
| 9035 | // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the |
| 9036 | // "messaging.rocketmq.namespace" semantic conventions. It represents the |
| 9037 | // namespace of RocketMQ resources, resources in different namespaces are |
| 9038 | // individual. |
| 9039 | func MessagingRocketMQNamespace(val string) attribute.KeyValue { |
| 9040 | return MessagingRocketMQNamespaceKey.String(val) |
| 9041 | } |
| 9042 | |
| 9043 | // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue |
| 9044 | // conforming to the "messaging.servicebus.message.delivery_count" semantic |
| 9045 | // conventions. It represents the number of deliveries that have been attempted |
| 9046 | // for this message. |
| 9047 | func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue { |
| 9048 | return MessagingServiceBusMessageDeliveryCountKey.Int(val) |
| 9049 | } |
| 9050 | |
| 9051 | // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue |
| 9052 | // conforming to the "messaging.servicebus.message.enqueued_time" semantic |
| 9053 | // conventions. It represents the UTC epoch seconds at which the message has been |
| 9054 | // accepted and stored in the entity. |
| 9055 | func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue { |
| 9056 | return MessagingServiceBusMessageEnqueuedTimeKey.Int(val) |
| 9057 | } |
| 9058 | |
| 9059 | // Enum values for messaging.operation.type |
| 9060 | var ( |
| 9061 | // A message is created. "Create" spans always refer to a single message and are |
| 9062 | // used to provide a unique creation context for messages in batch sending |
| 9063 | // scenarios. |
| 9064 | // |
| 9065 | // Stability: development |
| 9066 | MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create") |
| 9067 | // One or more messages are provided for sending to an intermediary. If a single |
| 9068 | // message is sent, the context of the "Send" span can be used as the creation |
| 9069 | // context and no "Create" span needs to be created. |
| 9070 | // |
| 9071 | // Stability: development |
| 9072 | MessagingOperationTypeSend = MessagingOperationTypeKey.String("send") |
| 9073 | // One or more messages are requested by a consumer. This operation refers to |
| 9074 | // pull-based scenarios, where consumers explicitly call methods of messaging |
| 9075 | // SDKs to receive messages. |
| 9076 | // |
| 9077 | // Stability: development |
| 9078 | MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive") |
| 9079 | // One or more messages are processed by a consumer. |
| 9080 | // |
| 9081 | // Stability: development |
| 9082 | MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process") |
| 9083 | // One or more messages are settled. |
| 9084 | // |
| 9085 | // Stability: development |
| 9086 | MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle") |
| 9087 | // Deprecated: Replaced by `process`. |
| 9088 | MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver") |
| 9089 | // Deprecated: Replaced by `send`. |
| 9090 | MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish") |
| 9091 | ) |
| 9092 | |
| 9093 | // Enum values for messaging.rocketmq.consumption_model |
| 9094 | var ( |
| 9095 | // Clustering consumption model |
| 9096 | // Stability: development |
| 9097 | MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering") |
| 9098 | // Broadcasting consumption model |
| 9099 | // Stability: development |
| 9100 | MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting") |
| 9101 | ) |
| 9102 | |
| 9103 | // Enum values for messaging.rocketmq.message.type |
| 9104 | var ( |
| 9105 | // Normal message |
| 9106 | // Stability: development |
| 9107 | MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal") |
| 9108 | // FIFO message |
| 9109 | // Stability: development |
| 9110 | MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo") |
| 9111 | // Delay message |
| 9112 | // Stability: development |
| 9113 | MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay") |
| 9114 | // Transaction message |
| 9115 | // Stability: development |
| 9116 | MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction") |
| 9117 | ) |
| 9118 | |
| 9119 | // Enum values for messaging.servicebus.disposition_status |
| 9120 | var ( |
| 9121 | // Message is completed |
| 9122 | // Stability: development |
| 9123 | MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete") |
| 9124 | // Message is abandoned |
| 9125 | // Stability: development |
| 9126 | MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon") |
| 9127 | // Message is sent to dead letter queue |
| 9128 | // Stability: development |
| 9129 | MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter") |
| 9130 | // Message is deferred |
| 9131 | // Stability: development |
| 9132 | MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer") |
| 9133 | ) |
| 9134 | |
| 9135 | // Enum values for messaging.system |
| 9136 | var ( |
| 9137 | // Apache ActiveMQ |
| 9138 | // Stability: development |
| 9139 | MessagingSystemActiveMQ = MessagingSystemKey.String("activemq") |
| 9140 | // Amazon Simple Queue Service (SQS) |
| 9141 | // Stability: development |
| 9142 | MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs") |
| 9143 | // Azure Event Grid |
| 9144 | // Stability: development |
| 9145 | MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid") |
| 9146 | // Azure Event Hubs |
| 9147 | // Stability: development |
| 9148 | MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs") |
| 9149 | // Azure Service Bus |
| 9150 | // Stability: development |
| 9151 | MessagingSystemServiceBus = MessagingSystemKey.String("servicebus") |
| 9152 | // Google Cloud Pub/Sub |
| 9153 | // Stability: development |
| 9154 | MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub") |
| 9155 | // Java Message Service |
| 9156 | // Stability: development |
| 9157 | MessagingSystemJMS = MessagingSystemKey.String("jms") |
| 9158 | // Apache Kafka |
| 9159 | // Stability: development |
| 9160 | MessagingSystemKafka = MessagingSystemKey.String("kafka") |
| 9161 | // RabbitMQ |
| 9162 | // Stability: development |
| 9163 | MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq") |
| 9164 | // Apache RocketMQ |
| 9165 | // Stability: development |
| 9166 | MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq") |
| 9167 | // Apache Pulsar |
| 9168 | // Stability: development |
| 9169 | MessagingSystemPulsar = MessagingSystemKey.String("pulsar") |
| 9170 | ) |
| 9171 | |
| 9172 | // Namespace: network |
| 9173 | const ( |
| 9174 | // NetworkCarrierICCKey is the attribute Key conforming to the |
| 9175 | // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 |
| 9176 | // alpha-2 2-character country code associated with the mobile carrier network. |
| 9177 | // |
| 9178 | // Type: string |
| 9179 | // RequirementLevel: Recommended |
| 9180 | // Stability: Development |
| 9181 | // |
| 9182 | // Examples: DE |
| 9183 | NetworkCarrierICCKey = attribute.Key("network.carrier.icc") |
| 9184 | |
| 9185 | // NetworkCarrierMCCKey is the attribute Key conforming to the |
| 9186 | // "network.carrier.mcc" semantic conventions. It represents the mobile carrier |
| 9187 | // country code. |
| 9188 | // |
| 9189 | // Type: string |
| 9190 | // RequirementLevel: Recommended |
| 9191 | // Stability: Development |
| 9192 | // |
| 9193 | // Examples: 310 |
| 9194 | NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc") |
| 9195 | |
| 9196 | // NetworkCarrierMNCKey is the attribute Key conforming to the |
| 9197 | // "network.carrier.mnc" semantic conventions. It represents the mobile carrier |
| 9198 | // network code. |
| 9199 | // |
| 9200 | // Type: string |
| 9201 | // RequirementLevel: Recommended |
| 9202 | // Stability: Development |
| 9203 | // |
| 9204 | // Examples: 001 |
| 9205 | NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc") |
| 9206 | |
| 9207 | // NetworkCarrierNameKey is the attribute Key conforming to the |
| 9208 | // "network.carrier.name" semantic conventions. It represents the name of the |
| 9209 | // mobile carrier. |
| 9210 | // |
| 9211 | // Type: string |
| 9212 | // RequirementLevel: Recommended |
| 9213 | // Stability: Development |
| 9214 | // |
| 9215 | // Examples: sprint |
| 9216 | NetworkCarrierNameKey = attribute.Key("network.carrier.name") |
| 9217 | |
| 9218 | // NetworkConnectionStateKey is the attribute Key conforming to the |
| 9219 | // "network.connection.state" semantic conventions. It represents the state of |
| 9220 | // network connection. |
| 9221 | // |
| 9222 | // Type: Enum |
| 9223 | // RequirementLevel: Recommended |
| 9224 | // Stability: Development |
| 9225 | // |
| 9226 | // Examples: "close_wait" |
| 9227 | // Note: Connection states are defined as part of the [rfc9293] |
| 9228 | // |
| 9229 | // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2 |
| 9230 | NetworkConnectionStateKey = attribute.Key("network.connection.state") |
| 9231 | |
| 9232 | // NetworkConnectionSubtypeKey is the attribute Key conforming to the |
| 9233 | // "network.connection.subtype" semantic conventions. It represents the this |
| 9234 | // describes more details regarding the connection.type. It may be the type of |
| 9235 | // cell technology connection, but it could be used for describing details about |
| 9236 | // a wifi connection. |
| 9237 | // |
| 9238 | // Type: Enum |
| 9239 | // RequirementLevel: Recommended |
| 9240 | // Stability: Development |
| 9241 | // |
| 9242 | // Examples: LTE |
| 9243 | NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype") |
| 9244 | |
| 9245 | // NetworkConnectionTypeKey is the attribute Key conforming to the |
| 9246 | // "network.connection.type" semantic conventions. It represents the internet |
| 9247 | // connection type. |
| 9248 | // |
| 9249 | // Type: Enum |
| 9250 | // RequirementLevel: Recommended |
| 9251 | // Stability: Development |
| 9252 | // |
| 9253 | // Examples: wifi |
| 9254 | NetworkConnectionTypeKey = attribute.Key("network.connection.type") |
| 9255 | |
| 9256 | // NetworkInterfaceNameKey is the attribute Key conforming to the |
| 9257 | // "network.interface.name" semantic conventions. It represents the network |
| 9258 | // interface name. |
| 9259 | // |
| 9260 | // Type: string |
| 9261 | // RequirementLevel: Recommended |
| 9262 | // Stability: Development |
| 9263 | // |
| 9264 | // Examples: "lo", "eth0" |
| 9265 | NetworkInterfaceNameKey = attribute.Key("network.interface.name") |
| 9266 | |
| 9267 | // NetworkIODirectionKey is the attribute Key conforming to the |
| 9268 | // "network.io.direction" semantic conventions. It represents the network IO |
| 9269 | // operation direction. |
| 9270 | // |
| 9271 | // Type: Enum |
| 9272 | // RequirementLevel: Recommended |
| 9273 | // Stability: Development |
| 9274 | // |
| 9275 | // Examples: "transmit" |
| 9276 | NetworkIODirectionKey = attribute.Key("network.io.direction") |
| 9277 | |
| 9278 | // NetworkLocalAddressKey is the attribute Key conforming to the |
| 9279 | // "network.local.address" semantic conventions. It represents the local address |
| 9280 | // of the network connection - IP address or Unix domain socket name. |
| 9281 | // |
| 9282 | // Type: string |
| 9283 | // RequirementLevel: Recommended |
| 9284 | // Stability: Stable |
| 9285 | // |
| 9286 | // Examples: "10.1.2.80", "/tmp/my.sock" |
| 9287 | NetworkLocalAddressKey = attribute.Key("network.local.address") |
| 9288 | |
| 9289 | // NetworkLocalPortKey is the attribute Key conforming to the |
| 9290 | // "network.local.port" semantic conventions. It represents the local port |
| 9291 | // number of the network connection. |
| 9292 | // |
| 9293 | // Type: int |
| 9294 | // RequirementLevel: Recommended |
| 9295 | // Stability: Stable |
| 9296 | // |
| 9297 | // Examples: 65123 |
| 9298 | NetworkLocalPortKey = attribute.Key("network.local.port") |
| 9299 | |
| 9300 | // NetworkPeerAddressKey is the attribute Key conforming to the |
| 9301 | // "network.peer.address" semantic conventions. It represents the peer address |
| 9302 | // of the network connection - IP address or Unix domain socket name. |
| 9303 | // |
| 9304 | // Type: string |
| 9305 | // RequirementLevel: Recommended |
| 9306 | // Stability: Stable |
| 9307 | // |
| 9308 | // Examples: "10.1.2.80", "/tmp/my.sock" |
| 9309 | NetworkPeerAddressKey = attribute.Key("network.peer.address") |
| 9310 | |
| 9311 | // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port" |
| 9312 | // semantic conventions. It represents the peer port number of the network |
| 9313 | // connection. |
| 9314 | // |
| 9315 | // Type: int |
| 9316 | // RequirementLevel: Recommended |
| 9317 | // Stability: Stable |
| 9318 | // |
| 9319 | // Examples: 65123 |
| 9320 | NetworkPeerPortKey = attribute.Key("network.peer.port") |
| 9321 | |
| 9322 | // NetworkProtocolNameKey is the attribute Key conforming to the |
| 9323 | // "network.protocol.name" semantic conventions. It represents the |
| 9324 | // [OSI application layer] or non-OSI equivalent. |
| 9325 | // |
| 9326 | // Type: string |
| 9327 | // RequirementLevel: Recommended |
| 9328 | // Stability: Stable |
| 9329 | // |
| 9330 | // Examples: "amqp", "http", "mqtt" |
| 9331 | // Note: The value SHOULD be normalized to lowercase. |
| 9332 | // |
| 9333 | // [OSI application layer]: https://wikipedia.org/wiki/Application_layer |
| 9334 | NetworkProtocolNameKey = attribute.Key("network.protocol.name") |
| 9335 | |
| 9336 | // NetworkProtocolVersionKey is the attribute Key conforming to the |
| 9337 | // "network.protocol.version" semantic conventions. It represents the actual |
| 9338 | // version of the protocol used for network communication. |
| 9339 | // |
| 9340 | // Type: string |
| 9341 | // RequirementLevel: Recommended |
| 9342 | // Stability: Stable |
| 9343 | // |
| 9344 | // Examples: "1.1", "2" |
| 9345 | // Note: If protocol version is subject to negotiation (for example using [ALPN] |
| 9346 | // ), this attribute SHOULD be set to the negotiated version. If the actual |
| 9347 | // protocol version is not known, this attribute SHOULD NOT be set. |
| 9348 | // |
| 9349 | // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html |
| 9350 | NetworkProtocolVersionKey = attribute.Key("network.protocol.version") |
| 9351 | |
| 9352 | // NetworkTransportKey is the attribute Key conforming to the |
| 9353 | // "network.transport" semantic conventions. It represents the |
| 9354 | // [OSI transport layer] or [inter-process communication method]. |
| 9355 | // |
| 9356 | // Type: Enum |
| 9357 | // RequirementLevel: Recommended |
| 9358 | // Stability: Stable |
| 9359 | // |
| 9360 | // Examples: "tcp", "udp" |
| 9361 | // Note: The value SHOULD be normalized to lowercase. |
| 9362 | // |
| 9363 | // Consider always setting the transport when setting a port number, since |
| 9364 | // a port number is ambiguous without knowing the transport. For example |
| 9365 | // different processes could be listening on TCP port 12345 and UDP port 12345. |
| 9366 | // |
| 9367 | // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer |
| 9368 | // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication |
| 9369 | NetworkTransportKey = attribute.Key("network.transport") |
| 9370 | |
| 9371 | // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic |
| 9372 | // conventions. It represents the [OSI network layer] or non-OSI equivalent. |
| 9373 | // |
| 9374 | // Type: Enum |
| 9375 | // RequirementLevel: Recommended |
| 9376 | // Stability: Stable |
| 9377 | // |
| 9378 | // Examples: "ipv4", "ipv6" |
| 9379 | // Note: The value SHOULD be normalized to lowercase. |
| 9380 | // |
| 9381 | // [OSI network layer]: https://wikipedia.org/wiki/Network_layer |
| 9382 | NetworkTypeKey = attribute.Key("network.type") |
| 9383 | ) |
| 9384 | |
| 9385 | // NetworkCarrierICC returns an attribute KeyValue conforming to the |
| 9386 | // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 |
| 9387 | // alpha-2 2-character country code associated with the mobile carrier network. |
| 9388 | func NetworkCarrierICC(val string) attribute.KeyValue { |
| 9389 | return NetworkCarrierICCKey.String(val) |
| 9390 | } |
| 9391 | |
| 9392 | // NetworkCarrierMCC returns an attribute KeyValue conforming to the |
| 9393 | // "network.carrier.mcc" semantic conventions. It represents the mobile carrier |
| 9394 | // country code. |
| 9395 | func NetworkCarrierMCC(val string) attribute.KeyValue { |
| 9396 | return NetworkCarrierMCCKey.String(val) |
| 9397 | } |
| 9398 | |
| 9399 | // NetworkCarrierMNC returns an attribute KeyValue conforming to the |
| 9400 | // "network.carrier.mnc" semantic conventions. It represents the mobile carrier |
| 9401 | // network code. |
| 9402 | func NetworkCarrierMNC(val string) attribute.KeyValue { |
| 9403 | return NetworkCarrierMNCKey.String(val) |
| 9404 | } |
| 9405 | |
| 9406 | // NetworkCarrierName returns an attribute KeyValue conforming to the |
| 9407 | // "network.carrier.name" semantic conventions. It represents the name of the |
| 9408 | // mobile carrier. |
| 9409 | func NetworkCarrierName(val string) attribute.KeyValue { |
| 9410 | return NetworkCarrierNameKey.String(val) |
| 9411 | } |
| 9412 | |
| 9413 | // NetworkInterfaceName returns an attribute KeyValue conforming to the |
| 9414 | // "network.interface.name" semantic conventions. It represents the network |
| 9415 | // interface name. |
| 9416 | func NetworkInterfaceName(val string) attribute.KeyValue { |
| 9417 | return NetworkInterfaceNameKey.String(val) |
| 9418 | } |
| 9419 | |
| 9420 | // NetworkLocalAddress returns an attribute KeyValue conforming to the |
| 9421 | // "network.local.address" semantic conventions. It represents the local address |
| 9422 | // of the network connection - IP address or Unix domain socket name. |
| 9423 | func NetworkLocalAddress(val string) attribute.KeyValue { |
| 9424 | return NetworkLocalAddressKey.String(val) |
| 9425 | } |
| 9426 | |
| 9427 | // NetworkLocalPort returns an attribute KeyValue conforming to the |
| 9428 | // "network.local.port" semantic conventions. It represents the local port number |
| 9429 | // of the network connection. |
| 9430 | func NetworkLocalPort(val int) attribute.KeyValue { |
| 9431 | return NetworkLocalPortKey.Int(val) |
| 9432 | } |
| 9433 | |
| 9434 | // NetworkPeerAddress returns an attribute KeyValue conforming to the |
| 9435 | // "network.peer.address" semantic conventions. It represents the peer address of |
| 9436 | // the network connection - IP address or Unix domain socket name. |
| 9437 | func NetworkPeerAddress(val string) attribute.KeyValue { |
| 9438 | return NetworkPeerAddressKey.String(val) |
| 9439 | } |
| 9440 | |
| 9441 | // NetworkPeerPort returns an attribute KeyValue conforming to the |
| 9442 | // "network.peer.port" semantic conventions. It represents the peer port number |
| 9443 | // of the network connection. |
| 9444 | func NetworkPeerPort(val int) attribute.KeyValue { |
| 9445 | return NetworkPeerPortKey.Int(val) |
| 9446 | } |
| 9447 | |
| 9448 | // NetworkProtocolName returns an attribute KeyValue conforming to the |
| 9449 | // "network.protocol.name" semantic conventions. It represents the |
| 9450 | // [OSI application layer] or non-OSI equivalent. |
| 9451 | // |
| 9452 | // [OSI application layer]: https://wikipedia.org/wiki/Application_layer |
| 9453 | func NetworkProtocolName(val string) attribute.KeyValue { |
| 9454 | return NetworkProtocolNameKey.String(val) |
| 9455 | } |
| 9456 | |
| 9457 | // NetworkProtocolVersion returns an attribute KeyValue conforming to the |
| 9458 | // "network.protocol.version" semantic conventions. It represents the actual |
| 9459 | // version of the protocol used for network communication. |
| 9460 | func NetworkProtocolVersion(val string) attribute.KeyValue { |
| 9461 | return NetworkProtocolVersionKey.String(val) |
| 9462 | } |
| 9463 | |
| 9464 | // Enum values for network.connection.state |
| 9465 | var ( |
| 9466 | // closed |
| 9467 | // Stability: development |
| 9468 | NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed") |
| 9469 | // close_wait |
| 9470 | // Stability: development |
| 9471 | NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait") |
| 9472 | // closing |
| 9473 | // Stability: development |
| 9474 | NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing") |
| 9475 | // established |
| 9476 | // Stability: development |
| 9477 | NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established") |
| 9478 | // fin_wait_1 |
| 9479 | // Stability: development |
| 9480 | NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1") |
| 9481 | // fin_wait_2 |
| 9482 | // Stability: development |
| 9483 | NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2") |
| 9484 | // last_ack |
| 9485 | // Stability: development |
| 9486 | NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack") |
| 9487 | // listen |
| 9488 | // Stability: development |
| 9489 | NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen") |
| 9490 | // syn_received |
| 9491 | // Stability: development |
| 9492 | NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received") |
| 9493 | // syn_sent |
| 9494 | // Stability: development |
| 9495 | NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent") |
| 9496 | // time_wait |
| 9497 | // Stability: development |
| 9498 | NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait") |
| 9499 | ) |
| 9500 | |
| 9501 | // Enum values for network.connection.subtype |
| 9502 | var ( |
| 9503 | // GPRS |
| 9504 | // Stability: development |
| 9505 | NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs") |
| 9506 | // EDGE |
| 9507 | // Stability: development |
| 9508 | NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge") |
| 9509 | // UMTS |
| 9510 | // Stability: development |
| 9511 | NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts") |
| 9512 | // CDMA |
| 9513 | // Stability: development |
| 9514 | NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma") |
| 9515 | // EVDO Rel. 0 |
| 9516 | // Stability: development |
| 9517 | NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0") |
| 9518 | // EVDO Rev. A |
| 9519 | // Stability: development |
| 9520 | NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a") |
| 9521 | // CDMA2000 1XRTT |
| 9522 | // Stability: development |
| 9523 | NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt") |
| 9524 | // HSDPA |
| 9525 | // Stability: development |
| 9526 | NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa") |
| 9527 | // HSUPA |
| 9528 | // Stability: development |
| 9529 | NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa") |
| 9530 | // HSPA |
| 9531 | // Stability: development |
| 9532 | NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa") |
| 9533 | // IDEN |
| 9534 | // Stability: development |
| 9535 | NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden") |
| 9536 | // EVDO Rev. B |
| 9537 | // Stability: development |
| 9538 | NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b") |
| 9539 | // LTE |
| 9540 | // Stability: development |
| 9541 | NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte") |
| 9542 | // EHRPD |
| 9543 | // Stability: development |
| 9544 | NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd") |
| 9545 | // HSPAP |
| 9546 | // Stability: development |
| 9547 | NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap") |
| 9548 | // GSM |
| 9549 | // Stability: development |
| 9550 | NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm") |
| 9551 | // TD-SCDMA |
| 9552 | // Stability: development |
| 9553 | NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma") |
| 9554 | // IWLAN |
| 9555 | // Stability: development |
| 9556 | NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan") |
| 9557 | // 5G NR (New Radio) |
| 9558 | // Stability: development |
| 9559 | NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr") |
| 9560 | // 5G NRNSA (New Radio Non-Standalone) |
| 9561 | // Stability: development |
| 9562 | NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa") |
| 9563 | // LTE CA |
| 9564 | // Stability: development |
| 9565 | NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca") |
| 9566 | ) |
| 9567 | |
| 9568 | // Enum values for network.connection.type |
| 9569 | var ( |
| 9570 | // wifi |
| 9571 | // Stability: development |
| 9572 | NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi") |
| 9573 | // wired |
| 9574 | // Stability: development |
| 9575 | NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired") |
| 9576 | // cell |
| 9577 | // Stability: development |
| 9578 | NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell") |
| 9579 | // unavailable |
| 9580 | // Stability: development |
| 9581 | NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable") |
| 9582 | // unknown |
| 9583 | // Stability: development |
| 9584 | NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown") |
| 9585 | ) |
| 9586 | |
| 9587 | // Enum values for network.io.direction |
| 9588 | var ( |
| 9589 | // transmit |
| 9590 | // Stability: development |
| 9591 | NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit") |
| 9592 | // receive |
| 9593 | // Stability: development |
| 9594 | NetworkIODirectionReceive = NetworkIODirectionKey.String("receive") |
| 9595 | ) |
| 9596 | |
| 9597 | // Enum values for network.transport |
| 9598 | var ( |
| 9599 | // TCP |
| 9600 | // Stability: stable |
| 9601 | NetworkTransportTCP = NetworkTransportKey.String("tcp") |
| 9602 | // UDP |
| 9603 | // Stability: stable |
| 9604 | NetworkTransportUDP = NetworkTransportKey.String("udp") |
| 9605 | // Named or anonymous pipe. |
| 9606 | // Stability: stable |
| 9607 | NetworkTransportPipe = NetworkTransportKey.String("pipe") |
| 9608 | // Unix domain socket |
| 9609 | // Stability: stable |
| 9610 | NetworkTransportUnix = NetworkTransportKey.String("unix") |
| 9611 | // QUIC |
| 9612 | // Stability: stable |
| 9613 | NetworkTransportQUIC = NetworkTransportKey.String("quic") |
| 9614 | ) |
| 9615 | |
| 9616 | // Enum values for network.type |
| 9617 | var ( |
| 9618 | // IPv4 |
| 9619 | // Stability: stable |
| 9620 | NetworkTypeIPv4 = NetworkTypeKey.String("ipv4") |
| 9621 | // IPv6 |
| 9622 | // Stability: stable |
| 9623 | NetworkTypeIPv6 = NetworkTypeKey.String("ipv6") |
| 9624 | ) |
| 9625 | |
| 9626 | // Namespace: oci |
| 9627 | const ( |
| 9628 | // OCIManifestDigestKey is the attribute Key conforming to the |
| 9629 | // "oci.manifest.digest" semantic conventions. It represents the digest of the |
| 9630 | // OCI image manifest. For container images specifically is the digest by which |
| 9631 | // the container image is known. |
| 9632 | // |
| 9633 | // Type: string |
| 9634 | // RequirementLevel: Recommended |
| 9635 | // Stability: Development |
| 9636 | // |
| 9637 | // Examples: |
| 9638 | // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4" |
| 9639 | // Note: Follows [OCI Image Manifest Specification], and specifically the |
| 9640 | // [Digest property]. |
| 9641 | // An example can be found in [Example Image Manifest]. |
| 9642 | // |
| 9643 | // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md |
| 9644 | // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests |
| 9645 | // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest |
| 9646 | OCIManifestDigestKey = attribute.Key("oci.manifest.digest") |
| 9647 | ) |
| 9648 | |
| 9649 | // OCIManifestDigest returns an attribute KeyValue conforming to the |
| 9650 | // "oci.manifest.digest" semantic conventions. It represents the digest of the |
| 9651 | // OCI image manifest. For container images specifically is the digest by which |
| 9652 | // the container image is known. |
| 9653 | func OCIManifestDigest(val string) attribute.KeyValue { |
| 9654 | return OCIManifestDigestKey.String(val) |
| 9655 | } |
| 9656 | |
| 9657 | // Namespace: opentracing |
| 9658 | const ( |
| 9659 | // OpenTracingRefTypeKey is the attribute Key conforming to the |
| 9660 | // "opentracing.ref_type" semantic conventions. It represents the parent-child |
| 9661 | // Reference type. |
| 9662 | // |
| 9663 | // Type: Enum |
| 9664 | // RequirementLevel: Recommended |
| 9665 | // Stability: Development |
| 9666 | // |
| 9667 | // Examples: |
| 9668 | // Note: The causal relationship between a child Span and a parent Span. |
| 9669 | OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type") |
| 9670 | ) |
| 9671 | |
| 9672 | // Enum values for opentracing.ref_type |
| 9673 | var ( |
| 9674 | // The parent Span depends on the child Span in some capacity |
| 9675 | // Stability: development |
| 9676 | OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of") |
| 9677 | // The parent Span doesn't depend in any way on the result of the child Span |
| 9678 | // Stability: development |
| 9679 | OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from") |
| 9680 | ) |
| 9681 | |
| 9682 | // Namespace: os |
| 9683 | const ( |
| 9684 | // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic |
| 9685 | // conventions. It represents the unique identifier for a particular build or |
| 9686 | // compilation of the operating system. |
| 9687 | // |
| 9688 | // Type: string |
| 9689 | // RequirementLevel: Recommended |
| 9690 | // Stability: Development |
| 9691 | // |
| 9692 | // Examples: "TQ3C.230805.001.B2", "20E247", "22621" |
| 9693 | OSBuildIDKey = attribute.Key("os.build_id") |
| 9694 | |
| 9695 | // OSDescriptionKey is the attribute Key conforming to the "os.description" |
| 9696 | // semantic conventions. It represents the human readable (not intended to be |
| 9697 | // parsed) OS version information, like e.g. reported by `ver` or |
| 9698 | // `lsb_release -a` commands. |
| 9699 | // |
| 9700 | // Type: string |
| 9701 | // RequirementLevel: Recommended |
| 9702 | // Stability: Development |
| 9703 | // |
| 9704 | // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS" |
| 9705 | OSDescriptionKey = attribute.Key("os.description") |
| 9706 | |
| 9707 | // OSNameKey is the attribute Key conforming to the "os.name" semantic |
| 9708 | // conventions. It represents the human readable operating system name. |
| 9709 | // |
| 9710 | // Type: string |
| 9711 | // RequirementLevel: Recommended |
| 9712 | // Stability: Development |
| 9713 | // |
| 9714 | // Examples: "iOS", "Android", "Ubuntu" |
| 9715 | OSNameKey = attribute.Key("os.name") |
| 9716 | |
| 9717 | // OSTypeKey is the attribute Key conforming to the "os.type" semantic |
| 9718 | // conventions. It represents the operating system type. |
| 9719 | // |
| 9720 | // Type: Enum |
| 9721 | // RequirementLevel: Recommended |
| 9722 | // Stability: Development |
| 9723 | // |
| 9724 | // Examples: |
| 9725 | OSTypeKey = attribute.Key("os.type") |
| 9726 | |
| 9727 | // OSVersionKey is the attribute Key conforming to the "os.version" semantic |
| 9728 | // conventions. It represents the version string of the operating system as |
| 9729 | // defined in [Version Attributes]. |
| 9730 | // |
| 9731 | // Type: string |
| 9732 | // RequirementLevel: Recommended |
| 9733 | // Stability: Development |
| 9734 | // |
| 9735 | // Examples: "14.2.1", "18.04.1" |
| 9736 | // |
| 9737 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 9738 | OSVersionKey = attribute.Key("os.version") |
| 9739 | ) |
| 9740 | |
| 9741 | // OSBuildID returns an attribute KeyValue conforming to the "os.build_id" |
| 9742 | // semantic conventions. It represents the unique identifier for a particular |
| 9743 | // build or compilation of the operating system. |
| 9744 | func OSBuildID(val string) attribute.KeyValue { |
| 9745 | return OSBuildIDKey.String(val) |
| 9746 | } |
| 9747 | |
| 9748 | // OSDescription returns an attribute KeyValue conforming to the "os.description" |
| 9749 | // semantic conventions. It represents the human readable (not intended to be |
| 9750 | // parsed) OS version information, like e.g. reported by `ver` or |
| 9751 | // `lsb_release -a` commands. |
| 9752 | func OSDescription(val string) attribute.KeyValue { |
| 9753 | return OSDescriptionKey.String(val) |
| 9754 | } |
| 9755 | |
| 9756 | // OSName returns an attribute KeyValue conforming to the "os.name" semantic |
| 9757 | // conventions. It represents the human readable operating system name. |
| 9758 | func OSName(val string) attribute.KeyValue { |
| 9759 | return OSNameKey.String(val) |
| 9760 | } |
| 9761 | |
| 9762 | // OSVersion returns an attribute KeyValue conforming to the "os.version" |
| 9763 | // semantic conventions. It represents the version string of the operating system |
| 9764 | // as defined in [Version Attributes]. |
| 9765 | // |
| 9766 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 9767 | func OSVersion(val string) attribute.KeyValue { |
| 9768 | return OSVersionKey.String(val) |
| 9769 | } |
| 9770 | |
| 9771 | // Enum values for os.type |
| 9772 | var ( |
| 9773 | // Microsoft Windows |
| 9774 | // Stability: development |
| 9775 | OSTypeWindows = OSTypeKey.String("windows") |
| 9776 | // Linux |
| 9777 | // Stability: development |
| 9778 | OSTypeLinux = OSTypeKey.String("linux") |
| 9779 | // Apple Darwin |
| 9780 | // Stability: development |
| 9781 | OSTypeDarwin = OSTypeKey.String("darwin") |
| 9782 | // FreeBSD |
| 9783 | // Stability: development |
| 9784 | OSTypeFreeBSD = OSTypeKey.String("freebsd") |
| 9785 | // NetBSD |
| 9786 | // Stability: development |
| 9787 | OSTypeNetBSD = OSTypeKey.String("netbsd") |
| 9788 | // OpenBSD |
| 9789 | // Stability: development |
| 9790 | OSTypeOpenBSD = OSTypeKey.String("openbsd") |
| 9791 | // DragonFly BSD |
| 9792 | // Stability: development |
| 9793 | OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd") |
| 9794 | // HP-UX (Hewlett Packard Unix) |
| 9795 | // Stability: development |
| 9796 | OSTypeHPUX = OSTypeKey.String("hpux") |
| 9797 | // AIX (Advanced Interactive eXecutive) |
| 9798 | // Stability: development |
| 9799 | OSTypeAIX = OSTypeKey.String("aix") |
| 9800 | // SunOS, Oracle Solaris |
| 9801 | // Stability: development |
| 9802 | OSTypeSolaris = OSTypeKey.String("solaris") |
| 9803 | // IBM z/OS |
| 9804 | // Stability: development |
| 9805 | OSTypeZOS = OSTypeKey.String("z_os") |
| 9806 | ) |
| 9807 | |
| 9808 | // Namespace: otel |
| 9809 | const ( |
| 9810 | // OTelComponentNameKey is the attribute Key conforming to the |
| 9811 | // "otel.component.name" semantic conventions. It represents a name uniquely |
| 9812 | // identifying the instance of the OpenTelemetry component within its containing |
| 9813 | // SDK instance. |
| 9814 | // |
| 9815 | // Type: string |
| 9816 | // RequirementLevel: Recommended |
| 9817 | // Stability: Development |
| 9818 | // |
| 9819 | // Examples: "otlp_grpc_span_exporter/0", "custom-name" |
| 9820 | // Note: Implementations SHOULD ensure a low cardinality for this attribute, |
| 9821 | // even across application or SDK restarts. |
| 9822 | // E.g. implementations MUST NOT use UUIDs as values for this attribute. |
| 9823 | // |
| 9824 | // Implementations MAY achieve these goals by following a |
| 9825 | // `<otel.component.type>/<instance-counter>` pattern, e.g. |
| 9826 | // `batching_span_processor/0`. |
| 9827 | // Hereby `otel.component.type` refers to the corresponding attribute value of |
| 9828 | // the component. |
| 9829 | // |
| 9830 | // The value of `instance-counter` MAY be automatically assigned by the |
| 9831 | // component and uniqueness within the enclosing SDK instance MUST be |
| 9832 | // guaranteed. |
| 9833 | // For example, `<instance-counter>` MAY be implemented by using a monotonically |
| 9834 | // increasing counter (starting with `0`), which is incremented every time an |
| 9835 | // instance of the given component type is started. |
| 9836 | // |
| 9837 | // With this implementation, for example the first Batching Span Processor would |
| 9838 | // have `batching_span_processor/0` |
| 9839 | // as `otel.component.name`, the second one `batching_span_processor/1` and so |
| 9840 | // on. |
| 9841 | // These values will therefore be reused in the case of an application restart. |
| 9842 | OTelComponentNameKey = attribute.Key("otel.component.name") |
| 9843 | |
| 9844 | // OTelComponentTypeKey is the attribute Key conforming to the |
| 9845 | // "otel.component.type" semantic conventions. It represents a name identifying |
| 9846 | // the type of the OpenTelemetry component. |
| 9847 | // |
| 9848 | // Type: Enum |
| 9849 | // RequirementLevel: Recommended |
| 9850 | // Stability: Development |
| 9851 | // |
| 9852 | // Examples: "batching_span_processor", "com.example.MySpanExporter" |
| 9853 | // Note: If none of the standardized values apply, implementations SHOULD use |
| 9854 | // the language-defined name of the type. |
| 9855 | // E.g. for Java the fully qualified classname SHOULD be used in this case. |
| 9856 | OTelComponentTypeKey = attribute.Key("otel.component.type") |
| 9857 | |
| 9858 | // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name" |
| 9859 | // semantic conventions. It represents the name of the instrumentation scope - ( |
| 9860 | // `InstrumentationScope.Name` in OTLP). |
| 9861 | // |
| 9862 | // Type: string |
| 9863 | // RequirementLevel: Recommended |
| 9864 | // Stability: Stable |
| 9865 | // |
| 9866 | // Examples: "io.opentelemetry.contrib.mongodb" |
| 9867 | OTelScopeNameKey = attribute.Key("otel.scope.name") |
| 9868 | |
| 9869 | // OTelScopeVersionKey is the attribute Key conforming to the |
| 9870 | // "otel.scope.version" semantic conventions. It represents the version of the |
| 9871 | // instrumentation scope - (`InstrumentationScope.Version` in OTLP). |
| 9872 | // |
| 9873 | // Type: string |
| 9874 | // RequirementLevel: Recommended |
| 9875 | // Stability: Stable |
| 9876 | // |
| 9877 | // Examples: "1.0.0" |
| 9878 | OTelScopeVersionKey = attribute.Key("otel.scope.version") |
| 9879 | |
| 9880 | // OTelSpanSamplingResultKey is the attribute Key conforming to the |
| 9881 | // "otel.span.sampling_result" semantic conventions. It represents the result |
| 9882 | // value of the sampler for this span. |
| 9883 | // |
| 9884 | // Type: Enum |
| 9885 | // RequirementLevel: Recommended |
| 9886 | // Stability: Development |
| 9887 | // |
| 9888 | // Examples: |
| 9889 | OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result") |
| 9890 | |
| 9891 | // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code" |
| 9892 | // semantic conventions. It represents the name of the code, either "OK" or |
| 9893 | // "ERROR". MUST NOT be set if the status code is UNSET. |
| 9894 | // |
| 9895 | // Type: Enum |
| 9896 | // RequirementLevel: Recommended |
| 9897 | // Stability: Stable |
| 9898 | // |
| 9899 | // Examples: |
| 9900 | OTelStatusCodeKey = attribute.Key("otel.status_code") |
| 9901 | |
| 9902 | // OTelStatusDescriptionKey is the attribute Key conforming to the |
| 9903 | // "otel.status_description" semantic conventions. It represents the description |
| 9904 | // of the Status if it has a value, otherwise not set. |
| 9905 | // |
| 9906 | // Type: string |
| 9907 | // RequirementLevel: Recommended |
| 9908 | // Stability: Stable |
| 9909 | // |
| 9910 | // Examples: "resource not found" |
| 9911 | OTelStatusDescriptionKey = attribute.Key("otel.status_description") |
| 9912 | ) |
| 9913 | |
| 9914 | // OTelComponentName returns an attribute KeyValue conforming to the |
| 9915 | // "otel.component.name" semantic conventions. It represents a name uniquely |
| 9916 | // identifying the instance of the OpenTelemetry component within its containing |
| 9917 | // SDK instance. |
| 9918 | func OTelComponentName(val string) attribute.KeyValue { |
| 9919 | return OTelComponentNameKey.String(val) |
| 9920 | } |
| 9921 | |
| 9922 | // OTelScopeName returns an attribute KeyValue conforming to the |
| 9923 | // "otel.scope.name" semantic conventions. It represents the name of the |
| 9924 | // instrumentation scope - (`InstrumentationScope.Name` in OTLP). |
| 9925 | func OTelScopeName(val string) attribute.KeyValue { |
| 9926 | return OTelScopeNameKey.String(val) |
| 9927 | } |
| 9928 | |
| 9929 | // OTelScopeVersion returns an attribute KeyValue conforming to the |
| 9930 | // "otel.scope.version" semantic conventions. It represents the version of the |
| 9931 | // instrumentation scope - (`InstrumentationScope.Version` in OTLP). |
| 9932 | func OTelScopeVersion(val string) attribute.KeyValue { |
| 9933 | return OTelScopeVersionKey.String(val) |
| 9934 | } |
| 9935 | |
| 9936 | // OTelStatusDescription returns an attribute KeyValue conforming to the |
| 9937 | // "otel.status_description" semantic conventions. It represents the description |
| 9938 | // of the Status if it has a value, otherwise not set. |
| 9939 | func OTelStatusDescription(val string) attribute.KeyValue { |
| 9940 | return OTelStatusDescriptionKey.String(val) |
| 9941 | } |
| 9942 | |
| 9943 | // Enum values for otel.component.type |
| 9944 | var ( |
| 9945 | // The builtin SDK batching span processor |
| 9946 | // |
| 9947 | // Stability: development |
| 9948 | OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor") |
| 9949 | // The builtin SDK simple span processor |
| 9950 | // |
| 9951 | // Stability: development |
| 9952 | OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor") |
| 9953 | // The builtin SDK batching log record processor |
| 9954 | // |
| 9955 | // Stability: development |
| 9956 | OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor") |
| 9957 | // The builtin SDK simple log record processor |
| 9958 | // |
| 9959 | // Stability: development |
| 9960 | OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor") |
| 9961 | // OTLP span exporter over gRPC with protobuf serialization |
| 9962 | // |
| 9963 | // Stability: development |
| 9964 | OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter") |
| 9965 | // OTLP span exporter over HTTP with protobuf serialization |
| 9966 | // |
| 9967 | // Stability: development |
| 9968 | OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter") |
| 9969 | // OTLP span exporter over HTTP with JSON serialization |
| 9970 | // |
| 9971 | // Stability: development |
| 9972 | OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter") |
| 9973 | // OTLP log record exporter over gRPC with protobuf serialization |
| 9974 | // |
| 9975 | // Stability: development |
| 9976 | OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter") |
| 9977 | // OTLP log record exporter over HTTP with protobuf serialization |
| 9978 | // |
| 9979 | // Stability: development |
| 9980 | OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter") |
| 9981 | // OTLP log record exporter over HTTP with JSON serialization |
| 9982 | // |
| 9983 | // Stability: development |
| 9984 | OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter") |
| 9985 | // The builtin SDK periodically exporting metric reader |
| 9986 | // |
| 9987 | // Stability: development |
| 9988 | OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader") |
| 9989 | // OTLP metric exporter over gRPC with protobuf serialization |
| 9990 | // |
| 9991 | // Stability: development |
| 9992 | OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter") |
| 9993 | // OTLP metric exporter over HTTP with protobuf serialization |
| 9994 | // |
| 9995 | // Stability: development |
| 9996 | OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter") |
| 9997 | // OTLP metric exporter over HTTP with JSON serialization |
| 9998 | // |
| 9999 | // Stability: development |
| 10000 | OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter") |
| 10001 | ) |
| 10002 | |
| 10003 | // Enum values for otel.span.sampling_result |
| 10004 | var ( |
| 10005 | // The span is not sampled and not recording |
| 10006 | // Stability: development |
| 10007 | OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP") |
| 10008 | // The span is not sampled, but recording |
| 10009 | // Stability: development |
| 10010 | OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY") |
| 10011 | // The span is sampled and recording |
| 10012 | // Stability: development |
| 10013 | OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE") |
| 10014 | ) |
| 10015 | |
| 10016 | // Enum values for otel.status_code |
| 10017 | var ( |
| 10018 | // The operation has been validated by an Application developer or Operator to |
| 10019 | // have completed successfully. |
| 10020 | // Stability: stable |
| 10021 | OTelStatusCodeOk = OTelStatusCodeKey.String("OK") |
| 10022 | // The operation contains an error. |
| 10023 | // Stability: stable |
| 10024 | OTelStatusCodeError = OTelStatusCodeKey.String("ERROR") |
| 10025 | ) |
| 10026 | |
| 10027 | // Namespace: peer |
| 10028 | const ( |
| 10029 | // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic |
| 10030 | // conventions. It represents the [`service.name`] of the remote service. SHOULD |
| 10031 | // be equal to the actual `service.name` resource attribute of the remote |
| 10032 | // service if any. |
| 10033 | // |
| 10034 | // Type: string |
| 10035 | // RequirementLevel: Recommended |
| 10036 | // Stability: Development |
| 10037 | // |
| 10038 | // Examples: AuthTokenCache |
| 10039 | // |
| 10040 | // [`service.name`]: /docs/resource/README.md#service |
| 10041 | PeerServiceKey = attribute.Key("peer.service") |
| 10042 | ) |
| 10043 | |
| 10044 | // PeerService returns an attribute KeyValue conforming to the "peer.service" |
| 10045 | // semantic conventions. It represents the [`service.name`] of the remote |
| 10046 | // service. SHOULD be equal to the actual `service.name` resource attribute of |
| 10047 | // the remote service if any. |
| 10048 | // |
| 10049 | // [`service.name`]: /docs/resource/README.md#service |
| 10050 | func PeerService(val string) attribute.KeyValue { |
| 10051 | return PeerServiceKey.String(val) |
| 10052 | } |
| 10053 | |
| 10054 | // Namespace: process |
| 10055 | const ( |
| 10056 | // ProcessArgsCountKey is the attribute Key conforming to the |
| 10057 | // "process.args_count" semantic conventions. It represents the length of the |
| 10058 | // process.command_args array. |
| 10059 | // |
| 10060 | // Type: int |
| 10061 | // RequirementLevel: Recommended |
| 10062 | // Stability: Development |
| 10063 | // |
| 10064 | // Examples: 4 |
| 10065 | // Note: This field can be useful for querying or performing bucket analysis on |
| 10066 | // how many arguments were provided to start a process. More arguments may be an |
| 10067 | // indication of suspicious activity. |
| 10068 | ProcessArgsCountKey = attribute.Key("process.args_count") |
| 10069 | |
| 10070 | // ProcessCommandKey is the attribute Key conforming to the "process.command" |
| 10071 | // semantic conventions. It represents the command used to launch the process |
| 10072 | // (i.e. the command name). On Linux based systems, can be set to the zeroth |
| 10073 | // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter |
| 10074 | // extracted from `GetCommandLineW`. |
| 10075 | // |
| 10076 | // Type: string |
| 10077 | // RequirementLevel: Recommended |
| 10078 | // Stability: Development |
| 10079 | // |
| 10080 | // Examples: "cmd/otelcol" |
| 10081 | ProcessCommandKey = attribute.Key("process.command") |
| 10082 | |
| 10083 | // ProcessCommandArgsKey is the attribute Key conforming to the |
| 10084 | // "process.command_args" semantic conventions. It represents the all the |
| 10085 | // command arguments (including the command/executable itself) as received by |
| 10086 | // the process. On Linux-based systems (and some other Unixoid systems |
| 10087 | // supporting procfs), can be set according to the list of null-delimited |
| 10088 | // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this |
| 10089 | // would be the full argv vector passed to `main`. SHOULD NOT be collected by |
| 10090 | // default unless there is sanitization that excludes sensitive data. |
| 10091 | // |
| 10092 | // Type: string[] |
| 10093 | // RequirementLevel: Recommended |
| 10094 | // Stability: Development |
| 10095 | // |
| 10096 | // Examples: "cmd/otecol", "--config=config.yaml" |
| 10097 | ProcessCommandArgsKey = attribute.Key("process.command_args") |
| 10098 | |
| 10099 | // ProcessCommandLineKey is the attribute Key conforming to the |
| 10100 | // "process.command_line" semantic conventions. It represents the full command |
| 10101 | // used to launch the process as a single string representing the full command. |
| 10102 | // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if |
| 10103 | // you have to assemble it just for monitoring; use `process.command_args` |
| 10104 | // instead. SHOULD NOT be collected by default unless there is sanitization that |
| 10105 | // excludes sensitive data. |
| 10106 | // |
| 10107 | // Type: string |
| 10108 | // RequirementLevel: Recommended |
| 10109 | // Stability: Development |
| 10110 | // |
| 10111 | // Examples: "C:\cmd\otecol --config="my directory\config.yaml"" |
| 10112 | ProcessCommandLineKey = attribute.Key("process.command_line") |
| 10113 | |
| 10114 | // ProcessContextSwitchTypeKey is the attribute Key conforming to the |
| 10115 | // "process.context_switch_type" semantic conventions. It represents the |
| 10116 | // specifies whether the context switches for this data point were voluntary or |
| 10117 | // involuntary. |
| 10118 | // |
| 10119 | // Type: Enum |
| 10120 | // RequirementLevel: Recommended |
| 10121 | // Stability: Development |
| 10122 | // |
| 10123 | // Examples: |
| 10124 | ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type") |
| 10125 | |
| 10126 | // ProcessCreationTimeKey is the attribute Key conforming to the |
| 10127 | // "process.creation.time" semantic conventions. It represents the date and time |
| 10128 | // the process was created, in ISO 8601 format. |
| 10129 | // |
| 10130 | // Type: string |
| 10131 | // RequirementLevel: Recommended |
| 10132 | // Stability: Development |
| 10133 | // |
| 10134 | // Examples: "2023-11-21T09:25:34.853Z" |
| 10135 | ProcessCreationTimeKey = attribute.Key("process.creation.time") |
| 10136 | |
| 10137 | // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the |
| 10138 | // "process.executable.build_id.gnu" semantic conventions. It represents the GNU |
| 10139 | // build ID as found in the `.note.gnu.build-id` ELF section (hex string). |
| 10140 | // |
| 10141 | // Type: string |
| 10142 | // RequirementLevel: Recommended |
| 10143 | // Stability: Development |
| 10144 | // |
| 10145 | // Examples: "c89b11207f6479603b0d49bf291c092c2b719293" |
| 10146 | ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu") |
| 10147 | |
| 10148 | // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the |
| 10149 | // "process.executable.build_id.go" semantic conventions. It represents the Go |
| 10150 | // build ID as retrieved by `go tool buildid <go executable>`. |
| 10151 | // |
| 10152 | // Type: string |
| 10153 | // RequirementLevel: Recommended |
| 10154 | // Stability: Development |
| 10155 | // |
| 10156 | // Examples: |
| 10157 | // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY" |
| 10158 | ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go") |
| 10159 | |
| 10160 | // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the |
| 10161 | // "process.executable.build_id.htlhash" semantic conventions. It represents the |
| 10162 | // profiling specific build ID for executables. See the OTel specification for |
| 10163 | // Profiles for more information. |
| 10164 | // |
| 10165 | // Type: string |
| 10166 | // RequirementLevel: Recommended |
| 10167 | // Stability: Development |
| 10168 | // |
| 10169 | // Examples: "600DCAFE4A110000F2BF38C493F5FB92" |
| 10170 | ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash") |
| 10171 | |
| 10172 | // ProcessExecutableNameKey is the attribute Key conforming to the |
| 10173 | // "process.executable.name" semantic conventions. It represents the name of the |
| 10174 | // process executable. On Linux based systems, this SHOULD be set to the base |
| 10175 | // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to |
| 10176 | // the base name of `GetProcessImageFileNameW`. |
| 10177 | // |
| 10178 | // Type: string |
| 10179 | // RequirementLevel: Recommended |
| 10180 | // Stability: Development |
| 10181 | // |
| 10182 | // Examples: "otelcol" |
| 10183 | ProcessExecutableNameKey = attribute.Key("process.executable.name") |
| 10184 | |
| 10185 | // ProcessExecutablePathKey is the attribute Key conforming to the |
| 10186 | // "process.executable.path" semantic conventions. It represents the full path |
| 10187 | // to the process executable. On Linux based systems, can be set to the target |
| 10188 | // of `proc/[pid]/exe`. On Windows, can be set to the result of |
| 10189 | // `GetProcessImageFileNameW`. |
| 10190 | // |
| 10191 | // Type: string |
| 10192 | // RequirementLevel: Recommended |
| 10193 | // Stability: Development |
| 10194 | // |
| 10195 | // Examples: "/usr/bin/cmd/otelcol" |
| 10196 | ProcessExecutablePathKey = attribute.Key("process.executable.path") |
| 10197 | |
| 10198 | // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code" |
| 10199 | // semantic conventions. It represents the exit code of the process. |
| 10200 | // |
| 10201 | // Type: int |
| 10202 | // RequirementLevel: Recommended |
| 10203 | // Stability: Development |
| 10204 | // |
| 10205 | // Examples: 127 |
| 10206 | ProcessExitCodeKey = attribute.Key("process.exit.code") |
| 10207 | |
| 10208 | // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time" |
| 10209 | // semantic conventions. It represents the date and time the process exited, in |
| 10210 | // ISO 8601 format. |
| 10211 | // |
| 10212 | // Type: string |
| 10213 | // RequirementLevel: Recommended |
| 10214 | // Stability: Development |
| 10215 | // |
| 10216 | // Examples: "2023-11-21T09:26:12.315Z" |
| 10217 | ProcessExitTimeKey = attribute.Key("process.exit.time") |
| 10218 | |
| 10219 | // ProcessGroupLeaderPIDKey is the attribute Key conforming to the |
| 10220 | // "process.group_leader.pid" semantic conventions. It represents the PID of the |
| 10221 | // process's group leader. This is also the process group ID (PGID) of the |
| 10222 | // process. |
| 10223 | // |
| 10224 | // Type: int |
| 10225 | // RequirementLevel: Recommended |
| 10226 | // Stability: Development |
| 10227 | // |
| 10228 | // Examples: 23 |
| 10229 | ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid") |
| 10230 | |
| 10231 | // ProcessInteractiveKey is the attribute Key conforming to the |
| 10232 | // "process.interactive" semantic conventions. It represents the whether the |
| 10233 | // process is connected to an interactive shell. |
| 10234 | // |
| 10235 | // Type: boolean |
| 10236 | // RequirementLevel: Recommended |
| 10237 | // Stability: Development |
| 10238 | // |
| 10239 | // Examples: |
| 10240 | ProcessInteractiveKey = attribute.Key("process.interactive") |
| 10241 | |
| 10242 | // ProcessLinuxCgroupKey is the attribute Key conforming to the |
| 10243 | // "process.linux.cgroup" semantic conventions. It represents the control group |
| 10244 | // associated with the process. |
| 10245 | // |
| 10246 | // Type: string |
| 10247 | // RequirementLevel: Recommended |
| 10248 | // Stability: Development |
| 10249 | // |
| 10250 | // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope", |
| 10251 | // "0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope" |
| 10252 | // Note: Control groups (cgroups) are a kernel feature used to organize and |
| 10253 | // manage process resources. This attribute provides the path(s) to the |
| 10254 | // cgroup(s) associated with the process, which should match the contents of the |
| 10255 | // [/proc/[PID]/cgroup] file. |
| 10256 | // |
| 10257 | // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html |
| 10258 | ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup") |
| 10259 | |
| 10260 | // ProcessOwnerKey is the attribute Key conforming to the "process.owner" |
| 10261 | // semantic conventions. It represents the username of the user that owns the |
| 10262 | // process. |
| 10263 | // |
| 10264 | // Type: string |
| 10265 | // RequirementLevel: Recommended |
| 10266 | // Stability: Development |
| 10267 | // |
| 10268 | // Examples: "root" |
| 10269 | ProcessOwnerKey = attribute.Key("process.owner") |
| 10270 | |
| 10271 | // ProcessPagingFaultTypeKey is the attribute Key conforming to the |
| 10272 | // "process.paging.fault_type" semantic conventions. It represents the type of |
| 10273 | // page fault for this data point. Type `major` is for major/hard page faults, |
| 10274 | // and `minor` is for minor/soft page faults. |
| 10275 | // |
| 10276 | // Type: Enum |
| 10277 | // RequirementLevel: Recommended |
| 10278 | // Stability: Development |
| 10279 | // |
| 10280 | // Examples: |
| 10281 | ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type") |
| 10282 | |
| 10283 | // ProcessParentPIDKey is the attribute Key conforming to the |
| 10284 | // "process.parent_pid" semantic conventions. It represents the parent Process |
| 10285 | // identifier (PPID). |
| 10286 | // |
| 10287 | // Type: int |
| 10288 | // RequirementLevel: Recommended |
| 10289 | // Stability: Development |
| 10290 | // |
| 10291 | // Examples: 111 |
| 10292 | ProcessParentPIDKey = attribute.Key("process.parent_pid") |
| 10293 | |
| 10294 | // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic |
| 10295 | // conventions. It represents the process identifier (PID). |
| 10296 | // |
| 10297 | // Type: int |
| 10298 | // RequirementLevel: Recommended |
| 10299 | // Stability: Development |
| 10300 | // |
| 10301 | // Examples: 1234 |
| 10302 | ProcessPIDKey = attribute.Key("process.pid") |
| 10303 | |
| 10304 | // ProcessRealUserIDKey is the attribute Key conforming to the |
| 10305 | // "process.real_user.id" semantic conventions. It represents the real user ID |
| 10306 | // (RUID) of the process. |
| 10307 | // |
| 10308 | // Type: int |
| 10309 | // RequirementLevel: Recommended |
| 10310 | // Stability: Development |
| 10311 | // |
| 10312 | // Examples: 1000 |
| 10313 | ProcessRealUserIDKey = attribute.Key("process.real_user.id") |
| 10314 | |
| 10315 | // ProcessRealUserNameKey is the attribute Key conforming to the |
| 10316 | // "process.real_user.name" semantic conventions. It represents the username of |
| 10317 | // the real user of the process. |
| 10318 | // |
| 10319 | // Type: string |
| 10320 | // RequirementLevel: Recommended |
| 10321 | // Stability: Development |
| 10322 | // |
| 10323 | // Examples: "operator" |
| 10324 | ProcessRealUserNameKey = attribute.Key("process.real_user.name") |
| 10325 | |
| 10326 | // ProcessRuntimeDescriptionKey is the attribute Key conforming to the |
| 10327 | // "process.runtime.description" semantic conventions. It represents an |
| 10328 | // additional description about the runtime of the process, for example a |
| 10329 | // specific vendor customization of the runtime environment. |
| 10330 | // |
| 10331 | // Type: string |
| 10332 | // RequirementLevel: Recommended |
| 10333 | // Stability: Development |
| 10334 | // |
| 10335 | // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0 |
| 10336 | ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description") |
| 10337 | |
| 10338 | // ProcessRuntimeNameKey is the attribute Key conforming to the |
| 10339 | // "process.runtime.name" semantic conventions. It represents the name of the |
| 10340 | // runtime of this process. |
| 10341 | // |
| 10342 | // Type: string |
| 10343 | // RequirementLevel: Recommended |
| 10344 | // Stability: Development |
| 10345 | // |
| 10346 | // Examples: "OpenJDK Runtime Environment" |
| 10347 | ProcessRuntimeNameKey = attribute.Key("process.runtime.name") |
| 10348 | |
| 10349 | // ProcessRuntimeVersionKey is the attribute Key conforming to the |
| 10350 | // "process.runtime.version" semantic conventions. It represents the version of |
| 10351 | // the runtime of this process, as returned by the runtime without modification. |
| 10352 | // |
| 10353 | // Type: string |
| 10354 | // RequirementLevel: Recommended |
| 10355 | // Stability: Development |
| 10356 | // |
| 10357 | // Examples: 14.0.2 |
| 10358 | ProcessRuntimeVersionKey = attribute.Key("process.runtime.version") |
| 10359 | |
| 10360 | // ProcessSavedUserIDKey is the attribute Key conforming to the |
| 10361 | // "process.saved_user.id" semantic conventions. It represents the saved user ID |
| 10362 | // (SUID) of the process. |
| 10363 | // |
| 10364 | // Type: int |
| 10365 | // RequirementLevel: Recommended |
| 10366 | // Stability: Development |
| 10367 | // |
| 10368 | // Examples: 1002 |
| 10369 | ProcessSavedUserIDKey = attribute.Key("process.saved_user.id") |
| 10370 | |
| 10371 | // ProcessSavedUserNameKey is the attribute Key conforming to the |
| 10372 | // "process.saved_user.name" semantic conventions. It represents the username of |
| 10373 | // the saved user. |
| 10374 | // |
| 10375 | // Type: string |
| 10376 | // RequirementLevel: Recommended |
| 10377 | // Stability: Development |
| 10378 | // |
| 10379 | // Examples: "operator" |
| 10380 | ProcessSavedUserNameKey = attribute.Key("process.saved_user.name") |
| 10381 | |
| 10382 | // ProcessSessionLeaderPIDKey is the attribute Key conforming to the |
| 10383 | // "process.session_leader.pid" semantic conventions. It represents the PID of |
| 10384 | // the process's session leader. This is also the session ID (SID) of the |
| 10385 | // process. |
| 10386 | // |
| 10387 | // Type: int |
| 10388 | // RequirementLevel: Recommended |
| 10389 | // Stability: Development |
| 10390 | // |
| 10391 | // Examples: 14 |
| 10392 | ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid") |
| 10393 | |
| 10394 | // ProcessTitleKey is the attribute Key conforming to the "process.title" |
| 10395 | // semantic conventions. It represents the process title (proctitle). |
| 10396 | // |
| 10397 | // Type: string |
| 10398 | // RequirementLevel: Recommended |
| 10399 | // Stability: Development |
| 10400 | // |
| 10401 | // Examples: "cat /etc/hostname", "xfce4-session", "bash" |
| 10402 | // Note: In many Unix-like systems, process title (proctitle), is the string |
| 10403 | // that represents the name or command line of a running process, displayed by |
| 10404 | // system monitoring tools like ps, top, and htop. |
| 10405 | ProcessTitleKey = attribute.Key("process.title") |
| 10406 | |
| 10407 | // ProcessUserIDKey is the attribute Key conforming to the "process.user.id" |
| 10408 | // semantic conventions. It represents the effective user ID (EUID) of the |
| 10409 | // process. |
| 10410 | // |
| 10411 | // Type: int |
| 10412 | // RequirementLevel: Recommended |
| 10413 | // Stability: Development |
| 10414 | // |
| 10415 | // Examples: 1001 |
| 10416 | ProcessUserIDKey = attribute.Key("process.user.id") |
| 10417 | |
| 10418 | // ProcessUserNameKey is the attribute Key conforming to the "process.user.name" |
| 10419 | // semantic conventions. It represents the username of the effective user of the |
| 10420 | // process. |
| 10421 | // |
| 10422 | // Type: string |
| 10423 | // RequirementLevel: Recommended |
| 10424 | // Stability: Development |
| 10425 | // |
| 10426 | // Examples: "root" |
| 10427 | ProcessUserNameKey = attribute.Key("process.user.name") |
| 10428 | |
| 10429 | // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic |
| 10430 | // conventions. It represents the virtual process identifier. |
| 10431 | // |
| 10432 | // Type: int |
| 10433 | // RequirementLevel: Recommended |
| 10434 | // Stability: Development |
| 10435 | // |
| 10436 | // Examples: 12 |
| 10437 | // Note: The process ID within a PID namespace. This is not necessarily unique |
| 10438 | // across all processes on the host but it is unique within the process |
| 10439 | // namespace that the process exists within. |
| 10440 | ProcessVpidKey = attribute.Key("process.vpid") |
| 10441 | |
| 10442 | // ProcessWorkingDirectoryKey is the attribute Key conforming to the |
| 10443 | // "process.working_directory" semantic conventions. It represents the working |
| 10444 | // directory of the process. |
| 10445 | // |
| 10446 | // Type: string |
| 10447 | // RequirementLevel: Recommended |
| 10448 | // Stability: Development |
| 10449 | // |
| 10450 | // Examples: "/root" |
| 10451 | ProcessWorkingDirectoryKey = attribute.Key("process.working_directory") |
| 10452 | ) |
| 10453 | |
| 10454 | // ProcessArgsCount returns an attribute KeyValue conforming to the |
| 10455 | // "process.args_count" semantic conventions. It represents the length of the |
| 10456 | // process.command_args array. |
| 10457 | func ProcessArgsCount(val int) attribute.KeyValue { |
| 10458 | return ProcessArgsCountKey.Int(val) |
| 10459 | } |
| 10460 | |
| 10461 | // ProcessCommand returns an attribute KeyValue conforming to the |
| 10462 | // "process.command" semantic conventions. It represents the command used to |
| 10463 | // launch the process (i.e. the command name). On Linux based systems, can be set |
| 10464 | // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the |
| 10465 | // first parameter extracted from `GetCommandLineW`. |
| 10466 | func ProcessCommand(val string) attribute.KeyValue { |
| 10467 | return ProcessCommandKey.String(val) |
| 10468 | } |
| 10469 | |
| 10470 | // ProcessCommandArgs returns an attribute KeyValue conforming to the |
| 10471 | // "process.command_args" semantic conventions. It represents the all the command |
| 10472 | // arguments (including the command/executable itself) as received by the |
| 10473 | // process. On Linux-based systems (and some other Unixoid systems supporting |
| 10474 | // procfs), can be set according to the list of null-delimited strings extracted |
| 10475 | // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full |
| 10476 | // argv vector passed to `main`. SHOULD NOT be collected by default unless there |
| 10477 | // is sanitization that excludes sensitive data. |
| 10478 | func ProcessCommandArgs(val ...string) attribute.KeyValue { |
| 10479 | return ProcessCommandArgsKey.StringSlice(val) |
| 10480 | } |
| 10481 | |
| 10482 | // ProcessCommandLine returns an attribute KeyValue conforming to the |
| 10483 | // "process.command_line" semantic conventions. It represents the full command |
| 10484 | // used to launch the process as a single string representing the full command. |
| 10485 | // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if |
| 10486 | // you have to assemble it just for monitoring; use `process.command_args` |
| 10487 | // instead. SHOULD NOT be collected by default unless there is sanitization that |
| 10488 | // excludes sensitive data. |
| 10489 | func ProcessCommandLine(val string) attribute.KeyValue { |
| 10490 | return ProcessCommandLineKey.String(val) |
| 10491 | } |
| 10492 | |
| 10493 | // ProcessCreationTime returns an attribute KeyValue conforming to the |
| 10494 | // "process.creation.time" semantic conventions. It represents the date and time |
| 10495 | // the process was created, in ISO 8601 format. |
| 10496 | func ProcessCreationTime(val string) attribute.KeyValue { |
| 10497 | return ProcessCreationTimeKey.String(val) |
| 10498 | } |
| 10499 | |
| 10500 | // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the |
| 10501 | // "process.executable.build_id.gnu" semantic conventions. It represents the GNU |
| 10502 | // build ID as found in the `.note.gnu.build-id` ELF section (hex string). |
| 10503 | func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue { |
| 10504 | return ProcessExecutableBuildIDGNUKey.String(val) |
| 10505 | } |
| 10506 | |
| 10507 | // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the |
| 10508 | // "process.executable.build_id.go" semantic conventions. It represents the Go |
| 10509 | // build ID as retrieved by `go tool buildid <go executable>`. |
| 10510 | func ProcessExecutableBuildIDGo(val string) attribute.KeyValue { |
| 10511 | return ProcessExecutableBuildIDGoKey.String(val) |
| 10512 | } |
| 10513 | |
| 10514 | // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to |
| 10515 | // the "process.executable.build_id.htlhash" semantic conventions. It represents |
| 10516 | // the profiling specific build ID for executables. See the OTel specification |
| 10517 | // for Profiles for more information. |
| 10518 | func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue { |
| 10519 | return ProcessExecutableBuildIDHtlhashKey.String(val) |
| 10520 | } |
| 10521 | |
| 10522 | // ProcessExecutableName returns an attribute KeyValue conforming to the |
| 10523 | // "process.executable.name" semantic conventions. It represents the name of the |
| 10524 | // process executable. On Linux based systems, this SHOULD be set to the base |
| 10525 | // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the |
| 10526 | // base name of `GetProcessImageFileNameW`. |
| 10527 | func ProcessExecutableName(val string) attribute.KeyValue { |
| 10528 | return ProcessExecutableNameKey.String(val) |
| 10529 | } |
| 10530 | |
| 10531 | // ProcessExecutablePath returns an attribute KeyValue conforming to the |
| 10532 | // "process.executable.path" semantic conventions. It represents the full path to |
| 10533 | // the process executable. On Linux based systems, can be set to the target of |
| 10534 | // `proc/[pid]/exe`. On Windows, can be set to the result of |
| 10535 | // `GetProcessImageFileNameW`. |
| 10536 | func ProcessExecutablePath(val string) attribute.KeyValue { |
| 10537 | return ProcessExecutablePathKey.String(val) |
| 10538 | } |
| 10539 | |
| 10540 | // ProcessExitCode returns an attribute KeyValue conforming to the |
| 10541 | // "process.exit.code" semantic conventions. It represents the exit code of the |
| 10542 | // process. |
| 10543 | func ProcessExitCode(val int) attribute.KeyValue { |
| 10544 | return ProcessExitCodeKey.Int(val) |
| 10545 | } |
| 10546 | |
| 10547 | // ProcessExitTime returns an attribute KeyValue conforming to the |
| 10548 | // "process.exit.time" semantic conventions. It represents the date and time the |
| 10549 | // process exited, in ISO 8601 format. |
| 10550 | func ProcessExitTime(val string) attribute.KeyValue { |
| 10551 | return ProcessExitTimeKey.String(val) |
| 10552 | } |
| 10553 | |
| 10554 | // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the |
| 10555 | // "process.group_leader.pid" semantic conventions. It represents the PID of the |
| 10556 | // process's group leader. This is also the process group ID (PGID) of the |
| 10557 | // process. |
| 10558 | func ProcessGroupLeaderPID(val int) attribute.KeyValue { |
| 10559 | return ProcessGroupLeaderPIDKey.Int(val) |
| 10560 | } |
| 10561 | |
| 10562 | // ProcessInteractive returns an attribute KeyValue conforming to the |
| 10563 | // "process.interactive" semantic conventions. It represents the whether the |
| 10564 | // process is connected to an interactive shell. |
| 10565 | func ProcessInteractive(val bool) attribute.KeyValue { |
| 10566 | return ProcessInteractiveKey.Bool(val) |
| 10567 | } |
| 10568 | |
| 10569 | // ProcessLinuxCgroup returns an attribute KeyValue conforming to the |
| 10570 | // "process.linux.cgroup" semantic conventions. It represents the control group |
| 10571 | // associated with the process. |
| 10572 | func ProcessLinuxCgroup(val string) attribute.KeyValue { |
| 10573 | return ProcessLinuxCgroupKey.String(val) |
| 10574 | } |
| 10575 | |
| 10576 | // ProcessOwner returns an attribute KeyValue conforming to the "process.owner" |
| 10577 | // semantic conventions. It represents the username of the user that owns the |
| 10578 | // process. |
| 10579 | func ProcessOwner(val string) attribute.KeyValue { |
| 10580 | return ProcessOwnerKey.String(val) |
| 10581 | } |
| 10582 | |
| 10583 | // ProcessParentPID returns an attribute KeyValue conforming to the |
| 10584 | // "process.parent_pid" semantic conventions. It represents the parent Process |
| 10585 | // identifier (PPID). |
| 10586 | func ProcessParentPID(val int) attribute.KeyValue { |
| 10587 | return ProcessParentPIDKey.Int(val) |
| 10588 | } |
| 10589 | |
| 10590 | // ProcessPID returns an attribute KeyValue conforming to the "process.pid" |
| 10591 | // semantic conventions. It represents the process identifier (PID). |
| 10592 | func ProcessPID(val int) attribute.KeyValue { |
| 10593 | return ProcessPIDKey.Int(val) |
| 10594 | } |
| 10595 | |
| 10596 | // ProcessRealUserID returns an attribute KeyValue conforming to the |
| 10597 | // "process.real_user.id" semantic conventions. It represents the real user ID |
| 10598 | // (RUID) of the process. |
| 10599 | func ProcessRealUserID(val int) attribute.KeyValue { |
| 10600 | return ProcessRealUserIDKey.Int(val) |
| 10601 | } |
| 10602 | |
| 10603 | // ProcessRealUserName returns an attribute KeyValue conforming to the |
| 10604 | // "process.real_user.name" semantic conventions. It represents the username of |
| 10605 | // the real user of the process. |
| 10606 | func ProcessRealUserName(val string) attribute.KeyValue { |
| 10607 | return ProcessRealUserNameKey.String(val) |
| 10608 | } |
| 10609 | |
| 10610 | // ProcessRuntimeDescription returns an attribute KeyValue conforming to the |
| 10611 | // "process.runtime.description" semantic conventions. It represents an |
| 10612 | // additional description about the runtime of the process, for example a |
| 10613 | // specific vendor customization of the runtime environment. |
| 10614 | func ProcessRuntimeDescription(val string) attribute.KeyValue { |
| 10615 | return ProcessRuntimeDescriptionKey.String(val) |
| 10616 | } |
| 10617 | |
| 10618 | // ProcessRuntimeName returns an attribute KeyValue conforming to the |
| 10619 | // "process.runtime.name" semantic conventions. It represents the name of the |
| 10620 | // runtime of this process. |
| 10621 | func ProcessRuntimeName(val string) attribute.KeyValue { |
| 10622 | return ProcessRuntimeNameKey.String(val) |
| 10623 | } |
| 10624 | |
| 10625 | // ProcessRuntimeVersion returns an attribute KeyValue conforming to the |
| 10626 | // "process.runtime.version" semantic conventions. It represents the version of |
| 10627 | // the runtime of this process, as returned by the runtime without modification. |
| 10628 | func ProcessRuntimeVersion(val string) attribute.KeyValue { |
| 10629 | return ProcessRuntimeVersionKey.String(val) |
| 10630 | } |
| 10631 | |
| 10632 | // ProcessSavedUserID returns an attribute KeyValue conforming to the |
| 10633 | // "process.saved_user.id" semantic conventions. It represents the saved user ID |
| 10634 | // (SUID) of the process. |
| 10635 | func ProcessSavedUserID(val int) attribute.KeyValue { |
| 10636 | return ProcessSavedUserIDKey.Int(val) |
| 10637 | } |
| 10638 | |
| 10639 | // ProcessSavedUserName returns an attribute KeyValue conforming to the |
| 10640 | // "process.saved_user.name" semantic conventions. It represents the username of |
| 10641 | // the saved user. |
| 10642 | func ProcessSavedUserName(val string) attribute.KeyValue { |
| 10643 | return ProcessSavedUserNameKey.String(val) |
| 10644 | } |
| 10645 | |
| 10646 | // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the |
| 10647 | // "process.session_leader.pid" semantic conventions. It represents the PID of |
| 10648 | // the process's session leader. This is also the session ID (SID) of the |
| 10649 | // process. |
| 10650 | func ProcessSessionLeaderPID(val int) attribute.KeyValue { |
| 10651 | return ProcessSessionLeaderPIDKey.Int(val) |
| 10652 | } |
| 10653 | |
| 10654 | // ProcessTitle returns an attribute KeyValue conforming to the "process.title" |
| 10655 | // semantic conventions. It represents the process title (proctitle). |
| 10656 | func ProcessTitle(val string) attribute.KeyValue { |
| 10657 | return ProcessTitleKey.String(val) |
| 10658 | } |
| 10659 | |
| 10660 | // ProcessUserID returns an attribute KeyValue conforming to the |
| 10661 | // "process.user.id" semantic conventions. It represents the effective user ID |
| 10662 | // (EUID) of the process. |
| 10663 | func ProcessUserID(val int) attribute.KeyValue { |
| 10664 | return ProcessUserIDKey.Int(val) |
| 10665 | } |
| 10666 | |
| 10667 | // ProcessUserName returns an attribute KeyValue conforming to the |
| 10668 | // "process.user.name" semantic conventions. It represents the username of the |
| 10669 | // effective user of the process. |
| 10670 | func ProcessUserName(val string) attribute.KeyValue { |
| 10671 | return ProcessUserNameKey.String(val) |
| 10672 | } |
| 10673 | |
| 10674 | // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid" |
| 10675 | // semantic conventions. It represents the virtual process identifier. |
| 10676 | func ProcessVpid(val int) attribute.KeyValue { |
| 10677 | return ProcessVpidKey.Int(val) |
| 10678 | } |
| 10679 | |
| 10680 | // ProcessWorkingDirectory returns an attribute KeyValue conforming to the |
| 10681 | // "process.working_directory" semantic conventions. It represents the working |
| 10682 | // directory of the process. |
| 10683 | func ProcessWorkingDirectory(val string) attribute.KeyValue { |
| 10684 | return ProcessWorkingDirectoryKey.String(val) |
| 10685 | } |
| 10686 | |
| 10687 | // Enum values for process.context_switch_type |
| 10688 | var ( |
| 10689 | // voluntary |
| 10690 | // Stability: development |
| 10691 | ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary") |
| 10692 | // involuntary |
| 10693 | // Stability: development |
| 10694 | ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary") |
| 10695 | ) |
| 10696 | |
| 10697 | // Enum values for process.paging.fault_type |
| 10698 | var ( |
| 10699 | // major |
| 10700 | // Stability: development |
| 10701 | ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major") |
| 10702 | // minor |
| 10703 | // Stability: development |
| 10704 | ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor") |
| 10705 | ) |
| 10706 | |
| 10707 | // Namespace: profile |
| 10708 | const ( |
| 10709 | // ProfileFrameTypeKey is the attribute Key conforming to the |
| 10710 | // "profile.frame.type" semantic conventions. It represents the describes the |
| 10711 | // interpreter or compiler of a single frame. |
| 10712 | // |
| 10713 | // Type: Enum |
| 10714 | // RequirementLevel: Recommended |
| 10715 | // Stability: Development |
| 10716 | // |
| 10717 | // Examples: "cpython" |
| 10718 | ProfileFrameTypeKey = attribute.Key("profile.frame.type") |
| 10719 | ) |
| 10720 | |
| 10721 | // Enum values for profile.frame.type |
| 10722 | var ( |
| 10723 | // [.NET] |
| 10724 | // |
| 10725 | // Stability: development |
| 10726 | // |
| 10727 | // [.NET]: https://wikipedia.org/wiki/.NET |
| 10728 | ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet") |
| 10729 | // [JVM] |
| 10730 | // |
| 10731 | // Stability: development |
| 10732 | // |
| 10733 | // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine |
| 10734 | ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm") |
| 10735 | // [Kernel] |
| 10736 | // |
| 10737 | // Stability: development |
| 10738 | // |
| 10739 | // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system) |
| 10740 | ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel") |
| 10741 | // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a |
| 10742 | // more precise value MUST be used. |
| 10743 | // |
| 10744 | // Stability: development |
| 10745 | // |
| 10746 | // [C]: https://wikipedia.org/wiki/C_(programming_language) |
| 10747 | // [C++]: https://wikipedia.org/wiki/C%2B%2B |
| 10748 | // [Go]: https://wikipedia.org/wiki/Go_(programming_language) |
| 10749 | // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language) |
| 10750 | ProfileFrameTypeNative = ProfileFrameTypeKey.String("native") |
| 10751 | // [Perl] |
| 10752 | // |
| 10753 | // Stability: development |
| 10754 | // |
| 10755 | // [Perl]: https://wikipedia.org/wiki/Perl |
| 10756 | ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl") |
| 10757 | // [PHP] |
| 10758 | // |
| 10759 | // Stability: development |
| 10760 | // |
| 10761 | // [PHP]: https://wikipedia.org/wiki/PHP |
| 10762 | ProfileFrameTypePHP = ProfileFrameTypeKey.String("php") |
| 10763 | // [Python] |
| 10764 | // |
| 10765 | // Stability: development |
| 10766 | // |
| 10767 | // [Python]: https://wikipedia.org/wiki/Python_(programming_language) |
| 10768 | ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython") |
| 10769 | // [Ruby] |
| 10770 | // |
| 10771 | // Stability: development |
| 10772 | // |
| 10773 | // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language) |
| 10774 | ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby") |
| 10775 | // [V8JS] |
| 10776 | // |
| 10777 | // Stability: development |
| 10778 | // |
| 10779 | // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine) |
| 10780 | ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js") |
| 10781 | // [Erlang] |
| 10782 | // |
| 10783 | // Stability: development |
| 10784 | // |
| 10785 | // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine) |
| 10786 | ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam") |
| 10787 | // [Go], |
| 10788 | // |
| 10789 | // Stability: development |
| 10790 | // |
| 10791 | // [Go]: https://wikipedia.org/wiki/Go_(programming_language) |
| 10792 | ProfileFrameTypeGo = ProfileFrameTypeKey.String("go") |
| 10793 | // [Rust] |
| 10794 | // |
| 10795 | // Stability: development |
| 10796 | // |
| 10797 | // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language) |
| 10798 | ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust") |
| 10799 | ) |
| 10800 | |
| 10801 | // Namespace: rpc |
| 10802 | const ( |
| 10803 | // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the |
| 10804 | // "rpc.connect_rpc.error_code" semantic conventions. It represents the |
| 10805 | // [error codes] of the Connect request. Error codes are always string values. |
| 10806 | // |
| 10807 | // Type: Enum |
| 10808 | // RequirementLevel: Recommended |
| 10809 | // Stability: Development |
| 10810 | // |
| 10811 | // Examples: |
| 10812 | // |
| 10813 | // [error codes]: https://connectrpc.com//docs/protocol/#error-codes |
| 10814 | RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code") |
| 10815 | |
| 10816 | // RPCGRPCStatusCodeKey is the attribute Key conforming to the |
| 10817 | // "rpc.grpc.status_code" semantic conventions. It represents the |
| 10818 | // [numeric status code] of the gRPC request. |
| 10819 | // |
| 10820 | // Type: Enum |
| 10821 | // RequirementLevel: Recommended |
| 10822 | // Stability: Development |
| 10823 | // |
| 10824 | // Examples: |
| 10825 | // |
| 10826 | // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md |
| 10827 | RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code") |
| 10828 | |
| 10829 | // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the |
| 10830 | // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` |
| 10831 | // property of response if it is an error response. |
| 10832 | // |
| 10833 | // Type: int |
| 10834 | // RequirementLevel: Recommended |
| 10835 | // Stability: Development |
| 10836 | // |
| 10837 | // Examples: -32700, 100 |
| 10838 | RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code") |
| 10839 | |
| 10840 | // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the |
| 10841 | // "rpc.jsonrpc.error_message" semantic conventions. It represents the |
| 10842 | // `error.message` property of response if it is an error response. |
| 10843 | // |
| 10844 | // Type: string |
| 10845 | // RequirementLevel: Recommended |
| 10846 | // Stability: Development |
| 10847 | // |
| 10848 | // Examples: "Parse error", "User already exists" |
| 10849 | RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message") |
| 10850 | |
| 10851 | // RPCJSONRPCRequestIDKey is the attribute Key conforming to the |
| 10852 | // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` |
| 10853 | // property of request or response. Since protocol allows id to be int, string, |
| 10854 | // `null` or missing (for notifications), value is expected to be cast to string |
| 10855 | // for simplicity. Use empty string in case of `null` value. Omit entirely if |
| 10856 | // this is a notification. |
| 10857 | // |
| 10858 | // Type: string |
| 10859 | // RequirementLevel: Recommended |
| 10860 | // Stability: Development |
| 10861 | // |
| 10862 | // Examples: "10", "request-7", "" |
| 10863 | RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id") |
| 10864 | |
| 10865 | // RPCJSONRPCVersionKey is the attribute Key conforming to the |
| 10866 | // "rpc.jsonrpc.version" semantic conventions. It represents the protocol |
| 10867 | // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 |
| 10868 | // doesn't specify this, the value can be omitted. |
| 10869 | // |
| 10870 | // Type: string |
| 10871 | // RequirementLevel: Recommended |
| 10872 | // Stability: Development |
| 10873 | // |
| 10874 | // Examples: "2.0", "1.0" |
| 10875 | RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version") |
| 10876 | |
| 10877 | // RPCMessageCompressedSizeKey is the attribute Key conforming to the |
| 10878 | // "rpc.message.compressed_size" semantic conventions. It represents the |
| 10879 | // compressed size of the message in bytes. |
| 10880 | // |
| 10881 | // Type: int |
| 10882 | // RequirementLevel: Recommended |
| 10883 | // Stability: Development |
| 10884 | // |
| 10885 | // Examples: |
| 10886 | RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size") |
| 10887 | |
| 10888 | // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id" |
| 10889 | // semantic conventions. It MUST be calculated as two different counters |
| 10890 | // starting from `1` one for sent messages and one for received message.. |
| 10891 | // |
| 10892 | // Type: int |
| 10893 | // RequirementLevel: Recommended |
| 10894 | // Stability: Development |
| 10895 | // |
| 10896 | // Examples: |
| 10897 | // Note: This way we guarantee that the values will be consistent between |
| 10898 | // different implementations. |
| 10899 | RPCMessageIDKey = attribute.Key("rpc.message.id") |
| 10900 | |
| 10901 | // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type" |
| 10902 | // semantic conventions. It represents the whether this is a received or sent |
| 10903 | // message. |
| 10904 | // |
| 10905 | // Type: Enum |
| 10906 | // RequirementLevel: Recommended |
| 10907 | // Stability: Development |
| 10908 | // |
| 10909 | // Examples: |
| 10910 | RPCMessageTypeKey = attribute.Key("rpc.message.type") |
| 10911 | |
| 10912 | // RPCMessageUncompressedSizeKey is the attribute Key conforming to the |
| 10913 | // "rpc.message.uncompressed_size" semantic conventions. It represents the |
| 10914 | // uncompressed size of the message in bytes. |
| 10915 | // |
| 10916 | // Type: int |
| 10917 | // RequirementLevel: Recommended |
| 10918 | // Stability: Development |
| 10919 | // |
| 10920 | // Examples: |
| 10921 | RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size") |
| 10922 | |
| 10923 | // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic |
| 10924 | // conventions. It represents the name of the (logical) method being called, |
| 10925 | // must be equal to the $method part in the span name. |
| 10926 | // |
| 10927 | // Type: string |
| 10928 | // RequirementLevel: Recommended |
| 10929 | // Stability: Development |
| 10930 | // |
| 10931 | // Examples: exampleMethod |
| 10932 | // Note: This is the logical name of the method from the RPC interface |
| 10933 | // perspective, which can be different from the name of any implementing |
| 10934 | // method/function. The `code.function.name` attribute may be used to store the |
| 10935 | // latter (e.g., method actually executing the call on the server side, RPC |
| 10936 | // client stub method on the client side). |
| 10937 | RPCMethodKey = attribute.Key("rpc.method") |
| 10938 | |
| 10939 | // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic |
| 10940 | // conventions. It represents the full (logical) name of the service being |
| 10941 | // called, including its package name, if applicable. |
| 10942 | // |
| 10943 | // Type: string |
| 10944 | // RequirementLevel: Recommended |
| 10945 | // Stability: Development |
| 10946 | // |
| 10947 | // Examples: myservice.EchoService |
| 10948 | // Note: This is the logical name of the service from the RPC interface |
| 10949 | // perspective, which can be different from the name of any implementing class. |
| 10950 | // The `code.namespace` attribute may be used to store the latter (despite the |
| 10951 | // attribute name, it may include a class name; e.g., class with method actually |
| 10952 | // executing the call on the server side, RPC client stub class on the client |
| 10953 | // side). |
| 10954 | RPCServiceKey = attribute.Key("rpc.service") |
| 10955 | |
| 10956 | // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic |
| 10957 | // conventions. It represents a string identifying the remoting system. See |
| 10958 | // below for a list of well-known identifiers. |
| 10959 | // |
| 10960 | // Type: Enum |
| 10961 | // RequirementLevel: Recommended |
| 10962 | // Stability: Development |
| 10963 | // |
| 10964 | // Examples: |
| 10965 | RPCSystemKey = attribute.Key("rpc.system") |
| 10966 | ) |
| 10967 | |
| 10968 | // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the |
| 10969 | // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` |
| 10970 | // property of response if it is an error response. |
| 10971 | func RPCJSONRPCErrorCode(val int) attribute.KeyValue { |
| 10972 | return RPCJSONRPCErrorCodeKey.Int(val) |
| 10973 | } |
| 10974 | |
| 10975 | // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the |
| 10976 | // "rpc.jsonrpc.error_message" semantic conventions. It represents the |
| 10977 | // `error.message` property of response if it is an error response. |
| 10978 | func RPCJSONRPCErrorMessage(val string) attribute.KeyValue { |
| 10979 | return RPCJSONRPCErrorMessageKey.String(val) |
| 10980 | } |
| 10981 | |
| 10982 | // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the |
| 10983 | // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property |
| 10984 | // of request or response. Since protocol allows id to be int, string, `null` or |
| 10985 | // missing (for notifications), value is expected to be cast to string for |
| 10986 | // simplicity. Use empty string in case of `null` value. Omit entirely if this is |
| 10987 | // a notification. |
| 10988 | func RPCJSONRPCRequestID(val string) attribute.KeyValue { |
| 10989 | return RPCJSONRPCRequestIDKey.String(val) |
| 10990 | } |
| 10991 | |
| 10992 | // RPCJSONRPCVersion returns an attribute KeyValue conforming to the |
| 10993 | // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version |
| 10994 | // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't |
| 10995 | // specify this, the value can be omitted. |
| 10996 | func RPCJSONRPCVersion(val string) attribute.KeyValue { |
| 10997 | return RPCJSONRPCVersionKey.String(val) |
| 10998 | } |
| 10999 | |
| 11000 | // RPCMessageCompressedSize returns an attribute KeyValue conforming to the |
| 11001 | // "rpc.message.compressed_size" semantic conventions. It represents the |
| 11002 | // compressed size of the message in bytes. |
| 11003 | func RPCMessageCompressedSize(val int) attribute.KeyValue { |
| 11004 | return RPCMessageCompressedSizeKey.Int(val) |
| 11005 | } |
| 11006 | |
| 11007 | // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id" |
| 11008 | // semantic conventions. It MUST be calculated as two different counters starting |
| 11009 | // from `1` one for sent messages and one for received message.. |
| 11010 | func RPCMessageID(val int) attribute.KeyValue { |
| 11011 | return RPCMessageIDKey.Int(val) |
| 11012 | } |
| 11013 | |
| 11014 | // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the |
| 11015 | // "rpc.message.uncompressed_size" semantic conventions. It represents the |
| 11016 | // uncompressed size of the message in bytes. |
| 11017 | func RPCMessageUncompressedSize(val int) attribute.KeyValue { |
| 11018 | return RPCMessageUncompressedSizeKey.Int(val) |
| 11019 | } |
| 11020 | |
| 11021 | // RPCMethod returns an attribute KeyValue conforming to the "rpc.method" |
| 11022 | // semantic conventions. It represents the name of the (logical) method being |
| 11023 | // called, must be equal to the $method part in the span name. |
| 11024 | func RPCMethod(val string) attribute.KeyValue { |
| 11025 | return RPCMethodKey.String(val) |
| 11026 | } |
| 11027 | |
| 11028 | // RPCService returns an attribute KeyValue conforming to the "rpc.service" |
| 11029 | // semantic conventions. It represents the full (logical) name of the service |
| 11030 | // being called, including its package name, if applicable. |
| 11031 | func RPCService(val string) attribute.KeyValue { |
| 11032 | return RPCServiceKey.String(val) |
| 11033 | } |
| 11034 | |
| 11035 | // Enum values for rpc.connect_rpc.error_code |
| 11036 | var ( |
| 11037 | // cancelled |
| 11038 | // Stability: development |
| 11039 | RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled") |
| 11040 | // unknown |
| 11041 | // Stability: development |
| 11042 | RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown") |
| 11043 | // invalid_argument |
| 11044 | // Stability: development |
| 11045 | RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument") |
| 11046 | // deadline_exceeded |
| 11047 | // Stability: development |
| 11048 | RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded") |
| 11049 | // not_found |
| 11050 | // Stability: development |
| 11051 | RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found") |
| 11052 | // already_exists |
| 11053 | // Stability: development |
| 11054 | RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists") |
| 11055 | // permission_denied |
| 11056 | // Stability: development |
| 11057 | RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied") |
| 11058 | // resource_exhausted |
| 11059 | // Stability: development |
| 11060 | RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted") |
| 11061 | // failed_precondition |
| 11062 | // Stability: development |
| 11063 | RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition") |
| 11064 | // aborted |
| 11065 | // Stability: development |
| 11066 | RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted") |
| 11067 | // out_of_range |
| 11068 | // Stability: development |
| 11069 | RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range") |
| 11070 | // unimplemented |
| 11071 | // Stability: development |
| 11072 | RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented") |
| 11073 | // internal |
| 11074 | // Stability: development |
| 11075 | RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal") |
| 11076 | // unavailable |
| 11077 | // Stability: development |
| 11078 | RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable") |
| 11079 | // data_loss |
| 11080 | // Stability: development |
| 11081 | RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss") |
| 11082 | // unauthenticated |
| 11083 | // Stability: development |
| 11084 | RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated") |
| 11085 | ) |
| 11086 | |
| 11087 | // Enum values for rpc.grpc.status_code |
| 11088 | var ( |
| 11089 | // OK |
| 11090 | // Stability: development |
| 11091 | RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0) |
| 11092 | // CANCELLED |
| 11093 | // Stability: development |
| 11094 | RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1) |
| 11095 | // UNKNOWN |
| 11096 | // Stability: development |
| 11097 | RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2) |
| 11098 | // INVALID_ARGUMENT |
| 11099 | // Stability: development |
| 11100 | RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3) |
| 11101 | // DEADLINE_EXCEEDED |
| 11102 | // Stability: development |
| 11103 | RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4) |
| 11104 | // NOT_FOUND |
| 11105 | // Stability: development |
| 11106 | RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5) |
| 11107 | // ALREADY_EXISTS |
| 11108 | // Stability: development |
| 11109 | RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6) |
| 11110 | // PERMISSION_DENIED |
| 11111 | // Stability: development |
| 11112 | RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7) |
| 11113 | // RESOURCE_EXHAUSTED |
| 11114 | // Stability: development |
| 11115 | RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8) |
| 11116 | // FAILED_PRECONDITION |
| 11117 | // Stability: development |
| 11118 | RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9) |
| 11119 | // ABORTED |
| 11120 | // Stability: development |
| 11121 | RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10) |
| 11122 | // OUT_OF_RANGE |
| 11123 | // Stability: development |
| 11124 | RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11) |
| 11125 | // UNIMPLEMENTED |
| 11126 | // Stability: development |
| 11127 | RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12) |
| 11128 | // INTERNAL |
| 11129 | // Stability: development |
| 11130 | RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13) |
| 11131 | // UNAVAILABLE |
| 11132 | // Stability: development |
| 11133 | RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14) |
| 11134 | // DATA_LOSS |
| 11135 | // Stability: development |
| 11136 | RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15) |
| 11137 | // UNAUTHENTICATED |
| 11138 | // Stability: development |
| 11139 | RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16) |
| 11140 | ) |
| 11141 | |
| 11142 | // Enum values for rpc.message.type |
| 11143 | var ( |
| 11144 | // sent |
| 11145 | // Stability: development |
| 11146 | RPCMessageTypeSent = RPCMessageTypeKey.String("SENT") |
| 11147 | // received |
| 11148 | // Stability: development |
| 11149 | RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED") |
| 11150 | ) |
| 11151 | |
| 11152 | // Enum values for rpc.system |
| 11153 | var ( |
| 11154 | // gRPC |
| 11155 | // Stability: development |
| 11156 | RPCSystemGRPC = RPCSystemKey.String("grpc") |
| 11157 | // Java RMI |
| 11158 | // Stability: development |
| 11159 | RPCSystemJavaRmi = RPCSystemKey.String("java_rmi") |
| 11160 | // .NET WCF |
| 11161 | // Stability: development |
| 11162 | RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf") |
| 11163 | // Apache Dubbo |
| 11164 | // Stability: development |
| 11165 | RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo") |
| 11166 | // Connect RPC |
| 11167 | // Stability: development |
| 11168 | RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc") |
| 11169 | ) |
| 11170 | |
| 11171 | // Namespace: security_rule |
| 11172 | const ( |
| 11173 | // SecurityRuleCategoryKey is the attribute Key conforming to the |
| 11174 | // "security_rule.category" semantic conventions. It represents a categorization |
| 11175 | // value keyword used by the entity using the rule for detection of this event. |
| 11176 | // |
| 11177 | // Type: string |
| 11178 | // RequirementLevel: Recommended |
| 11179 | // Stability: Development |
| 11180 | // |
| 11181 | // Examples: "Attempted Information Leak" |
| 11182 | SecurityRuleCategoryKey = attribute.Key("security_rule.category") |
| 11183 | |
| 11184 | // SecurityRuleDescriptionKey is the attribute Key conforming to the |
| 11185 | // "security_rule.description" semantic conventions. It represents the |
| 11186 | // description of the rule generating the event. |
| 11187 | // |
| 11188 | // Type: string |
| 11189 | // RequirementLevel: Recommended |
| 11190 | // Stability: Development |
| 11191 | // |
| 11192 | // Examples: "Block requests to public DNS over HTTPS / TLS protocols" |
| 11193 | SecurityRuleDescriptionKey = attribute.Key("security_rule.description") |
| 11194 | |
| 11195 | // SecurityRuleLicenseKey is the attribute Key conforming to the |
| 11196 | // "security_rule.license" semantic conventions. It represents the name of the |
| 11197 | // license under which the rule used to generate this event is made available. |
| 11198 | // |
| 11199 | // Type: string |
| 11200 | // RequirementLevel: Recommended |
| 11201 | // Stability: Development |
| 11202 | // |
| 11203 | // Examples: "Apache 2.0" |
| 11204 | SecurityRuleLicenseKey = attribute.Key("security_rule.license") |
| 11205 | |
| 11206 | // SecurityRuleNameKey is the attribute Key conforming to the |
| 11207 | // "security_rule.name" semantic conventions. It represents the name of the rule |
| 11208 | // or signature generating the event. |
| 11209 | // |
| 11210 | // Type: string |
| 11211 | // RequirementLevel: Recommended |
| 11212 | // Stability: Development |
| 11213 | // |
| 11214 | // Examples: "BLOCK_DNS_over_TLS" |
| 11215 | SecurityRuleNameKey = attribute.Key("security_rule.name") |
| 11216 | |
| 11217 | // SecurityRuleReferenceKey is the attribute Key conforming to the |
| 11218 | // "security_rule.reference" semantic conventions. It represents the reference |
| 11219 | // URL to additional information about the rule used to generate this event. |
| 11220 | // |
| 11221 | // Type: string |
| 11222 | // RequirementLevel: Recommended |
| 11223 | // Stability: Development |
| 11224 | // |
| 11225 | // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS" |
| 11226 | // Note: The URL can point to the vendor’s documentation about the rule. If |
| 11227 | // that’s not available, it can also be a link to a more general page |
| 11228 | // describing this type of alert. |
| 11229 | SecurityRuleReferenceKey = attribute.Key("security_rule.reference") |
| 11230 | |
| 11231 | // SecurityRuleRulesetNameKey is the attribute Key conforming to the |
| 11232 | // "security_rule.ruleset.name" semantic conventions. It represents the name of |
| 11233 | // the ruleset, policy, group, or parent category in which the rule used to |
| 11234 | // generate this event is a member. |
| 11235 | // |
| 11236 | // Type: string |
| 11237 | // RequirementLevel: Recommended |
| 11238 | // Stability: Development |
| 11239 | // |
| 11240 | // Examples: "Standard_Protocol_Filters" |
| 11241 | SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name") |
| 11242 | |
| 11243 | // SecurityRuleUUIDKey is the attribute Key conforming to the |
| 11244 | // "security_rule.uuid" semantic conventions. It represents a rule ID that is |
| 11245 | // unique within the scope of a set or group of agents, observers, or other |
| 11246 | // entities using the rule for detection of this event. |
| 11247 | // |
| 11248 | // Type: string |
| 11249 | // RequirementLevel: Recommended |
| 11250 | // Stability: Development |
| 11251 | // |
| 11252 | // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011" |
| 11253 | SecurityRuleUUIDKey = attribute.Key("security_rule.uuid") |
| 11254 | |
| 11255 | // SecurityRuleVersionKey is the attribute Key conforming to the |
| 11256 | // "security_rule.version" semantic conventions. It represents the version / |
| 11257 | // revision of the rule being used for analysis. |
| 11258 | // |
| 11259 | // Type: string |
| 11260 | // RequirementLevel: Recommended |
| 11261 | // Stability: Development |
| 11262 | // |
| 11263 | // Examples: "1.0.0" |
| 11264 | SecurityRuleVersionKey = attribute.Key("security_rule.version") |
| 11265 | ) |
| 11266 | |
| 11267 | // SecurityRuleCategory returns an attribute KeyValue conforming to the |
| 11268 | // "security_rule.category" semantic conventions. It represents a categorization |
| 11269 | // value keyword used by the entity using the rule for detection of this event. |
| 11270 | func SecurityRuleCategory(val string) attribute.KeyValue { |
| 11271 | return SecurityRuleCategoryKey.String(val) |
| 11272 | } |
| 11273 | |
| 11274 | // SecurityRuleDescription returns an attribute KeyValue conforming to the |
| 11275 | // "security_rule.description" semantic conventions. It represents the |
| 11276 | // description of the rule generating the event. |
| 11277 | func SecurityRuleDescription(val string) attribute.KeyValue { |
| 11278 | return SecurityRuleDescriptionKey.String(val) |
| 11279 | } |
| 11280 | |
| 11281 | // SecurityRuleLicense returns an attribute KeyValue conforming to the |
| 11282 | // "security_rule.license" semantic conventions. It represents the name of the |
| 11283 | // license under which the rule used to generate this event is made available. |
| 11284 | func SecurityRuleLicense(val string) attribute.KeyValue { |
| 11285 | return SecurityRuleLicenseKey.String(val) |
| 11286 | } |
| 11287 | |
| 11288 | // SecurityRuleName returns an attribute KeyValue conforming to the |
| 11289 | // "security_rule.name" semantic conventions. It represents the name of the rule |
| 11290 | // or signature generating the event. |
| 11291 | func SecurityRuleName(val string) attribute.KeyValue { |
| 11292 | return SecurityRuleNameKey.String(val) |
| 11293 | } |
| 11294 | |
| 11295 | // SecurityRuleReference returns an attribute KeyValue conforming to the |
| 11296 | // "security_rule.reference" semantic conventions. It represents the reference |
| 11297 | // URL to additional information about the rule used to generate this event. |
| 11298 | func SecurityRuleReference(val string) attribute.KeyValue { |
| 11299 | return SecurityRuleReferenceKey.String(val) |
| 11300 | } |
| 11301 | |
| 11302 | // SecurityRuleRulesetName returns an attribute KeyValue conforming to the |
| 11303 | // "security_rule.ruleset.name" semantic conventions. It represents the name of |
| 11304 | // the ruleset, policy, group, or parent category in which the rule used to |
| 11305 | // generate this event is a member. |
| 11306 | func SecurityRuleRulesetName(val string) attribute.KeyValue { |
| 11307 | return SecurityRuleRulesetNameKey.String(val) |
| 11308 | } |
| 11309 | |
| 11310 | // SecurityRuleUUID returns an attribute KeyValue conforming to the |
| 11311 | // "security_rule.uuid" semantic conventions. It represents a rule ID that is |
| 11312 | // unique within the scope of a set or group of agents, observers, or other |
| 11313 | // entities using the rule for detection of this event. |
| 11314 | func SecurityRuleUUID(val string) attribute.KeyValue { |
| 11315 | return SecurityRuleUUIDKey.String(val) |
| 11316 | } |
| 11317 | |
| 11318 | // SecurityRuleVersion returns an attribute KeyValue conforming to the |
| 11319 | // "security_rule.version" semantic conventions. It represents the version / |
| 11320 | // revision of the rule being used for analysis. |
| 11321 | func SecurityRuleVersion(val string) attribute.KeyValue { |
| 11322 | return SecurityRuleVersionKey.String(val) |
| 11323 | } |
| 11324 | |
| 11325 | // Namespace: server |
| 11326 | const ( |
| 11327 | // ServerAddressKey is the attribute Key conforming to the "server.address" |
| 11328 | // semantic conventions. It represents the server domain name if available |
| 11329 | // without reverse DNS lookup; otherwise, IP address or Unix domain socket name. |
| 11330 | // |
| 11331 | // Type: string |
| 11332 | // RequirementLevel: Recommended |
| 11333 | // Stability: Stable |
| 11334 | // |
| 11335 | // Examples: "example.com", "10.1.2.80", "/tmp/my.sock" |
| 11336 | // Note: When observed from the client side, and when communicating through an |
| 11337 | // intermediary, `server.address` SHOULD represent the server address behind any |
| 11338 | // intermediaries, for example proxies, if it's available. |
| 11339 | ServerAddressKey = attribute.Key("server.address") |
| 11340 | |
| 11341 | // ServerPortKey is the attribute Key conforming to the "server.port" semantic |
| 11342 | // conventions. It represents the server port number. |
| 11343 | // |
| 11344 | // Type: int |
| 11345 | // RequirementLevel: Recommended |
| 11346 | // Stability: Stable |
| 11347 | // |
| 11348 | // Examples: 80, 8080, 443 |
| 11349 | // Note: When observed from the client side, and when communicating through an |
| 11350 | // intermediary, `server.port` SHOULD represent the server port behind any |
| 11351 | // intermediaries, for example proxies, if it's available. |
| 11352 | ServerPortKey = attribute.Key("server.port") |
| 11353 | ) |
| 11354 | |
| 11355 | // ServerAddress returns an attribute KeyValue conforming to the "server.address" |
| 11356 | // semantic conventions. It represents the server domain name if available |
| 11357 | // without reverse DNS lookup; otherwise, IP address or Unix domain socket name. |
| 11358 | func ServerAddress(val string) attribute.KeyValue { |
| 11359 | return ServerAddressKey.String(val) |
| 11360 | } |
| 11361 | |
| 11362 | // ServerPort returns an attribute KeyValue conforming to the "server.port" |
| 11363 | // semantic conventions. It represents the server port number. |
| 11364 | func ServerPort(val int) attribute.KeyValue { |
| 11365 | return ServerPortKey.Int(val) |
| 11366 | } |
| 11367 | |
| 11368 | // Namespace: service |
| 11369 | const ( |
| 11370 | // ServiceInstanceIDKey is the attribute Key conforming to the |
| 11371 | // "service.instance.id" semantic conventions. It represents the string ID of |
| 11372 | // the service instance. |
| 11373 | // |
| 11374 | // Type: string |
| 11375 | // RequirementLevel: Recommended |
| 11376 | // Stability: Development |
| 11377 | // |
| 11378 | // Examples: "627cc493-f310-47de-96bd-71410b7dec09" |
| 11379 | // Note: MUST be unique for each instance of the same |
| 11380 | // `service.namespace,service.name` pair (in other words |
| 11381 | // `service.namespace,service.name,service.instance.id` triplet MUST be globally |
| 11382 | // unique). The ID helps to |
| 11383 | // distinguish instances of the same service that exist at the same time (e.g. |
| 11384 | // instances of a horizontally scaled |
| 11385 | // service). |
| 11386 | // |
| 11387 | // Implementations, such as SDKs, are recommended to generate a random Version 1 |
| 11388 | // or Version 4 [RFC |
| 11389 | // 4122] UUID, but are free to use an inherent unique ID as |
| 11390 | // the source of |
| 11391 | // this value if stability is desirable. In that case, the ID SHOULD be used as |
| 11392 | // source of a UUID Version 5 and |
| 11393 | // SHOULD use the following UUID as the namespace: |
| 11394 | // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. |
| 11395 | // |
| 11396 | // UUIDs are typically recommended, as only an opaque value for the purposes of |
| 11397 | // identifying a service instance is |
| 11398 | // needed. Similar to what can be seen in the man page for the |
| 11399 | // [`/etc/machine-id`] file, the underlying |
| 11400 | // data, such as pod name and namespace should be treated as confidential, being |
| 11401 | // the user's choice to expose it |
| 11402 | // or not via another resource attribute. |
| 11403 | // |
| 11404 | // For applications running behind an application server (like unicorn), we do |
| 11405 | // not recommend using one identifier |
| 11406 | // for all processes participating in the application. Instead, it's recommended |
| 11407 | // each division (e.g. a worker |
| 11408 | // thread in unicorn) to have its own instance.id. |
| 11409 | // |
| 11410 | // It's not recommended for a Collector to set `service.instance.id` if it can't |
| 11411 | // unambiguously determine the |
| 11412 | // service instance that is generating that telemetry. For instance, creating an |
| 11413 | // UUID based on `pod.name` will |
| 11414 | // likely be wrong, as the Collector might not know from which container within |
| 11415 | // that pod the telemetry originated. |
| 11416 | // However, Collectors can set the `service.instance.id` if they can |
| 11417 | // unambiguously determine the service instance |
| 11418 | // for that telemetry. This is typically the case for scraping receivers, as |
| 11419 | // they know the target address and |
| 11420 | // port. |
| 11421 | // |
| 11422 | // [RFC |
| 11423 | // 4122]: https://www.ietf.org/rfc/rfc4122.txt |
| 11424 | // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html |
| 11425 | ServiceInstanceIDKey = attribute.Key("service.instance.id") |
| 11426 | |
| 11427 | // ServiceNameKey is the attribute Key conforming to the "service.name" semantic |
| 11428 | // conventions. It represents the logical name of the service. |
| 11429 | // |
| 11430 | // Type: string |
| 11431 | // RequirementLevel: Recommended |
| 11432 | // Stability: Stable |
| 11433 | // |
| 11434 | // Examples: "shoppingcart" |
| 11435 | // Note: MUST be the same for all instances of horizontally scaled services. If |
| 11436 | // the value was not specified, SDKs MUST fallback to `unknown_service:` |
| 11437 | // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`. |
| 11438 | // If `process.executable.name` is not available, the value MUST be set to |
| 11439 | // `unknown_service`. |
| 11440 | // |
| 11441 | // [`process.executable.name`]: process.md |
| 11442 | ServiceNameKey = attribute.Key("service.name") |
| 11443 | |
| 11444 | // ServiceNamespaceKey is the attribute Key conforming to the |
| 11445 | // "service.namespace" semantic conventions. It represents a namespace for |
| 11446 | // `service.name`. |
| 11447 | // |
| 11448 | // Type: string |
| 11449 | // RequirementLevel: Recommended |
| 11450 | // Stability: Development |
| 11451 | // |
| 11452 | // Examples: "Shop" |
| 11453 | // Note: A string value having a meaning that helps to distinguish a group of |
| 11454 | // services, for example the team name that owns a group of services. |
| 11455 | // `service.name` is expected to be unique within the same namespace. If |
| 11456 | // `service.namespace` is not specified in the Resource then `service.name` is |
| 11457 | // expected to be unique for all services that have no explicit namespace |
| 11458 | // defined (so the empty/unspecified namespace is simply one more valid |
| 11459 | // namespace). Zero-length namespace string is assumed equal to unspecified |
| 11460 | // namespace. |
| 11461 | ServiceNamespaceKey = attribute.Key("service.namespace") |
| 11462 | |
| 11463 | // ServiceVersionKey is the attribute Key conforming to the "service.version" |
| 11464 | // semantic conventions. It represents the version string of the service API or |
| 11465 | // implementation. The format is not defined by these conventions. |
| 11466 | // |
| 11467 | // Type: string |
| 11468 | // RequirementLevel: Recommended |
| 11469 | // Stability: Stable |
| 11470 | // |
| 11471 | // Examples: "2.0.0", "a01dbef8a" |
| 11472 | ServiceVersionKey = attribute.Key("service.version") |
| 11473 | ) |
| 11474 | |
| 11475 | // ServiceInstanceID returns an attribute KeyValue conforming to the |
| 11476 | // "service.instance.id" semantic conventions. It represents the string ID of the |
| 11477 | // service instance. |
| 11478 | func ServiceInstanceID(val string) attribute.KeyValue { |
| 11479 | return ServiceInstanceIDKey.String(val) |
| 11480 | } |
| 11481 | |
| 11482 | // ServiceName returns an attribute KeyValue conforming to the "service.name" |
| 11483 | // semantic conventions. It represents the logical name of the service. |
| 11484 | func ServiceName(val string) attribute.KeyValue { |
| 11485 | return ServiceNameKey.String(val) |
| 11486 | } |
| 11487 | |
| 11488 | // ServiceNamespace returns an attribute KeyValue conforming to the |
| 11489 | // "service.namespace" semantic conventions. It represents a namespace for |
| 11490 | // `service.name`. |
| 11491 | func ServiceNamespace(val string) attribute.KeyValue { |
| 11492 | return ServiceNamespaceKey.String(val) |
| 11493 | } |
| 11494 | |
| 11495 | // ServiceVersion returns an attribute KeyValue conforming to the |
| 11496 | // "service.version" semantic conventions. It represents the version string of |
| 11497 | // the service API or implementation. The format is not defined by these |
| 11498 | // conventions. |
| 11499 | func ServiceVersion(val string) attribute.KeyValue { |
| 11500 | return ServiceVersionKey.String(val) |
| 11501 | } |
| 11502 | |
| 11503 | // Namespace: session |
| 11504 | const ( |
| 11505 | // SessionIDKey is the attribute Key conforming to the "session.id" semantic |
| 11506 | // conventions. It represents a unique id to identify a session. |
| 11507 | // |
| 11508 | // Type: string |
| 11509 | // RequirementLevel: Recommended |
| 11510 | // Stability: Development |
| 11511 | // |
| 11512 | // Examples: 00112233-4455-6677-8899-aabbccddeeff |
| 11513 | SessionIDKey = attribute.Key("session.id") |
| 11514 | |
| 11515 | // SessionPreviousIDKey is the attribute Key conforming to the |
| 11516 | // "session.previous_id" semantic conventions. It represents the previous |
| 11517 | // `session.id` for this user, when known. |
| 11518 | // |
| 11519 | // Type: string |
| 11520 | // RequirementLevel: Recommended |
| 11521 | // Stability: Development |
| 11522 | // |
| 11523 | // Examples: 00112233-4455-6677-8899-aabbccddeeff |
| 11524 | SessionPreviousIDKey = attribute.Key("session.previous_id") |
| 11525 | ) |
| 11526 | |
| 11527 | // SessionID returns an attribute KeyValue conforming to the "session.id" |
| 11528 | // semantic conventions. It represents a unique id to identify a session. |
| 11529 | func SessionID(val string) attribute.KeyValue { |
| 11530 | return SessionIDKey.String(val) |
| 11531 | } |
| 11532 | |
| 11533 | // SessionPreviousID returns an attribute KeyValue conforming to the |
| 11534 | // "session.previous_id" semantic conventions. It represents the previous |
| 11535 | // `session.id` for this user, when known. |
| 11536 | func SessionPreviousID(val string) attribute.KeyValue { |
| 11537 | return SessionPreviousIDKey.String(val) |
| 11538 | } |
| 11539 | |
| 11540 | // Namespace: signalr |
| 11541 | const ( |
| 11542 | // SignalRConnectionStatusKey is the attribute Key conforming to the |
| 11543 | // "signalr.connection.status" semantic conventions. It represents the signalR |
| 11544 | // HTTP connection closure status. |
| 11545 | // |
| 11546 | // Type: Enum |
| 11547 | // RequirementLevel: Recommended |
| 11548 | // Stability: Stable |
| 11549 | // |
| 11550 | // Examples: "app_shutdown", "timeout" |
| 11551 | SignalRConnectionStatusKey = attribute.Key("signalr.connection.status") |
| 11552 | |
| 11553 | // SignalRTransportKey is the attribute Key conforming to the |
| 11554 | // "signalr.transport" semantic conventions. It represents the |
| 11555 | // [SignalR transport type]. |
| 11556 | // |
| 11557 | // Type: Enum |
| 11558 | // RequirementLevel: Recommended |
| 11559 | // Stability: Stable |
| 11560 | // |
| 11561 | // Examples: "web_sockets", "long_polling" |
| 11562 | // |
| 11563 | // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md |
| 11564 | SignalRTransportKey = attribute.Key("signalr.transport") |
| 11565 | ) |
| 11566 | |
| 11567 | // Enum values for signalr.connection.status |
| 11568 | var ( |
| 11569 | // The connection was closed normally. |
| 11570 | // Stability: stable |
| 11571 | SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure") |
| 11572 | // The connection was closed due to a timeout. |
| 11573 | // Stability: stable |
| 11574 | SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout") |
| 11575 | // The connection was closed because the app is shutting down. |
| 11576 | // Stability: stable |
| 11577 | SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown") |
| 11578 | ) |
| 11579 | |
| 11580 | // Enum values for signalr.transport |
| 11581 | var ( |
| 11582 | // ServerSentEvents protocol |
| 11583 | // Stability: stable |
| 11584 | SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events") |
| 11585 | // LongPolling protocol |
| 11586 | // Stability: stable |
| 11587 | SignalRTransportLongPolling = SignalRTransportKey.String("long_polling") |
| 11588 | // WebSockets protocol |
| 11589 | // Stability: stable |
| 11590 | SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets") |
| 11591 | ) |
| 11592 | |
| 11593 | // Namespace: source |
| 11594 | const ( |
| 11595 | // SourceAddressKey is the attribute Key conforming to the "source.address" |
| 11596 | // semantic conventions. It represents the source address - domain name if |
| 11597 | // available without reverse DNS lookup; otherwise, IP address or Unix domain |
| 11598 | // socket name. |
| 11599 | // |
| 11600 | // Type: string |
| 11601 | // RequirementLevel: Recommended |
| 11602 | // Stability: Development |
| 11603 | // |
| 11604 | // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock" |
| 11605 | // Note: When observed from the destination side, and when communicating through |
| 11606 | // an intermediary, `source.address` SHOULD represent the source address behind |
| 11607 | // any intermediaries, for example proxies, if it's available. |
| 11608 | SourceAddressKey = attribute.Key("source.address") |
| 11609 | |
| 11610 | // SourcePortKey is the attribute Key conforming to the "source.port" semantic |
| 11611 | // conventions. It represents the source port number. |
| 11612 | // |
| 11613 | // Type: int |
| 11614 | // RequirementLevel: Recommended |
| 11615 | // Stability: Development |
| 11616 | // |
| 11617 | // Examples: 3389, 2888 |
| 11618 | SourcePortKey = attribute.Key("source.port") |
| 11619 | ) |
| 11620 | |
| 11621 | // SourceAddress returns an attribute KeyValue conforming to the "source.address" |
| 11622 | // semantic conventions. It represents the source address - domain name if |
| 11623 | // available without reverse DNS lookup; otherwise, IP address or Unix domain |
| 11624 | // socket name. |
| 11625 | func SourceAddress(val string) attribute.KeyValue { |
| 11626 | return SourceAddressKey.String(val) |
| 11627 | } |
| 11628 | |
| 11629 | // SourcePort returns an attribute KeyValue conforming to the "source.port" |
| 11630 | // semantic conventions. It represents the source port number. |
| 11631 | func SourcePort(val int) attribute.KeyValue { |
| 11632 | return SourcePortKey.Int(val) |
| 11633 | } |
| 11634 | |
| 11635 | // Namespace: system |
| 11636 | const ( |
| 11637 | // SystemCPULogicalNumberKey is the attribute Key conforming to the |
| 11638 | // "system.cpu.logical_number" semantic conventions. It represents the |
| 11639 | // deprecated, use `cpu.logical_number` instead. |
| 11640 | // |
| 11641 | // Type: int |
| 11642 | // RequirementLevel: Recommended |
| 11643 | // Stability: Development |
| 11644 | // |
| 11645 | // Examples: 1 |
| 11646 | SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number") |
| 11647 | |
| 11648 | // SystemDeviceKey is the attribute Key conforming to the "system.device" |
| 11649 | // semantic conventions. It represents the device identifier. |
| 11650 | // |
| 11651 | // Type: string |
| 11652 | // RequirementLevel: Recommended |
| 11653 | // Stability: Development |
| 11654 | // |
| 11655 | // Examples: "(identifier)" |
| 11656 | SystemDeviceKey = attribute.Key("system.device") |
| 11657 | |
| 11658 | // SystemFilesystemModeKey is the attribute Key conforming to the |
| 11659 | // "system.filesystem.mode" semantic conventions. It represents the filesystem |
| 11660 | // mode. |
| 11661 | // |
| 11662 | // Type: string |
| 11663 | // RequirementLevel: Recommended |
| 11664 | // Stability: Development |
| 11665 | // |
| 11666 | // Examples: "rw, ro" |
| 11667 | SystemFilesystemModeKey = attribute.Key("system.filesystem.mode") |
| 11668 | |
| 11669 | // SystemFilesystemMountpointKey is the attribute Key conforming to the |
| 11670 | // "system.filesystem.mountpoint" semantic conventions. It represents the |
| 11671 | // filesystem mount path. |
| 11672 | // |
| 11673 | // Type: string |
| 11674 | // RequirementLevel: Recommended |
| 11675 | // Stability: Development |
| 11676 | // |
| 11677 | // Examples: "/mnt/data" |
| 11678 | SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint") |
| 11679 | |
| 11680 | // SystemFilesystemStateKey is the attribute Key conforming to the |
| 11681 | // "system.filesystem.state" semantic conventions. It represents the filesystem |
| 11682 | // state. |
| 11683 | // |
| 11684 | // Type: Enum |
| 11685 | // RequirementLevel: Recommended |
| 11686 | // Stability: Development |
| 11687 | // |
| 11688 | // Examples: "used" |
| 11689 | SystemFilesystemStateKey = attribute.Key("system.filesystem.state") |
| 11690 | |
| 11691 | // SystemFilesystemTypeKey is the attribute Key conforming to the |
| 11692 | // "system.filesystem.type" semantic conventions. It represents the filesystem |
| 11693 | // type. |
| 11694 | // |
| 11695 | // Type: Enum |
| 11696 | // RequirementLevel: Recommended |
| 11697 | // Stability: Development |
| 11698 | // |
| 11699 | // Examples: "ext4" |
| 11700 | SystemFilesystemTypeKey = attribute.Key("system.filesystem.type") |
| 11701 | |
| 11702 | // SystemMemoryStateKey is the attribute Key conforming to the |
| 11703 | // "system.memory.state" semantic conventions. It represents the memory state. |
| 11704 | // |
| 11705 | // Type: Enum |
| 11706 | // RequirementLevel: Recommended |
| 11707 | // Stability: Development |
| 11708 | // |
| 11709 | // Examples: "free", "cached" |
| 11710 | SystemMemoryStateKey = attribute.Key("system.memory.state") |
| 11711 | |
| 11712 | // SystemPagingDirectionKey is the attribute Key conforming to the |
| 11713 | // "system.paging.direction" semantic conventions. It represents the paging |
| 11714 | // access direction. |
| 11715 | // |
| 11716 | // Type: Enum |
| 11717 | // RequirementLevel: Recommended |
| 11718 | // Stability: Development |
| 11719 | // |
| 11720 | // Examples: "in" |
| 11721 | SystemPagingDirectionKey = attribute.Key("system.paging.direction") |
| 11722 | |
| 11723 | // SystemPagingStateKey is the attribute Key conforming to the |
| 11724 | // "system.paging.state" semantic conventions. It represents the memory paging |
| 11725 | // state. |
| 11726 | // |
| 11727 | // Type: Enum |
| 11728 | // RequirementLevel: Recommended |
| 11729 | // Stability: Development |
| 11730 | // |
| 11731 | // Examples: "free" |
| 11732 | SystemPagingStateKey = attribute.Key("system.paging.state") |
| 11733 | |
| 11734 | // SystemPagingTypeKey is the attribute Key conforming to the |
| 11735 | // "system.paging.type" semantic conventions. It represents the memory paging |
| 11736 | // type. |
| 11737 | // |
| 11738 | // Type: Enum |
| 11739 | // RequirementLevel: Recommended |
| 11740 | // Stability: Development |
| 11741 | // |
| 11742 | // Examples: "minor" |
| 11743 | SystemPagingTypeKey = attribute.Key("system.paging.type") |
| 11744 | |
| 11745 | // SystemProcessStatusKey is the attribute Key conforming to the |
| 11746 | // "system.process.status" semantic conventions. It represents the process |
| 11747 | // state, e.g., [Linux Process State Codes]. |
| 11748 | // |
| 11749 | // Type: Enum |
| 11750 | // RequirementLevel: Recommended |
| 11751 | // Stability: Development |
| 11752 | // |
| 11753 | // Examples: "running" |
| 11754 | // |
| 11755 | // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES |
| 11756 | SystemProcessStatusKey = attribute.Key("system.process.status") |
| 11757 | ) |
| 11758 | |
| 11759 | // SystemCPULogicalNumber returns an attribute KeyValue conforming to the |
| 11760 | // "system.cpu.logical_number" semantic conventions. It represents the |
| 11761 | // deprecated, use `cpu.logical_number` instead. |
| 11762 | func SystemCPULogicalNumber(val int) attribute.KeyValue { |
| 11763 | return SystemCPULogicalNumberKey.Int(val) |
| 11764 | } |
| 11765 | |
| 11766 | // SystemDevice returns an attribute KeyValue conforming to the "system.device" |
| 11767 | // semantic conventions. It represents the device identifier. |
| 11768 | func SystemDevice(val string) attribute.KeyValue { |
| 11769 | return SystemDeviceKey.String(val) |
| 11770 | } |
| 11771 | |
| 11772 | // SystemFilesystemMode returns an attribute KeyValue conforming to the |
| 11773 | // "system.filesystem.mode" semantic conventions. It represents the filesystem |
| 11774 | // mode. |
| 11775 | func SystemFilesystemMode(val string) attribute.KeyValue { |
| 11776 | return SystemFilesystemModeKey.String(val) |
| 11777 | } |
| 11778 | |
| 11779 | // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the |
| 11780 | // "system.filesystem.mountpoint" semantic conventions. It represents the |
| 11781 | // filesystem mount path. |
| 11782 | func SystemFilesystemMountpoint(val string) attribute.KeyValue { |
| 11783 | return SystemFilesystemMountpointKey.String(val) |
| 11784 | } |
| 11785 | |
| 11786 | // Enum values for system.filesystem.state |
| 11787 | var ( |
| 11788 | // used |
| 11789 | // Stability: development |
| 11790 | SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used") |
| 11791 | // free |
| 11792 | // Stability: development |
| 11793 | SystemFilesystemStateFree = SystemFilesystemStateKey.String("free") |
| 11794 | // reserved |
| 11795 | // Stability: development |
| 11796 | SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved") |
| 11797 | ) |
| 11798 | |
| 11799 | // Enum values for system.filesystem.type |
| 11800 | var ( |
| 11801 | // fat32 |
| 11802 | // Stability: development |
| 11803 | SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32") |
| 11804 | // exfat |
| 11805 | // Stability: development |
| 11806 | SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat") |
| 11807 | // ntfs |
| 11808 | // Stability: development |
| 11809 | SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs") |
| 11810 | // refs |
| 11811 | // Stability: development |
| 11812 | SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs") |
| 11813 | // hfsplus |
| 11814 | // Stability: development |
| 11815 | SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus") |
| 11816 | // ext4 |
| 11817 | // Stability: development |
| 11818 | SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4") |
| 11819 | ) |
| 11820 | |
| 11821 | // Enum values for system.memory.state |
| 11822 | var ( |
| 11823 | // used |
| 11824 | // Stability: development |
| 11825 | SystemMemoryStateUsed = SystemMemoryStateKey.String("used") |
| 11826 | // free |
| 11827 | // Stability: development |
| 11828 | SystemMemoryStateFree = SystemMemoryStateKey.String("free") |
| 11829 | // Deprecated: Removed, report shared memory usage with |
| 11830 | // `metric.system.memory.shared` metric. |
| 11831 | SystemMemoryStateShared = SystemMemoryStateKey.String("shared") |
| 11832 | // buffers |
| 11833 | // Stability: development |
| 11834 | SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers") |
| 11835 | // cached |
| 11836 | // Stability: development |
| 11837 | SystemMemoryStateCached = SystemMemoryStateKey.String("cached") |
| 11838 | ) |
| 11839 | |
| 11840 | // Enum values for system.paging.direction |
| 11841 | var ( |
| 11842 | // in |
| 11843 | // Stability: development |
| 11844 | SystemPagingDirectionIn = SystemPagingDirectionKey.String("in") |
| 11845 | // out |
| 11846 | // Stability: development |
| 11847 | SystemPagingDirectionOut = SystemPagingDirectionKey.String("out") |
| 11848 | ) |
| 11849 | |
| 11850 | // Enum values for system.paging.state |
| 11851 | var ( |
| 11852 | // used |
| 11853 | // Stability: development |
| 11854 | SystemPagingStateUsed = SystemPagingStateKey.String("used") |
| 11855 | // free |
| 11856 | // Stability: development |
| 11857 | SystemPagingStateFree = SystemPagingStateKey.String("free") |
| 11858 | ) |
| 11859 | |
| 11860 | // Enum values for system.paging.type |
| 11861 | var ( |
| 11862 | // major |
| 11863 | // Stability: development |
| 11864 | SystemPagingTypeMajor = SystemPagingTypeKey.String("major") |
| 11865 | // minor |
| 11866 | // Stability: development |
| 11867 | SystemPagingTypeMinor = SystemPagingTypeKey.String("minor") |
| 11868 | ) |
| 11869 | |
| 11870 | // Enum values for system.process.status |
| 11871 | var ( |
| 11872 | // running |
| 11873 | // Stability: development |
| 11874 | SystemProcessStatusRunning = SystemProcessStatusKey.String("running") |
| 11875 | // sleeping |
| 11876 | // Stability: development |
| 11877 | SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping") |
| 11878 | // stopped |
| 11879 | // Stability: development |
| 11880 | SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped") |
| 11881 | // defunct |
| 11882 | // Stability: development |
| 11883 | SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct") |
| 11884 | ) |
| 11885 | |
| 11886 | // Namespace: telemetry |
| 11887 | const ( |
| 11888 | // TelemetryDistroNameKey is the attribute Key conforming to the |
| 11889 | // "telemetry.distro.name" semantic conventions. It represents the name of the |
| 11890 | // auto instrumentation agent or distribution, if used. |
| 11891 | // |
| 11892 | // Type: string |
| 11893 | // RequirementLevel: Recommended |
| 11894 | // Stability: Development |
| 11895 | // |
| 11896 | // Examples: "parts-unlimited-java" |
| 11897 | // Note: Official auto instrumentation agents and distributions SHOULD set the |
| 11898 | // `telemetry.distro.name` attribute to |
| 11899 | // a string starting with `opentelemetry-`, e.g. |
| 11900 | // `opentelemetry-java-instrumentation`. |
| 11901 | TelemetryDistroNameKey = attribute.Key("telemetry.distro.name") |
| 11902 | |
| 11903 | // TelemetryDistroVersionKey is the attribute Key conforming to the |
| 11904 | // "telemetry.distro.version" semantic conventions. It represents the version |
| 11905 | // string of the auto instrumentation agent or distribution, if used. |
| 11906 | // |
| 11907 | // Type: string |
| 11908 | // RequirementLevel: Recommended |
| 11909 | // Stability: Development |
| 11910 | // |
| 11911 | // Examples: "1.2.3" |
| 11912 | TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version") |
| 11913 | |
| 11914 | // TelemetrySDKLanguageKey is the attribute Key conforming to the |
| 11915 | // "telemetry.sdk.language" semantic conventions. It represents the language of |
| 11916 | // the telemetry SDK. |
| 11917 | // |
| 11918 | // Type: Enum |
| 11919 | // RequirementLevel: Recommended |
| 11920 | // Stability: Stable |
| 11921 | // |
| 11922 | // Examples: |
| 11923 | TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language") |
| 11924 | |
| 11925 | // TelemetrySDKNameKey is the attribute Key conforming to the |
| 11926 | // "telemetry.sdk.name" semantic conventions. It represents the name of the |
| 11927 | // telemetry SDK as defined above. |
| 11928 | // |
| 11929 | // Type: string |
| 11930 | // RequirementLevel: Recommended |
| 11931 | // Stability: Stable |
| 11932 | // |
| 11933 | // Examples: "opentelemetry" |
| 11934 | // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to |
| 11935 | // `opentelemetry`. |
| 11936 | // If another SDK, like a fork or a vendor-provided implementation, is used, |
| 11937 | // this SDK MUST set the |
| 11938 | // `telemetry.sdk.name` attribute to the fully-qualified class or module name of |
| 11939 | // this SDK's main entry point |
| 11940 | // or another suitable identifier depending on the language. |
| 11941 | // The identifier `opentelemetry` is reserved and MUST NOT be used in this case. |
| 11942 | // All custom identifiers SHOULD be stable across different versions of an |
| 11943 | // implementation. |
| 11944 | TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name") |
| 11945 | |
| 11946 | // TelemetrySDKVersionKey is the attribute Key conforming to the |
| 11947 | // "telemetry.sdk.version" semantic conventions. It represents the version |
| 11948 | // string of the telemetry SDK. |
| 11949 | // |
| 11950 | // Type: string |
| 11951 | // RequirementLevel: Recommended |
| 11952 | // Stability: Stable |
| 11953 | // |
| 11954 | // Examples: "1.2.3" |
| 11955 | TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version") |
| 11956 | ) |
| 11957 | |
| 11958 | // TelemetryDistroName returns an attribute KeyValue conforming to the |
| 11959 | // "telemetry.distro.name" semantic conventions. It represents the name of the |
| 11960 | // auto instrumentation agent or distribution, if used. |
| 11961 | func TelemetryDistroName(val string) attribute.KeyValue { |
| 11962 | return TelemetryDistroNameKey.String(val) |
| 11963 | } |
| 11964 | |
| 11965 | // TelemetryDistroVersion returns an attribute KeyValue conforming to the |
| 11966 | // "telemetry.distro.version" semantic conventions. It represents the version |
| 11967 | // string of the auto instrumentation agent or distribution, if used. |
| 11968 | func TelemetryDistroVersion(val string) attribute.KeyValue { |
| 11969 | return TelemetryDistroVersionKey.String(val) |
| 11970 | } |
| 11971 | |
| 11972 | // TelemetrySDKName returns an attribute KeyValue conforming to the |
| 11973 | // "telemetry.sdk.name" semantic conventions. It represents the name of the |
| 11974 | // telemetry SDK as defined above. |
| 11975 | func TelemetrySDKName(val string) attribute.KeyValue { |
| 11976 | return TelemetrySDKNameKey.String(val) |
| 11977 | } |
| 11978 | |
| 11979 | // TelemetrySDKVersion returns an attribute KeyValue conforming to the |
| 11980 | // "telemetry.sdk.version" semantic conventions. It represents the version string |
| 11981 | // of the telemetry SDK. |
| 11982 | func TelemetrySDKVersion(val string) attribute.KeyValue { |
| 11983 | return TelemetrySDKVersionKey.String(val) |
| 11984 | } |
| 11985 | |
| 11986 | // Enum values for telemetry.sdk.language |
| 11987 | var ( |
| 11988 | // cpp |
| 11989 | // Stability: stable |
| 11990 | TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp") |
| 11991 | // dotnet |
| 11992 | // Stability: stable |
| 11993 | TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet") |
| 11994 | // erlang |
| 11995 | // Stability: stable |
| 11996 | TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang") |
| 11997 | // go |
| 11998 | // Stability: stable |
| 11999 | TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go") |
| 12000 | // java |
| 12001 | // Stability: stable |
| 12002 | TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java") |
| 12003 | // nodejs |
| 12004 | // Stability: stable |
| 12005 | TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs") |
| 12006 | // php |
| 12007 | // Stability: stable |
| 12008 | TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php") |
| 12009 | // python |
| 12010 | // Stability: stable |
| 12011 | TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python") |
| 12012 | // ruby |
| 12013 | // Stability: stable |
| 12014 | TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby") |
| 12015 | // rust |
| 12016 | // Stability: stable |
| 12017 | TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust") |
| 12018 | // swift |
| 12019 | // Stability: stable |
| 12020 | TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift") |
| 12021 | // webjs |
| 12022 | // Stability: stable |
| 12023 | TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs") |
| 12024 | ) |
| 12025 | |
| 12026 | // Namespace: test |
| 12027 | const ( |
| 12028 | // TestCaseNameKey is the attribute Key conforming to the "test.case.name" |
| 12029 | // semantic conventions. It represents the fully qualified human readable name |
| 12030 | // of the [test case]. |
| 12031 | // |
| 12032 | // Type: string |
| 12033 | // RequirementLevel: Recommended |
| 12034 | // Stability: Development |
| 12035 | // |
| 12036 | // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1", |
| 12037 | // "ExampleTestCase1_test1" |
| 12038 | // |
| 12039 | // [test case]: https://wikipedia.org/wiki/Test_case |
| 12040 | TestCaseNameKey = attribute.Key("test.case.name") |
| 12041 | |
| 12042 | // TestCaseResultStatusKey is the attribute Key conforming to the |
| 12043 | // "test.case.result.status" semantic conventions. It represents the status of |
| 12044 | // the actual test case result from test execution. |
| 12045 | // |
| 12046 | // Type: Enum |
| 12047 | // RequirementLevel: Recommended |
| 12048 | // Stability: Development |
| 12049 | // |
| 12050 | // Examples: "pass", "fail" |
| 12051 | TestCaseResultStatusKey = attribute.Key("test.case.result.status") |
| 12052 | |
| 12053 | // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name" |
| 12054 | // semantic conventions. It represents the human readable name of a [test suite] |
| 12055 | // . |
| 12056 | // |
| 12057 | // Type: string |
| 12058 | // RequirementLevel: Recommended |
| 12059 | // Stability: Development |
| 12060 | // |
| 12061 | // Examples: "TestSuite1" |
| 12062 | // |
| 12063 | // [test suite]: https://wikipedia.org/wiki/Test_suite |
| 12064 | TestSuiteNameKey = attribute.Key("test.suite.name") |
| 12065 | |
| 12066 | // TestSuiteRunStatusKey is the attribute Key conforming to the |
| 12067 | // "test.suite.run.status" semantic conventions. It represents the status of the |
| 12068 | // test suite run. |
| 12069 | // |
| 12070 | // Type: Enum |
| 12071 | // RequirementLevel: Recommended |
| 12072 | // Stability: Development |
| 12073 | // |
| 12074 | // Examples: "success", "failure", "skipped", "aborted", "timed_out", |
| 12075 | // "in_progress" |
| 12076 | TestSuiteRunStatusKey = attribute.Key("test.suite.run.status") |
| 12077 | ) |
| 12078 | |
| 12079 | // TestCaseName returns an attribute KeyValue conforming to the "test.case.name" |
| 12080 | // semantic conventions. It represents the fully qualified human readable name of |
| 12081 | // the [test case]. |
| 12082 | // |
| 12083 | // [test case]: https://wikipedia.org/wiki/Test_case |
| 12084 | func TestCaseName(val string) attribute.KeyValue { |
| 12085 | return TestCaseNameKey.String(val) |
| 12086 | } |
| 12087 | |
| 12088 | // TestSuiteName returns an attribute KeyValue conforming to the |
| 12089 | // "test.suite.name" semantic conventions. It represents the human readable name |
| 12090 | // of a [test suite]. |
| 12091 | // |
| 12092 | // [test suite]: https://wikipedia.org/wiki/Test_suite |
| 12093 | func TestSuiteName(val string) attribute.KeyValue { |
| 12094 | return TestSuiteNameKey.String(val) |
| 12095 | } |
| 12096 | |
| 12097 | // Enum values for test.case.result.status |
| 12098 | var ( |
| 12099 | // pass |
| 12100 | // Stability: development |
| 12101 | TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass") |
| 12102 | // fail |
| 12103 | // Stability: development |
| 12104 | TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail") |
| 12105 | ) |
| 12106 | |
| 12107 | // Enum values for test.suite.run.status |
| 12108 | var ( |
| 12109 | // success |
| 12110 | // Stability: development |
| 12111 | TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success") |
| 12112 | // failure |
| 12113 | // Stability: development |
| 12114 | TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure") |
| 12115 | // skipped |
| 12116 | // Stability: development |
| 12117 | TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped") |
| 12118 | // aborted |
| 12119 | // Stability: development |
| 12120 | TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted") |
| 12121 | // timed_out |
| 12122 | // Stability: development |
| 12123 | TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out") |
| 12124 | // in_progress |
| 12125 | // Stability: development |
| 12126 | TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress") |
| 12127 | ) |
| 12128 | |
| 12129 | // Namespace: thread |
| 12130 | const ( |
| 12131 | // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic |
| 12132 | // conventions. It represents the current "managed" thread ID (as opposed to OS |
| 12133 | // thread ID). |
| 12134 | // |
| 12135 | // Type: int |
| 12136 | // RequirementLevel: Recommended |
| 12137 | // Stability: Development |
| 12138 | ThreadIDKey = attribute.Key("thread.id") |
| 12139 | |
| 12140 | // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic |
| 12141 | // conventions. It represents the current thread name. |
| 12142 | // |
| 12143 | // Type: string |
| 12144 | // RequirementLevel: Recommended |
| 12145 | // Stability: Development |
| 12146 | // |
| 12147 | // Examples: main |
| 12148 | ThreadNameKey = attribute.Key("thread.name") |
| 12149 | ) |
| 12150 | |
| 12151 | // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic |
| 12152 | // conventions. It represents the current "managed" thread ID (as opposed to OS |
| 12153 | // thread ID). |
| 12154 | func ThreadID(val int) attribute.KeyValue { |
| 12155 | return ThreadIDKey.Int(val) |
| 12156 | } |
| 12157 | |
| 12158 | // ThreadName returns an attribute KeyValue conforming to the "thread.name" |
| 12159 | // semantic conventions. It represents the current thread name. |
| 12160 | func ThreadName(val string) attribute.KeyValue { |
| 12161 | return ThreadNameKey.String(val) |
| 12162 | } |
| 12163 | |
| 12164 | // Namespace: tls |
| 12165 | const ( |
| 12166 | // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic |
| 12167 | // conventions. It represents the string indicating the [cipher] used during the |
| 12168 | // current connection. |
| 12169 | // |
| 12170 | // Type: string |
| 12171 | // RequirementLevel: Recommended |
| 12172 | // Stability: Development |
| 12173 | // |
| 12174 | // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA", |
| 12175 | // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" |
| 12176 | // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions` |
| 12177 | // of the [registered TLS Cipher Suits]. |
| 12178 | // |
| 12179 | // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 |
| 12180 | // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4 |
| 12181 | TLSCipherKey = attribute.Key("tls.cipher") |
| 12182 | |
| 12183 | // TLSClientCertificateKey is the attribute Key conforming to the |
| 12184 | // "tls.client.certificate" semantic conventions. It represents the PEM-encoded |
| 12185 | // stand-alone certificate offered by the client. This is usually |
| 12186 | // mutually-exclusive of `client.certificate_chain` since this value also exists |
| 12187 | // in that list. |
| 12188 | // |
| 12189 | // Type: string |
| 12190 | // RequirementLevel: Recommended |
| 12191 | // Stability: Development |
| 12192 | // |
| 12193 | // Examples: "MII..." |
| 12194 | TLSClientCertificateKey = attribute.Key("tls.client.certificate") |
| 12195 | |
| 12196 | // TLSClientCertificateChainKey is the attribute Key conforming to the |
| 12197 | // "tls.client.certificate_chain" semantic conventions. It represents the array |
| 12198 | // of PEM-encoded certificates that make up the certificate chain offered by the |
| 12199 | // client. This is usually mutually-exclusive of `client.certificate` since that |
| 12200 | // value should be the first certificate in the chain. |
| 12201 | // |
| 12202 | // Type: string[] |
| 12203 | // RequirementLevel: Recommended |
| 12204 | // Stability: Development |
| 12205 | // |
| 12206 | // Examples: "MII...", "MI..." |
| 12207 | TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain") |
| 12208 | |
| 12209 | // TLSClientHashMd5Key is the attribute Key conforming to the |
| 12210 | // "tls.client.hash.md5" semantic conventions. It represents the certificate |
| 12211 | // fingerprint using the MD5 digest of DER-encoded version of certificate |
| 12212 | // offered by the client. For consistency with other hash values, this value |
| 12213 | // should be formatted as an uppercase hash. |
| 12214 | // |
| 12215 | // Type: string |
| 12216 | // RequirementLevel: Recommended |
| 12217 | // Stability: Development |
| 12218 | // |
| 12219 | // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" |
| 12220 | TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5") |
| 12221 | |
| 12222 | // TLSClientHashSha1Key is the attribute Key conforming to the |
| 12223 | // "tls.client.hash.sha1" semantic conventions. It represents the certificate |
| 12224 | // fingerprint using the SHA1 digest of DER-encoded version of certificate |
| 12225 | // offered by the client. For consistency with other hash values, this value |
| 12226 | // should be formatted as an uppercase hash. |
| 12227 | // |
| 12228 | // Type: string |
| 12229 | // RequirementLevel: Recommended |
| 12230 | // Stability: Development |
| 12231 | // |
| 12232 | // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" |
| 12233 | TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1") |
| 12234 | |
| 12235 | // TLSClientHashSha256Key is the attribute Key conforming to the |
| 12236 | // "tls.client.hash.sha256" semantic conventions. It represents the certificate |
| 12237 | // fingerprint using the SHA256 digest of DER-encoded version of certificate |
| 12238 | // offered by the client. For consistency with other hash values, this value |
| 12239 | // should be formatted as an uppercase hash. |
| 12240 | // |
| 12241 | // Type: string |
| 12242 | // RequirementLevel: Recommended |
| 12243 | // Stability: Development |
| 12244 | // |
| 12245 | // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" |
| 12246 | TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256") |
| 12247 | |
| 12248 | // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer" |
| 12249 | // semantic conventions. It represents the distinguished name of [subject] of |
| 12250 | // the issuer of the x.509 certificate presented by the client. |
| 12251 | // |
| 12252 | // Type: string |
| 12253 | // RequirementLevel: Recommended |
| 12254 | // Stability: Development |
| 12255 | // |
| 12256 | // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" |
| 12257 | // |
| 12258 | // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 |
| 12259 | TLSClientIssuerKey = attribute.Key("tls.client.issuer") |
| 12260 | |
| 12261 | // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3" |
| 12262 | // semantic conventions. It represents a hash that identifies clients based on |
| 12263 | // how they perform an SSL/TLS handshake. |
| 12264 | // |
| 12265 | // Type: string |
| 12266 | // RequirementLevel: Recommended |
| 12267 | // Stability: Development |
| 12268 | // |
| 12269 | // Examples: "d4e5b18d6b55c71272893221c96ba240" |
| 12270 | TLSClientJa3Key = attribute.Key("tls.client.ja3") |
| 12271 | |
| 12272 | // TLSClientNotAfterKey is the attribute Key conforming to the |
| 12273 | // "tls.client.not_after" semantic conventions. It represents the date/Time |
| 12274 | // indicating when client certificate is no longer considered valid. |
| 12275 | // |
| 12276 | // Type: string |
| 12277 | // RequirementLevel: Recommended |
| 12278 | // Stability: Development |
| 12279 | // |
| 12280 | // Examples: "2021-01-01T00:00:00.000Z" |
| 12281 | TLSClientNotAfterKey = attribute.Key("tls.client.not_after") |
| 12282 | |
| 12283 | // TLSClientNotBeforeKey is the attribute Key conforming to the |
| 12284 | // "tls.client.not_before" semantic conventions. It represents the date/Time |
| 12285 | // indicating when client certificate is first considered valid. |
| 12286 | // |
| 12287 | // Type: string |
| 12288 | // RequirementLevel: Recommended |
| 12289 | // Stability: Development |
| 12290 | // |
| 12291 | // Examples: "1970-01-01T00:00:00.000Z" |
| 12292 | TLSClientNotBeforeKey = attribute.Key("tls.client.not_before") |
| 12293 | |
| 12294 | // TLSClientSubjectKey is the attribute Key conforming to the |
| 12295 | // "tls.client.subject" semantic conventions. It represents the distinguished |
| 12296 | // name of subject of the x.509 certificate presented by the client. |
| 12297 | // |
| 12298 | // Type: string |
| 12299 | // RequirementLevel: Recommended |
| 12300 | // Stability: Development |
| 12301 | // |
| 12302 | // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com" |
| 12303 | TLSClientSubjectKey = attribute.Key("tls.client.subject") |
| 12304 | |
| 12305 | // TLSClientSupportedCiphersKey is the attribute Key conforming to the |
| 12306 | // "tls.client.supported_ciphers" semantic conventions. It represents the array |
| 12307 | // of ciphers offered by the client during the client hello. |
| 12308 | // |
| 12309 | // Type: string[] |
| 12310 | // RequirementLevel: Recommended |
| 12311 | // Stability: Development |
| 12312 | // |
| 12313 | // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", |
| 12314 | // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" |
| 12315 | TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers") |
| 12316 | |
| 12317 | // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic |
| 12318 | // conventions. It represents the string indicating the curve used for the given |
| 12319 | // cipher, when applicable. |
| 12320 | // |
| 12321 | // Type: string |
| 12322 | // RequirementLevel: Recommended |
| 12323 | // Stability: Development |
| 12324 | // |
| 12325 | // Examples: "secp256r1" |
| 12326 | TLSCurveKey = attribute.Key("tls.curve") |
| 12327 | |
| 12328 | // TLSEstablishedKey is the attribute Key conforming to the "tls.established" |
| 12329 | // semantic conventions. It represents the boolean flag indicating if the TLS |
| 12330 | // negotiation was successful and transitioned to an encrypted tunnel. |
| 12331 | // |
| 12332 | // Type: boolean |
| 12333 | // RequirementLevel: Recommended |
| 12334 | // Stability: Development |
| 12335 | // |
| 12336 | // Examples: true |
| 12337 | TLSEstablishedKey = attribute.Key("tls.established") |
| 12338 | |
| 12339 | // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol" |
| 12340 | // semantic conventions. It represents the string indicating the protocol being |
| 12341 | // tunneled. Per the values in the [IANA registry], this string should be lower |
| 12342 | // case. |
| 12343 | // |
| 12344 | // Type: string |
| 12345 | // RequirementLevel: Recommended |
| 12346 | // Stability: Development |
| 12347 | // |
| 12348 | // Examples: "http/1.1" |
| 12349 | // |
| 12350 | // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids |
| 12351 | TLSNextProtocolKey = attribute.Key("tls.next_protocol") |
| 12352 | |
| 12353 | // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name" |
| 12354 | // semantic conventions. It represents the normalized lowercase protocol name |
| 12355 | // parsed from original string of the negotiated [SSL/TLS protocol version]. |
| 12356 | // |
| 12357 | // Type: Enum |
| 12358 | // RequirementLevel: Recommended |
| 12359 | // Stability: Development |
| 12360 | // |
| 12361 | // Examples: |
| 12362 | // |
| 12363 | // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values |
| 12364 | TLSProtocolNameKey = attribute.Key("tls.protocol.name") |
| 12365 | |
| 12366 | // TLSProtocolVersionKey is the attribute Key conforming to the |
| 12367 | // "tls.protocol.version" semantic conventions. It represents the numeric part |
| 12368 | // of the version parsed from the original string of the negotiated |
| 12369 | // [SSL/TLS protocol version]. |
| 12370 | // |
| 12371 | // Type: string |
| 12372 | // RequirementLevel: Recommended |
| 12373 | // Stability: Development |
| 12374 | // |
| 12375 | // Examples: "1.2", "3" |
| 12376 | // |
| 12377 | // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values |
| 12378 | TLSProtocolVersionKey = attribute.Key("tls.protocol.version") |
| 12379 | |
| 12380 | // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic |
| 12381 | // conventions. It represents the boolean flag indicating if this TLS connection |
| 12382 | // was resumed from an existing TLS negotiation. |
| 12383 | // |
| 12384 | // Type: boolean |
| 12385 | // RequirementLevel: Recommended |
| 12386 | // Stability: Development |
| 12387 | // |
| 12388 | // Examples: true |
| 12389 | TLSResumedKey = attribute.Key("tls.resumed") |
| 12390 | |
| 12391 | // TLSServerCertificateKey is the attribute Key conforming to the |
| 12392 | // "tls.server.certificate" semantic conventions. It represents the PEM-encoded |
| 12393 | // stand-alone certificate offered by the server. This is usually |
| 12394 | // mutually-exclusive of `server.certificate_chain` since this value also exists |
| 12395 | // in that list. |
| 12396 | // |
| 12397 | // Type: string |
| 12398 | // RequirementLevel: Recommended |
| 12399 | // Stability: Development |
| 12400 | // |
| 12401 | // Examples: "MII..." |
| 12402 | TLSServerCertificateKey = attribute.Key("tls.server.certificate") |
| 12403 | |
| 12404 | // TLSServerCertificateChainKey is the attribute Key conforming to the |
| 12405 | // "tls.server.certificate_chain" semantic conventions. It represents the array |
| 12406 | // of PEM-encoded certificates that make up the certificate chain offered by the |
| 12407 | // server. This is usually mutually-exclusive of `server.certificate` since that |
| 12408 | // value should be the first certificate in the chain. |
| 12409 | // |
| 12410 | // Type: string[] |
| 12411 | // RequirementLevel: Recommended |
| 12412 | // Stability: Development |
| 12413 | // |
| 12414 | // Examples: "MII...", "MI..." |
| 12415 | TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain") |
| 12416 | |
| 12417 | // TLSServerHashMd5Key is the attribute Key conforming to the |
| 12418 | // "tls.server.hash.md5" semantic conventions. It represents the certificate |
| 12419 | // fingerprint using the MD5 digest of DER-encoded version of certificate |
| 12420 | // offered by the server. For consistency with other hash values, this value |
| 12421 | // should be formatted as an uppercase hash. |
| 12422 | // |
| 12423 | // Type: string |
| 12424 | // RequirementLevel: Recommended |
| 12425 | // Stability: Development |
| 12426 | // |
| 12427 | // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" |
| 12428 | TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5") |
| 12429 | |
| 12430 | // TLSServerHashSha1Key is the attribute Key conforming to the |
| 12431 | // "tls.server.hash.sha1" semantic conventions. It represents the certificate |
| 12432 | // fingerprint using the SHA1 digest of DER-encoded version of certificate |
| 12433 | // offered by the server. For consistency with other hash values, this value |
| 12434 | // should be formatted as an uppercase hash. |
| 12435 | // |
| 12436 | // Type: string |
| 12437 | // RequirementLevel: Recommended |
| 12438 | // Stability: Development |
| 12439 | // |
| 12440 | // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" |
| 12441 | TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1") |
| 12442 | |
| 12443 | // TLSServerHashSha256Key is the attribute Key conforming to the |
| 12444 | // "tls.server.hash.sha256" semantic conventions. It represents the certificate |
| 12445 | // fingerprint using the SHA256 digest of DER-encoded version of certificate |
| 12446 | // offered by the server. For consistency with other hash values, this value |
| 12447 | // should be formatted as an uppercase hash. |
| 12448 | // |
| 12449 | // Type: string |
| 12450 | // RequirementLevel: Recommended |
| 12451 | // Stability: Development |
| 12452 | // |
| 12453 | // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" |
| 12454 | TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256") |
| 12455 | |
| 12456 | // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer" |
| 12457 | // semantic conventions. It represents the distinguished name of [subject] of |
| 12458 | // the issuer of the x.509 certificate presented by the client. |
| 12459 | // |
| 12460 | // Type: string |
| 12461 | // RequirementLevel: Recommended |
| 12462 | // Stability: Development |
| 12463 | // |
| 12464 | // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" |
| 12465 | // |
| 12466 | // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 |
| 12467 | TLSServerIssuerKey = attribute.Key("tls.server.issuer") |
| 12468 | |
| 12469 | // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s" |
| 12470 | // semantic conventions. It represents a hash that identifies servers based on |
| 12471 | // how they perform an SSL/TLS handshake. |
| 12472 | // |
| 12473 | // Type: string |
| 12474 | // RequirementLevel: Recommended |
| 12475 | // Stability: Development |
| 12476 | // |
| 12477 | // Examples: "d4e5b18d6b55c71272893221c96ba240" |
| 12478 | TLSServerJa3sKey = attribute.Key("tls.server.ja3s") |
| 12479 | |
| 12480 | // TLSServerNotAfterKey is the attribute Key conforming to the |
| 12481 | // "tls.server.not_after" semantic conventions. It represents the date/Time |
| 12482 | // indicating when server certificate is no longer considered valid. |
| 12483 | // |
| 12484 | // Type: string |
| 12485 | // RequirementLevel: Recommended |
| 12486 | // Stability: Development |
| 12487 | // |
| 12488 | // Examples: "2021-01-01T00:00:00.000Z" |
| 12489 | TLSServerNotAfterKey = attribute.Key("tls.server.not_after") |
| 12490 | |
| 12491 | // TLSServerNotBeforeKey is the attribute Key conforming to the |
| 12492 | // "tls.server.not_before" semantic conventions. It represents the date/Time |
| 12493 | // indicating when server certificate is first considered valid. |
| 12494 | // |
| 12495 | // Type: string |
| 12496 | // RequirementLevel: Recommended |
| 12497 | // Stability: Development |
| 12498 | // |
| 12499 | // Examples: "1970-01-01T00:00:00.000Z" |
| 12500 | TLSServerNotBeforeKey = attribute.Key("tls.server.not_before") |
| 12501 | |
| 12502 | // TLSServerSubjectKey is the attribute Key conforming to the |
| 12503 | // "tls.server.subject" semantic conventions. It represents the distinguished |
| 12504 | // name of subject of the x.509 certificate presented by the server. |
| 12505 | // |
| 12506 | // Type: string |
| 12507 | // RequirementLevel: Recommended |
| 12508 | // Stability: Development |
| 12509 | // |
| 12510 | // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com" |
| 12511 | TLSServerSubjectKey = attribute.Key("tls.server.subject") |
| 12512 | ) |
| 12513 | |
| 12514 | // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher" |
| 12515 | // semantic conventions. It represents the string indicating the [cipher] used |
| 12516 | // during the current connection. |
| 12517 | // |
| 12518 | // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 |
| 12519 | func TLSCipher(val string) attribute.KeyValue { |
| 12520 | return TLSCipherKey.String(val) |
| 12521 | } |
| 12522 | |
| 12523 | // TLSClientCertificate returns an attribute KeyValue conforming to the |
| 12524 | // "tls.client.certificate" semantic conventions. It represents the PEM-encoded |
| 12525 | // stand-alone certificate offered by the client. This is usually |
| 12526 | // mutually-exclusive of `client.certificate_chain` since this value also exists |
| 12527 | // in that list. |
| 12528 | func TLSClientCertificate(val string) attribute.KeyValue { |
| 12529 | return TLSClientCertificateKey.String(val) |
| 12530 | } |
| 12531 | |
| 12532 | // TLSClientCertificateChain returns an attribute KeyValue conforming to the |
| 12533 | // "tls.client.certificate_chain" semantic conventions. It represents the array |
| 12534 | // of PEM-encoded certificates that make up the certificate chain offered by the |
| 12535 | // client. This is usually mutually-exclusive of `client.certificate` since that |
| 12536 | // value should be the first certificate in the chain. |
| 12537 | func TLSClientCertificateChain(val ...string) attribute.KeyValue { |
| 12538 | return TLSClientCertificateChainKey.StringSlice(val) |
| 12539 | } |
| 12540 | |
| 12541 | // TLSClientHashMd5 returns an attribute KeyValue conforming to the |
| 12542 | // "tls.client.hash.md5" semantic conventions. It represents the certificate |
| 12543 | // fingerprint using the MD5 digest of DER-encoded version of certificate offered |
| 12544 | // by the client. For consistency with other hash values, this value should be |
| 12545 | // formatted as an uppercase hash. |
| 12546 | func TLSClientHashMd5(val string) attribute.KeyValue { |
| 12547 | return TLSClientHashMd5Key.String(val) |
| 12548 | } |
| 12549 | |
| 12550 | // TLSClientHashSha1 returns an attribute KeyValue conforming to the |
| 12551 | // "tls.client.hash.sha1" semantic conventions. It represents the certificate |
| 12552 | // fingerprint using the SHA1 digest of DER-encoded version of certificate |
| 12553 | // offered by the client. For consistency with other hash values, this value |
| 12554 | // should be formatted as an uppercase hash. |
| 12555 | func TLSClientHashSha1(val string) attribute.KeyValue { |
| 12556 | return TLSClientHashSha1Key.String(val) |
| 12557 | } |
| 12558 | |
| 12559 | // TLSClientHashSha256 returns an attribute KeyValue conforming to the |
| 12560 | // "tls.client.hash.sha256" semantic conventions. It represents the certificate |
| 12561 | // fingerprint using the SHA256 digest of DER-encoded version of certificate |
| 12562 | // offered by the client. For consistency with other hash values, this value |
| 12563 | // should be formatted as an uppercase hash. |
| 12564 | func TLSClientHashSha256(val string) attribute.KeyValue { |
| 12565 | return TLSClientHashSha256Key.String(val) |
| 12566 | } |
| 12567 | |
| 12568 | // TLSClientIssuer returns an attribute KeyValue conforming to the |
| 12569 | // "tls.client.issuer" semantic conventions. It represents the distinguished name |
| 12570 | // of [subject] of the issuer of the x.509 certificate presented by the client. |
| 12571 | // |
| 12572 | // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 |
| 12573 | func TLSClientIssuer(val string) attribute.KeyValue { |
| 12574 | return TLSClientIssuerKey.String(val) |
| 12575 | } |
| 12576 | |
| 12577 | // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3" |
| 12578 | // semantic conventions. It represents a hash that identifies clients based on |
| 12579 | // how they perform an SSL/TLS handshake. |
| 12580 | func TLSClientJa3(val string) attribute.KeyValue { |
| 12581 | return TLSClientJa3Key.String(val) |
| 12582 | } |
| 12583 | |
| 12584 | // TLSClientNotAfter returns an attribute KeyValue conforming to the |
| 12585 | // "tls.client.not_after" semantic conventions. It represents the date/Time |
| 12586 | // indicating when client certificate is no longer considered valid. |
| 12587 | func TLSClientNotAfter(val string) attribute.KeyValue { |
| 12588 | return TLSClientNotAfterKey.String(val) |
| 12589 | } |
| 12590 | |
| 12591 | // TLSClientNotBefore returns an attribute KeyValue conforming to the |
| 12592 | // "tls.client.not_before" semantic conventions. It represents the date/Time |
| 12593 | // indicating when client certificate is first considered valid. |
| 12594 | func TLSClientNotBefore(val string) attribute.KeyValue { |
| 12595 | return TLSClientNotBeforeKey.String(val) |
| 12596 | } |
| 12597 | |
| 12598 | // TLSClientSubject returns an attribute KeyValue conforming to the |
| 12599 | // "tls.client.subject" semantic conventions. It represents the distinguished |
| 12600 | // name of subject of the x.509 certificate presented by the client. |
| 12601 | func TLSClientSubject(val string) attribute.KeyValue { |
| 12602 | return TLSClientSubjectKey.String(val) |
| 12603 | } |
| 12604 | |
| 12605 | // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the |
| 12606 | // "tls.client.supported_ciphers" semantic conventions. It represents the array |
| 12607 | // of ciphers offered by the client during the client hello. |
| 12608 | func TLSClientSupportedCiphers(val ...string) attribute.KeyValue { |
| 12609 | return TLSClientSupportedCiphersKey.StringSlice(val) |
| 12610 | } |
| 12611 | |
| 12612 | // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic |
| 12613 | // conventions. It represents the string indicating the curve used for the given |
| 12614 | // cipher, when applicable. |
| 12615 | func TLSCurve(val string) attribute.KeyValue { |
| 12616 | return TLSCurveKey.String(val) |
| 12617 | } |
| 12618 | |
| 12619 | // TLSEstablished returns an attribute KeyValue conforming to the |
| 12620 | // "tls.established" semantic conventions. It represents the boolean flag |
| 12621 | // indicating if the TLS negotiation was successful and transitioned to an |
| 12622 | // encrypted tunnel. |
| 12623 | func TLSEstablished(val bool) attribute.KeyValue { |
| 12624 | return TLSEstablishedKey.Bool(val) |
| 12625 | } |
| 12626 | |
| 12627 | // TLSNextProtocol returns an attribute KeyValue conforming to the |
| 12628 | // "tls.next_protocol" semantic conventions. It represents the string indicating |
| 12629 | // the protocol being tunneled. Per the values in the [IANA registry], this |
| 12630 | // string should be lower case. |
| 12631 | // |
| 12632 | // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids |
| 12633 | func TLSNextProtocol(val string) attribute.KeyValue { |
| 12634 | return TLSNextProtocolKey.String(val) |
| 12635 | } |
| 12636 | |
| 12637 | // TLSProtocolVersion returns an attribute KeyValue conforming to the |
| 12638 | // "tls.protocol.version" semantic conventions. It represents the numeric part of |
| 12639 | // the version parsed from the original string of the negotiated |
| 12640 | // [SSL/TLS protocol version]. |
| 12641 | // |
| 12642 | // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values |
| 12643 | func TLSProtocolVersion(val string) attribute.KeyValue { |
| 12644 | return TLSProtocolVersionKey.String(val) |
| 12645 | } |
| 12646 | |
| 12647 | // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed" |
| 12648 | // semantic conventions. It represents the boolean flag indicating if this TLS |
| 12649 | // connection was resumed from an existing TLS negotiation. |
| 12650 | func TLSResumed(val bool) attribute.KeyValue { |
| 12651 | return TLSResumedKey.Bool(val) |
| 12652 | } |
| 12653 | |
| 12654 | // TLSServerCertificate returns an attribute KeyValue conforming to the |
| 12655 | // "tls.server.certificate" semantic conventions. It represents the PEM-encoded |
| 12656 | // stand-alone certificate offered by the server. This is usually |
| 12657 | // mutually-exclusive of `server.certificate_chain` since this value also exists |
| 12658 | // in that list. |
| 12659 | func TLSServerCertificate(val string) attribute.KeyValue { |
| 12660 | return TLSServerCertificateKey.String(val) |
| 12661 | } |
| 12662 | |
| 12663 | // TLSServerCertificateChain returns an attribute KeyValue conforming to the |
| 12664 | // "tls.server.certificate_chain" semantic conventions. It represents the array |
| 12665 | // of PEM-encoded certificates that make up the certificate chain offered by the |
| 12666 | // server. This is usually mutually-exclusive of `server.certificate` since that |
| 12667 | // value should be the first certificate in the chain. |
| 12668 | func TLSServerCertificateChain(val ...string) attribute.KeyValue { |
| 12669 | return TLSServerCertificateChainKey.StringSlice(val) |
| 12670 | } |
| 12671 | |
| 12672 | // TLSServerHashMd5 returns an attribute KeyValue conforming to the |
| 12673 | // "tls.server.hash.md5" semantic conventions. It represents the certificate |
| 12674 | // fingerprint using the MD5 digest of DER-encoded version of certificate offered |
| 12675 | // by the server. For consistency with other hash values, this value should be |
| 12676 | // formatted as an uppercase hash. |
| 12677 | func TLSServerHashMd5(val string) attribute.KeyValue { |
| 12678 | return TLSServerHashMd5Key.String(val) |
| 12679 | } |
| 12680 | |
| 12681 | // TLSServerHashSha1 returns an attribute KeyValue conforming to the |
| 12682 | // "tls.server.hash.sha1" semantic conventions. It represents the certificate |
| 12683 | // fingerprint using the SHA1 digest of DER-encoded version of certificate |
| 12684 | // offered by the server. For consistency with other hash values, this value |
| 12685 | // should be formatted as an uppercase hash. |
| 12686 | func TLSServerHashSha1(val string) attribute.KeyValue { |
| 12687 | return TLSServerHashSha1Key.String(val) |
| 12688 | } |
| 12689 | |
| 12690 | // TLSServerHashSha256 returns an attribute KeyValue conforming to the |
| 12691 | // "tls.server.hash.sha256" semantic conventions. It represents the certificate |
| 12692 | // fingerprint using the SHA256 digest of DER-encoded version of certificate |
| 12693 | // offered by the server. For consistency with other hash values, this value |
| 12694 | // should be formatted as an uppercase hash. |
| 12695 | func TLSServerHashSha256(val string) attribute.KeyValue { |
| 12696 | return TLSServerHashSha256Key.String(val) |
| 12697 | } |
| 12698 | |
| 12699 | // TLSServerIssuer returns an attribute KeyValue conforming to the |
| 12700 | // "tls.server.issuer" semantic conventions. It represents the distinguished name |
| 12701 | // of [subject] of the issuer of the x.509 certificate presented by the client. |
| 12702 | // |
| 12703 | // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 |
| 12704 | func TLSServerIssuer(val string) attribute.KeyValue { |
| 12705 | return TLSServerIssuerKey.String(val) |
| 12706 | } |
| 12707 | |
| 12708 | // TLSServerJa3s returns an attribute KeyValue conforming to the |
| 12709 | // "tls.server.ja3s" semantic conventions. It represents a hash that identifies |
| 12710 | // servers based on how they perform an SSL/TLS handshake. |
| 12711 | func TLSServerJa3s(val string) attribute.KeyValue { |
| 12712 | return TLSServerJa3sKey.String(val) |
| 12713 | } |
| 12714 | |
| 12715 | // TLSServerNotAfter returns an attribute KeyValue conforming to the |
| 12716 | // "tls.server.not_after" semantic conventions. It represents the date/Time |
| 12717 | // indicating when server certificate is no longer considered valid. |
| 12718 | func TLSServerNotAfter(val string) attribute.KeyValue { |
| 12719 | return TLSServerNotAfterKey.String(val) |
| 12720 | } |
| 12721 | |
| 12722 | // TLSServerNotBefore returns an attribute KeyValue conforming to the |
| 12723 | // "tls.server.not_before" semantic conventions. It represents the date/Time |
| 12724 | // indicating when server certificate is first considered valid. |
| 12725 | func TLSServerNotBefore(val string) attribute.KeyValue { |
| 12726 | return TLSServerNotBeforeKey.String(val) |
| 12727 | } |
| 12728 | |
| 12729 | // TLSServerSubject returns an attribute KeyValue conforming to the |
| 12730 | // "tls.server.subject" semantic conventions. It represents the distinguished |
| 12731 | // name of subject of the x.509 certificate presented by the server. |
| 12732 | func TLSServerSubject(val string) attribute.KeyValue { |
| 12733 | return TLSServerSubjectKey.String(val) |
| 12734 | } |
| 12735 | |
| 12736 | // Enum values for tls.protocol.name |
| 12737 | var ( |
| 12738 | // ssl |
| 12739 | // Stability: development |
| 12740 | TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl") |
| 12741 | // tls |
| 12742 | // Stability: development |
| 12743 | TLSProtocolNameTLS = TLSProtocolNameKey.String("tls") |
| 12744 | ) |
| 12745 | |
| 12746 | // Namespace: url |
| 12747 | const ( |
| 12748 | // URLDomainKey is the attribute Key conforming to the "url.domain" semantic |
| 12749 | // conventions. It represents the domain extracted from the `url.full`, such as |
| 12750 | // "opentelemetry.io". |
| 12751 | // |
| 12752 | // Type: string |
| 12753 | // RequirementLevel: Recommended |
| 12754 | // Stability: Development |
| 12755 | // |
| 12756 | // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2", |
| 12757 | // "[1080:0:0:0:8:800:200C:417A]" |
| 12758 | // Note: In some cases a URL may refer to an IP and/or port directly, without a |
| 12759 | // domain name. In this case, the IP address would go to the domain field. If |
| 12760 | // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[` |
| 12761 | // and `]` characters should also be captured in the domain field. |
| 12762 | // |
| 12763 | // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2 |
| 12764 | URLDomainKey = attribute.Key("url.domain") |
| 12765 | |
| 12766 | // URLExtensionKey is the attribute Key conforming to the "url.extension" |
| 12767 | // semantic conventions. It represents the file extension extracted from the |
| 12768 | // `url.full`, excluding the leading dot. |
| 12769 | // |
| 12770 | // Type: string |
| 12771 | // RequirementLevel: Recommended |
| 12772 | // Stability: Development |
| 12773 | // |
| 12774 | // Examples: "png", "gz" |
| 12775 | // Note: The file extension is only set if it exists, as not every url has a |
| 12776 | // file extension. When the file name has multiple extensions `example.tar.gz`, |
| 12777 | // only the last one should be captured `gz`, not `tar.gz`. |
| 12778 | URLExtensionKey = attribute.Key("url.extension") |
| 12779 | |
| 12780 | // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic |
| 12781 | // conventions. It represents the [URI fragment] component. |
| 12782 | // |
| 12783 | // Type: string |
| 12784 | // RequirementLevel: Recommended |
| 12785 | // Stability: Stable |
| 12786 | // |
| 12787 | // Examples: "SemConv" |
| 12788 | // |
| 12789 | // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 |
| 12790 | URLFragmentKey = attribute.Key("url.fragment") |
| 12791 | |
| 12792 | // URLFullKey is the attribute Key conforming to the "url.full" semantic |
| 12793 | // conventions. It represents the absolute URL describing a network resource |
| 12794 | // according to [RFC3986]. |
| 12795 | // |
| 12796 | // Type: string |
| 12797 | // RequirementLevel: Recommended |
| 12798 | // Stability: Stable |
| 12799 | // |
| 12800 | // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost" |
| 12801 | // Note: For network calls, URL usually has |
| 12802 | // `scheme://host[:port][path][?query][#fragment]` format, where the fragment |
| 12803 | // is not transmitted over HTTP, but if it is known, it SHOULD be included |
| 12804 | // nevertheless. |
| 12805 | // |
| 12806 | // `url.full` MUST NOT contain credentials passed via URL in form of |
| 12807 | // `https://username:password@www.example.com/`. |
| 12808 | // In such case username and password SHOULD be redacted and attribute's value |
| 12809 | // SHOULD be `https://REDACTED:REDACTED@www.example.com/`. |
| 12810 | // |
| 12811 | // `url.full` SHOULD capture the absolute URL when it is available (or can be |
| 12812 | // reconstructed). |
| 12813 | // |
| 12814 | // Sensitive content provided in `url.full` SHOULD be scrubbed when |
| 12815 | // instrumentations can identify it. |
| 12816 | // |
| 12817 | // |
| 12818 | // Query string values for the following keys SHOULD be redacted by default and |
| 12819 | // replaced by the |
| 12820 | // value `REDACTED`: |
| 12821 | // |
| 12822 | // - [`AWSAccessKeyId`] |
| 12823 | // - [`Signature`] |
| 12824 | // - [`sig`] |
| 12825 | // - [`X-Goog-Signature`] |
| 12826 | // |
| 12827 | // This list is subject to change over time. |
| 12828 | // |
| 12829 | // When a query string value is redacted, the query string key SHOULD still be |
| 12830 | // preserved, e.g. |
| 12831 | // `https://www.example.com/path?color=blue&sig=REDACTED`. |
| 12832 | // |
| 12833 | // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 |
| 12834 | // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth |
| 12835 | // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth |
| 12836 | // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token |
| 12837 | // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls |
| 12838 | URLFullKey = attribute.Key("url.full") |
| 12839 | |
| 12840 | // URLOriginalKey is the attribute Key conforming to the "url.original" semantic |
| 12841 | // conventions. It represents the unmodified original URL as seen in the event |
| 12842 | // source. |
| 12843 | // |
| 12844 | // Type: string |
| 12845 | // RequirementLevel: Recommended |
| 12846 | // Stability: Development |
| 12847 | // |
| 12848 | // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", |
| 12849 | // "search?q=OpenTelemetry" |
| 12850 | // Note: In network monitoring, the observed URL may be a full URL, whereas in |
| 12851 | // access logs, the URL is often just represented as a path. This field is meant |
| 12852 | // to represent the URL as it was observed, complete or not. |
| 12853 | // `url.original` might contain credentials passed via URL in form of |
| 12854 | // `https://username:password@www.example.com/`. In such case password and |
| 12855 | // username SHOULD NOT be redacted and attribute's value SHOULD remain the same. |
| 12856 | URLOriginalKey = attribute.Key("url.original") |
| 12857 | |
| 12858 | // URLPathKey is the attribute Key conforming to the "url.path" semantic |
| 12859 | // conventions. It represents the [URI path] component. |
| 12860 | // |
| 12861 | // Type: string |
| 12862 | // RequirementLevel: Recommended |
| 12863 | // Stability: Stable |
| 12864 | // |
| 12865 | // Examples: "/search" |
| 12866 | // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when |
| 12867 | // instrumentations can identify it. |
| 12868 | // |
| 12869 | // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 |
| 12870 | URLPathKey = attribute.Key("url.path") |
| 12871 | |
| 12872 | // URLPortKey is the attribute Key conforming to the "url.port" semantic |
| 12873 | // conventions. It represents the port extracted from the `url.full`. |
| 12874 | // |
| 12875 | // Type: int |
| 12876 | // RequirementLevel: Recommended |
| 12877 | // Stability: Development |
| 12878 | // |
| 12879 | // Examples: 443 |
| 12880 | URLPortKey = attribute.Key("url.port") |
| 12881 | |
| 12882 | // URLQueryKey is the attribute Key conforming to the "url.query" semantic |
| 12883 | // conventions. It represents the [URI query] component. |
| 12884 | // |
| 12885 | // Type: string |
| 12886 | // RequirementLevel: Recommended |
| 12887 | // Stability: Stable |
| 12888 | // |
| 12889 | // Examples: "q=OpenTelemetry" |
| 12890 | // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when |
| 12891 | // instrumentations can identify it. |
| 12892 | // |
| 12893 | // |
| 12894 | // Query string values for the following keys SHOULD be redacted by default and |
| 12895 | // replaced by the value `REDACTED`: |
| 12896 | // |
| 12897 | // - [`AWSAccessKeyId`] |
| 12898 | // - [`Signature`] |
| 12899 | // - [`sig`] |
| 12900 | // - [`X-Goog-Signature`] |
| 12901 | // |
| 12902 | // This list is subject to change over time. |
| 12903 | // |
| 12904 | // When a query string value is redacted, the query string key SHOULD still be |
| 12905 | // preserved, e.g. |
| 12906 | // `q=OpenTelemetry&sig=REDACTED`. |
| 12907 | // |
| 12908 | // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 |
| 12909 | // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth |
| 12910 | // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth |
| 12911 | // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token |
| 12912 | // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls |
| 12913 | URLQueryKey = attribute.Key("url.query") |
| 12914 | |
| 12915 | // URLRegisteredDomainKey is the attribute Key conforming to the |
| 12916 | // "url.registered_domain" semantic conventions. It represents the highest |
| 12917 | // registered url domain, stripped of the subdomain. |
| 12918 | // |
| 12919 | // Type: string |
| 12920 | // RequirementLevel: Recommended |
| 12921 | // Stability: Development |
| 12922 | // |
| 12923 | // Examples: "example.com", "foo.co.uk" |
| 12924 | // Note: This value can be determined precisely with the [public suffix list]. |
| 12925 | // For example, the registered domain for `foo.example.com` is `example.com`. |
| 12926 | // Trying to approximate this by simply taking the last two labels will not work |
| 12927 | // well for TLDs such as `co.uk`. |
| 12928 | // |
| 12929 | // [public suffix list]: https://publicsuffix.org/ |
| 12930 | URLRegisteredDomainKey = attribute.Key("url.registered_domain") |
| 12931 | |
| 12932 | // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic |
| 12933 | // conventions. It represents the [URI scheme] component identifying the used |
| 12934 | // protocol. |
| 12935 | // |
| 12936 | // Type: string |
| 12937 | // RequirementLevel: Recommended |
| 12938 | // Stability: Stable |
| 12939 | // |
| 12940 | // Examples: "https", "ftp", "telnet" |
| 12941 | // |
| 12942 | // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 |
| 12943 | URLSchemeKey = attribute.Key("url.scheme") |
| 12944 | |
| 12945 | // URLSubdomainKey is the attribute Key conforming to the "url.subdomain" |
| 12946 | // semantic conventions. It represents the subdomain portion of a fully |
| 12947 | // qualified domain name includes all of the names except the host name under |
| 12948 | // the registered_domain. In a partially qualified domain, or if the |
| 12949 | // qualification level of the full name cannot be determined, subdomain contains |
| 12950 | // all of the names below the registered domain. |
| 12951 | // |
| 12952 | // Type: string |
| 12953 | // RequirementLevel: Recommended |
| 12954 | // Stability: Development |
| 12955 | // |
| 12956 | // Examples: "east", "sub2.sub1" |
| 12957 | // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the |
| 12958 | // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the |
| 12959 | // subdomain field should contain `sub2.sub1`, with no trailing period. |
| 12960 | URLSubdomainKey = attribute.Key("url.subdomain") |
| 12961 | |
| 12962 | // URLTemplateKey is the attribute Key conforming to the "url.template" semantic |
| 12963 | // conventions. It represents the low-cardinality template of an |
| 12964 | // [absolute path reference]. |
| 12965 | // |
| 12966 | // Type: string |
| 12967 | // RequirementLevel: Recommended |
| 12968 | // Stability: Development |
| 12969 | // |
| 12970 | // Examples: "/users/{id}", "/users/:id", "/users?id={id}" |
| 12971 | // |
| 12972 | // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 |
| 12973 | URLTemplateKey = attribute.Key("url.template") |
| 12974 | |
| 12975 | // URLTopLevelDomainKey is the attribute Key conforming to the |
| 12976 | // "url.top_level_domain" semantic conventions. It represents the effective top |
| 12977 | // level domain (eTLD), also known as the domain suffix, is the last part of the |
| 12978 | // domain name. For example, the top level domain for example.com is `com`. |
| 12979 | // |
| 12980 | // Type: string |
| 12981 | // RequirementLevel: Recommended |
| 12982 | // Stability: Development |
| 12983 | // |
| 12984 | // Examples: "com", "co.uk" |
| 12985 | // Note: This value can be determined precisely with the [public suffix list]. |
| 12986 | // |
| 12987 | // [public suffix list]: https://publicsuffix.org/ |
| 12988 | URLTopLevelDomainKey = attribute.Key("url.top_level_domain") |
| 12989 | ) |
| 12990 | |
| 12991 | // URLDomain returns an attribute KeyValue conforming to the "url.domain" |
| 12992 | // semantic conventions. It represents the domain extracted from the `url.full`, |
| 12993 | // such as "opentelemetry.io". |
| 12994 | func URLDomain(val string) attribute.KeyValue { |
| 12995 | return URLDomainKey.String(val) |
| 12996 | } |
| 12997 | |
| 12998 | // URLExtension returns an attribute KeyValue conforming to the "url.extension" |
| 12999 | // semantic conventions. It represents the file extension extracted from the |
| 13000 | // `url.full`, excluding the leading dot. |
| 13001 | func URLExtension(val string) attribute.KeyValue { |
| 13002 | return URLExtensionKey.String(val) |
| 13003 | } |
| 13004 | |
| 13005 | // URLFragment returns an attribute KeyValue conforming to the "url.fragment" |
| 13006 | // semantic conventions. It represents the [URI fragment] component. |
| 13007 | // |
| 13008 | // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 |
| 13009 | func URLFragment(val string) attribute.KeyValue { |
| 13010 | return URLFragmentKey.String(val) |
| 13011 | } |
| 13012 | |
| 13013 | // URLFull returns an attribute KeyValue conforming to the "url.full" semantic |
| 13014 | // conventions. It represents the absolute URL describing a network resource |
| 13015 | // according to [RFC3986]. |
| 13016 | // |
| 13017 | // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 |
| 13018 | func URLFull(val string) attribute.KeyValue { |
| 13019 | return URLFullKey.String(val) |
| 13020 | } |
| 13021 | |
| 13022 | // URLOriginal returns an attribute KeyValue conforming to the "url.original" |
| 13023 | // semantic conventions. It represents the unmodified original URL as seen in the |
| 13024 | // event source. |
| 13025 | func URLOriginal(val string) attribute.KeyValue { |
| 13026 | return URLOriginalKey.String(val) |
| 13027 | } |
| 13028 | |
| 13029 | // URLPath returns an attribute KeyValue conforming to the "url.path" semantic |
| 13030 | // conventions. It represents the [URI path] component. |
| 13031 | // |
| 13032 | // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 |
| 13033 | func URLPath(val string) attribute.KeyValue { |
| 13034 | return URLPathKey.String(val) |
| 13035 | } |
| 13036 | |
| 13037 | // URLPort returns an attribute KeyValue conforming to the "url.port" semantic |
| 13038 | // conventions. It represents the port extracted from the `url.full`. |
| 13039 | func URLPort(val int) attribute.KeyValue { |
| 13040 | return URLPortKey.Int(val) |
| 13041 | } |
| 13042 | |
| 13043 | // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic |
| 13044 | // conventions. It represents the [URI query] component. |
| 13045 | // |
| 13046 | // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 |
| 13047 | func URLQuery(val string) attribute.KeyValue { |
| 13048 | return URLQueryKey.String(val) |
| 13049 | } |
| 13050 | |
| 13051 | // URLRegisteredDomain returns an attribute KeyValue conforming to the |
| 13052 | // "url.registered_domain" semantic conventions. It represents the highest |
| 13053 | // registered url domain, stripped of the subdomain. |
| 13054 | func URLRegisteredDomain(val string) attribute.KeyValue { |
| 13055 | return URLRegisteredDomainKey.String(val) |
| 13056 | } |
| 13057 | |
| 13058 | // URLScheme returns an attribute KeyValue conforming to the "url.scheme" |
| 13059 | // semantic conventions. It represents the [URI scheme] component identifying the |
| 13060 | // used protocol. |
| 13061 | // |
| 13062 | // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 |
| 13063 | func URLScheme(val string) attribute.KeyValue { |
| 13064 | return URLSchemeKey.String(val) |
| 13065 | } |
| 13066 | |
| 13067 | // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain" |
| 13068 | // semantic conventions. It represents the subdomain portion of a fully qualified |
| 13069 | // domain name includes all of the names except the host name under the |
| 13070 | // registered_domain. In a partially qualified domain, or if the qualification |
| 13071 | // level of the full name cannot be determined, subdomain contains all of the |
| 13072 | // names below the registered domain. |
| 13073 | func URLSubdomain(val string) attribute.KeyValue { |
| 13074 | return URLSubdomainKey.String(val) |
| 13075 | } |
| 13076 | |
| 13077 | // URLTemplate returns an attribute KeyValue conforming to the "url.template" |
| 13078 | // semantic conventions. It represents the low-cardinality template of an |
| 13079 | // [absolute path reference]. |
| 13080 | // |
| 13081 | // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 |
| 13082 | func URLTemplate(val string) attribute.KeyValue { |
| 13083 | return URLTemplateKey.String(val) |
| 13084 | } |
| 13085 | |
| 13086 | // URLTopLevelDomain returns an attribute KeyValue conforming to the |
| 13087 | // "url.top_level_domain" semantic conventions. It represents the effective top |
| 13088 | // level domain (eTLD), also known as the domain suffix, is the last part of the |
| 13089 | // domain name. For example, the top level domain for example.com is `com`. |
| 13090 | func URLTopLevelDomain(val string) attribute.KeyValue { |
| 13091 | return URLTopLevelDomainKey.String(val) |
| 13092 | } |
| 13093 | |
| 13094 | // Namespace: user |
| 13095 | const ( |
| 13096 | // UserEmailKey is the attribute Key conforming to the "user.email" semantic |
| 13097 | // conventions. It represents the user email address. |
| 13098 | // |
| 13099 | // Type: string |
| 13100 | // RequirementLevel: Recommended |
| 13101 | // Stability: Development |
| 13102 | // |
| 13103 | // Examples: "a.einstein@example.com" |
| 13104 | UserEmailKey = attribute.Key("user.email") |
| 13105 | |
| 13106 | // UserFullNameKey is the attribute Key conforming to the "user.full_name" |
| 13107 | // semantic conventions. It represents the user's full name. |
| 13108 | // |
| 13109 | // Type: string |
| 13110 | // RequirementLevel: Recommended |
| 13111 | // Stability: Development |
| 13112 | // |
| 13113 | // Examples: "Albert Einstein" |
| 13114 | UserFullNameKey = attribute.Key("user.full_name") |
| 13115 | |
| 13116 | // UserHashKey is the attribute Key conforming to the "user.hash" semantic |
| 13117 | // conventions. It represents the unique user hash to correlate information for |
| 13118 | // a user in anonymized form. |
| 13119 | // |
| 13120 | // Type: string |
| 13121 | // RequirementLevel: Recommended |
| 13122 | // Stability: Development |
| 13123 | // |
| 13124 | // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa" |
| 13125 | // Note: Useful if `user.id` or `user.name` contain confidential information and |
| 13126 | // cannot be used. |
| 13127 | UserHashKey = attribute.Key("user.hash") |
| 13128 | |
| 13129 | // UserIDKey is the attribute Key conforming to the "user.id" semantic |
| 13130 | // conventions. It represents the unique identifier of the user. |
| 13131 | // |
| 13132 | // Type: string |
| 13133 | // RequirementLevel: Recommended |
| 13134 | // Stability: Development |
| 13135 | // |
| 13136 | // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000" |
| 13137 | UserIDKey = attribute.Key("user.id") |
| 13138 | |
| 13139 | // UserNameKey is the attribute Key conforming to the "user.name" semantic |
| 13140 | // conventions. It represents the short name or login/username of the user. |
| 13141 | // |
| 13142 | // Type: string |
| 13143 | // RequirementLevel: Recommended |
| 13144 | // Stability: Development |
| 13145 | // |
| 13146 | // Examples: "a.einstein" |
| 13147 | UserNameKey = attribute.Key("user.name") |
| 13148 | |
| 13149 | // UserRolesKey is the attribute Key conforming to the "user.roles" semantic |
| 13150 | // conventions. It represents the array of user roles at the time of the event. |
| 13151 | // |
| 13152 | // Type: string[] |
| 13153 | // RequirementLevel: Recommended |
| 13154 | // Stability: Development |
| 13155 | // |
| 13156 | // Examples: "admin", "reporting_user" |
| 13157 | UserRolesKey = attribute.Key("user.roles") |
| 13158 | ) |
| 13159 | |
| 13160 | // UserEmail returns an attribute KeyValue conforming to the "user.email" |
| 13161 | // semantic conventions. It represents the user email address. |
| 13162 | func UserEmail(val string) attribute.KeyValue { |
| 13163 | return UserEmailKey.String(val) |
| 13164 | } |
| 13165 | |
| 13166 | // UserFullName returns an attribute KeyValue conforming to the "user.full_name" |
| 13167 | // semantic conventions. It represents the user's full name. |
| 13168 | func UserFullName(val string) attribute.KeyValue { |
| 13169 | return UserFullNameKey.String(val) |
| 13170 | } |
| 13171 | |
| 13172 | // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic |
| 13173 | // conventions. It represents the unique user hash to correlate information for a |
| 13174 | // user in anonymized form. |
| 13175 | func UserHash(val string) attribute.KeyValue { |
| 13176 | return UserHashKey.String(val) |
| 13177 | } |
| 13178 | |
| 13179 | // UserID returns an attribute KeyValue conforming to the "user.id" semantic |
| 13180 | // conventions. It represents the unique identifier of the user. |
| 13181 | func UserID(val string) attribute.KeyValue { |
| 13182 | return UserIDKey.String(val) |
| 13183 | } |
| 13184 | |
| 13185 | // UserName returns an attribute KeyValue conforming to the "user.name" semantic |
| 13186 | // conventions. It represents the short name or login/username of the user. |
| 13187 | func UserName(val string) attribute.KeyValue { |
| 13188 | return UserNameKey.String(val) |
| 13189 | } |
| 13190 | |
| 13191 | // UserRoles returns an attribute KeyValue conforming to the "user.roles" |
| 13192 | // semantic conventions. It represents the array of user roles at the time of the |
| 13193 | // event. |
| 13194 | func UserRoles(val ...string) attribute.KeyValue { |
| 13195 | return UserRolesKey.StringSlice(val) |
| 13196 | } |
| 13197 | |
| 13198 | // Namespace: user_agent |
| 13199 | const ( |
| 13200 | // UserAgentNameKey is the attribute Key conforming to the "user_agent.name" |
| 13201 | // semantic conventions. It represents the name of the user-agent extracted from |
| 13202 | // original. Usually refers to the browser's name. |
| 13203 | // |
| 13204 | // Type: string |
| 13205 | // RequirementLevel: Recommended |
| 13206 | // Stability: Development |
| 13207 | // |
| 13208 | // Examples: "Safari", "YourApp" |
| 13209 | // Note: [Example] of extracting browser's name from original string. In the |
| 13210 | // case of using a user-agent for non-browser products, such as microservices |
| 13211 | // with multiple names/versions inside the `user_agent.original`, the most |
| 13212 | // significant name SHOULD be selected. In such a scenario it should align with |
| 13213 | // `user_agent.version` |
| 13214 | // |
| 13215 | // [Example]: https://www.whatsmyua.info |
| 13216 | UserAgentNameKey = attribute.Key("user_agent.name") |
| 13217 | |
| 13218 | // UserAgentOriginalKey is the attribute Key conforming to the |
| 13219 | // "user_agent.original" semantic conventions. It represents the value of the |
| 13220 | // [HTTP User-Agent] header sent by the client. |
| 13221 | // |
| 13222 | // Type: string |
| 13223 | // RequirementLevel: Recommended |
| 13224 | // Stability: Stable |
| 13225 | // |
| 13226 | // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU |
| 13227 | // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) |
| 13228 | // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0 |
| 13229 | // grpc-java-okhttp/1.27.2" |
| 13230 | // |
| 13231 | // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent |
| 13232 | UserAgentOriginalKey = attribute.Key("user_agent.original") |
| 13233 | |
| 13234 | // UserAgentOSNameKey is the attribute Key conforming to the |
| 13235 | // "user_agent.os.name" semantic conventions. It represents the human readable |
| 13236 | // operating system name. |
| 13237 | // |
| 13238 | // Type: string |
| 13239 | // RequirementLevel: Recommended |
| 13240 | // Stability: Development |
| 13241 | // |
| 13242 | // Examples: "iOS", "Android", "Ubuntu" |
| 13243 | // Note: For mapping user agent strings to OS names, libraries such as |
| 13244 | // [ua-parser] can be utilized. |
| 13245 | // |
| 13246 | // [ua-parser]: https://github.com/ua-parser |
| 13247 | UserAgentOSNameKey = attribute.Key("user_agent.os.name") |
| 13248 | |
| 13249 | // UserAgentOSVersionKey is the attribute Key conforming to the |
| 13250 | // "user_agent.os.version" semantic conventions. It represents the version |
| 13251 | // string of the operating system as defined in [Version Attributes]. |
| 13252 | // |
| 13253 | // Type: string |
| 13254 | // RequirementLevel: Recommended |
| 13255 | // Stability: Development |
| 13256 | // |
| 13257 | // Examples: "14.2.1", "18.04.1" |
| 13258 | // Note: For mapping user agent strings to OS versions, libraries such as |
| 13259 | // [ua-parser] can be utilized. |
| 13260 | // |
| 13261 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 13262 | // [ua-parser]: https://github.com/ua-parser |
| 13263 | UserAgentOSVersionKey = attribute.Key("user_agent.os.version") |
| 13264 | |
| 13265 | // UserAgentSyntheticTypeKey is the attribute Key conforming to the |
| 13266 | // "user_agent.synthetic.type" semantic conventions. It represents the specifies |
| 13267 | // the category of synthetic traffic, such as tests or bots. |
| 13268 | // |
| 13269 | // Type: Enum |
| 13270 | // RequirementLevel: Recommended |
| 13271 | // Stability: Development |
| 13272 | // |
| 13273 | // Examples: |
| 13274 | // Note: This attribute MAY be derived from the contents of the |
| 13275 | // `user_agent.original` attribute. Components that populate the attribute are |
| 13276 | // responsible for determining what they consider to be synthetic bot or test |
| 13277 | // traffic. This attribute can either be set for self-identification purposes, |
| 13278 | // or on telemetry detected to be generated as a result of a synthetic request. |
| 13279 | // This attribute is useful for distinguishing between genuine client traffic |
| 13280 | // and synthetic traffic generated by bots or tests. |
| 13281 | UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type") |
| 13282 | |
| 13283 | // UserAgentVersionKey is the attribute Key conforming to the |
| 13284 | // "user_agent.version" semantic conventions. It represents the version of the |
| 13285 | // user-agent extracted from original. Usually refers to the browser's version. |
| 13286 | // |
| 13287 | // Type: string |
| 13288 | // RequirementLevel: Recommended |
| 13289 | // Stability: Development |
| 13290 | // |
| 13291 | // Examples: "14.1.2", "1.0.0" |
| 13292 | // Note: [Example] of extracting browser's version from original string. In the |
| 13293 | // case of using a user-agent for non-browser products, such as microservices |
| 13294 | // with multiple names/versions inside the `user_agent.original`, the most |
| 13295 | // significant version SHOULD be selected. In such a scenario it should align |
| 13296 | // with `user_agent.name` |
| 13297 | // |
| 13298 | // [Example]: https://www.whatsmyua.info |
| 13299 | UserAgentVersionKey = attribute.Key("user_agent.version") |
| 13300 | ) |
| 13301 | |
| 13302 | // UserAgentName returns an attribute KeyValue conforming to the |
| 13303 | // "user_agent.name" semantic conventions. It represents the name of the |
| 13304 | // user-agent extracted from original. Usually refers to the browser's name. |
| 13305 | func UserAgentName(val string) attribute.KeyValue { |
| 13306 | return UserAgentNameKey.String(val) |
| 13307 | } |
| 13308 | |
| 13309 | // UserAgentOriginal returns an attribute KeyValue conforming to the |
| 13310 | // "user_agent.original" semantic conventions. It represents the value of the |
| 13311 | // [HTTP User-Agent] header sent by the client. |
| 13312 | // |
| 13313 | // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent |
| 13314 | func UserAgentOriginal(val string) attribute.KeyValue { |
| 13315 | return UserAgentOriginalKey.String(val) |
| 13316 | } |
| 13317 | |
| 13318 | // UserAgentOSName returns an attribute KeyValue conforming to the |
| 13319 | // "user_agent.os.name" semantic conventions. It represents the human readable |
| 13320 | // operating system name. |
| 13321 | func UserAgentOSName(val string) attribute.KeyValue { |
| 13322 | return UserAgentOSNameKey.String(val) |
| 13323 | } |
| 13324 | |
| 13325 | // UserAgentOSVersion returns an attribute KeyValue conforming to the |
| 13326 | // "user_agent.os.version" semantic conventions. It represents the version string |
| 13327 | // of the operating system as defined in [Version Attributes]. |
| 13328 | // |
| 13329 | // [Version Attributes]: /docs/resource/README.md#version-attributes |
| 13330 | func UserAgentOSVersion(val string) attribute.KeyValue { |
| 13331 | return UserAgentOSVersionKey.String(val) |
| 13332 | } |
| 13333 | |
| 13334 | // UserAgentVersion returns an attribute KeyValue conforming to the |
| 13335 | // "user_agent.version" semantic conventions. It represents the version of the |
| 13336 | // user-agent extracted from original. Usually refers to the browser's version. |
| 13337 | func UserAgentVersion(val string) attribute.KeyValue { |
| 13338 | return UserAgentVersionKey.String(val) |
| 13339 | } |
| 13340 | |
| 13341 | // Enum values for user_agent.synthetic.type |
| 13342 | var ( |
| 13343 | // Bot source. |
| 13344 | // Stability: development |
| 13345 | UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot") |
| 13346 | // Synthetic test source. |
| 13347 | // Stability: development |
| 13348 | UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test") |
| 13349 | ) |
| 13350 | |
| 13351 | // Namespace: vcs |
| 13352 | const ( |
| 13353 | // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id" |
| 13354 | // semantic conventions. It represents the ID of the change (pull request/merge |
| 13355 | // request/changelist) if applicable. This is usually a unique (within |
| 13356 | // repository) identifier generated by the VCS system. |
| 13357 | // |
| 13358 | // Type: string |
| 13359 | // RequirementLevel: Recommended |
| 13360 | // Stability: Development |
| 13361 | // |
| 13362 | // Examples: "123" |
| 13363 | VCSChangeIDKey = attribute.Key("vcs.change.id") |
| 13364 | |
| 13365 | // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state" |
| 13366 | // semantic conventions. It represents the state of the change (pull |
| 13367 | // request/merge request/changelist). |
| 13368 | // |
| 13369 | // Type: Enum |
| 13370 | // RequirementLevel: Recommended |
| 13371 | // Stability: Development |
| 13372 | // |
| 13373 | // Examples: "open", "closed", "merged" |
| 13374 | VCSChangeStateKey = attribute.Key("vcs.change.state") |
| 13375 | |
| 13376 | // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title" |
| 13377 | // semantic conventions. It represents the human readable title of the change |
| 13378 | // (pull request/merge request/changelist). This title is often a brief summary |
| 13379 | // of the change and may get merged in to a ref as the commit summary. |
| 13380 | // |
| 13381 | // Type: string |
| 13382 | // RequirementLevel: Recommended |
| 13383 | // Stability: Development |
| 13384 | // |
| 13385 | // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update |
| 13386 | // dependency" |
| 13387 | VCSChangeTitleKey = attribute.Key("vcs.change.title") |
| 13388 | |
| 13389 | // VCSLineChangeTypeKey is the attribute Key conforming to the |
| 13390 | // "vcs.line_change.type" semantic conventions. It represents the type of line |
| 13391 | // change being measured on a branch or change. |
| 13392 | // |
| 13393 | // Type: Enum |
| 13394 | // RequirementLevel: Recommended |
| 13395 | // Stability: Development |
| 13396 | // |
| 13397 | // Examples: "added", "removed" |
| 13398 | VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type") |
| 13399 | |
| 13400 | // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name" |
| 13401 | // semantic conventions. It represents the group owner within the version |
| 13402 | // control system. |
| 13403 | // |
| 13404 | // Type: string |
| 13405 | // RequirementLevel: Recommended |
| 13406 | // Stability: Development |
| 13407 | // |
| 13408 | // Examples: "my-org", "myteam", "business-unit" |
| 13409 | VCSOwnerNameKey = attribute.Key("vcs.owner.name") |
| 13410 | |
| 13411 | // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name" |
| 13412 | // semantic conventions. It represents the name of the version control system |
| 13413 | // provider. |
| 13414 | // |
| 13415 | // Type: Enum |
| 13416 | // RequirementLevel: Recommended |
| 13417 | // Stability: Development |
| 13418 | // |
| 13419 | // Examples: "github", "gitlab", "gitea", "bitbucket" |
| 13420 | VCSProviderNameKey = attribute.Key("vcs.provider.name") |
| 13421 | |
| 13422 | // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name" |
| 13423 | // semantic conventions. It represents the name of the [reference] such as |
| 13424 | // **branch** or **tag** in the repository. |
| 13425 | // |
| 13426 | // Type: string |
| 13427 | // RequirementLevel: Recommended |
| 13428 | // Stability: Development |
| 13429 | // |
| 13430 | // Examples: "my-feature-branch", "tag-1-test" |
| 13431 | // Note: `base` refers to the starting point of a change. For example, `main` |
| 13432 | // would be the base reference of type branch if you've created a new |
| 13433 | // reference of type branch from it and created new commits. |
| 13434 | // |
| 13435 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13436 | VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name") |
| 13437 | |
| 13438 | // VCSRefBaseRevisionKey is the attribute Key conforming to the |
| 13439 | // "vcs.ref.base.revision" semantic conventions. It represents the revision, |
| 13440 | // literally [revised version], The revision most often refers to a commit |
| 13441 | // object in Git, or a revision number in SVN. |
| 13442 | // |
| 13443 | // Type: string |
| 13444 | // RequirementLevel: Recommended |
| 13445 | // Stability: Development |
| 13446 | // |
| 13447 | // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", |
| 13448 | // "main", "123", "HEAD" |
| 13449 | // Note: `base` refers to the starting point of a change. For example, `main` |
| 13450 | // would be the base reference of type branch if you've created a new |
| 13451 | // reference of type branch from it and created new commits. The |
| 13452 | // revision can be a full [hash value (see |
| 13453 | // glossary)], |
| 13454 | // of the recorded change to a ref within a repository pointing to a |
| 13455 | // commit [commit] object. It does |
| 13456 | // not necessarily have to be a hash; it can simply define a [revision |
| 13457 | // number] |
| 13458 | // which is an integer that is monotonically increasing. In cases where |
| 13459 | // it is identical to the `ref.base.name`, it SHOULD still be included. |
| 13460 | // It is up to the implementer to decide which value to set as the |
| 13461 | // revision based on the VCS system and situational context. |
| 13462 | // |
| 13463 | // [revised version]: https://www.merriam-webster.com/dictionary/revision |
| 13464 | // [hash value (see |
| 13465 | // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 13466 | // [commit]: https://git-scm.com/docs/git-commit |
| 13467 | // [revision |
| 13468 | // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html |
| 13469 | VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision") |
| 13470 | |
| 13471 | // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type" |
| 13472 | // semantic conventions. It represents the type of the [reference] in the |
| 13473 | // repository. |
| 13474 | // |
| 13475 | // Type: Enum |
| 13476 | // RequirementLevel: Recommended |
| 13477 | // Stability: Development |
| 13478 | // |
| 13479 | // Examples: "branch", "tag" |
| 13480 | // Note: `base` refers to the starting point of a change. For example, `main` |
| 13481 | // would be the base reference of type branch if you've created a new |
| 13482 | // reference of type branch from it and created new commits. |
| 13483 | // |
| 13484 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13485 | VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type") |
| 13486 | |
| 13487 | // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name" |
| 13488 | // semantic conventions. It represents the name of the [reference] such as |
| 13489 | // **branch** or **tag** in the repository. |
| 13490 | // |
| 13491 | // Type: string |
| 13492 | // RequirementLevel: Recommended |
| 13493 | // Stability: Development |
| 13494 | // |
| 13495 | // Examples: "my-feature-branch", "tag-1-test" |
| 13496 | // Note: `head` refers to where you are right now; the current reference at a |
| 13497 | // given time. |
| 13498 | // |
| 13499 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13500 | VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name") |
| 13501 | |
| 13502 | // VCSRefHeadRevisionKey is the attribute Key conforming to the |
| 13503 | // "vcs.ref.head.revision" semantic conventions. It represents the revision, |
| 13504 | // literally [revised version], The revision most often refers to a commit |
| 13505 | // object in Git, or a revision number in SVN. |
| 13506 | // |
| 13507 | // Type: string |
| 13508 | // RequirementLevel: Recommended |
| 13509 | // Stability: Development |
| 13510 | // |
| 13511 | // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", |
| 13512 | // "main", "123", "HEAD" |
| 13513 | // Note: `head` refers to where you are right now; the current reference at a |
| 13514 | // given time.The revision can be a full [hash value (see |
| 13515 | // glossary)], |
| 13516 | // of the recorded change to a ref within a repository pointing to a |
| 13517 | // commit [commit] object. It does |
| 13518 | // not necessarily have to be a hash; it can simply define a [revision |
| 13519 | // number] |
| 13520 | // which is an integer that is monotonically increasing. In cases where |
| 13521 | // it is identical to the `ref.head.name`, it SHOULD still be included. |
| 13522 | // It is up to the implementer to decide which value to set as the |
| 13523 | // revision based on the VCS system and situational context. |
| 13524 | // |
| 13525 | // [revised version]: https://www.merriam-webster.com/dictionary/revision |
| 13526 | // [hash value (see |
| 13527 | // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf |
| 13528 | // [commit]: https://git-scm.com/docs/git-commit |
| 13529 | // [revision |
| 13530 | // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html |
| 13531 | VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision") |
| 13532 | |
| 13533 | // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type" |
| 13534 | // semantic conventions. It represents the type of the [reference] in the |
| 13535 | // repository. |
| 13536 | // |
| 13537 | // Type: Enum |
| 13538 | // RequirementLevel: Recommended |
| 13539 | // Stability: Development |
| 13540 | // |
| 13541 | // Examples: "branch", "tag" |
| 13542 | // Note: `head` refers to where you are right now; the current reference at a |
| 13543 | // given time. |
| 13544 | // |
| 13545 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13546 | VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type") |
| 13547 | |
| 13548 | // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic |
| 13549 | // conventions. It represents the type of the [reference] in the repository. |
| 13550 | // |
| 13551 | // Type: Enum |
| 13552 | // RequirementLevel: Recommended |
| 13553 | // Stability: Development |
| 13554 | // |
| 13555 | // Examples: "branch", "tag" |
| 13556 | // |
| 13557 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13558 | VCSRefTypeKey = attribute.Key("vcs.ref.type") |
| 13559 | |
| 13560 | // VCSRepositoryNameKey is the attribute Key conforming to the |
| 13561 | // "vcs.repository.name" semantic conventions. It represents the human readable |
| 13562 | // name of the repository. It SHOULD NOT include any additional identifier like |
| 13563 | // Group/SubGroup in GitLab or organization in GitHub. |
| 13564 | // |
| 13565 | // Type: string |
| 13566 | // RequirementLevel: Recommended |
| 13567 | // Stability: Development |
| 13568 | // |
| 13569 | // Examples: "semantic-conventions", "my-cool-repo" |
| 13570 | // Note: Due to it only being the name, it can clash with forks of the same |
| 13571 | // repository if collecting telemetry across multiple orgs or groups in |
| 13572 | // the same backends. |
| 13573 | VCSRepositoryNameKey = attribute.Key("vcs.repository.name") |
| 13574 | |
| 13575 | // VCSRepositoryURLFullKey is the attribute Key conforming to the |
| 13576 | // "vcs.repository.url.full" semantic conventions. It represents the |
| 13577 | // [canonical URL] of the repository providing the complete HTTP(S) address in |
| 13578 | // order to locate and identify the repository through a browser. |
| 13579 | // |
| 13580 | // Type: string |
| 13581 | // RequirementLevel: Recommended |
| 13582 | // Stability: Development |
| 13583 | // |
| 13584 | // Examples: |
| 13585 | // "https://github.com/opentelemetry/open-telemetry-collector-contrib", |
| 13586 | // "https://gitlab.com/my-org/my-project/my-projects-project/repo" |
| 13587 | // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include |
| 13588 | // the `.git` extension. |
| 13589 | // |
| 13590 | // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical. |
| 13591 | VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full") |
| 13592 | |
| 13593 | // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the |
| 13594 | // "vcs.revision_delta.direction" semantic conventions. It represents the type |
| 13595 | // of revision comparison. |
| 13596 | // |
| 13597 | // Type: Enum |
| 13598 | // RequirementLevel: Recommended |
| 13599 | // Stability: Development |
| 13600 | // |
| 13601 | // Examples: "ahead", "behind" |
| 13602 | VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction") |
| 13603 | ) |
| 13604 | |
| 13605 | // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id" |
| 13606 | // semantic conventions. It represents the ID of the change (pull request/merge |
| 13607 | // request/changelist) if applicable. This is usually a unique (within |
| 13608 | // repository) identifier generated by the VCS system. |
| 13609 | func VCSChangeID(val string) attribute.KeyValue { |
| 13610 | return VCSChangeIDKey.String(val) |
| 13611 | } |
| 13612 | |
| 13613 | // VCSChangeTitle returns an attribute KeyValue conforming to the |
| 13614 | // "vcs.change.title" semantic conventions. It represents the human readable |
| 13615 | // title of the change (pull request/merge request/changelist). This title is |
| 13616 | // often a brief summary of the change and may get merged in to a ref as the |
| 13617 | // commit summary. |
| 13618 | func VCSChangeTitle(val string) attribute.KeyValue { |
| 13619 | return VCSChangeTitleKey.String(val) |
| 13620 | } |
| 13621 | |
| 13622 | // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name" |
| 13623 | // semantic conventions. It represents the group owner within the version control |
| 13624 | // system. |
| 13625 | func VCSOwnerName(val string) attribute.KeyValue { |
| 13626 | return VCSOwnerNameKey.String(val) |
| 13627 | } |
| 13628 | |
| 13629 | // VCSRefBaseName returns an attribute KeyValue conforming to the |
| 13630 | // "vcs.ref.base.name" semantic conventions. It represents the name of the |
| 13631 | // [reference] such as **branch** or **tag** in the repository. |
| 13632 | // |
| 13633 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13634 | func VCSRefBaseName(val string) attribute.KeyValue { |
| 13635 | return VCSRefBaseNameKey.String(val) |
| 13636 | } |
| 13637 | |
| 13638 | // VCSRefBaseRevision returns an attribute KeyValue conforming to the |
| 13639 | // "vcs.ref.base.revision" semantic conventions. It represents the revision, |
| 13640 | // literally [revised version], The revision most often refers to a commit object |
| 13641 | // in Git, or a revision number in SVN. |
| 13642 | // |
| 13643 | // [revised version]: https://www.merriam-webster.com/dictionary/revision |
| 13644 | func VCSRefBaseRevision(val string) attribute.KeyValue { |
| 13645 | return VCSRefBaseRevisionKey.String(val) |
| 13646 | } |
| 13647 | |
| 13648 | // VCSRefHeadName returns an attribute KeyValue conforming to the |
| 13649 | // "vcs.ref.head.name" semantic conventions. It represents the name of the |
| 13650 | // [reference] such as **branch** or **tag** in the repository. |
| 13651 | // |
| 13652 | // [reference]: https://git-scm.com/docs/gitglossary#def_ref |
| 13653 | func VCSRefHeadName(val string) attribute.KeyValue { |
| 13654 | return VCSRefHeadNameKey.String(val) |
| 13655 | } |
| 13656 | |
| 13657 | // VCSRefHeadRevision returns an attribute KeyValue conforming to the |
| 13658 | // "vcs.ref.head.revision" semantic conventions. It represents the revision, |
| 13659 | // literally [revised version], The revision most often refers to a commit object |
| 13660 | // in Git, or a revision number in SVN. |
| 13661 | // |
| 13662 | // [revised version]: https://www.merriam-webster.com/dictionary/revision |
| 13663 | func VCSRefHeadRevision(val string) attribute.KeyValue { |
| 13664 | return VCSRefHeadRevisionKey.String(val) |
| 13665 | } |
| 13666 | |
| 13667 | // VCSRepositoryName returns an attribute KeyValue conforming to the |
| 13668 | // "vcs.repository.name" semantic conventions. It represents the human readable |
| 13669 | // name of the repository. It SHOULD NOT include any additional identifier like |
| 13670 | // Group/SubGroup in GitLab or organization in GitHub. |
| 13671 | func VCSRepositoryName(val string) attribute.KeyValue { |
| 13672 | return VCSRepositoryNameKey.String(val) |
| 13673 | } |
| 13674 | |
| 13675 | // VCSRepositoryURLFull returns an attribute KeyValue conforming to the |
| 13676 | // "vcs.repository.url.full" semantic conventions. It represents the |
| 13677 | // [canonical URL] of the repository providing the complete HTTP(S) address in |
| 13678 | // order to locate and identify the repository through a browser. |
| 13679 | // |
| 13680 | // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical. |
| 13681 | func VCSRepositoryURLFull(val string) attribute.KeyValue { |
| 13682 | return VCSRepositoryURLFullKey.String(val) |
| 13683 | } |
| 13684 | |
| 13685 | // Enum values for vcs.change.state |
| 13686 | var ( |
| 13687 | // Open means the change is currently active and under review. It hasn't been |
| 13688 | // merged into the target branch yet, and it's still possible to make changes or |
| 13689 | // add comments. |
| 13690 | // Stability: development |
| 13691 | VCSChangeStateOpen = VCSChangeStateKey.String("open") |
| 13692 | // WIP (work-in-progress, draft) means the change is still in progress and not |
| 13693 | // yet ready for a full review. It might still undergo significant changes. |
| 13694 | // Stability: development |
| 13695 | VCSChangeStateWip = VCSChangeStateKey.String("wip") |
| 13696 | // Closed means the merge request has been closed without merging. This can |
| 13697 | // happen for various reasons, such as the changes being deemed unnecessary, the |
| 13698 | // issue being resolved in another way, or the author deciding to withdraw the |
| 13699 | // request. |
| 13700 | // Stability: development |
| 13701 | VCSChangeStateClosed = VCSChangeStateKey.String("closed") |
| 13702 | // Merged indicates that the change has been successfully integrated into the |
| 13703 | // target codebase. |
| 13704 | // Stability: development |
| 13705 | VCSChangeStateMerged = VCSChangeStateKey.String("merged") |
| 13706 | ) |
| 13707 | |
| 13708 | // Enum values for vcs.line_change.type |
| 13709 | var ( |
| 13710 | // How many lines were added. |
| 13711 | // Stability: development |
| 13712 | VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added") |
| 13713 | // How many lines were removed. |
| 13714 | // Stability: development |
| 13715 | VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed") |
| 13716 | ) |
| 13717 | |
| 13718 | // Enum values for vcs.provider.name |
| 13719 | var ( |
| 13720 | // [GitHub] |
| 13721 | // Stability: development |
| 13722 | // |
| 13723 | // [GitHub]: https://github.com |
| 13724 | VCSProviderNameGithub = VCSProviderNameKey.String("github") |
| 13725 | // [GitLab] |
| 13726 | // Stability: development |
| 13727 | // |
| 13728 | // [GitLab]: https://gitlab.com |
| 13729 | VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab") |
| 13730 | // Deprecated: Replaced by `gitea`. |
| 13731 | VCSProviderNameGittea = VCSProviderNameKey.String("gittea") |
| 13732 | // [Gitea] |
| 13733 | // Stability: development |
| 13734 | // |
| 13735 | // [Gitea]: https://gitea.io |
| 13736 | VCSProviderNameGitea = VCSProviderNameKey.String("gitea") |
| 13737 | // [Bitbucket] |
| 13738 | // Stability: development |
| 13739 | // |
| 13740 | // [Bitbucket]: https://bitbucket.org |
| 13741 | VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket") |
| 13742 | ) |
| 13743 | |
| 13744 | // Enum values for vcs.ref.base.type |
| 13745 | var ( |
| 13746 | // [branch] |
| 13747 | // Stability: development |
| 13748 | // |
| 13749 | // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch |
| 13750 | VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch") |
| 13751 | // [tag] |
| 13752 | // Stability: development |
| 13753 | // |
| 13754 | // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag |
| 13755 | VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag") |
| 13756 | ) |
| 13757 | |
| 13758 | // Enum values for vcs.ref.head.type |
| 13759 | var ( |
| 13760 | // [branch] |
| 13761 | // Stability: development |
| 13762 | // |
| 13763 | // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch |
| 13764 | VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch") |
| 13765 | // [tag] |
| 13766 | // Stability: development |
| 13767 | // |
| 13768 | // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag |
| 13769 | VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag") |
| 13770 | ) |
| 13771 | |
| 13772 | // Enum values for vcs.ref.type |
| 13773 | var ( |
| 13774 | // [branch] |
| 13775 | // Stability: development |
| 13776 | // |
| 13777 | // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch |
| 13778 | VCSRefTypeBranch = VCSRefTypeKey.String("branch") |
| 13779 | // [tag] |
| 13780 | // Stability: development |
| 13781 | // |
| 13782 | // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag |
| 13783 | VCSRefTypeTag = VCSRefTypeKey.String("tag") |
| 13784 | ) |
| 13785 | |
| 13786 | // Enum values for vcs.revision_delta.direction |
| 13787 | var ( |
| 13788 | // How many revisions the change is behind the target ref. |
| 13789 | // Stability: development |
| 13790 | VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind") |
| 13791 | // How many revisions the change is ahead of the target ref. |
| 13792 | // Stability: development |
| 13793 | VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead") |
| 13794 | ) |
| 13795 | |
| 13796 | // Namespace: webengine |
| 13797 | const ( |
| 13798 | // WebEngineDescriptionKey is the attribute Key conforming to the |
| 13799 | // "webengine.description" semantic conventions. It represents the additional |
| 13800 | // description of the web engine (e.g. detailed version and edition |
| 13801 | // information). |
| 13802 | // |
| 13803 | // Type: string |
| 13804 | // RequirementLevel: Recommended |
| 13805 | // Stability: Development |
| 13806 | // |
| 13807 | // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - |
| 13808 | // 2.2.2.Final" |
| 13809 | WebEngineDescriptionKey = attribute.Key("webengine.description") |
| 13810 | |
| 13811 | // WebEngineNameKey is the attribute Key conforming to the "webengine.name" |
| 13812 | // semantic conventions. It represents the name of the web engine. |
| 13813 | // |
| 13814 | // Type: string |
| 13815 | // RequirementLevel: Recommended |
| 13816 | // Stability: Development |
| 13817 | // |
| 13818 | // Examples: "WildFly" |
| 13819 | WebEngineNameKey = attribute.Key("webengine.name") |
| 13820 | |
| 13821 | // WebEngineVersionKey is the attribute Key conforming to the |
| 13822 | // "webengine.version" semantic conventions. It represents the version of the |
| 13823 | // web engine. |
| 13824 | // |
| 13825 | // Type: string |
| 13826 | // RequirementLevel: Recommended |
| 13827 | // Stability: Development |
| 13828 | // |
| 13829 | // Examples: "21.0.0" |
| 13830 | WebEngineVersionKey = attribute.Key("webengine.version") |
| 13831 | ) |
| 13832 | |
| 13833 | // WebEngineDescription returns an attribute KeyValue conforming to the |
| 13834 | // "webengine.description" semantic conventions. It represents the additional |
| 13835 | // description of the web engine (e.g. detailed version and edition information). |
| 13836 | func WebEngineDescription(val string) attribute.KeyValue { |
| 13837 | return WebEngineDescriptionKey.String(val) |
| 13838 | } |
| 13839 | |
| 13840 | // WebEngineName returns an attribute KeyValue conforming to the "webengine.name" |
| 13841 | // semantic conventions. It represents the name of the web engine. |
| 13842 | func WebEngineName(val string) attribute.KeyValue { |
| 13843 | return WebEngineNameKey.String(val) |
| 13844 | } |
| 13845 | |
| 13846 | // WebEngineVersion returns an attribute KeyValue conforming to the |
| 13847 | // "webengine.version" semantic conventions. It represents the version of the web |
| 13848 | // engine. |
| 13849 | func WebEngineVersion(val string) attribute.KeyValue { |
| 13850 | return WebEngineVersionKey.String(val) |
| 13851 | } |