From 59c9cd540036a484833ffda620736d9894a40e3d Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:37:38 -0800 Subject: [PATCH 01/11] Use weaver@v0.10.0 The latest version fails for older versions of semconv. --- dependencies.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies.Dockerfile b/dependencies.Dockerfile index 31be8c2c385..d3e746a2e00 100644 --- a/dependencies.Dockerfile +++ b/dependencies.Dockerfile @@ -1,3 +1,3 @@ # This is a renovate-friendly source of Docker images. FROM python:3.13.1-slim-bullseye AS python -FROM otel/weaver:v0.12.0 AS weaver +FROM otel/weaver:v0.10.0 AS weaver From 42dfcca26d40d2125b24dad4e2624e10653bccfe Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:38:16 -0800 Subject: [PATCH 02/11] Generate semconv/v1.28.0 --- semconv/v1.28.0/README.md | 3 + semconv/v1.28.0/attribute_group.go | 9265 ++++++++++++++++++++++++++++ semconv/v1.28.0/doc.go | 9 + semconv/v1.28.0/exception.go | 9 + semconv/v1.28.0/metric.go | 1418 +++++ semconv/v1.28.0/schema.go | 9 + 6 files changed, 10713 insertions(+) create mode 100644 semconv/v1.28.0/README.md create mode 100644 semconv/v1.28.0/attribute_group.go create mode 100644 semconv/v1.28.0/doc.go create mode 100644 semconv/v1.28.0/exception.go create mode 100644 semconv/v1.28.0/metric.go create mode 100644 semconv/v1.28.0/schema.go diff --git a/semconv/v1.28.0/README.md b/semconv/v1.28.0/README.md new file mode 100644 index 00000000000..25e45df353e --- /dev/null +++ b/semconv/v1.28.0/README.md @@ -0,0 +1,3 @@ +# Semconv v1.28.0 + +[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.28.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.28.0) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go new file mode 100644 index 00000000000..06155ac7294 --- /dev/null +++ b/semconv/v1.28.0/attribute_group.go @@ -0,0 +1,9265 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" + +import "go.opentelemetry.io/otel/attribute" + +// Namespace: android +const ( + // AndroidOSAPILevelKey is the attribute Key conforming to the "android.os.api_level" semantic conventions. It represents the uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "33", "32" + // + // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels + AndroidOSAPILevelKey = attribute.Key("android.os.api_level") +) + +// AndroidOSAPILevel returns an attribute KeyValue conforming to the "android.os.api_level" semantic conventions. It represents the uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here]. +// +// [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels +func AndroidOSAPILevel(val string) attribute.KeyValue { + return AndroidOSAPILevelKey.String(val) +} + +// Namespace: artifact +const ( + // ArtifactAttestationFilenameKey is the attribute Key conforming to the "artifact.attestation.filename" semantic conventions. It represents the provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship] specification for more information. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "golang-binary-amd64-v0.1.0.attestation", "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation", "file-name-package.tar.gz.intoto.json1" + // + // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations + ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename") + + // ArtifactAttestationHashKey is the attribute Key conforming to the "artifact.attestation.hash" semantic conventions. It represents the full [hash value (see glossary)], of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408" + // + // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf + // [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec + ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash") + + // ArtifactAttestationIDKey is the attribute Key conforming to the "artifact.attestation.id" semantic conventions. It represents the id of the build [software attestation]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "123" + // + // [software attestation]: https://slsa.dev/attestation-model + ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id") + + // ArtifactFilenameKey is the attribute Key conforming to the "artifact.filename" semantic conventions. It represents the human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0", "release-1.tar.gz", "file-name-package.tar.gz" + // Note: This file name can also act as the [Package Name] + // in cases where the package ecosystem maps accordingly. + // Additionally, the artifact [can be published] + // for others, but that is not a guarantee. + // + // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model + // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain + ArtifactFilenameKey = attribute.Key("artifact.filename") + + // ArtifactHashKey is the attribute Key conforming to the "artifact.hash" semantic conventions. It represents the full [hash value (see glossary)], often found in checksum.txt on a release of the artifact and used to verify package integrity. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9" + // Note: The specific algorithm used to create the cryptographic hash value is + // not defined. In situations where an artifact has multiple + // cryptographic hashes, it is up to the implementer to choose which + // hash value to set here; this should be the most secure hash algorithm + // that is suitable for the situation and consistent with the + // corresponding attestation. The implementer can then provide the other + // hash values through an additional set of attribute extensions as they + // deem necessary. + // + // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf + ArtifactHashKey = attribute.Key("artifact.hash") + + // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl" semantic conventions. It represents the [Package URL] of the [package artifact] provides a standard way to identify and locate the packaged artifact. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "pkg:github/package-url/purl-spec@1209109710924", "pkg:npm/foo@12.12.3" + // + // [Package URL]: https://github.com/package-url/purl-spec + // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model + ArtifactPurlKey = attribute.Key("artifact.purl") + + // ArtifactVersionKey is the attribute Key conforming to the "artifact.version" semantic conventions. It represents the version of the artifact. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "v0.1.0", "1.2.1", "122691-build" + ArtifactVersionKey = attribute.Key("artifact.version") +) + +// ArtifactAttestationFilename returns an attribute KeyValue conforming to the "artifact.attestation.filename" semantic conventions. It represents the provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship] specification for more information. +// +// [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations +func ArtifactAttestationFilename(val string) attribute.KeyValue { + return ArtifactAttestationFilenameKey.String(val) +} + +// ArtifactAttestationHash returns an attribute KeyValue conforming to the "artifact.attestation.hash" semantic conventions. It represents the full [hash value (see glossary)], of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest]. +// +// [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf +// [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec +func ArtifactAttestationHash(val string) attribute.KeyValue { + return ArtifactAttestationHashKey.String(val) +} + +// ArtifactAttestationID returns an attribute KeyValue conforming to the "artifact.attestation.id" semantic conventions. It represents the id of the build [software attestation]. +// +// [software attestation]: https://slsa.dev/attestation-model +func ArtifactAttestationID(val string) attribute.KeyValue { + return ArtifactAttestationIDKey.String(val) +} + +// ArtifactFilename returns an attribute KeyValue conforming to the "artifact.filename" semantic conventions. It represents the human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. +func ArtifactFilename(val string) attribute.KeyValue { + return ArtifactFilenameKey.String(val) +} + +// ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash" semantic conventions. It represents the full [hash value (see glossary)], often found in checksum.txt on a release of the artifact and used to verify package integrity. +// +// [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf +func ArtifactHash(val string) attribute.KeyValue { + return ArtifactHashKey.String(val) +} + +// ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl" semantic conventions. It represents the [Package URL] of the [package artifact] provides a standard way to identify and locate the packaged artifact. +// +// [Package URL]: https://github.com/package-url/purl-spec +// [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model +func ArtifactPurl(val string) attribute.KeyValue { + return ArtifactPurlKey.String(val) +} + +// ArtifactVersion returns an attribute KeyValue conforming to the "artifact.version" semantic conventions. It represents the version of the artifact. +func ArtifactVersion(val string) attribute.KeyValue { + return ArtifactVersionKey.String(val) +} + +// Namespace: aspnetcore +const ( + // ASPNETCoreDiagnosticsExceptionResultKey is the attribute Key conforming to the "aspnetcore.diagnostics.exception.result" semantic conventions. It represents the aSP.NET Core exception middleware handling result. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "handled", "unhandled" + ASPNETCoreDiagnosticsExceptionResultKey = attribute.Key("aspnetcore.diagnostics.exception.result") + + // ASPNETCoreDiagnosticsHandlerTypeKey is the attribute Key conforming to the "aspnetcore.diagnostics.handler.type" semantic conventions. It represents the full type name of the [`IExceptionHandler`] implementation that handled the exception. + // + // Type: string + // RequirementLevel: {"Conditionally_Required": "If And Only If The Exception Was Handled By This Handler."} + // Stability: Stable + // + // Examples: "Contoso.MyHandler" + // + // [`IExceptionHandler`]: https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler + ASPNETCoreDiagnosticsHandlerTypeKey = attribute.Key("aspnetcore.diagnostics.handler.type") + + // ASPNETCoreRateLimitingPolicyKey is the attribute Key conforming to the "aspnetcore.rate_limiting.policy" semantic conventions. It represents the rate limiting policy name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "fixed", "sliding", "token" + ASPNETCoreRateLimitingPolicyKey = attribute.Key("aspnetcore.rate_limiting.policy") + + // ASPNETCoreRateLimitingResultKey is the attribute Key conforming to the "aspnetcore.rate_limiting.result" semantic conventions. It represents the rate-limiting result, shows whether the lease was acquired or contains a rejection reason. + // + // Type: Enum + // RequirementLevel: Required + // Stability: Stable + // + // Examples: "acquired", "request_canceled" + ASPNETCoreRateLimitingResultKey = attribute.Key("aspnetcore.rate_limiting.result") + + // ASPNETCoreRequestIsUnhandledKey is the attribute Key conforming to the "aspnetcore.request.is_unhandled" semantic conventions. It represents the flag indicating if request was handled by the application pipeline. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: true + ASPNETCoreRequestIsUnhandledKey = attribute.Key("aspnetcore.request.is_unhandled") + + // ASPNETCoreRoutingIsFallbackKey is the attribute Key conforming to the "aspnetcore.routing.is_fallback" semantic conventions. It represents a value that indicates whether the matched route is a fallback route. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: true + ASPNETCoreRoutingIsFallbackKey = attribute.Key("aspnetcore.routing.is_fallback") + + // ASPNETCoreRoutingMatchStatusKey is the attribute Key conforming to the "aspnetcore.routing.match_status" semantic conventions. It represents the match result - success or failure. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "success", "failure" + ASPNETCoreRoutingMatchStatusKey = attribute.Key("aspnetcore.routing.match_status") +) + +// ASPNETCoreDiagnosticsHandlerType returns an attribute KeyValue conforming to the "aspnetcore.diagnostics.handler.type" semantic conventions. It represents the full type name of the [`IExceptionHandler`] implementation that handled the exception. +// +// [`IExceptionHandler`]: https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler +func ASPNETCoreDiagnosticsHandlerType(val string) attribute.KeyValue { + return ASPNETCoreDiagnosticsHandlerTypeKey.String(val) +} + +// ASPNETCoreRateLimitingPolicy returns an attribute KeyValue conforming to the "aspnetcore.rate_limiting.policy" semantic conventions. It represents the rate limiting policy name. +func ASPNETCoreRateLimitingPolicy(val string) attribute.KeyValue { + return ASPNETCoreRateLimitingPolicyKey.String(val) +} + +// ASPNETCoreRequestIsUnhandled returns an attribute KeyValue conforming to the "aspnetcore.request.is_unhandled" semantic conventions. It represents the flag indicating if request was handled by the application pipeline. +func ASPNETCoreRequestIsUnhandled(val bool) attribute.KeyValue { + return ASPNETCoreRequestIsUnhandledKey.Bool(val) +} + +// ASPNETCoreRoutingIsFallback returns an attribute KeyValue conforming to the "aspnetcore.routing.is_fallback" semantic conventions. It represents a value that indicates whether the matched route is a fallback route. +func ASPNETCoreRoutingIsFallback(val bool) attribute.KeyValue { + return ASPNETCoreRoutingIsFallbackKey.Bool(val) +} + +// Enum values for aspnetcore.diagnostics.exception.result +var ( + // Exception was handled by the exception handling middleware. + // Stability: stable + ASPNETCoreDiagnosticsExceptionResultHandled = ASPNETCoreDiagnosticsExceptionResultKey.String("handled") + // Exception was not handled by the exception handling middleware. + // Stability: stable + ASPNETCoreDiagnosticsExceptionResultUnhandled = ASPNETCoreDiagnosticsExceptionResultKey.String("unhandled") + // Exception handling was skipped because the response had started. + // Stability: stable + ASPNETCoreDiagnosticsExceptionResultSkipped = ASPNETCoreDiagnosticsExceptionResultKey.String("skipped") + // Exception handling didn't run because the request was aborted. + // Stability: stable + ASPNETCoreDiagnosticsExceptionResultAborted = ASPNETCoreDiagnosticsExceptionResultKey.String("aborted") +) + +// Enum values for aspnetcore.rate_limiting.result +var ( + // Lease was acquired + // Stability: stable + ASPNETCoreRateLimitingResultAcquired = ASPNETCoreRateLimitingResultKey.String("acquired") + // Lease request was rejected by the endpoint limiter + // Stability: stable + ASPNETCoreRateLimitingResultEndpointLimiter = ASPNETCoreRateLimitingResultKey.String("endpoint_limiter") + // Lease request was rejected by the global limiter + // Stability: stable + ASPNETCoreRateLimitingResultGlobalLimiter = ASPNETCoreRateLimitingResultKey.String("global_limiter") + // Lease request was canceled + // Stability: stable + ASPNETCoreRateLimitingResultRequestCanceled = ASPNETCoreRateLimitingResultKey.String("request_canceled") +) + +// Enum values for aspnetcore.routing.match_status +var ( + // Match succeeded + // Stability: stable + ASPNETCoreRoutingMatchStatusSuccess = ASPNETCoreRoutingMatchStatusKey.String("success") + // Match failed + // Stability: stable + ASPNETCoreRoutingMatchStatusFailure = ASPNETCoreRoutingMatchStatusKey.String("failure") +) + +// Namespace: aws +const ( + // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the "aws.dynamodb.attribute_definitions" semantic conventions. It represents the JSON-serialized value of each item in the `AttributeDefinitions` request field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "AttributeName": "string", "AttributeType": "string" }" + AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions") + + // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value of the `AttributesToGet` request parameter. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "lives", "id" + AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get") + + // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the "aws.dynamodb.consistent_read" semantic conventions. It represents the value of the `ConsistentRead` request parameter. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read") + + // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the "aws.dynamodb.consumed_capacity" semantic conventions. It represents the JSON-serialized value of each item in the `ConsumedCapacity` response field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }" + AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity") + + // AWSDynamoDBCountKey is the attribute Key conforming to the "aws.dynamodb.count" semantic conventions. It represents the value of the `Count` response parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 10 + AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count") + + // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the value of the `ExclusiveStartTableName` request parameter. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Users", "CatsTable" + AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table") + + // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It represents the JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" + AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates") + + // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" + AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes") + + // AWSDynamoDBIndexNameKey is the attribute Key conforming to the "aws.dynamodb.index_name" semantic conventions. It represents the value of the `IndexName` request parameter. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "name_to_group" + AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name") + + // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents the JSON-serialized value of the `ItemCollectionMetrics` response field. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }" + AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics") + + // AWSDynamoDBLimitKey is the attribute Key conforming to the "aws.dynamodb.limit" semantic conventions. It represents the value of the `Limit` request parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 10 + AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit") + + // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }" + AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes") + + // AWSDynamoDBProjectionKey is the attribute Key conforming to the "aws.dynamodb.projection" semantic conventions. It represents the value of the `ProjectionExpression` request parameter. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems, ProductReviews" + AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection") + + // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1.0, 2.0 + AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity") + + // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1.0, 2.0 + AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity") + + // AWSDynamoDBScanForwardKey is the attribute Key conforming to the "aws.dynamodb.scan_forward" semantic conventions. It represents the value of the `ScanIndexForward` request parameter. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward") + + // AWSDynamoDBScannedCountKey is the attribute Key conforming to the "aws.dynamodb.scanned_count" semantic conventions. It represents the value of the `ScannedCount` response parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 50 + AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count") + + // AWSDynamoDBSegmentKey is the attribute Key conforming to the "aws.dynamodb.segment" semantic conventions. It represents the value of the `Segment` request parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 10 + AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment") + + // AWSDynamoDBSelectKey is the attribute Key conforming to the "aws.dynamodb.select" semantic conventions. It represents the value of the `Select` request parameter. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "ALL_ATTRIBUTES", "COUNT" + AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select") + + // AWSDynamoDBTableCountKey is the attribute Key conforming to the "aws.dynamodb.table_count" semantic conventions. It represents the number of items in the `TableNames` response parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 20 + AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count") + + // AWSDynamoDBTableNamesKey is the attribute Key conforming to the "aws.dynamodb.table_names" semantic conventions. It represents the keys in the `RequestItems` object field. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Users", "Cats" + AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names") + + // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the "aws.dynamodb.total_segments" semantic conventions. It represents the value of the `TotalSegments` request parameter. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 100 + AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments") + + // AWSECSClusterARNKey is the attribute Key conforming to the "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an [ECS cluster]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" + // + // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html + AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn") + + // AWSECSContainerARNKey is the attribute Key conforming to the "aws.ecs.container.arn" semantic conventions. It represents the Amazon Resource Name (ARN) of an [ECS container instance]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9" + // + // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html + AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn") + + // AWSECSLaunchtypeKey is the attribute Key conforming to the "aws.ecs.launchtype" semantic conventions. It represents the [launch type] for an ECS task. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html + AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype") + + // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running [ECS task]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b", "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" + // + // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids + AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn") + + // AWSECSTaskFamilyKey is the attribute Key conforming to the "aws.ecs.task.family" semantic conventions. It represents the family name of the [ECS task definition] used to create the ECS task. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry-family" + // + // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html + AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family") + + // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id" semantic conventions. It represents the ID of a running ECS task. The ID MUST be extracted from `task.arn`. + // + // Type: string + // RequirementLevel: {"Conditionally_Required": "If And Only If `Task.Arn` Is Populated."} + // Stability: Experimental + // + // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b", "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" + AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id") + + // AWSECSTaskRevisionKey is the attribute Key conforming to the "aws.ecs.task.revision" semantic conventions. It represents the revision for the task definition used to create the ECS task. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "8", "26" + AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision") + + // AWSEKSClusterARNKey is the attribute Key conforming to the "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS cluster. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" + AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn") + + // AWSLambdaInvokedARNKey is the attribute Key conforming to the "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias" + // Note: This may be different from `cloud.resource_id` if an alias is involved. + AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn") + + // AWSLogGroupARNsKey is the attribute Key conforming to the "aws.log.group.arns" semantic conventions. It represents the Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*" + // Note: See the [log group ARN format documentation]. + // + // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format + AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns") + + // AWSLogGroupNamesKey is the attribute Key conforming to the "aws.log.group.names" semantic conventions. It represents the name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/aws/lambda/my-function", "opentelemetry-service" + // Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. + AWSLogGroupNamesKey = attribute.Key("aws.log.group.names") + + // AWSLogStreamARNsKey is the attribute Key conforming to the "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the AWS log stream(s). + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" + // Note: See the [log stream ARN format documentation]. One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. + // + // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format + AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns") + + // AWSLogStreamNamesKey is the attribute Key conforming to the "aws.log.stream.names" semantic conventions. It represents the name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" + AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names") + + // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id" semantic conventions. It represents the AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ" + AWSRequestIDKey = attribute.Key("aws.request_id") + + // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket" semantic conventions. It represents the S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API] operations. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "some-bucket-name" + // Note: The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter. + // This applies to almost all S3 operations except `list-buckets`. + // + // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html + AWSS3BucketKey = attribute.Key("aws.s3.bucket") + + // AWSS3CopySourceKey is the attribute Key conforming to the "aws.s3.copy_source" semantic conventions. It represents the source object (in the form `bucket`/`key`) for the copy operation. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "someFile.yml" + // Note: The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter + // of the [copy-object operation within the S3 API]. + // This applies in particular to the following operations: + // + // - [copy-object] + // - [upload-part-copy] + // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html + // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html + // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html + AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source") + + // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete" semantic conventions. It represents the delete request container that specifies the objects to be deleted. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" + // Note: The `delete` attribute is only applicable to the [delete-object] operation. + // The `delete` attribute corresponds to the `--delete` parameter of the + // [delete-objects operation within the S3 API]. + // + // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html + // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html + AWSS3DeleteKey = attribute.Key("aws.s3.delete") + + // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic conventions. It represents the S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API] operations. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "someFile.yml" + // Note: The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter. + // This applies in particular to the following operations: + // + // - [copy-object] + // - [delete-object] + // - [get-object] + // - [head-object] + // - [put-object] + // - [restore-object] + // - [select-object-content] + // - [abort-multipart-upload] + // - [complete-multipart-upload] + // - [create-multipart-upload] + // - [list-parts] + // - [upload-part] + // - [upload-part-copy] + // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html + // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html + // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html + // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html + // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html + // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html + // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html + // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html + // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html + // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html + // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html + // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html + // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html + // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html + AWSS3KeyKey = attribute.Key("aws.s3.key") + + // AWSS3PartNumberKey is the attribute Key conforming to the "aws.s3.part_number" semantic conventions. It represents the part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 3456 + // Note: The `part_number` attribute is only applicable to the [upload-part] + // and [upload-part-copy] operations. + // The `part_number` attribute corresponds to the `--part-number` parameter of the + // [upload-part operation within the S3 API]. + // + // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html + // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html + // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html + AWSS3PartNumberKey = attribute.Key("aws.s3.part_number") + + // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id" semantic conventions. It represents the upload ID that identifies the multipart upload. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ" + // Note: The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter + // of the [S3 API] multipart operations. + // This applies in particular to the following operations: + // + // - [abort-multipart-upload] + // - [complete-multipart-upload] + // - [list-parts] + // - [upload-part] + // - [upload-part-copy] + // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html + // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html + // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html + // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html + // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html + // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html + AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id") +) + +// AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to the "aws.dynamodb.attribute_definitions" semantic conventions. It represents the JSON-serialized value of each item in the `AttributeDefinitions` request field. +func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue { + return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val) +} + +// AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value of the `AttributesToGet` request parameter. +func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue { + return AWSDynamoDBAttributesToGetKey.StringSlice(val) +} + +// AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the "aws.dynamodb.consistent_read" semantic conventions. It represents the value of the `ConsistentRead` request parameter. +func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue { + return AWSDynamoDBConsistentReadKey.Bool(val) +} + +// AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.consumed_capacity" semantic conventions. It represents the JSON-serialized value of each item in the `ConsumedCapacity` response field. +func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue { + return AWSDynamoDBConsumedCapacityKey.StringSlice(val) +} + +// AWSDynamoDBCount returns an attribute KeyValue conforming to the "aws.dynamodb.count" semantic conventions. It represents the value of the `Count` response parameter. +func AWSDynamoDBCount(val int) attribute.KeyValue { + return AWSDynamoDBCountKey.Int(val) +} + +// AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the value of the `ExclusiveStartTableName` request parameter. +func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue { + return AWSDynamoDBExclusiveStartTableKey.String(val) +} + +// AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue conforming to the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It represents the JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. +func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue { + return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val) +} + +// AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to the "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. +func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue { + return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val) +} + +// AWSDynamoDBIndexName returns an attribute KeyValue conforming to the "aws.dynamodb.index_name" semantic conventions. It represents the value of the `IndexName` request parameter. +func AWSDynamoDBIndexName(val string) attribute.KeyValue { + return AWSDynamoDBIndexNameKey.String(val) +} + +// AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents the JSON-serialized value of the `ItemCollectionMetrics` response field. +func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue { + return AWSDynamoDBItemCollectionMetricsKey.String(val) +} + +// AWSDynamoDBLimit returns an attribute KeyValue conforming to the "aws.dynamodb.limit" semantic conventions. It represents the value of the `Limit` request parameter. +func AWSDynamoDBLimit(val int) attribute.KeyValue { + return AWSDynamoDBLimitKey.Int(val) +} + +// AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. +func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue { + return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val) +} + +// AWSDynamoDBProjection returns an attribute KeyValue conforming to the "aws.dynamodb.projection" semantic conventions. It represents the value of the `ProjectionExpression` request parameter. +func AWSDynamoDBProjection(val string) attribute.KeyValue { + return AWSDynamoDBProjectionKey.String(val) +} + +// AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. +func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue { + return AWSDynamoDBProvisionedReadCapacityKey.Float64(val) +} + +// AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. +func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue { + return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val) +} + +// AWSDynamoDBScanForward returns an attribute KeyValue conforming to the "aws.dynamodb.scan_forward" semantic conventions. It represents the value of the `ScanIndexForward` request parameter. +func AWSDynamoDBScanForward(val bool) attribute.KeyValue { + return AWSDynamoDBScanForwardKey.Bool(val) +} + +// AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the "aws.dynamodb.scanned_count" semantic conventions. It represents the value of the `ScannedCount` response parameter. +func AWSDynamoDBScannedCount(val int) attribute.KeyValue { + return AWSDynamoDBScannedCountKey.Int(val) +} + +// AWSDynamoDBSegment returns an attribute KeyValue conforming to the "aws.dynamodb.segment" semantic conventions. It represents the value of the `Segment` request parameter. +func AWSDynamoDBSegment(val int) attribute.KeyValue { + return AWSDynamoDBSegmentKey.Int(val) +} + +// AWSDynamoDBSelect returns an attribute KeyValue conforming to the "aws.dynamodb.select" semantic conventions. It represents the value of the `Select` request parameter. +func AWSDynamoDBSelect(val string) attribute.KeyValue { + return AWSDynamoDBSelectKey.String(val) +} + +// AWSDynamoDBTableCount returns an attribute KeyValue conforming to the "aws.dynamodb.table_count" semantic conventions. It represents the number of items in the `TableNames` response parameter. +func AWSDynamoDBTableCount(val int) attribute.KeyValue { + return AWSDynamoDBTableCountKey.Int(val) +} + +// AWSDynamoDBTableNames returns an attribute KeyValue conforming to the "aws.dynamodb.table_names" semantic conventions. It represents the keys in the `RequestItems` object field. +func AWSDynamoDBTableNames(val ...string) attribute.KeyValue { + return AWSDynamoDBTableNamesKey.StringSlice(val) +} + +// AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the "aws.dynamodb.total_segments" semantic conventions. It represents the value of the `TotalSegments` request parameter. +func AWSDynamoDBTotalSegments(val int) attribute.KeyValue { + return AWSDynamoDBTotalSegmentsKey.Int(val) +} + +// AWSECSClusterARN returns an attribute KeyValue conforming to the "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an [ECS cluster]. +// +// [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html +func AWSECSClusterARN(val string) attribute.KeyValue { + return AWSECSClusterARNKey.String(val) +} + +// AWSECSContainerARN returns an attribute KeyValue conforming to the "aws.ecs.container.arn" semantic conventions. It represents the Amazon Resource Name (ARN) of an [ECS container instance]. +// +// [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html +func AWSECSContainerARN(val string) attribute.KeyValue { + return AWSECSContainerARNKey.String(val) +} + +// AWSECSTaskARN returns an attribute KeyValue conforming to the "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running [ECS task]. +// +// [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids +func AWSECSTaskARN(val string) attribute.KeyValue { + return AWSECSTaskARNKey.String(val) +} + +// AWSECSTaskFamily returns an attribute KeyValue conforming to the "aws.ecs.task.family" semantic conventions. It represents the family name of the [ECS task definition] used to create the ECS task. +// +// [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html +func AWSECSTaskFamily(val string) attribute.KeyValue { + return AWSECSTaskFamilyKey.String(val) +} + +// AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id" semantic conventions. It represents the ID of a running ECS task. The ID MUST be extracted from `task.arn`. +func AWSECSTaskID(val string) attribute.KeyValue { + return AWSECSTaskIDKey.String(val) +} + +// AWSECSTaskRevision returns an attribute KeyValue conforming to the "aws.ecs.task.revision" semantic conventions. It represents the revision for the task definition used to create the ECS task. +func AWSECSTaskRevision(val string) attribute.KeyValue { + return AWSECSTaskRevisionKey.String(val) +} + +// AWSEKSClusterARN returns an attribute KeyValue conforming to the "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS cluster. +func AWSEKSClusterARN(val string) attribute.KeyValue { + return AWSEKSClusterARNKey.String(val) +} + +// AWSLambdaInvokedARN returns an attribute KeyValue conforming to the "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). +func AWSLambdaInvokedARN(val string) attribute.KeyValue { + return AWSLambdaInvokedARNKey.String(val) +} + +// AWSLogGroupARNs returns an attribute KeyValue conforming to the "aws.log.group.arns" semantic conventions. It represents the Amazon Resource Name(s) (ARN) of the AWS log group(s). +func AWSLogGroupARNs(val ...string) attribute.KeyValue { + return AWSLogGroupARNsKey.StringSlice(val) +} + +// AWSLogGroupNames returns an attribute KeyValue conforming to the "aws.log.group.names" semantic conventions. It represents the name(s) of the AWS log group(s) an application is writing to. +func AWSLogGroupNames(val ...string) attribute.KeyValue { + return AWSLogGroupNamesKey.StringSlice(val) +} + +// AWSLogStreamARNs returns an attribute KeyValue conforming to the "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the AWS log stream(s). +func AWSLogStreamARNs(val ...string) attribute.KeyValue { + return AWSLogStreamARNsKey.StringSlice(val) +} + +// AWSLogStreamNames returns an attribute KeyValue conforming to the "aws.log.stream.names" semantic conventions. It represents the name(s) of the AWS log stream(s) an application is writing to. +func AWSLogStreamNames(val ...string) attribute.KeyValue { + return AWSLogStreamNamesKey.StringSlice(val) +} + +// AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id" semantic conventions. It represents the AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. +func AWSRequestID(val string) attribute.KeyValue { + return AWSRequestIDKey.String(val) +} + +// AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket" semantic conventions. It represents the S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API] operations. +// +// [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html +func AWSS3Bucket(val string) attribute.KeyValue { + return AWSS3BucketKey.String(val) +} + +// AWSS3CopySource returns an attribute KeyValue conforming to the "aws.s3.copy_source" semantic conventions. It represents the source object (in the form `bucket`/`key`) for the copy operation. +func AWSS3CopySource(val string) attribute.KeyValue { + return AWSS3CopySourceKey.String(val) +} + +// AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete" semantic conventions. It represents the delete request container that specifies the objects to be deleted. +func AWSS3Delete(val string) attribute.KeyValue { + return AWSS3DeleteKey.String(val) +} + +// AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic conventions. It represents the S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API] operations. +// +// [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html +func AWSS3Key(val string) attribute.KeyValue { + return AWSS3KeyKey.String(val) +} + +// AWSS3PartNumber returns an attribute KeyValue conforming to the "aws.s3.part_number" semantic conventions. It represents the part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. +func AWSS3PartNumber(val int) attribute.KeyValue { + return AWSS3PartNumberKey.Int(val) +} + +// AWSS3UploadID returns an attribute KeyValue conforming to the "aws.s3.upload_id" semantic conventions. It represents the upload ID that identifies the multipart upload. +func AWSS3UploadID(val string) attribute.KeyValue { + return AWSS3UploadIDKey.String(val) +} + +// Enum values for aws.ecs.launchtype +var ( + // ec2 + // Stability: experimental + AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2") + // fargate + // Stability: experimental + AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate") +) + +// Namespace: az +const ( + // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic conventions. It represents the [Azure Resource Provider Namespace] as recognized by the client. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus" + // + // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers + AzNamespaceKey = attribute.Key("az.namespace") + + // AzServiceRequestIDKey is the attribute Key conforming to the "az.service_request_id" semantic conventions. It represents the unique identifier of the service request. It's generated by the Azure service and returned with the response. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "00000000-0000-0000-0000-000000000000" + AzServiceRequestIDKey = attribute.Key("az.service_request_id") +) + +// AzNamespace returns an attribute KeyValue conforming to the "az.namespace" semantic conventions. It represents the [Azure Resource Provider Namespace] as recognized by the client. +// +// [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers +func AzNamespace(val string) attribute.KeyValue { + return AzNamespaceKey.String(val) +} + +// AzServiceRequestID returns an attribute KeyValue conforming to the "az.service_request_id" semantic conventions. It represents the unique identifier of the service request. It's generated by the Azure service and returned with the response. +func AzServiceRequestID(val string) attribute.KeyValue { + return AzServiceRequestIDKey.String(val) +} + +// Namespace: browser +const ( + // BrowserBrandsKey is the attribute Key conforming to the "browser.brands" semantic conventions. It represents the array of brand name and version separated by a space. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99" + // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.brands`). + // + // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface + BrowserBrandsKey = attribute.Key("browser.brands") + + // BrowserLanguageKey is the attribute Key conforming to the "browser.language" semantic conventions. It represents the preferred language of the user using the browser. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "en", "en-US", "fr", "fr-FR" + // Note: This value is intended to be taken from the Navigator API `navigator.language`. + BrowserLanguageKey = attribute.Key("browser.language") + + // BrowserMobileKey is the attribute Key conforming to the "browser.mobile" semantic conventions. It represents a boolean that is true if the browser is running on a mobile device. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset. + // + // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface + BrowserMobileKey = attribute.Key("browser.mobile") + + // BrowserPlatformKey is the attribute Key conforming to the "browser.platform" semantic conventions. It represents the platform on which the browser is running. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Windows", "macOS", "Android" + // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent. + // The list of possible values is defined in the [W3C User-Agent Client Hints specification]. Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes]. However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides. + // + // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface + // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform + // [`os.type` and `os.name` attributes]: ./os.md + BrowserPlatformKey = attribute.Key("browser.platform") +) + +// BrowserBrands returns an attribute KeyValue conforming to the "browser.brands" semantic conventions. It represents the array of brand name and version separated by a space. +func BrowserBrands(val ...string) attribute.KeyValue { + return BrowserBrandsKey.StringSlice(val) +} + +// BrowserLanguage returns an attribute KeyValue conforming to the "browser.language" semantic conventions. It represents the preferred language of the user using the browser. +func BrowserLanguage(val string) attribute.KeyValue { + return BrowserLanguageKey.String(val) +} + +// BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile" semantic conventions. It represents a boolean that is true if the browser is running on a mobile device. +func BrowserMobile(val bool) attribute.KeyValue { + return BrowserMobileKey.Bool(val) +} + +// BrowserPlatform returns an attribute KeyValue conforming to the "browser.platform" semantic conventions. It represents the platform on which the browser is running. +func BrowserPlatform(val string) attribute.KeyValue { + return BrowserPlatformKey.String(val) +} + +// Namespace: cicd +const ( + // CICDPipelineNameKey is the attribute Key conforming to the "cicd.pipeline.name" semantic conventions. It represents the human readable name of the pipeline within a CI/CD system. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Build and Test", "Lint", "Deploy Go Project", "deploy_to_environment" + CICDPipelineNameKey = attribute.Key("cicd.pipeline.name") + + // CICDPipelineRunIDKey is the attribute Key conforming to the "cicd.pipeline.run.id" semantic conventions. It represents the unique identifier of a pipeline run within a CI/CD system. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "120912" + CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id") + + // CICDPipelineTaskNameKey is the attribute Key conforming to the "cicd.pipeline.task.name" semantic conventions. It represents the human readable name of a task within a pipeline. Task here most closely aligns with a [computing process] in a pipeline. Other terms for tasks include commands, steps, and procedures. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary" + // + // [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing) + CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name") + + // CICDPipelineTaskRunIDKey is the attribute Key conforming to the "cicd.pipeline.task.run.id" semantic conventions. It represents the unique identifier of a task run within a pipeline. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "12097" + CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id") + + // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the "cicd.pipeline.task.run.url.full" semantic conventions. It represents the [URL] of the pipeline run providing the complete address in order to locate and identify the pipeline run. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075" + // + // [URL]: https://en.wikipedia.org/wiki/URL + CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full") + + // CICDPipelineTaskTypeKey is the attribute Key conforming to the "cicd.pipeline.task.type" semantic conventions. It represents the type of the task within a pipeline. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "build", "test", "deploy" + CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type") +) + +// CICDPipelineName returns an attribute KeyValue conforming to the "cicd.pipeline.name" semantic conventions. It represents the human readable name of the pipeline within a CI/CD system. +func CICDPipelineName(val string) attribute.KeyValue { + return CICDPipelineNameKey.String(val) +} + +// CICDPipelineRunID returns an attribute KeyValue conforming to the "cicd.pipeline.run.id" semantic conventions. It represents the unique identifier of a pipeline run within a CI/CD system. +func CICDPipelineRunID(val string) attribute.KeyValue { + return CICDPipelineRunIDKey.String(val) +} + +// CICDPipelineTaskName returns an attribute KeyValue conforming to the "cicd.pipeline.task.name" semantic conventions. It represents the human readable name of a task within a pipeline. Task here most closely aligns with a [computing process] in a pipeline. Other terms for tasks include commands, steps, and procedures. +// +// [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing) +func CICDPipelineTaskName(val string) attribute.KeyValue { + return CICDPipelineTaskNameKey.String(val) +} + +// CICDPipelineTaskRunID returns an attribute KeyValue conforming to the "cicd.pipeline.task.run.id" semantic conventions. It represents the unique identifier of a task run within a pipeline. +func CICDPipelineTaskRunID(val string) attribute.KeyValue { + return CICDPipelineTaskRunIDKey.String(val) +} + +// CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the "cicd.pipeline.task.run.url.full" semantic conventions. It represents the [URL] of the pipeline run providing the complete address in order to locate and identify the pipeline run. +// +// [URL]: https://en.wikipedia.org/wiki/URL +func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue { + return CICDPipelineTaskRunURLFullKey.String(val) +} + +// Enum values for cicd.pipeline.task.type +var ( + // build + // Stability: experimental + CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build") + // test + // Stability: experimental + CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test") + // deploy + // Stability: experimental + CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy") +) + +// Namespace: client +const ( + // ClientAddressKey is the attribute Key conforming to the "client.address" semantic conventions. It represents the client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock" + // Note: When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available. + ClientAddressKey = attribute.Key("client.address") + + // ClientPortKey is the attribute Key conforming to the "client.port" semantic conventions. It represents the client port number. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: 65123 + // Note: When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available. + ClientPortKey = attribute.Key("client.port") +) + +// ClientAddress returns an attribute KeyValue conforming to the "client.address" semantic conventions. It represents the client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +func ClientAddress(val string) attribute.KeyValue { + return ClientAddressKey.String(val) +} + +// ClientPort returns an attribute KeyValue conforming to the "client.port" semantic conventions. It represents the client port number. +func ClientPort(val int) attribute.KeyValue { + return ClientPortKey.Int(val) +} + +// Namespace: cloud +const ( + // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id" semantic conventions. It represents the cloud account ID the resource is assigned to. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "111111111111", "opentelemetry" + CloudAccountIDKey = attribute.Key("cloud.account.id") + + // CloudAvailabilityZoneKey is the attribute Key conforming to the "cloud.availability_zone" semantic conventions. It represents the cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "us-east-1c" + // Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone") + + // CloudPlatformKey is the attribute Key conforming to the "cloud.platform" semantic conventions. It represents the cloud platform in use. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + CloudPlatformKey = attribute.Key("cloud.platform") + + // CloudProviderKey is the attribute Key conforming to the "cloud.provider" semantic conventions. It represents the name of the cloud provider. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + CloudProviderKey = attribute.Key("cloud.provider") + + // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic conventions. It represents the geographical region the resource is running. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "us-central1", "us-east-1" + // Note: Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions], [AWS regions], [Azure regions], [Google Cloud regions], or [Tencent Cloud regions]. + // + // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm + // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/ + // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/ + // [Google Cloud regions]: https://cloud.google.com/about/locations + // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091 + CloudRegionKey = attribute.Key("cloud.region") + + // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id" semantic conventions. It represents the cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] on GCP). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function", "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID", "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/" + // Note: On some cloud providers, it may not be possible to determine the full ID at startup, + // so it may be necessary to set `cloud.resource_id` as a span attribute instead. + // + // The exact value to use for `cloud.resource_id` depends on the cloud provider. + // The following well-known definitions MUST be used if you set this attribute and they apply: + // + // - **AWS Lambda:** The function [ARN]. + // Take care not to use the "invoked ARN" directly but replace any + // [alias suffix] + // with the resolved function version, as the same runtime instance may be invocable with + // multiple different aliases. + // - **GCP:** The [URI of the resource] + // - **Azure:** The [Fully Qualified Resource ID] of the invoked function, + // *not* the function app, having the form + // `/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/`. + // This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share + // a TracerProvider. + // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html + // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id + // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name + // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html + // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html + // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names + // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id + CloudResourceIDKey = attribute.Key("cloud.resource_id") +) + +// CloudAccountID returns an attribute KeyValue conforming to the "cloud.account.id" semantic conventions. It represents the cloud account ID the resource is assigned to. +func CloudAccountID(val string) attribute.KeyValue { + return CloudAccountIDKey.String(val) +} + +// CloudAvailabilityZone returns an attribute KeyValue conforming to the "cloud.availability_zone" semantic conventions. It represents the cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. +func CloudAvailabilityZone(val string) attribute.KeyValue { + return CloudAvailabilityZoneKey.String(val) +} + +// CloudRegion returns an attribute KeyValue conforming to the "cloud.region" semantic conventions. It represents the geographical region the resource is running. +func CloudRegion(val string) attribute.KeyValue { + return CloudRegionKey.String(val) +} + +// CloudResourceID returns an attribute KeyValue conforming to the "cloud.resource_id" semantic conventions. It represents the cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] on GCP). +// +// [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html +// [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id +// [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name +func CloudResourceID(val string) attribute.KeyValue { + return CloudResourceIDKey.String(val) +} + +// Enum values for cloud.platform +var ( + // Alibaba Cloud Elastic Compute Service + // Stability: experimental + CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs") + // Alibaba Cloud Function Compute + // Stability: experimental + CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc") + // Red Hat OpenShift on Alibaba Cloud + // Stability: experimental + CloudPlatformAlibabaCloudOpenshift = CloudPlatformKey.String("alibaba_cloud_openshift") + // AWS Elastic Compute Cloud + // Stability: experimental + CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2") + // AWS Elastic Container Service + // Stability: experimental + CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs") + // AWS Elastic Kubernetes Service + // Stability: experimental + CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks") + // AWS Lambda + // Stability: experimental + CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda") + // AWS Elastic Beanstalk + // Stability: experimental + CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk") + // AWS App Runner + // Stability: experimental + CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner") + // Red Hat OpenShift on AWS (ROSA) + // Stability: experimental + CloudPlatformAWSOpenshift = CloudPlatformKey.String("aws_openshift") + // Azure Virtual Machines + // Stability: experimental + CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm") + // Azure Container Apps + // Stability: experimental + CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps") + // Azure Container Instances + // Stability: experimental + CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances") + // Azure Kubernetes Service + // Stability: experimental + CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks") + // Azure Functions + // Stability: experimental + CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions") + // Azure App Service + // Stability: experimental + CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service") + // Azure Red Hat OpenShift + // Stability: experimental + CloudPlatformAzureOpenshift = CloudPlatformKey.String("azure_openshift") + // Google Bare Metal Solution (BMS) + // Stability: experimental + CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution") + // Google Cloud Compute Engine (GCE) + // Stability: experimental + CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine") + // Google Cloud Run + // Stability: experimental + CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run") + // Google Cloud Kubernetes Engine (GKE) + // Stability: experimental + CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine") + // Google Cloud Functions (GCF) + // Stability: experimental + CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions") + // Google Cloud App Engine (GAE) + // Stability: experimental + CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine") + // Red Hat OpenShift on Google Cloud + // Stability: experimental + CloudPlatformGCPOpenshift = CloudPlatformKey.String("gcp_openshift") + // Red Hat OpenShift on IBM Cloud + // Stability: experimental + CloudPlatformIbmCloudOpenshift = CloudPlatformKey.String("ibm_cloud_openshift") + // Tencent Cloud Cloud Virtual Machine (CVM) + // Stability: experimental + CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm") + // Tencent Cloud Elastic Kubernetes Service (EKS) + // Stability: experimental + CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks") + // Tencent Cloud Serverless Cloud Function (SCF) + // Stability: experimental + CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf") +) + +// Enum values for cloud.provider +var ( + // Alibaba Cloud + // Stability: experimental + CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud") + // Amazon Web Services + // Stability: experimental + CloudProviderAWS = CloudProviderKey.String("aws") + // Microsoft Azure + // Stability: experimental + CloudProviderAzure = CloudProviderKey.String("azure") + // Google Cloud Platform + // Stability: experimental + CloudProviderGCP = CloudProviderKey.String("gcp") + // Heroku Platform as a Service + // Stability: experimental + CloudProviderHeroku = CloudProviderKey.String("heroku") + // IBM Cloud + // Stability: experimental + CloudProviderIbmCloud = CloudProviderKey.String("ibm_cloud") + // Tencent Cloud + // Stability: experimental + CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud") +) + +// Namespace: cloudevents +const ( + // CloudeventsEventIDKey is the attribute Key conforming to the "cloudevents.event_id" semantic conventions. It represents the [event_id] uniquely identifies the event. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001" + // + // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id + CloudeventsEventIDKey = attribute.Key("cloudevents.event_id") + + // CloudeventsEventSourceKey is the attribute Key conforming to the "cloudevents.event_source" semantic conventions. It represents the [source] identifies the context in which an event happened. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123", "my-service" + // + // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 + CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source") + + // CloudeventsEventSpecVersionKey is the attribute Key conforming to the "cloudevents.event_spec_version" semantic conventions. It represents the [version of the CloudEvents specification] which the event uses. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1.0 + // + // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion + CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version") + + // CloudeventsEventSubjectKey is the attribute Key conforming to the "cloudevents.event_subject" semantic conventions. It represents the [subject] of the event in the context of the event producer (identified by source). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: mynewfile.jpg + // + // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject + CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject") + + // CloudeventsEventTypeKey is the attribute Key conforming to the "cloudevents.event_type" semantic conventions. It represents the [event_type] contains a value describing the type of event related to the originating occurrence. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2" + // + // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type + CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type") +) + +// CloudeventsEventID returns an attribute KeyValue conforming to the "cloudevents.event_id" semantic conventions. It represents the [event_id] uniquely identifies the event. +// +// [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id +func CloudeventsEventID(val string) attribute.KeyValue { + return CloudeventsEventIDKey.String(val) +} + +// CloudeventsEventSource returns an attribute KeyValue conforming to the "cloudevents.event_source" semantic conventions. It represents the [source] identifies the context in which an event happened. +// +// [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 +func CloudeventsEventSource(val string) attribute.KeyValue { + return CloudeventsEventSourceKey.String(val) +} + +// CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the "cloudevents.event_spec_version" semantic conventions. It represents the [version of the CloudEvents specification] which the event uses. +// +// [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion +func CloudeventsEventSpecVersion(val string) attribute.KeyValue { + return CloudeventsEventSpecVersionKey.String(val) +} + +// CloudeventsEventSubject returns an attribute KeyValue conforming to the "cloudevents.event_subject" semantic conventions. It represents the [subject] of the event in the context of the event producer (identified by source). +// +// [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject +func CloudeventsEventSubject(val string) attribute.KeyValue { + return CloudeventsEventSubjectKey.String(val) +} + +// CloudeventsEventType returns an attribute KeyValue conforming to the "cloudevents.event_type" semantic conventions. It represents the [event_type] contains a value describing the type of event related to the originating occurrence. +// +// [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type +func CloudeventsEventType(val string) attribute.KeyValue { + return CloudeventsEventTypeKey.String(val) +} + +// Namespace: cloudfoundry +const ( + // CloudfoundryAppIDKey is the attribute Key conforming to the "cloudfoundry.app.id" semantic conventions. It represents the guid of the application. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.application_id`. This is the same value as + // reported by `cf app --guid`. + CloudfoundryAppIDKey = attribute.Key("cloudfoundry.app.id") + + // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the "cloudfoundry.app.instance.id" semantic conventions. It represents the index of the application instance. 0 when just one instance is active. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0", "1" + // Note: CloudFoundry defines the `instance_id` in the [Loggegator v2 envelope]. + // It is used for logs and metrics emitted by CloudFoundry. It is + // supposed to contain the application instance index for applications + // deployed on the runtime. + // + // Application instrumentation should use the value from environment + // variable `CF_INSTANCE_INDEX`. + // + // [Loggegator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope + CloudfoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id") + + // CloudfoundryAppNameKey is the attribute Key conforming to the "cloudfoundry.app.name" semantic conventions. It represents the name of the application. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-app-name" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.application_name`. This is the same value + // as reported by `cf apps`. + CloudfoundryAppNameKey = attribute.Key("cloudfoundry.app.name") + + // CloudfoundryOrgIDKey is the attribute Key conforming to the "cloudfoundry.org.id" semantic conventions. It represents the guid of the CloudFoundry org the application is running in. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.org_id`. This is the same value as + // reported by `cf org --guid`. + CloudfoundryOrgIDKey = attribute.Key("cloudfoundry.org.id") + + // CloudfoundryOrgNameKey is the attribute Key conforming to the "cloudfoundry.org.name" semantic conventions. It represents the name of the CloudFoundry organization the app is running in. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-org-name" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.org_name`. This is the same value as + // reported by `cf orgs`. + CloudfoundryOrgNameKey = attribute.Key("cloudfoundry.org.name") + + // CloudfoundryProcessIDKey is the attribute Key conforming to the "cloudfoundry.process.id" semantic conventions. It represents the UID identifying the process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to + // `VCAP_APPLICATION.app_id` for applications deployed to the runtime. + // For system components, this could be the actual PID. + CloudfoundryProcessIDKey = attribute.Key("cloudfoundry.process.id") + + // CloudfoundryProcessTypeKey is the attribute Key conforming to the "cloudfoundry.process.type" semantic conventions. It represents the type of process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "web" + // Note: CloudFoundry applications can consist of multiple jobs. Usually the + // main process will be of type `web`. There can be additional background + // tasks or side-cars with different process types. + CloudfoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type") + + // CloudfoundrySpaceIDKey is the attribute Key conforming to the "cloudfoundry.space.id" semantic conventions. It represents the guid of the CloudFoundry space the application is running in. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.space_id`. This is the same value as + // reported by `cf space --guid`. + CloudfoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id") + + // CloudfoundrySpaceNameKey is the attribute Key conforming to the "cloudfoundry.space.name" semantic conventions. It represents the name of the CloudFoundry space the application is running in. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-space-name" + // Note: Application instrumentation should use the value from environment + // variable `VCAP_APPLICATION.space_name`. This is the same value as + // reported by `cf spaces`. + CloudfoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name") + + // CloudfoundrySystemIDKey is the attribute Key conforming to the "cloudfoundry.system.id" semantic conventions. It represents a guid or another name describing the event source. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "cf/gorouter" + // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope]. + // It is used for logs and metrics emitted by CloudFoundry. It is + // supposed to contain the component name, e.g. "gorouter", for + // CloudFoundry components. + // + // When system components are instrumented, values from the + // [Bosh spec] + // should be used. The `system.id` should be set to + // `spec.deployment/spec.name`. + // + // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope + // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec + CloudfoundrySystemIDKey = attribute.Key("cloudfoundry.system.id") + + // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the "cloudfoundry.system.instance.id" semantic conventions. It represents a guid describing the concrete instance of the event source. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]. + // It is used for logs and metrics emitted by CloudFoundry. It is + // supposed to contain the vm id for CloudFoundry components. + // + // When system components are instrumented, values from the + // [Bosh spec] + // should be used. The `system.instance.id` should be set to `spec.id`. + // + // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope + // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec + CloudfoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id") +) + +// CloudfoundryAppID returns an attribute KeyValue conforming to the "cloudfoundry.app.id" semantic conventions. It represents the guid of the application. +func CloudfoundryAppID(val string) attribute.KeyValue { + return CloudfoundryAppIDKey.String(val) +} + +// CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the "cloudfoundry.app.instance.id" semantic conventions. It represents the index of the application instance. 0 when just one instance is active. +func CloudfoundryAppInstanceID(val string) attribute.KeyValue { + return CloudfoundryAppInstanceIDKey.String(val) +} + +// CloudfoundryAppName returns an attribute KeyValue conforming to the "cloudfoundry.app.name" semantic conventions. It represents the name of the application. +func CloudfoundryAppName(val string) attribute.KeyValue { + return CloudfoundryAppNameKey.String(val) +} + +// CloudfoundryOrgID returns an attribute KeyValue conforming to the "cloudfoundry.org.id" semantic conventions. It represents the guid of the CloudFoundry org the application is running in. +func CloudfoundryOrgID(val string) attribute.KeyValue { + return CloudfoundryOrgIDKey.String(val) +} + +// CloudfoundryOrgName returns an attribute KeyValue conforming to the "cloudfoundry.org.name" semantic conventions. It represents the name of the CloudFoundry organization the app is running in. +func CloudfoundryOrgName(val string) attribute.KeyValue { + return CloudfoundryOrgNameKey.String(val) +} + +// CloudfoundryProcessID returns an attribute KeyValue conforming to the "cloudfoundry.process.id" semantic conventions. It represents the UID identifying the process. +func CloudfoundryProcessID(val string) attribute.KeyValue { + return CloudfoundryProcessIDKey.String(val) +} + +// CloudfoundryProcessType returns an attribute KeyValue conforming to the "cloudfoundry.process.type" semantic conventions. It represents the type of process. +func CloudfoundryProcessType(val string) attribute.KeyValue { + return CloudfoundryProcessTypeKey.String(val) +} + +// CloudfoundrySpaceID returns an attribute KeyValue conforming to the "cloudfoundry.space.id" semantic conventions. It represents the guid of the CloudFoundry space the application is running in. +func CloudfoundrySpaceID(val string) attribute.KeyValue { + return CloudfoundrySpaceIDKey.String(val) +} + +// CloudfoundrySpaceName returns an attribute KeyValue conforming to the "cloudfoundry.space.name" semantic conventions. It represents the name of the CloudFoundry space the application is running in. +func CloudfoundrySpaceName(val string) attribute.KeyValue { + return CloudfoundrySpaceNameKey.String(val) +} + +// CloudfoundrySystemID returns an attribute KeyValue conforming to the "cloudfoundry.system.id" semantic conventions. It represents a guid or another name describing the event source. +func CloudfoundrySystemID(val string) attribute.KeyValue { + return CloudfoundrySystemIDKey.String(val) +} + +// CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the "cloudfoundry.system.instance.id" semantic conventions. It represents a guid describing the concrete instance of the event source. +func CloudfoundrySystemInstanceID(val string) attribute.KeyValue { + return CloudfoundrySystemInstanceIDKey.String(val) +} + +// Namespace: code +const ( + // CodeColumnKey is the attribute Key conforming to the "code.column" semantic conventions. It represents the column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + CodeColumnKey = attribute.Key("code.column") + + // CodeFilepathKey is the attribute Key conforming to the "code.filepath" semantic conventions. It represents the source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: /usr/local/MyApplication/content_root/app/index.php + CodeFilepathKey = attribute.Key("code.filepath") + + // CodeFunctionKey is the attribute Key conforming to the "code.function" semantic conventions. It represents the method or function name, or equivalent (usually rightmost part of the code unit's name). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: serveRequest + CodeFunctionKey = attribute.Key("code.function") + + // CodeLineNumberKey is the attribute Key conforming to the "code.lineno" semantic conventions. It represents the line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + CodeLineNumberKey = attribute.Key("code.lineno") + + // CodeNamespaceKey is the attribute Key conforming to the "code.namespace" semantic conventions. It represents the "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: com.example.MyHttpService + CodeNamespaceKey = attribute.Key("code.namespace") + + // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + CodeStacktraceKey = attribute.Key("code.stacktrace") +) + +// CodeColumn returns an attribute KeyValue conforming to the "code.column" semantic conventions. It represents the column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +func CodeColumn(val int) attribute.KeyValue { + return CodeColumnKey.Int(val) +} + +// CodeFilepath returns an attribute KeyValue conforming to the "code.filepath" semantic conventions. It represents the source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). +func CodeFilepath(val string) attribute.KeyValue { + return CodeFilepathKey.String(val) +} + +// CodeFunction returns an attribute KeyValue conforming to the "code.function" semantic conventions. It represents the method or function name, or equivalent (usually rightmost part of the code unit's name). +func CodeFunction(val string) attribute.KeyValue { + return CodeFunctionKey.String(val) +} + +// CodeLineNumber returns an attribute KeyValue conforming to the "code.lineno" semantic conventions. It represents the line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +func CodeLineNumber(val int) attribute.KeyValue { + return CodeLineNumberKey.Int(val) +} + +// CodeNamespace returns an attribute KeyValue conforming to the "code.namespace" semantic conventions. It represents the "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. +func CodeNamespace(val string) attribute.KeyValue { + return CodeNamespaceKey.String(val) +} + +// CodeStacktrace returns an attribute KeyValue conforming to the "code.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +func CodeStacktrace(val string) attribute.KeyValue { + return CodeStacktraceKey.String(val) +} + +// Namespace: container +const ( + // ContainerCommandKey is the attribute Key conforming to the "container.command" semantic conventions. It represents the command used to run the container (i.e. the command name). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "otelcontribcol" + // Note: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + ContainerCommandKey = attribute.Key("container.command") + + // ContainerCommandArgsKey is the attribute Key conforming to the "container.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) run by the container. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "otelcontribcol", "--config", "config.yaml" + ContainerCommandArgsKey = attribute.Key("container.command_args") + + // ContainerCommandLineKey is the attribute Key conforming to the "container.command_line" semantic conventions. It represents the full command run by the container as a single string representing the full command. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "otelcontribcol --config config.yaml" + ContainerCommandLineKey = attribute.Key("container.command_line") + + // ContainerCsiPluginNameKey is the attribute Key conforming to the "container.csi.plugin.name" semantic conventions. It represents the name of the CSI ([Container Storage Interface]) plugin used by the volume. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "pd.csi.storage.gke.io" + // Note: This can sometimes be referred to as a "driver" in CSI implementations. This should represent the `name` field of the GetPluginInfo RPC. + // + // [Container Storage Interface]: https://github.com/container-storage-interface/spec + ContainerCsiPluginNameKey = attribute.Key("container.csi.plugin.name") + + // ContainerCsiVolumeIDKey is the attribute Key conforming to the "container.csi.volume.id" semantic conventions. It represents the unique volume ID returned by the CSI ([Container Storage Interface]) plugin. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk" + // Note: This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the `Volume.volume_id` field in CSI spec. + // + // [Container Storage Interface]: https://github.com/container-storage-interface/spec + ContainerCsiVolumeIDKey = attribute.Key("container.csi.volume.id") + + // ContainerIDKey is the attribute Key conforming to the "container.id" semantic conventions. It represents the container ID. Usually a UUID, as for example used to [identify Docker containers]. The UUID might be abbreviated. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "a3bf90e006b2" + // + // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification + ContainerIDKey = attribute.Key("container.id") + + // ContainerImageIDKey is the attribute Key conforming to the "container.image.id" semantic conventions. It represents the runtime specific image identifier. Usually a hash algorithm followed by a UUID. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f" + // Note: Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API] endpoint. + // K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`. + // The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes. + // + // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect + ContainerImageIDKey = attribute.Key("container.image.id") + + // ContainerImageNameKey is the attribute Key conforming to the "container.image.name" semantic conventions. It represents the name of the image the container was built on. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "gcr.io/opentelemetry/operator" + ContainerImageNameKey = attribute.Key("container.image.name") + + // ContainerImageRepoDigestsKey is the attribute Key conforming to the "container.image.repo_digests" semantic conventions. It represents the repo digests of the container image as provided by the container runtime. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578" + // Note: [Docker] and [CRI] report those under the `RepoDigests` field. + // + // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect + // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238 + ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests") + + // ContainerImageTagsKey is the attribute Key conforming to the "container.image.tags" semantic conventions. It represents the container image tags. An example can be found in [Docker Image Inspect]. Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "v1.27.1", "3.5.7-0" + // + // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect + ContainerImageTagsKey = attribute.Key("container.image.tags") + + // ContainerNameKey is the attribute Key conforming to the "container.name" semantic conventions. It represents the container name used by container runtime. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry-autoconf" + ContainerNameKey = attribute.Key("container.name") + + // ContainerRuntimeKey is the attribute Key conforming to the "container.runtime" semantic conventions. It represents the container runtime managing this container. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "docker", "containerd", "rkt" + ContainerRuntimeKey = attribute.Key("container.runtime") +) + +// ContainerCommand returns an attribute KeyValue conforming to the "container.command" semantic conventions. It represents the command used to run the container (i.e. the command name). +func ContainerCommand(val string) attribute.KeyValue { + return ContainerCommandKey.String(val) +} + +// ContainerCommandArgs returns an attribute KeyValue conforming to the "container.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) run by the container. +func ContainerCommandArgs(val ...string) attribute.KeyValue { + return ContainerCommandArgsKey.StringSlice(val) +} + +// ContainerCommandLine returns an attribute KeyValue conforming to the "container.command_line" semantic conventions. It represents the full command run by the container as a single string representing the full command. +func ContainerCommandLine(val string) attribute.KeyValue { + return ContainerCommandLineKey.String(val) +} + +// ContainerCsiPluginName returns an attribute KeyValue conforming to the "container.csi.plugin.name" semantic conventions. It represents the name of the CSI ([Container Storage Interface]) plugin used by the volume. +// +// [Container Storage Interface]: https://github.com/container-storage-interface/spec +func ContainerCsiPluginName(val string) attribute.KeyValue { + return ContainerCsiPluginNameKey.String(val) +} + +// ContainerCsiVolumeID returns an attribute KeyValue conforming to the "container.csi.volume.id" semantic conventions. It represents the unique volume ID returned by the CSI ([Container Storage Interface]) plugin. +// +// [Container Storage Interface]: https://github.com/container-storage-interface/spec +func ContainerCsiVolumeID(val string) attribute.KeyValue { + return ContainerCsiVolumeIDKey.String(val) +} + +// ContainerID returns an attribute KeyValue conforming to the "container.id" semantic conventions. It represents the container ID. Usually a UUID, as for example used to [identify Docker containers]. The UUID might be abbreviated. +// +// [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification +func ContainerID(val string) attribute.KeyValue { + return ContainerIDKey.String(val) +} + +// ContainerImageID returns an attribute KeyValue conforming to the "container.image.id" semantic conventions. It represents the runtime specific image identifier. Usually a hash algorithm followed by a UUID. +func ContainerImageID(val string) attribute.KeyValue { + return ContainerImageIDKey.String(val) +} + +// ContainerImageName returns an attribute KeyValue conforming to the "container.image.name" semantic conventions. It represents the name of the image the container was built on. +func ContainerImageName(val string) attribute.KeyValue { + return ContainerImageNameKey.String(val) +} + +// ContainerImageRepoDigests returns an attribute KeyValue conforming to the "container.image.repo_digests" semantic conventions. It represents the repo digests of the container image as provided by the container runtime. +func ContainerImageRepoDigests(val ...string) attribute.KeyValue { + return ContainerImageRepoDigestsKey.StringSlice(val) +} + +// ContainerImageTags returns an attribute KeyValue conforming to the "container.image.tags" semantic conventions. It represents the container image tags. An example can be found in [Docker Image Inspect]. Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. +// +// [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect +func ContainerImageTags(val ...string) attribute.KeyValue { + return ContainerImageTagsKey.StringSlice(val) +} + +// ContainerName returns an attribute KeyValue conforming to the "container.name" semantic conventions. It represents the container name used by container runtime. +func ContainerName(val string) attribute.KeyValue { + return ContainerNameKey.String(val) +} + +// ContainerRuntime returns an attribute KeyValue conforming to the "container.runtime" semantic conventions. It represents the container runtime managing this container. +func ContainerRuntime(val string) attribute.KeyValue { + return ContainerRuntimeKey.String(val) +} + +// Namespace: cpu +const ( + // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic conventions. It represents the mode of the CPU. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "user", "system" + CPUModeKey = attribute.Key("cpu.mode") +) + +// Enum values for cpu.mode +var ( + // user + // Stability: experimental + CPUModeUser = CPUModeKey.String("user") + // system + // Stability: experimental + CPUModeSystem = CPUModeKey.String("system") + // nice + // Stability: experimental + CPUModeNice = CPUModeKey.String("nice") + // idle + // Stability: experimental + CPUModeIdle = CPUModeKey.String("idle") + // iowait + // Stability: experimental + CPUModeIowait = CPUModeKey.String("iowait") + // interrupt + // Stability: experimental + CPUModeInterrupt = CPUModeKey.String("interrupt") + // steal + // Stability: experimental + CPUModeSteal = CPUModeKey.String("steal") + // kernel + // Stability: experimental + CPUModeKernel = CPUModeKey.String("kernel") +) + +// Namespace: db +const ( + // DBCassandraConsistencyLevelKey is the attribute Key conforming to the "db.cassandra.consistency_level" semantic conventions. It represents the consistency level of the query. Based on consistency values from [CQL]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html + DBCassandraConsistencyLevelKey = attribute.Key("db.cassandra.consistency_level") + + // DBCassandraCoordinatorDCKey is the attribute Key conforming to the "db.cassandra.coordinator.dc" semantic conventions. It represents the data center of the coordinating node for a query. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: us-west-2 + DBCassandraCoordinatorDCKey = attribute.Key("db.cassandra.coordinator.dc") + + // DBCassandraCoordinatorIDKey is the attribute Key conforming to the "db.cassandra.coordinator.id" semantic conventions. It represents the ID of the coordinating node for a query. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af + DBCassandraCoordinatorIDKey = attribute.Key("db.cassandra.coordinator.id") + + // DBCassandraIdempotenceKey is the attribute Key conforming to the "db.cassandra.idempotence" semantic conventions. It represents the whether or not the query is idempotent. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + DBCassandraIdempotenceKey = attribute.Key("db.cassandra.idempotence") + + // DBCassandraPageSizeKey is the attribute Key conforming to the "db.cassandra.page_size" semantic conventions. It represents the fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 5000 + DBCassandraPageSizeKey = attribute.Key("db.cassandra.page_size") + + // DBCassandraSpeculativeExecutionCountKey is the attribute Key conforming to the "db.cassandra.speculative_execution_count" semantic conventions. It represents the number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0, 2 + DBCassandraSpeculativeExecutionCountKey = attribute.Key("db.cassandra.speculative_execution_count") + + // DBClientConnectionPoolNameKey is the attribute Key conforming to the "db.client.connection.pool.name" semantic conventions. It represents the name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns SHOULD document it. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "myDataSource" + DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name") + + // DBClientConnectionStateKey is the attribute Key conforming to the "db.client.connection.state" semantic conventions. It represents the state of a connection in the pool. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "idle" + DBClientConnectionStateKey = attribute.Key("db.client.connection.state") + + // DBCollectionNameKey is the attribute Key conforming to the "db.collection.name" semantic conventions. It represents the name of a collection (table, container) within the database. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "public.users", "customers" + // Note: It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + // If the collection name is parsed from the query text, it SHOULD be the first collection name found in the query and it SHOULD match the value provided in the query text including any schema and database name prefix. + // For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured. + // This attribute has stability level RELEASE CANDIDATE. + DBCollectionNameKey = attribute.Key("db.collection.name") + + // DBCosmosDBClientIDKey is the attribute Key conforming to the "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos client instance id. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 3ba4827d-4422-483f-b59f-85b74211c11d + DBCosmosDBClientIDKey = attribute.Key("db.cosmosdb.client_id") + + // DBCosmosDBConnectionModeKey is the attribute Key conforming to the "db.cosmosdb.connection_mode" semantic conventions. It represents the cosmos client connection mode. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + DBCosmosDBConnectionModeKey = attribute.Key("db.cosmosdb.connection_mode") + + // DBCosmosDBOperationTypeKey is the attribute Key conforming to the "db.cosmosdb.operation_type" semantic conventions. It represents the cosmos DB Operation Type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + DBCosmosDBOperationTypeKey = attribute.Key("db.cosmosdb.operation_type") + + // DBCosmosDBRequestChargeKey is the attribute Key conforming to the "db.cosmosdb.request_charge" semantic conventions. It represents the rU consumed for that operation. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 46.18, 1.0 + DBCosmosDBRequestChargeKey = attribute.Key("db.cosmosdb.request_charge") + + // DBCosmosDBRequestContentLengthKey is the attribute Key conforming to the "db.cosmosdb.request_content_length" semantic conventions. It represents the request payload size in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + DBCosmosDBRequestContentLengthKey = attribute.Key("db.cosmosdb.request_content_length") + + // DBCosmosDBSubStatusCodeKey is the attribute Key conforming to the "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos DB sub status code. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1000, 1002 + DBCosmosDBSubStatusCodeKey = attribute.Key("db.cosmosdb.sub_status_code") + + // DBElasticsearchNodeNameKey is the attribute Key conforming to the "db.elasticsearch.node.name" semantic conventions. It represents the represents the human-readable identifier of the node/instance to which a request was routed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "instance-0000000001" + DBElasticsearchNodeNameKey = attribute.Key("db.elasticsearch.node.name") + + // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic conventions. It represents the name of the database, fully qualified within the server address and port. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "customers", "test.users" + // Note: If a database system has multiple namespace components, they SHOULD be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces SHOULD NOT be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid. + // Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system. + // It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + // This attribute has stability level RELEASE CANDIDATE. + DBNamespaceKey = attribute.Key("db.namespace") + + // DBOperationBatchSizeKey is the attribute Key conforming to the "db.operation.batch.size" semantic conventions. It represents the number of queries included in a batch operation. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 2, 3, 4 + // Note: Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` SHOULD never be `1`. + // This attribute has stability level RELEASE CANDIDATE. + DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size") + + // DBOperationNameKey is the attribute Key conforming to the "db.operation.name" semantic conventions. It represents the name of the operation or command being executed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "findAndModify", "HMSET", "SELECT" + // Note: It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + // If the operation name is parsed from the query text, it SHOULD be the first operation name found in the query. + // For batch operations, if the individual operations are known to have the same operation name then that operation name SHOULD be used prepended by `BATCH `, otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable. + // This attribute has stability level RELEASE CANDIDATE. + DBOperationNameKey = attribute.Key("db.operation.name") + + // DBQueryTextKey is the attribute Key conforming to the "db.query.text" semantic conventions. It represents the database query being executed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey "WuValue"" + // Note: For sanitization see [Sanitization of `db.query.text`]. + // For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable. + // Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk. + // This attribute has stability level RELEASE CANDIDATE. + // + // [Sanitization of `db.query.text`]: ../../docs/database/database-spans.md#sanitization-of-dbquerytext + DBQueryTextKey = attribute.Key("db.query.text") + + // DBResponseStatusCodeKey is the attribute Key conforming to the "db.response.status_code" semantic conventions. It represents the database response status code. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "102", "ORA-17002", "08P01", "404" + // Note: The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes. + // Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system. + // This attribute has stability level RELEASE CANDIDATE. + DBResponseStatusCodeKey = attribute.Key("db.response.status_code") + + // DBSystemKey is the attribute Key conforming to the "db.system" semantic conventions. It represents the database management system (DBMS) product as identified by the client instrumentation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` is set to `postgresql` based on the instrumentation's best knowledge. + // This attribute has stability level RELEASE CANDIDATE. + DBSystemKey = attribute.Key("db.system") +) + +// DBCassandraCoordinatorDC returns an attribute KeyValue conforming to the "db.cassandra.coordinator.dc" semantic conventions. It represents the data center of the coordinating node for a query. +func DBCassandraCoordinatorDC(val string) attribute.KeyValue { + return DBCassandraCoordinatorDCKey.String(val) +} + +// DBCassandraCoordinatorID returns an attribute KeyValue conforming to the "db.cassandra.coordinator.id" semantic conventions. It represents the ID of the coordinating node for a query. +func DBCassandraCoordinatorID(val string) attribute.KeyValue { + return DBCassandraCoordinatorIDKey.String(val) +} + +// DBCassandraIdempotence returns an attribute KeyValue conforming to the "db.cassandra.idempotence" semantic conventions. It represents the whether or not the query is idempotent. +func DBCassandraIdempotence(val bool) attribute.KeyValue { + return DBCassandraIdempotenceKey.Bool(val) +} + +// DBCassandraPageSize returns an attribute KeyValue conforming to the "db.cassandra.page_size" semantic conventions. It represents the fetch size used for paging, i.e. how many rows will be returned at once. +func DBCassandraPageSize(val int) attribute.KeyValue { + return DBCassandraPageSizeKey.Int(val) +} + +// DBCassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to the "db.cassandra.speculative_execution_count" semantic conventions. It represents the number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. +func DBCassandraSpeculativeExecutionCount(val int) attribute.KeyValue { + return DBCassandraSpeculativeExecutionCountKey.Int(val) +} + +// DBClientConnectionPoolName returns an attribute KeyValue conforming to the "db.client.connection.pool.name" semantic conventions. It represents the name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns SHOULD document it. +func DBClientConnectionPoolName(val string) attribute.KeyValue { + return DBClientConnectionPoolNameKey.String(val) +} + +// DBCollectionName returns an attribute KeyValue conforming to the "db.collection.name" semantic conventions. It represents the name of a collection (table, container) within the database. +func DBCollectionName(val string) attribute.KeyValue { + return DBCollectionNameKey.String(val) +} + +// DBCosmosDBClientID returns an attribute KeyValue conforming to the "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos client instance id. +func DBCosmosDBClientID(val string) attribute.KeyValue { + return DBCosmosDBClientIDKey.String(val) +} + +// DBCosmosDBRequestCharge returns an attribute KeyValue conforming to the "db.cosmosdb.request_charge" semantic conventions. It represents the rU consumed for that operation. +func DBCosmosDBRequestCharge(val float64) attribute.KeyValue { + return DBCosmosDBRequestChargeKey.Float64(val) +} + +// DBCosmosDBRequestContentLength returns an attribute KeyValue conforming to the "db.cosmosdb.request_content_length" semantic conventions. It represents the request payload size in bytes. +func DBCosmosDBRequestContentLength(val int) attribute.KeyValue { + return DBCosmosDBRequestContentLengthKey.Int(val) +} + +// DBCosmosDBSubStatusCode returns an attribute KeyValue conforming to the "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos DB sub status code. +func DBCosmosDBSubStatusCode(val int) attribute.KeyValue { + return DBCosmosDBSubStatusCodeKey.Int(val) +} + +// DBElasticsearchNodeName returns an attribute KeyValue conforming to the "db.elasticsearch.node.name" semantic conventions. It represents the represents the human-readable identifier of the node/instance to which a request was routed. +func DBElasticsearchNodeName(val string) attribute.KeyValue { + return DBElasticsearchNodeNameKey.String(val) +} + +// DBNamespace returns an attribute KeyValue conforming to the "db.namespace" semantic conventions. It represents the name of the database, fully qualified within the server address and port. +func DBNamespace(val string) attribute.KeyValue { + return DBNamespaceKey.String(val) +} + +// DBOperationBatchSize returns an attribute KeyValue conforming to the "db.operation.batch.size" semantic conventions. It represents the number of queries included in a batch operation. +func DBOperationBatchSize(val int) attribute.KeyValue { + return DBOperationBatchSizeKey.Int(val) +} + +// DBOperationName returns an attribute KeyValue conforming to the "db.operation.name" semantic conventions. It represents the name of the operation or command being executed. +func DBOperationName(val string) attribute.KeyValue { + return DBOperationNameKey.String(val) +} + +// DBQueryText returns an attribute KeyValue conforming to the "db.query.text" semantic conventions. It represents the database query being executed. +func DBQueryText(val string) attribute.KeyValue { + return DBQueryTextKey.String(val) +} + +// DBResponseStatusCode returns an attribute KeyValue conforming to the "db.response.status_code" semantic conventions. It represents the database response status code. +func DBResponseStatusCode(val string) attribute.KeyValue { + return DBResponseStatusCodeKey.String(val) +} + +// Enum values for db.cassandra.consistency_level +var ( + // all + // Stability: experimental + DBCassandraConsistencyLevelAll = DBCassandraConsistencyLevelKey.String("all") + // each_quorum + // Stability: experimental + DBCassandraConsistencyLevelEachQuorum = DBCassandraConsistencyLevelKey.String("each_quorum") + // quorum + // Stability: experimental + DBCassandraConsistencyLevelQuorum = DBCassandraConsistencyLevelKey.String("quorum") + // local_quorum + // Stability: experimental + DBCassandraConsistencyLevelLocalQuorum = DBCassandraConsistencyLevelKey.String("local_quorum") + // one + // Stability: experimental + DBCassandraConsistencyLevelOne = DBCassandraConsistencyLevelKey.String("one") + // two + // Stability: experimental + DBCassandraConsistencyLevelTwo = DBCassandraConsistencyLevelKey.String("two") + // three + // Stability: experimental + DBCassandraConsistencyLevelThree = DBCassandraConsistencyLevelKey.String("three") + // local_one + // Stability: experimental + DBCassandraConsistencyLevelLocalOne = DBCassandraConsistencyLevelKey.String("local_one") + // any + // Stability: experimental + DBCassandraConsistencyLevelAny = DBCassandraConsistencyLevelKey.String("any") + // serial + // Stability: experimental + DBCassandraConsistencyLevelSerial = DBCassandraConsistencyLevelKey.String("serial") + // local_serial + // Stability: experimental + DBCassandraConsistencyLevelLocalSerial = DBCassandraConsistencyLevelKey.String("local_serial") +) + +// Enum values for db.client.connection.state +var ( + // idle + // Stability: experimental + DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle") + // used + // Stability: experimental + DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used") +) + +// Enum values for db.cosmosdb.connection_mode +var ( + // Gateway (HTTP) connections mode + // Stability: experimental + DBCosmosDBConnectionModeGateway = DBCosmosDBConnectionModeKey.String("gateway") + // Direct connection. + // Stability: experimental + DBCosmosDBConnectionModeDirect = DBCosmosDBConnectionModeKey.String("direct") +) + +// Enum values for db.cosmosdb.operation_type +var ( + // batch + // Stability: experimental + DBCosmosDBOperationTypeBatch = DBCosmosDBOperationTypeKey.String("batch") + // create + // Stability: experimental + DBCosmosDBOperationTypeCreate = DBCosmosDBOperationTypeKey.String("create") + // delete + // Stability: experimental + DBCosmosDBOperationTypeDelete = DBCosmosDBOperationTypeKey.String("delete") + // execute + // Stability: experimental + DBCosmosDBOperationTypeExecute = DBCosmosDBOperationTypeKey.String("execute") + // execute_javascript + // Stability: experimental + DBCosmosDBOperationTypeExecuteJavascript = DBCosmosDBOperationTypeKey.String("execute_javascript") + // invalid + // Stability: experimental + DBCosmosDBOperationTypeInvalid = DBCosmosDBOperationTypeKey.String("invalid") + // head + // Stability: experimental + DBCosmosDBOperationTypeHead = DBCosmosDBOperationTypeKey.String("head") + // head_feed + // Stability: experimental + DBCosmosDBOperationTypeHeadFeed = DBCosmosDBOperationTypeKey.String("head_feed") + // patch + // Stability: experimental + DBCosmosDBOperationTypePatch = DBCosmosDBOperationTypeKey.String("patch") + // query + // Stability: experimental + DBCosmosDBOperationTypeQuery = DBCosmosDBOperationTypeKey.String("query") + // query_plan + // Stability: experimental + DBCosmosDBOperationTypeQueryPlan = DBCosmosDBOperationTypeKey.String("query_plan") + // read + // Stability: experimental + DBCosmosDBOperationTypeRead = DBCosmosDBOperationTypeKey.String("read") + // read_feed + // Stability: experimental + DBCosmosDBOperationTypeReadFeed = DBCosmosDBOperationTypeKey.String("read_feed") + // replace + // Stability: experimental + DBCosmosDBOperationTypeReplace = DBCosmosDBOperationTypeKey.String("replace") + // upsert + // Stability: experimental + DBCosmosDBOperationTypeUpsert = DBCosmosDBOperationTypeKey.String("upsert") +) + +// Enum values for db.system +var ( + // Some other SQL database. Fallback only. See notes. + // Stability: experimental + DBSystemOtherSQL = DBSystemKey.String("other_sql") + // Adabas (Adaptable Database System) + // Stability: experimental + DBSystemAdabas = DBSystemKey.String("adabas") + // Deprecated: Replaced by `intersystems_cache`. + DBSystemCache = DBSystemKey.String("cache") + // InterSystems Caché + // Stability: experimental + DBSystemIntersystemsCache = DBSystemKey.String("intersystems_cache") + // Apache Cassandra + // Stability: experimental + DBSystemCassandra = DBSystemKey.String("cassandra") + // ClickHouse + // Stability: experimental + DBSystemClickhouse = DBSystemKey.String("clickhouse") + // Deprecated: Replaced by `other_sql`. + DBSystemCloudscape = DBSystemKey.String("cloudscape") + // CockroachDB + // Stability: experimental + DBSystemCockroachdb = DBSystemKey.String("cockroachdb") + // Deprecated: Removed. + DBSystemColdfusion = DBSystemKey.String("coldfusion") + // Microsoft Azure Cosmos DB + // Stability: experimental + DBSystemCosmosDB = DBSystemKey.String("cosmosdb") + // Couchbase + // Stability: experimental + DBSystemCouchbase = DBSystemKey.String("couchbase") + // CouchDB + // Stability: experimental + DBSystemCouchDB = DBSystemKey.String("couchdb") + // IBM Db2 + // Stability: experimental + DBSystemDb2 = DBSystemKey.String("db2") + // Apache Derby + // Stability: experimental + DBSystemDerby = DBSystemKey.String("derby") + // Amazon DynamoDB + // Stability: experimental + DBSystemDynamoDB = DBSystemKey.String("dynamodb") + // EnterpriseDB + // Stability: experimental + DBSystemEDB = DBSystemKey.String("edb") + // Elasticsearch + // Stability: experimental + DBSystemElasticsearch = DBSystemKey.String("elasticsearch") + // FileMaker + // Stability: experimental + DBSystemFilemaker = DBSystemKey.String("filemaker") + // Firebird + // Stability: experimental + DBSystemFirebird = DBSystemKey.String("firebird") + // Deprecated: Replaced by `other_sql`. + DBSystemFirstSQL = DBSystemKey.String("firstsql") + // Apache Geode + // Stability: experimental + DBSystemGeode = DBSystemKey.String("geode") + // H2 + // Stability: experimental + DBSystemH2 = DBSystemKey.String("h2") + // SAP HANA + // Stability: experimental + DBSystemHanaDB = DBSystemKey.String("hanadb") + // Apache HBase + // Stability: experimental + DBSystemHBase = DBSystemKey.String("hbase") + // Apache Hive + // Stability: experimental + DBSystemHive = DBSystemKey.String("hive") + // HyperSQL DataBase + // Stability: experimental + DBSystemHSQLDB = DBSystemKey.String("hsqldb") + // InfluxDB + // Stability: experimental + DBSystemInfluxdb = DBSystemKey.String("influxdb") + // Informix + // Stability: experimental + DBSystemInformix = DBSystemKey.String("informix") + // Ingres + // Stability: experimental + DBSystemIngres = DBSystemKey.String("ingres") + // InstantDB + // Stability: experimental + DBSystemInstantDB = DBSystemKey.String("instantdb") + // InterBase + // Stability: experimental + DBSystemInterbase = DBSystemKey.String("interbase") + // MariaDB (This value has stability level RELEASE CANDIDATE) + // Stability: experimental + DBSystemMariaDB = DBSystemKey.String("mariadb") + // SAP MaxDB + // Stability: experimental + DBSystemMaxDB = DBSystemKey.String("maxdb") + // Memcached + // Stability: experimental + DBSystemMemcached = DBSystemKey.String("memcached") + // MongoDB + // Stability: experimental + DBSystemMongoDB = DBSystemKey.String("mongodb") + // Microsoft SQL Server (This value has stability level RELEASE CANDIDATE) + // Stability: experimental + DBSystemMSSQL = DBSystemKey.String("mssql") + // Deprecated: Removed, use `other_sql` instead. + DBSystemMssqlcompact = DBSystemKey.String("mssqlcompact") + // MySQL (This value has stability level RELEASE CANDIDATE) + // Stability: experimental + DBSystemMySQL = DBSystemKey.String("mysql") + // Neo4j + // Stability: experimental + DBSystemNeo4j = DBSystemKey.String("neo4j") + // Netezza + // Stability: experimental + DBSystemNetezza = DBSystemKey.String("netezza") + // OpenSearch + // Stability: experimental + DBSystemOpensearch = DBSystemKey.String("opensearch") + // Oracle Database + // Stability: experimental + DBSystemOracle = DBSystemKey.String("oracle") + // Pervasive PSQL + // Stability: experimental + DBSystemPervasive = DBSystemKey.String("pervasive") + // PointBase + // Stability: experimental + DBSystemPointbase = DBSystemKey.String("pointbase") + // PostgreSQL (This value has stability level RELEASE CANDIDATE) + // Stability: experimental + DBSystemPostgreSQL = DBSystemKey.String("postgresql") + // Progress Database + // Stability: experimental + DBSystemProgress = DBSystemKey.String("progress") + // Redis + // Stability: experimental + DBSystemRedis = DBSystemKey.String("redis") + // Amazon Redshift + // Stability: experimental + DBSystemRedshift = DBSystemKey.String("redshift") + // Cloud Spanner + // Stability: experimental + DBSystemSpanner = DBSystemKey.String("spanner") + // SQLite + // Stability: experimental + DBSystemSqlite = DBSystemKey.String("sqlite") + // Sybase + // Stability: experimental + DBSystemSybase = DBSystemKey.String("sybase") + // Teradata + // Stability: experimental + DBSystemTeradata = DBSystemKey.String("teradata") + // Trino + // Stability: experimental + DBSystemTrino = DBSystemKey.String("trino") + // Vertica + // Stability: experimental + DBSystemVertica = DBSystemKey.String("vertica") +) + +// Namespace: deployment +const ( + // DeploymentEnvironmentNameKey is the attribute Key conforming to the "deployment.environment.name" semantic conventions. It represents the name of the [deployment environment] (aka deployment tier). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "staging", "production" + // Note: `deployment.environment.name` does not affect the uniqueness constraints defined through + // the `service.namespace`, `service.name` and `service.instance.id` resource attributes. + // This implies that resources carrying the following attribute combinations MUST be + // considered to be identifying the same service: + // + // - `service.name=frontend`, `deployment.environment.name=production` + // - `service.name=frontend`, `deployment.environment.name=staging`. + // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment + DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name") + + // DeploymentIDKey is the attribute Key conforming to the "deployment.id" semantic conventions. It represents the id of the deployment. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1208" + DeploymentIDKey = attribute.Key("deployment.id") + + // DeploymentNameKey is the attribute Key conforming to the "deployment.name" semantic conventions. It represents the name of the deployment. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "deploy my app", "deploy-frontend" + DeploymentNameKey = attribute.Key("deployment.name") + + // DeploymentStatusKey is the attribute Key conforming to the "deployment.status" semantic conventions. It represents the status of the deployment. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + DeploymentStatusKey = attribute.Key("deployment.status") +) + +// DeploymentEnvironmentName returns an attribute KeyValue conforming to the "deployment.environment.name" semantic conventions. It represents the name of the [deployment environment] (aka deployment tier). +// +// [deployment environment]: https://wikipedia.org/wiki/Deployment_environment +func DeploymentEnvironmentName(val string) attribute.KeyValue { + return DeploymentEnvironmentNameKey.String(val) +} + +// DeploymentID returns an attribute KeyValue conforming to the "deployment.id" semantic conventions. It represents the id of the deployment. +func DeploymentID(val string) attribute.KeyValue { + return DeploymentIDKey.String(val) +} + +// DeploymentName returns an attribute KeyValue conforming to the "deployment.name" semantic conventions. It represents the name of the deployment. +func DeploymentName(val string) attribute.KeyValue { + return DeploymentNameKey.String(val) +} + +// Enum values for deployment.status +var ( + // failed + // Stability: experimental + DeploymentStatusFailed = DeploymentStatusKey.String("failed") + // succeeded + // Stability: experimental + DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded") +) + +// Namespace: destination +const ( + // DestinationAddressKey is the attribute Key conforming to the "destination.address" semantic conventions. It represents the destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock" + // Note: When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent the destination address behind any intermediaries, for example proxies, if it's available. + DestinationAddressKey = attribute.Key("destination.address") + + // DestinationPortKey is the attribute Key conforming to the "destination.port" semantic conventions. It represents the destination port number. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 3389, 2888 + DestinationPortKey = attribute.Key("destination.port") +) + +// DestinationAddress returns an attribute KeyValue conforming to the "destination.address" semantic conventions. It represents the destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +func DestinationAddress(val string) attribute.KeyValue { + return DestinationAddressKey.String(val) +} + +// DestinationPort returns an attribute KeyValue conforming to the "destination.port" semantic conventions. It represents the destination port number. +func DestinationPort(val int) attribute.KeyValue { + return DestinationPortKey.Int(val) +} + +// Namespace: device +const ( + // DeviceIDKey is the attribute Key conforming to the "device.id" semantic conventions. It represents a unique identifier representing the device. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092" + // Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here] on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence. + // + // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor + // [here]: https://developer.android.com/training/articles/user-data-ids + DeviceIDKey = attribute.Key("device.id") + + // DeviceManufacturerKey is the attribute Key conforming to the "device.manufacturer" semantic conventions. It represents the name of the device manufacturer. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Apple", "Samsung" + // Note: The Android OS provides this field via [Build]. iOS apps SHOULD hardcode the value `Apple`. + // + // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER + DeviceManufacturerKey = attribute.Key("device.manufacturer") + + // DeviceModelIdentifierKey is the attribute Key conforming to the "device.model.identifier" semantic conventions. It represents the model identifier for the device. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "iPhone3,4", "SM-G920F" + // Note: It's recommended this value represents a machine-readable version of the model identifier rather than the market or consumer-friendly name of the device. + DeviceModelIdentifierKey = attribute.Key("device.model.identifier") + + // DeviceModelNameKey is the attribute Key conforming to the "device.model.name" semantic conventions. It represents the marketing name for the device model. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "iPhone 6s Plus", "Samsung Galaxy S6" + // Note: It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + DeviceModelNameKey = attribute.Key("device.model.name") +) + +// DeviceID returns an attribute KeyValue conforming to the "device.id" semantic conventions. It represents a unique identifier representing the device. +func DeviceID(val string) attribute.KeyValue { + return DeviceIDKey.String(val) +} + +// DeviceManufacturer returns an attribute KeyValue conforming to the "device.manufacturer" semantic conventions. It represents the name of the device manufacturer. +func DeviceManufacturer(val string) attribute.KeyValue { + return DeviceManufacturerKey.String(val) +} + +// DeviceModelIdentifier returns an attribute KeyValue conforming to the "device.model.identifier" semantic conventions. It represents the model identifier for the device. +func DeviceModelIdentifier(val string) attribute.KeyValue { + return DeviceModelIdentifierKey.String(val) +} + +// DeviceModelName returns an attribute KeyValue conforming to the "device.model.name" semantic conventions. It represents the marketing name for the device model. +func DeviceModelName(val string) attribute.KeyValue { + return DeviceModelNameKey.String(val) +} + +// Namespace: disk +const ( + // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction" semantic conventions. It represents the disk IO operation direction. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "read" + DiskIoDirectionKey = attribute.Key("disk.io.direction") +) + +// Enum values for disk.io.direction +var ( + // read + // Stability: experimental + DiskIoDirectionRead = DiskIoDirectionKey.String("read") + // write + // Stability: experimental + DiskIoDirectionWrite = DiskIoDirectionKey.String("write") +) + +// Namespace: dns +const ( + // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name" semantic conventions. It represents the name being queried. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "www.example.com", "opentelemetry.io" + // Note: If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively. + DNSQuestionNameKey = attribute.Key("dns.question.name") +) + +// DNSQuestionName returns an attribute KeyValue conforming to the "dns.question.name" semantic conventions. It represents the name being queried. +func DNSQuestionName(val string) attribute.KeyValue { + return DNSQuestionNameKey.String(val) +} + +// Namespace: dotnet +const ( + // DotnetGCHeapGenerationKey is the attribute Key conforming to the "dotnet.gc.heap.generation" semantic conventions. It represents the name of the garbage collector managed heap generation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "gen0", "gen1", "gen2" + DotnetGCHeapGenerationKey = attribute.Key("dotnet.gc.heap.generation") +) + +// Enum values for dotnet.gc.heap.generation +var ( + // Generation 0 + // Stability: experimental + DotnetGCHeapGenerationGen0 = DotnetGCHeapGenerationKey.String("gen0") + // Generation 1 + // Stability: experimental + DotnetGCHeapGenerationGen1 = DotnetGCHeapGenerationKey.String("gen1") + // Generation 2 + // Stability: experimental + DotnetGCHeapGenerationGen2 = DotnetGCHeapGenerationKey.String("gen2") + // Large Object Heap + // Stability: experimental + DotnetGCHeapGenerationLoh = DotnetGCHeapGenerationKey.String("loh") + // Pinned Object Heap + // Stability: experimental + DotnetGCHeapGenerationPoh = DotnetGCHeapGenerationKey.String("poh") +) + +// Namespace: error +const ( + // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic conventions. It represents the describes a class of error the operation ended with. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "timeout", "java.net.UnknownHostException", "server_certificate_invalid", "500" + // Note: The `error.type` SHOULD be predictable, and SHOULD have low cardinality. + // + // When `error.type` is set to a type (e.g., an exception type), its + // canonical class name identifying the type within the artifact SHOULD be used. + // + // Instrumentations SHOULD document the list of errors they report. + // + // The cardinality of `error.type` within one instrumentation library SHOULD be low. + // Telemetry consumers that aggregate data from multiple instrumentation libraries and applications + // should be prepared for `error.type` to have high cardinality at query time when no + // additional filters are applied. + // + // If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`. + // + // If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes), + // it's RECOMMENDED to: + // + // - Use a domain-specific attribute + // - Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not. + ErrorTypeKey = attribute.Key("error.type") +) + +// Enum values for error.type +var ( + // A fallback error value to be used when the instrumentation doesn't define a custom value. + // + // Stability: stable + ErrorTypeOther = ErrorTypeKey.String("_OTHER") +) + +// Namespace: event +const ( + // EventNameKey is the attribute Key conforming to the "event.name" semantic conventions. It represents the identifies the class / type of event. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "browser.mouse.click", "device.app.lifecycle" + // Note: Event names are subject to the same rules as [attribute names]. Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. + // + // [attribute names]: /docs/general/attribute-naming.md + EventNameKey = attribute.Key("event.name") +) + +// EventName returns an attribute KeyValue conforming to the "event.name" semantic conventions. It represents the identifies the class / type of event. +func EventName(val string) attribute.KeyValue { + return EventNameKey.String(val) +} + +// Namespace: exception +const ( + // ExceptionEscapedKey is the attribute Key conforming to the "exception.escaped" semantic conventions. It represents the sHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: + // Note: An exception is considered to have escaped (or left) the scope of a span, + // if that span is ended while the exception is still logically "in flight". + // This may be actually "in flight" in some languages (e.g. if the exception + // is passed to a Context manager's `__exit__` method in Python) but will + // usually be caught at the point of recording the exception in most languages. + // + // It is usually not possible to determine at the point where an exception is thrown + // whether it will escape the scope of a span. + // However, it is trivial to know that an exception + // will escape, if one checks for an active exception just before ending the span, + // as done in the [example for recording span exceptions]. + // + // It follows that an exception may still escape the scope of the span + // even if the `exception.escaped` attribute was not set or set to false, + // since the event might have been recorded at a time where it was not + // clear whether the exception will escape. + // + // [example for recording span exceptions]: https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception + ExceptionEscapedKey = attribute.Key("exception.escaped") + + // ExceptionMessageKey is the attribute Key conforming to the "exception.message" semantic conventions. It represents the exception message. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "Division by zero", "Can't convert 'int' object to str implicitly" + ExceptionMessageKey = attribute.Key("exception.message") + + // ExceptionStacktraceKey is the attribute Key conforming to the "exception.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + ExceptionStacktraceKey = attribute.Key("exception.stacktrace") + + // ExceptionTypeKey is the attribute Key conforming to the "exception.type" semantic conventions. It represents the type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "java.net.ConnectException", "OSError" + ExceptionTypeKey = attribute.Key("exception.type") +) + +// ExceptionEscaped returns an attribute KeyValue conforming to the "exception.escaped" semantic conventions. It represents the sHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. +func ExceptionEscaped(val bool) attribute.KeyValue { + return ExceptionEscapedKey.Bool(val) +} + +// ExceptionMessage returns an attribute KeyValue conforming to the "exception.message" semantic conventions. It represents the exception message. +func ExceptionMessage(val string) attribute.KeyValue { + return ExceptionMessageKey.String(val) +} + +// ExceptionStacktrace returns an attribute KeyValue conforming to the "exception.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +func ExceptionStacktrace(val string) attribute.KeyValue { + return ExceptionStacktraceKey.String(val) +} + +// ExceptionType returns an attribute KeyValue conforming to the "exception.type" semantic conventions. It represents the type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. +func ExceptionType(val string) attribute.KeyValue { + return ExceptionTypeKey.String(val) +} + +// Namespace: faas +const ( + // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart" semantic conventions. It represents a boolean that is true if the serverless function is executed for the first time (aka cold-start). + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + FaaSColdstartKey = attribute.Key("faas.coldstart") + + // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic conventions. It represents a string containing the schedule period as [Cron Expression]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0/5 * * * ? * + // + // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm + FaaSCronKey = attribute.Key("faas.cron") + + // FaaSDocumentCollectionKey is the attribute Key conforming to the "faas.document.collection" semantic conventions. It represents the name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "myBucketName", "myDbName" + FaaSDocumentCollectionKey = attribute.Key("faas.document.collection") + + // FaaSDocumentNameKey is the attribute Key conforming to the "faas.document.name" semantic conventions. It represents the document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "myFile.txt", "myTableName" + FaaSDocumentNameKey = attribute.Key("faas.document.name") + + // FaaSDocumentOperationKey is the attribute Key conforming to the "faas.document.operation" semantic conventions. It represents the describes the type of the operation that was performed on the data. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + FaaSDocumentOperationKey = attribute.Key("faas.document.operation") + + // FaaSDocumentTimeKey is the attribute Key conforming to the "faas.document.time" semantic conventions. It represents a string containing the time when the data was accessed in the [ISO 8601] format expressed in [UTC]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 2020-01-23T13:47:06Z + // + // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html + // [UTC]: https://www.w3.org/TR/NOTE-datetime + FaaSDocumentTimeKey = attribute.Key("faas.document.time") + + // FaaSInstanceKey is the attribute Key conforming to the "faas.instance" semantic conventions. It represents the execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de" + // Note: * **AWS Lambda:** Use the (full) log stream name. + FaaSInstanceKey = attribute.Key("faas.instance") + + // FaaSInvocationIDKey is the attribute Key conforming to the "faas.invocation_id" semantic conventions. It represents the invocation ID of the current function invocation. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28 + FaaSInvocationIDKey = attribute.Key("faas.invocation_id") + + // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name" semantic conventions. It represents the name of the invoked function. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: my-function + // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked function. + FaaSInvokedNameKey = attribute.Key("faas.invoked_name") + + // FaaSInvokedProviderKey is the attribute Key conforming to the "faas.invoked_provider" semantic conventions. It represents the cloud provider of the invoked function. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider") + + // FaaSInvokedRegionKey is the attribute Key conforming to the "faas.invoked_region" semantic conventions. It represents the cloud region of the invoked function. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: eu-central-1 + // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked function. + FaaSInvokedRegionKey = attribute.Key("faas.invoked_region") + + // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory" semantic conventions. It represents the amount of memory available to the serverless function converted to Bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576). + FaaSMaxMemoryKey = attribute.Key("faas.max_memory") + + // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic conventions. It represents the name of the single function that this runtime instance executes. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-function", "myazurefunctionapp/some-function-name" + // Note: This is the name of the function as configured/deployed on the FaaS + // platform and is usually different from the name of the callback + // function (which may be stored in the + // [`code.namespace`/`code.function`] + // span attributes). + // + // For some cloud providers, the above definition is ambiguous. The following + // definition of function name MUST be used for this attribute + // (and consequently the span name) for the listed cloud providers/products: + // + // - **Azure:** The full name `/`, i.e., function app name + // followed by a forward slash followed by the function name (this form + // can also be seen in the resource JSON for the function). + // This means that a span attribute MUST be used, as an Azure function + // app can host multiple functions that would usually share + // a TracerProvider (see also the `cloud.resource_id` attribute). + // [`code.namespace`/`code.function`]: /docs/general/attributes.md#source-code-attributes + FaaSNameKey = attribute.Key("faas.name") + + // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic conventions. It represents a string containing the function invocation time in the [ISO 8601] format expressed in [UTC]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 2020-01-23T13:47:06Z + // + // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html + // [UTC]: https://www.w3.org/TR/NOTE-datetime + FaaSTimeKey = attribute.Key("faas.time") + + // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic conventions. It represents the type of the trigger which caused this function invocation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + FaaSTriggerKey = attribute.Key("faas.trigger") + + // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic conventions. It represents the immutable version of the function being executed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "26", "pinkfroid-00002" + // Note: Depending on the cloud provider and platform, use: + // + // - **AWS Lambda:** The [function version] + // (an integer represented as a decimal string). + // - **Google Cloud Run (Services):** The [revision] + // (i.e., the function name plus the revision suffix). + // - **Google Cloud Functions:** The value of the + // [`K_REVISION` environment variable]. + // - **Azure Functions:** Not applicable. Do not set this attribute. + // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html + // [revision]: https://cloud.google.com/run/docs/managing/revisions + // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically + FaaSVersionKey = attribute.Key("faas.version") +) + +// FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart" semantic conventions. It represents a boolean that is true if the serverless function is executed for the first time (aka cold-start). +func FaaSColdstart(val bool) attribute.KeyValue { + return FaaSColdstartKey.Bool(val) +} + +// FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic conventions. It represents a string containing the schedule period as [Cron Expression]. +// +// [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm +func FaaSCron(val string) attribute.KeyValue { + return FaaSCronKey.String(val) +} + +// FaaSDocumentCollection returns an attribute KeyValue conforming to the "faas.document.collection" semantic conventions. It represents the name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. +func FaaSDocumentCollection(val string) attribute.KeyValue { + return FaaSDocumentCollectionKey.String(val) +} + +// FaaSDocumentName returns an attribute KeyValue conforming to the "faas.document.name" semantic conventions. It represents the document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. +func FaaSDocumentName(val string) attribute.KeyValue { + return FaaSDocumentNameKey.String(val) +} + +// FaaSDocumentTime returns an attribute KeyValue conforming to the "faas.document.time" semantic conventions. It represents a string containing the time when the data was accessed in the [ISO 8601] format expressed in [UTC]. +// +// [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html +// [UTC]: https://www.w3.org/TR/NOTE-datetime +func FaaSDocumentTime(val string) attribute.KeyValue { + return FaaSDocumentTimeKey.String(val) +} + +// FaaSInstance returns an attribute KeyValue conforming to the "faas.instance" semantic conventions. It represents the execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. +func FaaSInstance(val string) attribute.KeyValue { + return FaaSInstanceKey.String(val) +} + +// FaaSInvocationID returns an attribute KeyValue conforming to the "faas.invocation_id" semantic conventions. It represents the invocation ID of the current function invocation. +func FaaSInvocationID(val string) attribute.KeyValue { + return FaaSInvocationIDKey.String(val) +} + +// FaaSInvokedName returns an attribute KeyValue conforming to the "faas.invoked_name" semantic conventions. It represents the name of the invoked function. +func FaaSInvokedName(val string) attribute.KeyValue { + return FaaSInvokedNameKey.String(val) +} + +// FaaSInvokedRegion returns an attribute KeyValue conforming to the "faas.invoked_region" semantic conventions. It represents the cloud region of the invoked function. +func FaaSInvokedRegion(val string) attribute.KeyValue { + return FaaSInvokedRegionKey.String(val) +} + +// FaaSMaxMemory returns an attribute KeyValue conforming to the "faas.max_memory" semantic conventions. It represents the amount of memory available to the serverless function converted to Bytes. +func FaaSMaxMemory(val int) attribute.KeyValue { + return FaaSMaxMemoryKey.Int(val) +} + +// FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic conventions. It represents the name of the single function that this runtime instance executes. +func FaaSName(val string) attribute.KeyValue { + return FaaSNameKey.String(val) +} + +// FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic conventions. It represents a string containing the function invocation time in the [ISO 8601] format expressed in [UTC]. +// +// [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html +// [UTC]: https://www.w3.org/TR/NOTE-datetime +func FaaSTime(val string) attribute.KeyValue { + return FaaSTimeKey.String(val) +} + +// FaaSVersion returns an attribute KeyValue conforming to the "faas.version" semantic conventions. It represents the immutable version of the function being executed. +func FaaSVersion(val string) attribute.KeyValue { + return FaaSVersionKey.String(val) +} + +// Enum values for faas.document.operation +var ( + // When a new object is created. + // Stability: experimental + FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert") + // When an object is modified. + // Stability: experimental + FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit") + // When an object is deleted. + // Stability: experimental + FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete") +) + +// Enum values for faas.invoked_provider +var ( + // Alibaba Cloud + // Stability: experimental + FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud") + // Amazon Web Services + // Stability: experimental + FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws") + // Microsoft Azure + // Stability: experimental + FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure") + // Google Cloud Platform + // Stability: experimental + FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp") + // Tencent Cloud + // Stability: experimental + FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud") +) + +// Enum values for faas.trigger +var ( + // A response to some data source operation such as a database or filesystem read/write + // Stability: experimental + FaaSTriggerDatasource = FaaSTriggerKey.String("datasource") + // To provide an answer to an inbound HTTP request + // Stability: experimental + FaaSTriggerHTTP = FaaSTriggerKey.String("http") + // A function is set to be executed when messages are sent to a messaging system + // Stability: experimental + FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub") + // A function is scheduled to be executed regularly + // Stability: experimental + FaaSTriggerTimer = FaaSTriggerKey.String("timer") + // If none of the others apply + // Stability: experimental + FaaSTriggerOther = FaaSTriggerKey.String("other") +) + +// Namespace: feature_flag +const ( + // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key" semantic conventions. It represents the unique identifier of the feature flag. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "logo-color" + FeatureFlagKeyKey = attribute.Key("feature_flag.key") + + // FeatureFlagProviderNameKey is the attribute Key conforming to the "feature_flag.provider_name" semantic conventions. It represents the name of the service provider that performs the flag evaluation. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Flag Manager" + FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name") + + // FeatureFlagVariantKey is the attribute Key conforming to the "feature_flag.variant" semantic conventions. It represents the sHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "red", "true", "on" + // Note: A semantic identifier, commonly referred to as a variant, provides a means + // for referring to a value without including the value itself. This can + // provide additional context for understanding the meaning behind a value. + // For example, the variant `red` maybe be used for the value `#c05543`. + // + // A stringified version of the value can be used in situations where a + // semantic identifier is unavailable. String representation of the value + // should be determined by the implementer. + FeatureFlagVariantKey = attribute.Key("feature_flag.variant") +) + +// FeatureFlagKey returns an attribute KeyValue conforming to the "feature_flag.key" semantic conventions. It represents the unique identifier of the feature flag. +func FeatureFlagKey(val string) attribute.KeyValue { + return FeatureFlagKeyKey.String(val) +} + +// FeatureFlagProviderName returns an attribute KeyValue conforming to the "feature_flag.provider_name" semantic conventions. It represents the name of the service provider that performs the flag evaluation. +func FeatureFlagProviderName(val string) attribute.KeyValue { + return FeatureFlagProviderNameKey.String(val) +} + +// FeatureFlagVariant returns an attribute KeyValue conforming to the "feature_flag.variant" semantic conventions. It represents the sHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. +func FeatureFlagVariant(val string) attribute.KeyValue { + return FeatureFlagVariantKey.String(val) +} + +// Namespace: file +const ( + // FileAccessedKey is the attribute Key conforming to the "file.accessed" semantic conventions. It represents the time when the file was last accessed, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T12:00:00Z" + // Note: This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + FileAccessedKey = attribute.Key("file.accessed") + + // FileAttributesKey is the attribute Key conforming to the "file.attributes" semantic conventions. It represents the array of file attributes. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "readonly", "hidden" + // Note: Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this attribute: `archive`, `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, `write`. + FileAttributesKey = attribute.Key("file.attributes") + + // FileChangedKey is the attribute Key conforming to the "file.changed" semantic conventions. It represents the time when the file attributes or metadata was last changed, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T12:00:00Z" + // Note: `file.changed` captures the time when any of the file's properties or attributes (including the content) are changed, while `file.modified` captures the timestamp when the file content is modified. + FileChangedKey = attribute.Key("file.changed") + + // FileCreatedKey is the attribute Key conforming to the "file.created" semantic conventions. It represents the time when the file was created, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T12:00:00Z" + // Note: This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + FileCreatedKey = attribute.Key("file.created") + + // FileDirectoryKey is the attribute Key conforming to the "file.directory" semantic conventions. It represents the directory where the file is located. It should include the drive letter, when appropriate. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/home/user", "C:\Program Files\MyApp" + FileDirectoryKey = attribute.Key("file.directory") + + // FileExtensionKey is the attribute Key conforming to the "file.extension" semantic conventions. It represents the file extension, excluding the leading dot. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "png", "gz" + // Note: When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). + FileExtensionKey = attribute.Key("file.extension") + + // FileForkNameKey is the attribute Key conforming to the "file.fork_name" semantic conventions. It represents the name of the fork. A fork is additional data associated with a filesystem object. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Zone.Identifer" + // Note: On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at least one fork for the data portion, and additional forks may exist. + // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet. An ADS is typically of the form: C:\path\to\filename.extension:some_fork_name, and some_fork_name is the value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension` should populate `file.extension`. The full path, `file.path`, will include the fork name. + FileForkNameKey = attribute.Key("file.fork_name") + + // FileGroupIDKey is the attribute Key conforming to the "file.group.id" semantic conventions. It represents the primary Group ID (GID) of the file. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1000" + FileGroupIDKey = attribute.Key("file.group.id") + + // FileGroupNameKey is the attribute Key conforming to the "file.group.name" semantic conventions. It represents the primary group name of the file. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "users" + FileGroupNameKey = attribute.Key("file.group.name") + + // FileInodeKey is the attribute Key conforming to the "file.inode" semantic conventions. It represents the inode representing the file in the filesystem. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "256383" + FileInodeKey = attribute.Key("file.inode") + + // FileModeKey is the attribute Key conforming to the "file.mode" semantic conventions. It represents the mode of the file in octal representation. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0640" + FileModeKey = attribute.Key("file.mode") + + // FileModifiedKey is the attribute Key conforming to the "file.modified" semantic conventions. It represents the time when the file content was last modified, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T12:00:00Z" + FileModifiedKey = attribute.Key("file.modified") + + // FileNameKey is the attribute Key conforming to the "file.name" semantic conventions. It represents the name of the file including the extension, without the directory. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "example.png" + FileNameKey = attribute.Key("file.name") + + // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id" semantic conventions. It represents the user ID (UID) or security identifier (SID) of the file owner. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1000" + FileOwnerIDKey = attribute.Key("file.owner.id") + + // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name" semantic conventions. It represents the username of the file owner. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "root" + FileOwnerNameKey = attribute.Key("file.owner.name") + + // FilePathKey is the attribute Key conforming to the "file.path" semantic conventions. It represents the full path to the file, including the file name. It should include the drive letter, when appropriate. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe" + FilePathKey = attribute.Key("file.path") + + // FileSizeKey is the attribute Key conforming to the "file.size" semantic conventions. It represents the file size in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + FileSizeKey = attribute.Key("file.size") + + // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the "file.symbolic_link.target_path" semantic conventions. It represents the path to the target of a symbolic link. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/usr/bin/python3" + // Note: This attribute is only applicable to symbolic links. + FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path") +) + +// FileAccessed returns an attribute KeyValue conforming to the "file.accessed" semantic conventions. It represents the time when the file was last accessed, in ISO 8601 format. +func FileAccessed(val string) attribute.KeyValue { + return FileAccessedKey.String(val) +} + +// FileAttributes returns an attribute KeyValue conforming to the "file.attributes" semantic conventions. It represents the array of file attributes. +func FileAttributes(val ...string) attribute.KeyValue { + return FileAttributesKey.StringSlice(val) +} + +// FileChanged returns an attribute KeyValue conforming to the "file.changed" semantic conventions. It represents the time when the file attributes or metadata was last changed, in ISO 8601 format. +func FileChanged(val string) attribute.KeyValue { + return FileChangedKey.String(val) +} + +// FileCreated returns an attribute KeyValue conforming to the "file.created" semantic conventions. It represents the time when the file was created, in ISO 8601 format. +func FileCreated(val string) attribute.KeyValue { + return FileCreatedKey.String(val) +} + +// FileDirectory returns an attribute KeyValue conforming to the "file.directory" semantic conventions. It represents the directory where the file is located. It should include the drive letter, when appropriate. +func FileDirectory(val string) attribute.KeyValue { + return FileDirectoryKey.String(val) +} + +// FileExtension returns an attribute KeyValue conforming to the "file.extension" semantic conventions. It represents the file extension, excluding the leading dot. +func FileExtension(val string) attribute.KeyValue { + return FileExtensionKey.String(val) +} + +// FileForkName returns an attribute KeyValue conforming to the "file.fork_name" semantic conventions. It represents the name of the fork. A fork is additional data associated with a filesystem object. +func FileForkName(val string) attribute.KeyValue { + return FileForkNameKey.String(val) +} + +// FileGroupID returns an attribute KeyValue conforming to the "file.group.id" semantic conventions. It represents the primary Group ID (GID) of the file. +func FileGroupID(val string) attribute.KeyValue { + return FileGroupIDKey.String(val) +} + +// FileGroupName returns an attribute KeyValue conforming to the "file.group.name" semantic conventions. It represents the primary group name of the file. +func FileGroupName(val string) attribute.KeyValue { + return FileGroupNameKey.String(val) +} + +// FileInode returns an attribute KeyValue conforming to the "file.inode" semantic conventions. It represents the inode representing the file in the filesystem. +func FileInode(val string) attribute.KeyValue { + return FileInodeKey.String(val) +} + +// FileMode returns an attribute KeyValue conforming to the "file.mode" semantic conventions. It represents the mode of the file in octal representation. +func FileMode(val string) attribute.KeyValue { + return FileModeKey.String(val) +} + +// FileModified returns an attribute KeyValue conforming to the "file.modified" semantic conventions. It represents the time when the file content was last modified, in ISO 8601 format. +func FileModified(val string) attribute.KeyValue { + return FileModifiedKey.String(val) +} + +// FileName returns an attribute KeyValue conforming to the "file.name" semantic conventions. It represents the name of the file including the extension, without the directory. +func FileName(val string) attribute.KeyValue { + return FileNameKey.String(val) +} + +// FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id" semantic conventions. It represents the user ID (UID) or security identifier (SID) of the file owner. +func FileOwnerID(val string) attribute.KeyValue { + return FileOwnerIDKey.String(val) +} + +// FileOwnerName returns an attribute KeyValue conforming to the "file.owner.name" semantic conventions. It represents the username of the file owner. +func FileOwnerName(val string) attribute.KeyValue { + return FileOwnerNameKey.String(val) +} + +// FilePath returns an attribute KeyValue conforming to the "file.path" semantic conventions. It represents the full path to the file, including the file name. It should include the drive letter, when appropriate. +func FilePath(val string) attribute.KeyValue { + return FilePathKey.String(val) +} + +// FileSize returns an attribute KeyValue conforming to the "file.size" semantic conventions. It represents the file size in bytes. +func FileSize(val int) attribute.KeyValue { + return FileSizeKey.Int(val) +} + +// FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the "file.symbolic_link.target_path" semantic conventions. It represents the path to the target of a symbolic link. +func FileSymbolicLinkTargetPath(val string) attribute.KeyValue { + return FileSymbolicLinkTargetPathKey.String(val) +} + +// Namespace: gcp +const ( + // GCPClientServiceKey is the attribute Key conforming to the "gcp.client.service" semantic conventions. It represents the identifies the Google Cloud service for which the official client library is intended. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "appengine", "run", "firestore", "alloydb", "spanner" + // Note: Intended to be a stable identifier for Google Cloud client libraries that is uniform across implementation languages. The value should be derived from the canonical service domain for the service; for example, 'foo.googleapis.com' should result in a value of 'foo'. + GCPClientServiceKey = attribute.Key("gcp.client.service") + + // GCPCloudRunJobExecutionKey is the attribute Key conforming to the "gcp.cloud_run.job.execution" semantic conventions. It represents the name of the Cloud Run [execution] being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`] environment variable. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "job-name-xxxx", "sample-job-mdw84" + // + // [execution]: https://cloud.google.com/run/docs/managing/job-executions + // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars + GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution") + + // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the "gcp.cloud_run.job.task_index" semantic conventions. It represents the index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] environment variable. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0, 1 + // + // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars + GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index") + + // GCPGceInstanceHostnameKey is the attribute Key conforming to the "gcp.gce.instance.hostname" semantic conventions. It represents the hostname of a GCE instance. This is the full value of the default or [custom hostname]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-host1234.example.com", "sample-vm.us-west1-b.c.my-project.internal" + // + // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm + GCPGceInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname") + + // GCPGceInstanceNameKey is the attribute Key conforming to the "gcp.gce.instance.name" semantic conventions. It represents the instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "instance-1", "my-vm-name" + // + // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names + GCPGceInstanceNameKey = attribute.Key("gcp.gce.instance.name") +) + +// GCPClientService returns an attribute KeyValue conforming to the "gcp.client.service" semantic conventions. It represents the identifies the Google Cloud service for which the official client library is intended. +func GCPClientService(val string) attribute.KeyValue { + return GCPClientServiceKey.String(val) +} + +// GCPCloudRunJobExecution returns an attribute KeyValue conforming to the "gcp.cloud_run.job.execution" semantic conventions. It represents the name of the Cloud Run [execution] being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`] environment variable. +// +// [execution]: https://cloud.google.com/run/docs/managing/job-executions +// [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars +func GCPCloudRunJobExecution(val string) attribute.KeyValue { + return GCPCloudRunJobExecutionKey.String(val) +} + +// GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the "gcp.cloud_run.job.task_index" semantic conventions. It represents the index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] environment variable. +// +// [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars +func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue { + return GCPCloudRunJobTaskIndexKey.Int(val) +} + +// GCPGceInstanceHostname returns an attribute KeyValue conforming to the "gcp.gce.instance.hostname" semantic conventions. It represents the hostname of a GCE instance. This is the full value of the default or [custom hostname]. +// +// [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm +func GCPGceInstanceHostname(val string) attribute.KeyValue { + return GCPGceInstanceHostnameKey.String(val) +} + +// GCPGceInstanceName returns an attribute KeyValue conforming to the "gcp.gce.instance.name" semantic conventions. It represents the instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name]. +// +// [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names +func GCPGceInstanceName(val string) attribute.KeyValue { + return GCPGceInstanceNameKey.String(val) +} + +// Namespace: gen_ai +const ( + // GenAIOpenaiRequestResponseFormatKey is the attribute Key conforming to the "gen_ai.openai.request.response_format" semantic conventions. It represents the response format that is requested. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "json" + GenAIOpenaiRequestResponseFormatKey = attribute.Key("gen_ai.openai.request.response_format") + + // GenAIOpenaiRequestSeedKey is the attribute Key conforming to the "gen_ai.openai.request.seed" semantic conventions. It represents the requests with same seed value more likely to return same result. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 100 + GenAIOpenaiRequestSeedKey = attribute.Key("gen_ai.openai.request.seed") + + // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the "gen_ai.openai.request.service_tier" semantic conventions. It represents the service tier requested. May be a specific tier, detault, or auto. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "auto", "default" + GenAIOpenaiRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier") + + // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the "gen_ai.openai.response.service_tier" semantic conventions. It represents the service tier used for the response. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "scale", "detault" + GenAIOpenaiResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier") + + // GenAIOperationNameKey is the attribute Key conforming to the "gen_ai.operation.name" semantic conventions. It represents the name of the operation being performed. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: If one of the predefined values applies, but specific system uses a different name it's RECOMMENDED to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries SHOULD use applicable predefined value. + GenAIOperationNameKey = attribute.Key("gen_ai.operation.name") + + // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the "gen_ai.request.frequency_penalty" semantic conventions. It represents the frequency penalty setting for the GenAI request. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0.1 + GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty") + + // GenAIRequestMaxTokensKey is the attribute Key conforming to the "gen_ai.request.max_tokens" semantic conventions. It represents the maximum number of tokens the model generates for a request. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 100 + GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens") + + // GenAIRequestModelKey is the attribute Key conforming to the "gen_ai.request.model" semantic conventions. It represents the name of the GenAI model a request is being made to. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: gpt-4 + GenAIRequestModelKey = attribute.Key("gen_ai.request.model") + + // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the "gen_ai.request.presence_penalty" semantic conventions. It represents the presence penalty setting for the GenAI request. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0.1 + GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty") + + // GenAIRequestStopSequencesKey is the attribute Key conforming to the "gen_ai.request.stop_sequences" semantic conventions. It represents the list of sequences that the model will use to stop generating further tokens. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "forest", "lived" + GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences") + + // GenAIRequestTemperatureKey is the attribute Key conforming to the "gen_ai.request.temperature" semantic conventions. It represents the temperature setting for the GenAI request. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0.0 + GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature") + + // GenAIRequestTopKKey is the attribute Key conforming to the "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling setting for the GenAI request. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1.0 + GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k") + + // GenAIRequestTopPKey is the attribute Key conforming to the "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling setting for the GenAI request. + // + // Type: double + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1.0 + GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p") + + // GenAIResponseFinishReasonsKey is the attribute Key conforming to the "gen_ai.response.finish_reasons" semantic conventions. It represents the array of reasons the model stopped generating tokens, corresponding to each generation received. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "stop"], ["stop", "length" + GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons") + + // GenAIResponseIDKey is the attribute Key conforming to the "gen_ai.response.id" semantic conventions. It represents the unique identifier for the completion. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "chatcmpl-123" + GenAIResponseIDKey = attribute.Key("gen_ai.response.id") + + // GenAIResponseModelKey is the attribute Key conforming to the "gen_ai.response.model" semantic conventions. It represents the name of the model that generated the response. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "gpt-4-0613" + GenAIResponseModelKey = attribute.Key("gen_ai.response.model") + + // GenAISystemKey is the attribute Key conforming to the "gen_ai.system" semantic conventions. It represents the Generative AI product as identified by the client or server instrumentation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: openai + // Note: The `gen_ai.system` describes a family of GenAI models with specific model identified + // by `gen_ai.request.model` and `gen_ai.response.model` attributes. + // + // The actual GenAI product may differ from the one identified by the client. + // For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` + // is set to `openai` based on the instrumentation's best knowledge. + // + // For custom model, a custom friendly name SHOULD be used. + // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`. + GenAISystemKey = attribute.Key("gen_ai.system") + + // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type" semantic conventions. It represents the type of token being counted. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "input", "output" + GenAITokenTypeKey = attribute.Key("gen_ai.token.type") + + // GenAIUsageInputTokensKey is the attribute Key conforming to the "gen_ai.usage.input_tokens" semantic conventions. It represents the number of tokens used in the GenAI input (prompt). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 100 + GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens") + + // GenAIUsageOutputTokensKey is the attribute Key conforming to the "gen_ai.usage.output_tokens" semantic conventions. It represents the number of tokens used in the GenAI response (completion). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 180 + GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens") +) + +// GenAIOpenaiRequestSeed returns an attribute KeyValue conforming to the "gen_ai.openai.request.seed" semantic conventions. It represents the requests with same seed value more likely to return same result. +func GenAIOpenaiRequestSeed(val int) attribute.KeyValue { + return GenAIOpenaiRequestSeedKey.Int(val) +} + +// GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the "gen_ai.openai.response.service_tier" semantic conventions. It represents the service tier used for the response. +func GenAIOpenaiResponseServiceTier(val string) attribute.KeyValue { + return GenAIOpenaiResponseServiceTierKey.String(val) +} + +// GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the "gen_ai.request.frequency_penalty" semantic conventions. It represents the frequency penalty setting for the GenAI request. +func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue { + return GenAIRequestFrequencyPenaltyKey.Float64(val) +} + +// GenAIRequestMaxTokens returns an attribute KeyValue conforming to the "gen_ai.request.max_tokens" semantic conventions. It represents the maximum number of tokens the model generates for a request. +func GenAIRequestMaxTokens(val int) attribute.KeyValue { + return GenAIRequestMaxTokensKey.Int(val) +} + +// GenAIRequestModel returns an attribute KeyValue conforming to the "gen_ai.request.model" semantic conventions. It represents the name of the GenAI model a request is being made to. +func GenAIRequestModel(val string) attribute.KeyValue { + return GenAIRequestModelKey.String(val) +} + +// GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the "gen_ai.request.presence_penalty" semantic conventions. It represents the presence penalty setting for the GenAI request. +func GenAIRequestPresencePenalty(val float64) attribute.KeyValue { + return GenAIRequestPresencePenaltyKey.Float64(val) +} + +// GenAIRequestStopSequences returns an attribute KeyValue conforming to the "gen_ai.request.stop_sequences" semantic conventions. It represents the list of sequences that the model will use to stop generating further tokens. +func GenAIRequestStopSequences(val ...string) attribute.KeyValue { + return GenAIRequestStopSequencesKey.StringSlice(val) +} + +// GenAIRequestTemperature returns an attribute KeyValue conforming to the "gen_ai.request.temperature" semantic conventions. It represents the temperature setting for the GenAI request. +func GenAIRequestTemperature(val float64) attribute.KeyValue { + return GenAIRequestTemperatureKey.Float64(val) +} + +// GenAIRequestTopK returns an attribute KeyValue conforming to the "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling setting for the GenAI request. +func GenAIRequestTopK(val float64) attribute.KeyValue { + return GenAIRequestTopKKey.Float64(val) +} + +// GenAIRequestTopP returns an attribute KeyValue conforming to the "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling setting for the GenAI request. +func GenAIRequestTopP(val float64) attribute.KeyValue { + return GenAIRequestTopPKey.Float64(val) +} + +// GenAIResponseFinishReasons returns an attribute KeyValue conforming to the "gen_ai.response.finish_reasons" semantic conventions. It represents the array of reasons the model stopped generating tokens, corresponding to each generation received. +func GenAIResponseFinishReasons(val ...string) attribute.KeyValue { + return GenAIResponseFinishReasonsKey.StringSlice(val) +} + +// GenAIResponseID returns an attribute KeyValue conforming to the "gen_ai.response.id" semantic conventions. It represents the unique identifier for the completion. +func GenAIResponseID(val string) attribute.KeyValue { + return GenAIResponseIDKey.String(val) +} + +// GenAIResponseModel returns an attribute KeyValue conforming to the "gen_ai.response.model" semantic conventions. It represents the name of the model that generated the response. +func GenAIResponseModel(val string) attribute.KeyValue { + return GenAIResponseModelKey.String(val) +} + +// GenAIUsageInputTokens returns an attribute KeyValue conforming to the "gen_ai.usage.input_tokens" semantic conventions. It represents the number of tokens used in the GenAI input (prompt). +func GenAIUsageInputTokens(val int) attribute.KeyValue { + return GenAIUsageInputTokensKey.Int(val) +} + +// GenAIUsageOutputTokens returns an attribute KeyValue conforming to the "gen_ai.usage.output_tokens" semantic conventions. It represents the number of tokens used in the GenAI response (completion). +func GenAIUsageOutputTokens(val int) attribute.KeyValue { + return GenAIUsageOutputTokensKey.Int(val) +} + +// Enum values for gen_ai.openai.request.response_format +var ( + // Text response format + // Stability: experimental + GenAIOpenaiRequestResponseFormatText = GenAIOpenaiRequestResponseFormatKey.String("text") + // JSON object response format + // Stability: experimental + GenAIOpenaiRequestResponseFormatJSONObject = GenAIOpenaiRequestResponseFormatKey.String("json_object") + // JSON schema response format + // Stability: experimental + GenAIOpenaiRequestResponseFormatJSONSchema = GenAIOpenaiRequestResponseFormatKey.String("json_schema") +) + +// Enum values for gen_ai.openai.request.service_tier +var ( + // The system will utilize scale tier credits until they are exhausted. + // Stability: experimental + GenAIOpenaiRequestServiceTierAuto = GenAIOpenaiRequestServiceTierKey.String("auto") + // The system will utilize the default scale tier. + // Stability: experimental + GenAIOpenaiRequestServiceTierDefault = GenAIOpenaiRequestServiceTierKey.String("default") +) + +// Enum values for gen_ai.operation.name +var ( + // Chat completion operation such as [OpenAI Chat API] + // Stability: experimental + // + // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat + GenAIOperationNameChat = GenAIOperationNameKey.String("chat") + // Text completions operation such as [OpenAI Completions API (Legacy)] + // Stability: experimental + // + // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions + GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion") +) + +// Enum values for gen_ai.system +var ( + // OpenAI + // Stability: experimental + GenAISystemOpenai = GenAISystemKey.String("openai") + // Vertex AI + // Stability: experimental + GenAISystemVertexAI = GenAISystemKey.String("vertex_ai") + // Anthropic + // Stability: experimental + GenAISystemAnthropic = GenAISystemKey.String("anthropic") + // Cohere + // Stability: experimental + GenAISystemCohere = GenAISystemKey.String("cohere") +) + +// Enum values for gen_ai.token.type +var ( + // Input tokens (prompt, input, etc.) + // Stability: experimental + GenAITokenTypeInput = GenAITokenTypeKey.String("input") + // Output tokens (completion, response, etc.) + // Stability: experimental + GenAITokenTypeCompletion = GenAITokenTypeKey.String("output") +) + +// Namespace: go +const ( + // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type" semantic conventions. It represents the type of memory. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "other", "stack" + GoMemoryTypeKey = attribute.Key("go.memory.type") +) + +// Enum values for go.memory.type +var ( + // Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. + // Stability: experimental + GoMemoryTypeStack = GoMemoryTypeKey.String("stack") + // Memory used by the Go runtime, excluding other categories of memory usage described in this enumeration. + // Stability: experimental + GoMemoryTypeOther = GoMemoryTypeKey.String("other") +) + +// Namespace: graphql +const ( + // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document" semantic conventions. It represents the GraphQL document being executed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: query findBookById { bookById(id: ?) { name } } + // Note: The value may be sanitized to exclude sensitive information. + GraphqlDocumentKey = attribute.Key("graphql.document") + + // GraphqlOperationNameKey is the attribute Key conforming to the "graphql.operation.name" semantic conventions. It represents the name of the operation being executed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: findBookById + GraphqlOperationNameKey = attribute.Key("graphql.operation.name") + + // GraphqlOperationTypeKey is the attribute Key conforming to the "graphql.operation.type" semantic conventions. It represents the type of the operation being executed. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "query", "mutation", "subscription" + GraphqlOperationTypeKey = attribute.Key("graphql.operation.type") +) + +// GraphqlDocument returns an attribute KeyValue conforming to the "graphql.document" semantic conventions. It represents the GraphQL document being executed. +func GraphqlDocument(val string) attribute.KeyValue { + return GraphqlDocumentKey.String(val) +} + +// GraphqlOperationName returns an attribute KeyValue conforming to the "graphql.operation.name" semantic conventions. It represents the name of the operation being executed. +func GraphqlOperationName(val string) attribute.KeyValue { + return GraphqlOperationNameKey.String(val) +} + +// Enum values for graphql.operation.type +var ( + // GraphQL query + // Stability: experimental + GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query") + // GraphQL mutation + // Stability: experimental + GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation") + // GraphQL subscription + // Stability: experimental + GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription") +) + +// Namespace: heroku +const ( + // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id" semantic conventions. It represents the unique identifier for the application. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da" + HerokuAppIDKey = attribute.Key("heroku.app.id") + + // HerokuReleaseCommitKey is the attribute Key conforming to the "heroku.release.commit" semantic conventions. It represents the commit hash for the current release. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "e6134959463efd8966b20e75b913cafe3f5ec" + HerokuReleaseCommitKey = attribute.Key("heroku.release.commit") + + // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the "heroku.release.creation_timestamp" semantic conventions. It represents the time and date the release was created. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2022-10-23T18:00:42Z" + HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp") +) + +// HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id" semantic conventions. It represents the unique identifier for the application. +func HerokuAppID(val string) attribute.KeyValue { + return HerokuAppIDKey.String(val) +} + +// HerokuReleaseCommit returns an attribute KeyValue conforming to the "heroku.release.commit" semantic conventions. It represents the commit hash for the current release. +func HerokuReleaseCommit(val string) attribute.KeyValue { + return HerokuReleaseCommitKey.String(val) +} + +// HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the "heroku.release.creation_timestamp" semantic conventions. It represents the time and date the release was created. +func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue { + return HerokuReleaseCreationTimestampKey.String(val) +} + +// Namespace: host +const ( + // HostArchKey is the attribute Key conforming to the "host.arch" semantic conventions. It represents the CPU architecture the host system is running on. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + HostArchKey = attribute.Key("host.arch") + + // HostCPUCacheL2SizeKey is the attribute Key conforming to the "host.cpu.cache.l2.size" semantic conventions. It represents the amount of level 2 memory cache available to the processor (in Bytes). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 12288000 + HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size") + + // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family" semantic conventions. It represents the family or generation of the CPU. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "6", "PA-RISC 1.1e" + HostCPUFamilyKey = attribute.Key("host.cpu.family") + + // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id" semantic conventions. It represents the model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "6", "9000/778/B180L" + HostCPUModelIDKey = attribute.Key("host.cpu.model.id") + + // HostCPUModelNameKey is the attribute Key conforming to the "host.cpu.model.name" semantic conventions. It represents the model designation of the processor. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz" + HostCPUModelNameKey = attribute.Key("host.cpu.model.name") + + // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping" semantic conventions. It represents the stepping or core revisions. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1", "r1p1" + HostCPUSteppingKey = attribute.Key("host.cpu.stepping") + + // HostCPUVendorIDKey is the attribute Key conforming to the "host.cpu.vendor.id" semantic conventions. It represents the processor manufacturer identifier. A maximum 12-character string. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "GenuineIntel" + // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX registers. Writing these to memory in this order results in a 12-character string. + // + // [CPUID]: https://wiki.osdev.org/CPUID + HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id") + + // HostIDKey is the attribute Key conforming to the "host.id" semantic conventions. It represents the unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "fdbf79e8af94cb7f9e8df36789187052" + HostIDKey = attribute.Key("host.id") + + // HostImageIDKey is the attribute Key conforming to the "host.image.id" semantic conventions. It represents the vM image ID or host OS image ID. For Cloud, this value is from the provider. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "ami-07b06b442921831e5" + HostImageIDKey = attribute.Key("host.image.id") + + // HostImageNameKey is the attribute Key conforming to the "host.image.name" semantic conventions. It represents the name of the VM image or OS install the host was instantiated from. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905" + HostImageNameKey = attribute.Key("host.image.name") + + // HostImageVersionKey is the attribute Key conforming to the "host.image.version" semantic conventions. It represents the version string of the VM image or host OS as defined in [Version Attributes]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0.1" + // + // [Version Attributes]: /docs/resource/README.md#version-attributes + HostImageVersionKey = attribute.Key("host.image.version") + + // HostIPKey is the attribute Key conforming to the "host.ip" semantic conventions. It represents the available IP addresses of the host, excluding loopback interfaces. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e" + // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses MUST be specified in the [RFC 5952] format. + // + // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html + HostIPKey = attribute.Key("host.ip") + + // HostMacKey is the attribute Key conforming to the "host.mac" semantic conventions. It represents the available MAC addresses of the host, excluding loopback interfaces. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F" + // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as hyphen-separated octets in uppercase hexadecimal form from most to least significant. + // + // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf + HostMacKey = attribute.Key("host.mac") + + // HostNameKey is the attribute Key conforming to the "host.name" semantic conventions. It represents the name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry-test" + HostNameKey = attribute.Key("host.name") + + // HostTypeKey is the attribute Key conforming to the "host.type" semantic conventions. It represents the type of host. For Cloud, this must be the machine type. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "n1-standard-1" + HostTypeKey = attribute.Key("host.type") +) + +// HostCPUCacheL2Size returns an attribute KeyValue conforming to the "host.cpu.cache.l2.size" semantic conventions. It represents the amount of level 2 memory cache available to the processor (in Bytes). +func HostCPUCacheL2Size(val int) attribute.KeyValue { + return HostCPUCacheL2SizeKey.Int(val) +} + +// HostCPUFamily returns an attribute KeyValue conforming to the "host.cpu.family" semantic conventions. It represents the family or generation of the CPU. +func HostCPUFamily(val string) attribute.KeyValue { + return HostCPUFamilyKey.String(val) +} + +// HostCPUModelID returns an attribute KeyValue conforming to the "host.cpu.model.id" semantic conventions. It represents the model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. +func HostCPUModelID(val string) attribute.KeyValue { + return HostCPUModelIDKey.String(val) +} + +// HostCPUModelName returns an attribute KeyValue conforming to the "host.cpu.model.name" semantic conventions. It represents the model designation of the processor. +func HostCPUModelName(val string) attribute.KeyValue { + return HostCPUModelNameKey.String(val) +} + +// HostCPUStepping returns an attribute KeyValue conforming to the "host.cpu.stepping" semantic conventions. It represents the stepping or core revisions. +func HostCPUStepping(val string) attribute.KeyValue { + return HostCPUSteppingKey.String(val) +} + +// HostCPUVendorID returns an attribute KeyValue conforming to the "host.cpu.vendor.id" semantic conventions. It represents the processor manufacturer identifier. A maximum 12-character string. +func HostCPUVendorID(val string) attribute.KeyValue { + return HostCPUVendorIDKey.String(val) +} + +// HostID returns an attribute KeyValue conforming to the "host.id" semantic conventions. It represents the unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. +func HostID(val string) attribute.KeyValue { + return HostIDKey.String(val) +} + +// HostImageID returns an attribute KeyValue conforming to the "host.image.id" semantic conventions. It represents the vM image ID or host OS image ID. For Cloud, this value is from the provider. +func HostImageID(val string) attribute.KeyValue { + return HostImageIDKey.String(val) +} + +// HostImageName returns an attribute KeyValue conforming to the "host.image.name" semantic conventions. It represents the name of the VM image or OS install the host was instantiated from. +func HostImageName(val string) attribute.KeyValue { + return HostImageNameKey.String(val) +} + +// HostImageVersion returns an attribute KeyValue conforming to the "host.image.version" semantic conventions. It represents the version string of the VM image or host OS as defined in [Version Attributes]. +// +// [Version Attributes]: /docs/resource/README.md#version-attributes +func HostImageVersion(val string) attribute.KeyValue { + return HostImageVersionKey.String(val) +} + +// HostIP returns an attribute KeyValue conforming to the "host.ip" semantic conventions. It represents the available IP addresses of the host, excluding loopback interfaces. +func HostIP(val ...string) attribute.KeyValue { + return HostIPKey.StringSlice(val) +} + +// HostMac returns an attribute KeyValue conforming to the "host.mac" semantic conventions. It represents the available MAC addresses of the host, excluding loopback interfaces. +func HostMac(val ...string) attribute.KeyValue { + return HostMacKey.StringSlice(val) +} + +// HostName returns an attribute KeyValue conforming to the "host.name" semantic conventions. It represents the name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. +func HostName(val string) attribute.KeyValue { + return HostNameKey.String(val) +} + +// HostType returns an attribute KeyValue conforming to the "host.type" semantic conventions. It represents the type of host. For Cloud, this must be the machine type. +func HostType(val string) attribute.KeyValue { + return HostTypeKey.String(val) +} + +// Enum values for host.arch +var ( + // AMD64 + // Stability: experimental + HostArchAMD64 = HostArchKey.String("amd64") + // ARM32 + // Stability: experimental + HostArchARM32 = HostArchKey.String("arm32") + // ARM64 + // Stability: experimental + HostArchARM64 = HostArchKey.String("arm64") + // Itanium + // Stability: experimental + HostArchIA64 = HostArchKey.String("ia64") + // 32-bit PowerPC + // Stability: experimental + HostArchPPC32 = HostArchKey.String("ppc32") + // 64-bit PowerPC + // Stability: experimental + HostArchPPC64 = HostArchKey.String("ppc64") + // IBM z/Architecture + // Stability: experimental + HostArchS390x = HostArchKey.String("s390x") + // 32-bit x86 + // Stability: experimental + HostArchX86 = HostArchKey.String("x86") +) + +// Namespace: http +const ( + // HTTPConnectionStateKey is the attribute Key conforming to the "http.connection.state" semantic conventions. It represents the state of the HTTP connection in the HTTP connection pool. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "active", "idle" + HTTPConnectionStateKey = attribute.Key("http.connection.state") + + // HTTPRequestBodySizeKey is the attribute Key conforming to the "http.request.body.size" semantic conventions. It represents the size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length + HTTPRequestBodySizeKey = attribute.Key("http.request.body.size") + + // HTTPRequestMethodKey is the attribute Key conforming to the "http.request.method" semantic conventions. It represents the hTTP request method. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "GET", "POST", "HEAD" + // Note: HTTP request method value SHOULD be "known" to the instrumentation. + // By default, this convention defines "known" methods as the ones listed in [RFC9110] + // and the PATCH method defined in [RFC5789]. + // + // If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. + // + // If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override + // the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named + // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods + // (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). + // + // HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. + // Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. + // Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value. + // + // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods + // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html + HTTPRequestMethodKey = attribute.Key("http.request.method") + + // HTTPRequestMethodOriginalKey is the attribute Key conforming to the "http.request.method_original" semantic conventions. It represents the original HTTP method sent by the client in the request line. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "GeT", "ACL", "foo" + HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original") + + // HTTPRequestResendCountKey is the attribute Key conforming to the "http.request.resend_count" semantic conventions. It represents the ordinal number of request resending attempt (for any reason, including redirects). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Note: The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). + HTTPRequestResendCountKey = attribute.Key("http.request.resend_count") + + // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size" semantic conventions. It represents the total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + HTTPRequestSizeKey = attribute.Key("http.request.size") + + // HTTPResponseBodySizeKey is the attribute Key conforming to the "http.response.body.size" semantic conventions. It represents the size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length + HTTPResponseBodySizeKey = attribute.Key("http.response.body.size") + + // HTTPResponseSizeKey is the attribute Key conforming to the "http.response.size" semantic conventions. It represents the total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + HTTPResponseSizeKey = attribute.Key("http.response.size") + + // HTTPResponseStatusCodeKey is the attribute Key conforming to the "http.response.status_code" semantic conventions. It represents the [HTTP response status code]. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: 200 + // + // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 + HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code") + + // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic conventions. It represents the matched route, that is, the path template in the format used by the respective server framework. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "/users/:userID?", "{controller}/{action}/{id?}" + // Note: MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. + // SHOULD include the [application root] if there is one. + // + // [application root]: /docs/http/http-spans.md#http-server-definitions + HTTPRouteKey = attribute.Key("http.route") +) + +// HTTPRequestBodySize returns an attribute KeyValue conforming to the "http.request.body.size" semantic conventions. It represents the size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. +// +// [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length +func HTTPRequestBodySize(val int) attribute.KeyValue { + return HTTPRequestBodySizeKey.Int(val) +} + +// HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the "http.request.method_original" semantic conventions. It represents the original HTTP method sent by the client in the request line. +func HTTPRequestMethodOriginal(val string) attribute.KeyValue { + return HTTPRequestMethodOriginalKey.String(val) +} + +// HTTPRequestResendCount returns an attribute KeyValue conforming to the "http.request.resend_count" semantic conventions. It represents the ordinal number of request resending attempt (for any reason, including redirects). +func HTTPRequestResendCount(val int) attribute.KeyValue { + return HTTPRequestResendCountKey.Int(val) +} + +// HTTPRequestSize returns an attribute KeyValue conforming to the "http.request.size" semantic conventions. It represents the total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. +func HTTPRequestSize(val int) attribute.KeyValue { + return HTTPRequestSizeKey.Int(val) +} + +// HTTPResponseBodySize returns an attribute KeyValue conforming to the "http.response.body.size" semantic conventions. It represents the size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. +// +// [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length +func HTTPResponseBodySize(val int) attribute.KeyValue { + return HTTPResponseBodySizeKey.Int(val) +} + +// HTTPResponseSize returns an attribute KeyValue conforming to the "http.response.size" semantic conventions. It represents the total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. +func HTTPResponseSize(val int) attribute.KeyValue { + return HTTPResponseSizeKey.Int(val) +} + +// HTTPResponseStatusCode returns an attribute KeyValue conforming to the "http.response.status_code" semantic conventions. It represents the [HTTP response status code]. +// +// [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 +func HTTPResponseStatusCode(val int) attribute.KeyValue { + return HTTPResponseStatusCodeKey.Int(val) +} + +// HTTPRoute returns an attribute KeyValue conforming to the "http.route" semantic conventions. It represents the matched route, that is, the path template in the format used by the respective server framework. +func HTTPRoute(val string) attribute.KeyValue { + return HTTPRouteKey.String(val) +} + +// Enum values for http.connection.state +var ( + // active state. + // Stability: experimental + HTTPConnectionStateActive = HTTPConnectionStateKey.String("active") + // idle state. + // Stability: experimental + HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle") +) + +// Enum values for http.request.method +var ( + // CONNECT method. + // Stability: stable + HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT") + // DELETE method. + // Stability: stable + HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE") + // GET method. + // Stability: stable + HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET") + // HEAD method. + // Stability: stable + HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD") + // OPTIONS method. + // Stability: stable + HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS") + // PATCH method. + // Stability: stable + HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH") + // POST method. + // Stability: stable + HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST") + // PUT method. + // Stability: stable + HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT") + // TRACE method. + // Stability: stable + HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE") + // Any HTTP method that the instrumentation has no prior knowledge of. + // Stability: stable + HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER") +) + +// Namespace: hw +const ( + // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions. It represents an identifier for the hardware component, unique within the monitored host. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "win32battery_battery_testsysa33_1" + HwIDKey = attribute.Key("hw.id") + + // HwNameKey is the attribute Key conforming to the "hw.name" semantic conventions. It represents an easily-recognizable name for the hardware component. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "eth0" + HwNameKey = attribute.Key("hw.name") + + // HwParentKey is the attribute Key conforming to the "hw.parent" semantic conventions. It represents the unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "dellStorage_perc_0" + HwParentKey = attribute.Key("hw.parent") + + // HwStateKey is the attribute Key conforming to the "hw.state" semantic conventions. It represents the current state of the component. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + HwStateKey = attribute.Key("hw.state") + + // HwTypeKey is the attribute Key conforming to the "hw.type" semantic conventions. It represents the type of the component. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: Describes the category of the hardware component for which `hw.state` is being reported. For example, `hw.type=temperature` along with `hw.state=degraded` would indicate that the temperature of the hardware component has been reported as `degraded`. + HwTypeKey = attribute.Key("hw.type") +) + +// HwID returns an attribute KeyValue conforming to the "hw.id" semantic conventions. It represents an identifier for the hardware component, unique within the monitored host. +func HwID(val string) attribute.KeyValue { + return HwIDKey.String(val) +} + +// HwName returns an attribute KeyValue conforming to the "hw.name" semantic conventions. It represents an easily-recognizable name for the hardware component. +func HwName(val string) attribute.KeyValue { + return HwNameKey.String(val) +} + +// HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic conventions. It represents the unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller). +func HwParent(val string) attribute.KeyValue { + return HwParentKey.String(val) +} + +// Enum values for hw.state +var ( + // Ok + // Stability: experimental + HwStateOk = HwStateKey.String("ok") + // Degraded + // Stability: experimental + HwStateDegraded = HwStateKey.String("degraded") + // Failed + // Stability: experimental + HwStateFailed = HwStateKey.String("failed") +) + +// Enum values for hw.type +var ( + // Battery + // Stability: experimental + HwTypeBattery = HwTypeKey.String("battery") + // CPU + // Stability: experimental + HwTypeCPU = HwTypeKey.String("cpu") + // Disk controller + // Stability: experimental + HwTypeDiskController = HwTypeKey.String("disk_controller") + // Enclosure + // Stability: experimental + HwTypeEnclosure = HwTypeKey.String("enclosure") + // Fan + // Stability: experimental + HwTypeFan = HwTypeKey.String("fan") + // GPU + // Stability: experimental + HwTypeGpu = HwTypeKey.String("gpu") + // Logical disk + // Stability: experimental + HwTypeLogicalDisk = HwTypeKey.String("logical_disk") + // Memory + // Stability: experimental + HwTypeMemory = HwTypeKey.String("memory") + // Network + // Stability: experimental + HwTypeNetwork = HwTypeKey.String("network") + // Physical disk + // Stability: experimental + HwTypePhysicalDisk = HwTypeKey.String("physical_disk") + // Power supply + // Stability: experimental + HwTypePowerSupply = HwTypeKey.String("power_supply") + // Tape drive + // Stability: experimental + HwTypeTapeDrive = HwTypeKey.String("tape_drive") + // Temperature + // Stability: experimental + HwTypeTemperature = HwTypeKey.String("temperature") + // Voltage + // Stability: experimental + HwTypeVoltage = HwTypeKey.String("voltage") +) + +// Namespace: jvm +const ( + // JVMBufferPoolNameKey is the attribute Key conforming to the "jvm.buffer.pool.name" semantic conventions. It represents the name of the buffer pool. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "mapped", "direct" + // Note: Pool names are generally obtained via [BufferPoolMXBean#getName()]. + // + // [BufferPoolMXBean#getName()]: https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName() + JVMBufferPoolNameKey = attribute.Key("jvm.buffer.pool.name") + + // JVMGCActionKey is the attribute Key conforming to the "jvm.gc.action" semantic conventions. It represents the name of the garbage collector action. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "end of minor GC", "end of major GC" + // Note: Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()]. + // + // [GarbageCollectionNotificationInfo#getGcAction()]: https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction() + JVMGCActionKey = attribute.Key("jvm.gc.action") + + // JVMGCNameKey is the attribute Key conforming to the "jvm.gc.name" semantic conventions. It represents the name of the garbage collector. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "G1 Young Generation", "G1 Old Generation" + // Note: Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()]. + // + // [GarbageCollectionNotificationInfo#getGcName()]: https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName() + JVMGCNameKey = attribute.Key("jvm.gc.name") + + // JVMMemoryPoolNameKey is the attribute Key conforming to the "jvm.memory.pool.name" semantic conventions. It represents the name of the memory pool. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "G1 Old Gen", "G1 Eden space", "G1 Survivor Space" + // Note: Pool names are generally obtained via [MemoryPoolMXBean#getName()]. + // + // [MemoryPoolMXBean#getName()]: https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName() + JVMMemoryPoolNameKey = attribute.Key("jvm.memory.pool.name") + + // JVMMemoryTypeKey is the attribute Key conforming to the "jvm.memory.type" semantic conventions. It represents the type of memory. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "heap", "non_heap" + JVMMemoryTypeKey = attribute.Key("jvm.memory.type") + + // JVMThreadDaemonKey is the attribute Key conforming to the "jvm.thread.daemon" semantic conventions. It represents the whether the thread is daemon or not. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: + JVMThreadDaemonKey = attribute.Key("jvm.thread.daemon") + + // JVMThreadStateKey is the attribute Key conforming to the "jvm.thread.state" semantic conventions. It represents the state of the thread. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "runnable", "blocked" + JVMThreadStateKey = attribute.Key("jvm.thread.state") +) + +// JVMBufferPoolName returns an attribute KeyValue conforming to the "jvm.buffer.pool.name" semantic conventions. It represents the name of the buffer pool. +func JVMBufferPoolName(val string) attribute.KeyValue { + return JVMBufferPoolNameKey.String(val) +} + +// JVMGCAction returns an attribute KeyValue conforming to the "jvm.gc.action" semantic conventions. It represents the name of the garbage collector action. +func JVMGCAction(val string) attribute.KeyValue { + return JVMGCActionKey.String(val) +} + +// JVMGCName returns an attribute KeyValue conforming to the "jvm.gc.name" semantic conventions. It represents the name of the garbage collector. +func JVMGCName(val string) attribute.KeyValue { + return JVMGCNameKey.String(val) +} + +// JVMMemoryPoolName returns an attribute KeyValue conforming to the "jvm.memory.pool.name" semantic conventions. It represents the name of the memory pool. +func JVMMemoryPoolName(val string) attribute.KeyValue { + return JVMMemoryPoolNameKey.String(val) +} + +// JVMThreadDaemon returns an attribute KeyValue conforming to the "jvm.thread.daemon" semantic conventions. It represents the whether the thread is daemon or not. +func JVMThreadDaemon(val bool) attribute.KeyValue { + return JVMThreadDaemonKey.Bool(val) +} + +// Enum values for jvm.memory.type +var ( + // Heap memory. + // Stability: stable + JVMMemoryTypeHeap = JVMMemoryTypeKey.String("heap") + // Non-heap memory + // Stability: stable + JVMMemoryTypeNonHeap = JVMMemoryTypeKey.String("non_heap") +) + +// Enum values for jvm.thread.state +var ( + // A thread that has not yet started is in this state. + // Stability: stable + JVMThreadStateNew = JVMThreadStateKey.String("new") + // A thread executing in the Java virtual machine is in this state. + // Stability: stable + JVMThreadStateRunnable = JVMThreadStateKey.String("runnable") + // A thread that is blocked waiting for a monitor lock is in this state. + // Stability: stable + JVMThreadStateBlocked = JVMThreadStateKey.String("blocked") + // A thread that is waiting indefinitely for another thread to perform a particular action is in this state. + // Stability: stable + JVMThreadStateWaiting = JVMThreadStateKey.String("waiting") + // A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state. + // Stability: stable + JVMThreadStateTimedWaiting = JVMThreadStateKey.String("timed_waiting") + // A thread that has exited is in this state. + // Stability: stable + JVMThreadStateTerminated = JVMThreadStateKey.String("terminated") +) + +// Namespace: k8s +const ( + // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name" semantic conventions. It represents the name of the cluster. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry-cluster" + K8SClusterNameKey = attribute.Key("k8s.cluster.name") + + // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" + // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever + // added, we will recommend collecting the `k8s.cluster.uid` through the + // official APIs. In the meantime, we are able to use the `uid` of the + // `kube-system` namespace as a proxy for cluster ID. Read on for the + // rationale. + // + // Every object created in a K8s cluster is assigned a distinct UID. The + // `kube-system` namespace is used by Kubernetes itself and will exist + // for the lifetime of the cluster. Using the `uid` of the `kube-system` + // namespace is a reasonable proxy for the K8s ClusterID as it will only + // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + // UUIDs as standardized by + // [ISO/IEC 9834-8 and ITU-T X.667]. + // Which states: + // + // > If generated according to one of the mechanisms defined in Rec. + // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + // > different from all other UUIDs generated before 3603 A.D., or is + // > extremely likely to be different (depending on the mechanism chosen). + // + // Therefore, UIDs between clusters should be extremely unlikely to + // conflict. + // + // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html + K8SClusterUIDKey = attribute.Key("k8s.cluster.uid") + + // K8SContainerNameKey is the attribute Key conforming to the "k8s.container.name" semantic conventions. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "redis" + K8SContainerNameKey = attribute.Key("k8s.container.name") + + // K8SContainerRestartCountKey is the attribute Key conforming to the "k8s.container.restart_count" semantic conventions. It represents the number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count") + + // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to the "k8s.container.status.last_terminated_reason" semantic conventions. It represents the last terminated reason of the Container. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Evicted", "Error" + K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason") + + // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name" semantic conventions. It represents the name of the CronJob. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SCronJobNameKey = attribute.Key("k8s.cronjob.name") + + // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid") + + // K8SDaemonSetNameKey is the attribute Key conforming to the "k8s.daemonset.name" semantic conventions. It represents the name of the DaemonSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name") + + // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid" semantic conventions. It represents the UID of the DaemonSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid") + + // K8SDeploymentNameKey is the attribute Key conforming to the "k8s.deployment.name" semantic conventions. It represents the name of the Deployment. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SDeploymentNameKey = attribute.Key("k8s.deployment.name") + + // K8SDeploymentUIDKey is the attribute Key conforming to the "k8s.deployment.uid" semantic conventions. It represents the UID of the Deployment. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid") + + // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic conventions. It represents the name of the Job. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SJobNameKey = attribute.Key("k8s.job.name") + + // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic conventions. It represents the UID of the Job. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SJobUIDKey = attribute.Key("k8s.job.uid") + + // K8SNamespaceNameKey is the attribute Key conforming to the "k8s.namespace.name" semantic conventions. It represents the name of the namespace that the pod is running in. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "default" + K8SNamespaceNameKey = attribute.Key("k8s.namespace.name") + + // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name" semantic conventions. It represents the name of the Node. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "node-1" + K8SNodeNameKey = attribute.Key("k8s.node.name") + + // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic conventions. It represents the UID of the Node. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2" + K8SNodeUIDKey = attribute.Key("k8s.node.uid") + + // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic conventions. It represents the name of the Pod. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry-pod-autoconf" + K8SPodNameKey = attribute.Key("k8s.pod.name") + + // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic conventions. It represents the UID of the Pod. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SPodUIDKey = attribute.Key("k8s.pod.uid") + + // K8SReplicaSetNameKey is the attribute Key conforming to the "k8s.replicaset.name" semantic conventions. It represents the name of the ReplicaSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name") + + // K8SReplicaSetUIDKey is the attribute Key conforming to the "k8s.replicaset.uid" semantic conventions. It represents the UID of the ReplicaSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid") + + // K8SStatefulSetNameKey is the attribute Key conforming to the "k8s.statefulset.name" semantic conventions. It represents the name of the StatefulSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "opentelemetry" + K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name") + + // K8SStatefulSetUIDKey is the attribute Key conforming to the "k8s.statefulset.uid" semantic conventions. It represents the UID of the StatefulSet. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" + K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid") + + // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name" semantic conventions. It represents the name of the K8s volume. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "volume0" + K8SVolumeNameKey = attribute.Key("k8s.volume.name") + + // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type" semantic conventions. It represents the type of the K8s volume. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "emptyDir", "persistentVolumeClaim" + K8SVolumeTypeKey = attribute.Key("k8s.volume.type") +) + +// K8SClusterName returns an attribute KeyValue conforming to the "k8s.cluster.name" semantic conventions. It represents the name of the cluster. +func K8SClusterName(val string) attribute.KeyValue { + return K8SClusterNameKey.String(val) +} + +// K8SClusterUID returns an attribute KeyValue conforming to the "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. +func K8SClusterUID(val string) attribute.KeyValue { + return K8SClusterUIDKey.String(val) +} + +// K8SContainerName returns an attribute KeyValue conforming to the "k8s.container.name" semantic conventions. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). +func K8SContainerName(val string) attribute.KeyValue { + return K8SContainerNameKey.String(val) +} + +// K8SContainerRestartCount returns an attribute KeyValue conforming to the "k8s.container.restart_count" semantic conventions. It represents the number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. +func K8SContainerRestartCount(val int) attribute.KeyValue { + return K8SContainerRestartCountKey.Int(val) +} + +// K8SContainerStatusLastTerminatedReason returns an attribute KeyValue conforming to the "k8s.container.status.last_terminated_reason" semantic conventions. It represents the last terminated reason of the Container. +func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue { + return K8SContainerStatusLastTerminatedReasonKey.String(val) +} + +// K8SCronJobName returns an attribute KeyValue conforming to the "k8s.cronjob.name" semantic conventions. It represents the name of the CronJob. +func K8SCronJobName(val string) attribute.KeyValue { + return K8SCronJobNameKey.String(val) +} + +// K8SCronJobUID returns an attribute KeyValue conforming to the "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. +func K8SCronJobUID(val string) attribute.KeyValue { + return K8SCronJobUIDKey.String(val) +} + +// K8SDaemonSetName returns an attribute KeyValue conforming to the "k8s.daemonset.name" semantic conventions. It represents the name of the DaemonSet. +func K8SDaemonSetName(val string) attribute.KeyValue { + return K8SDaemonSetNameKey.String(val) +} + +// K8SDaemonSetUID returns an attribute KeyValue conforming to the "k8s.daemonset.uid" semantic conventions. It represents the UID of the DaemonSet. +func K8SDaemonSetUID(val string) attribute.KeyValue { + return K8SDaemonSetUIDKey.String(val) +} + +// K8SDeploymentName returns an attribute KeyValue conforming to the "k8s.deployment.name" semantic conventions. It represents the name of the Deployment. +func K8SDeploymentName(val string) attribute.KeyValue { + return K8SDeploymentNameKey.String(val) +} + +// K8SDeploymentUID returns an attribute KeyValue conforming to the "k8s.deployment.uid" semantic conventions. It represents the UID of the Deployment. +func K8SDeploymentUID(val string) attribute.KeyValue { + return K8SDeploymentUIDKey.String(val) +} + +// K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name" semantic conventions. It represents the name of the Job. +func K8SJobName(val string) attribute.KeyValue { + return K8SJobNameKey.String(val) +} + +// K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid" semantic conventions. It represents the UID of the Job. +func K8SJobUID(val string) attribute.KeyValue { + return K8SJobUIDKey.String(val) +} + +// K8SNamespaceName returns an attribute KeyValue conforming to the "k8s.namespace.name" semantic conventions. It represents the name of the namespace that the pod is running in. +func K8SNamespaceName(val string) attribute.KeyValue { + return K8SNamespaceNameKey.String(val) +} + +// K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name" semantic conventions. It represents the name of the Node. +func K8SNodeName(val string) attribute.KeyValue { + return K8SNodeNameKey.String(val) +} + +// K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid" semantic conventions. It represents the UID of the Node. +func K8SNodeUID(val string) attribute.KeyValue { + return K8SNodeUIDKey.String(val) +} + +// K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name" semantic conventions. It represents the name of the Pod. +func K8SPodName(val string) attribute.KeyValue { + return K8SPodNameKey.String(val) +} + +// K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid" semantic conventions. It represents the UID of the Pod. +func K8SPodUID(val string) attribute.KeyValue { + return K8SPodUIDKey.String(val) +} + +// K8SReplicaSetName returns an attribute KeyValue conforming to the "k8s.replicaset.name" semantic conventions. It represents the name of the ReplicaSet. +func K8SReplicaSetName(val string) attribute.KeyValue { + return K8SReplicaSetNameKey.String(val) +} + +// K8SReplicaSetUID returns an attribute KeyValue conforming to the "k8s.replicaset.uid" semantic conventions. It represents the UID of the ReplicaSet. +func K8SReplicaSetUID(val string) attribute.KeyValue { + return K8SReplicaSetUIDKey.String(val) +} + +// K8SStatefulSetName returns an attribute KeyValue conforming to the "k8s.statefulset.name" semantic conventions. It represents the name of the StatefulSet. +func K8SStatefulSetName(val string) attribute.KeyValue { + return K8SStatefulSetNameKey.String(val) +} + +// K8SStatefulSetUID returns an attribute KeyValue conforming to the "k8s.statefulset.uid" semantic conventions. It represents the UID of the StatefulSet. +func K8SStatefulSetUID(val string) attribute.KeyValue { + return K8SStatefulSetUIDKey.String(val) +} + +// K8SVolumeName returns an attribute KeyValue conforming to the "k8s.volume.name" semantic conventions. It represents the name of the K8s volume. +func K8SVolumeName(val string) attribute.KeyValue { + return K8SVolumeNameKey.String(val) +} + +// Enum values for k8s.volume.type +var ( + // A [persistentVolumeClaim] volume + // Stability: experimental + // + // [persistentVolumeClaim]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim + K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim") + // A [configMap] volume + // Stability: experimental + // + // [configMap]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap + K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap") + // A [downwardAPI] volume + // Stability: experimental + // + // [downwardAPI]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi + K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI") + // An [emptyDir] volume + // Stability: experimental + // + // [emptyDir]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir + K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir") + // A [secret] volume + // Stability: experimental + // + // [secret]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#secret + K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret") + // A [local] volume + // Stability: experimental + // + // [local]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#local + K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local") +) + +// Namespace: linux +const ( + // LinuxMemorySlabStateKey is the attribute Key conforming to the "linux.memory.slab.state" semantic conventions. It represents the Linux Slab memory state. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "reclaimable", "unreclaimable" + LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state") +) + +// Enum values for linux.memory.slab.state +var ( + // reclaimable + // Stability: experimental + LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable") + // unreclaimable + // Stability: experimental + LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable") +) + +// Namespace: log +const ( + // LogFileNameKey is the attribute Key conforming to the "log.file.name" semantic conventions. It represents the basename of the file. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "audit.log" + LogFileNameKey = attribute.Key("log.file.name") + + // LogFileNameResolvedKey is the attribute Key conforming to the "log.file.name_resolved" semantic conventions. It represents the basename of the file, with symlinks resolved. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "uuid.log" + LogFileNameResolvedKey = attribute.Key("log.file.name_resolved") + + // LogFilePathKey is the attribute Key conforming to the "log.file.path" semantic conventions. It represents the full path to the file. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/var/log/mysql/audit.log" + LogFilePathKey = attribute.Key("log.file.path") + + // LogFilePathResolvedKey is the attribute Key conforming to the "log.file.path_resolved" semantic conventions. It represents the full path to the file, with symlinks resolved. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/var/lib/docker/uuid.log" + LogFilePathResolvedKey = attribute.Key("log.file.path_resolved") + + // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic conventions. It represents the stream associated with the log. See below for a list of well-known values. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + LogIostreamKey = attribute.Key("log.iostream") + + // LogRecordOriginalKey is the attribute Key conforming to the "log.record.original" semantic conventions. It represents the complete original Log Record. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - Something happened", "[INFO] 8/3/24 12:34:56 Something happened" + // Note: This value MAY be added when processing a Log Record which was originally transmitted as a string or equivalent data type AND the Body field of the Log Record does not contain the same value. (e.g. a syslog or a log record read from a file.) + LogRecordOriginalKey = attribute.Key("log.record.original") + + // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid" semantic conventions. It represents a unique identifier for the Log Record. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV" + // Note: If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records MUST have different values. + // The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)], but other identifiers (e.g. UUID) may be used as needed. + // + // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec + LogRecordUIDKey = attribute.Key("log.record.uid") +) + +// LogFileName returns an attribute KeyValue conforming to the "log.file.name" semantic conventions. It represents the basename of the file. +func LogFileName(val string) attribute.KeyValue { + return LogFileNameKey.String(val) +} + +// LogFileNameResolved returns an attribute KeyValue conforming to the "log.file.name_resolved" semantic conventions. It represents the basename of the file, with symlinks resolved. +func LogFileNameResolved(val string) attribute.KeyValue { + return LogFileNameResolvedKey.String(val) +} + +// LogFilePath returns an attribute KeyValue conforming to the "log.file.path" semantic conventions. It represents the full path to the file. +func LogFilePath(val string) attribute.KeyValue { + return LogFilePathKey.String(val) +} + +// LogFilePathResolved returns an attribute KeyValue conforming to the "log.file.path_resolved" semantic conventions. It represents the full path to the file, with symlinks resolved. +func LogFilePathResolved(val string) attribute.KeyValue { + return LogFilePathResolvedKey.String(val) +} + +// LogRecordOriginal returns an attribute KeyValue conforming to the "log.record.original" semantic conventions. It represents the complete original Log Record. +func LogRecordOriginal(val string) attribute.KeyValue { + return LogRecordOriginalKey.String(val) +} + +// LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid" semantic conventions. It represents a unique identifier for the Log Record. +func LogRecordUID(val string) attribute.KeyValue { + return LogRecordUIDKey.String(val) +} + +// Enum values for log.iostream +var ( + // Logs from stdout stream + // Stability: experimental + LogIostreamStdout = LogIostreamKey.String("stdout") + // Events from stderr stream + // Stability: experimental + LogIostreamStderr = LogIostreamKey.String("stderr") +) + +// Namespace: messaging +const ( + // MessagingBatchMessageCountKey is the attribute Key conforming to the "messaging.batch.message_count" semantic conventions. It represents the number of messages sent, received, or processed in the scope of the batching operation. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 0, 1, 2 + // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs. + MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count") + + // MessagingClientIDKey is the attribute Key conforming to the "messaging.client.id" semantic conventions. It represents a unique identifier for the client that consumes or produces a message. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "client-5", "myhost@8742@s8083jm" + MessagingClientIDKey = attribute.Key("messaging.client.id") + + // MessagingConsumerGroupNameKey is the attribute Key conforming to the "messaging.consumer.group.name" semantic conventions. It represents the name of the consumer group with which a consumer is associated. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-group", "indexer" + // Note: Semantic conventions for individual messaging systems SHOULD document whether `messaging.consumer.group.name` is applicable and what it means in the context of that system. + MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name") + + // MessagingDestinationAnonymousKey is the attribute Key conforming to the "messaging.destination.anonymous" semantic conventions. It represents a boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous") + + // MessagingDestinationNameKey is the attribute Key conforming to the "messaging.destination.name" semantic conventions. It represents the message destination name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "MyQueue", "MyTopic" + // Note: Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If + // the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker. + MessagingDestinationNameKey = attribute.Key("messaging.destination.name") + + // MessagingDestinationPartitionIDKey is the attribute Key conforming to the "messaging.destination.partition.id" semantic conventions. It represents the identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1 + MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id") + + // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to the "messaging.destination.subscription.name" semantic conventions. It represents the name of the destination subscription from which a message is consumed. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "subscription-a" + // Note: Semantic conventions for individual messaging systems SHOULD document whether `messaging.destination.subscription.name` is applicable and what it means in the context of that system. + MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name") + + // MessagingDestinationTemplateKey is the attribute Key conforming to the "messaging.destination.template" semantic conventions. It represents the low cardinality representation of the messaging destination name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/customers/{customerId}" + // Note: Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation. + MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template") + + // MessagingDestinationTemporaryKey is the attribute Key conforming to the "messaging.destination.temporary" semantic conventions. It represents a boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary") + + // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingEventhubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time") + + // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It represents the ack deadline in seconds set for the modify ack deadline request. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingGCPPubsubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline") + + // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the ack id for a given message. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: ack_id + MessagingGCPPubsubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id") + + // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. It represents the delivery attempt for a given message. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingGCPPubsubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt") + + // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It represents the ordering key for a given message. If the attribute is not present, the message does not have an ordering key. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: ordering_key + MessagingGCPPubsubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key") + + // MessagingKafkaMessageKeyKey is the attribute Key conforming to the "messaging.kafka.message.key" semantic conventions. It represents the message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: myKey + // Note: If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. + MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key") + + // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the "messaging.kafka.message.tombstone" semantic conventions. It represents a boolean that is true if the message is a tombstone. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone") + + // MessagingKafkaOffsetKey is the attribute Key conforming to the "messaging.kafka.offset" semantic conventions. It represents the offset of a record in the corresponding Kafka partition. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset") + + // MessagingMessageBodySizeKey is the attribute Key conforming to the "messaging.message.body.size" semantic conventions. It represents the size of the message body in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Note: This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed + // body size should be used. + MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size") + + // MessagingMessageConversationIDKey is the attribute Key conforming to the "messaging.message.conversation_id" semantic conventions. It represents the conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: MyConversationId + MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id") + + // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the "messaging.message.envelope.size" semantic conventions. It represents the size of the message body and metadata in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Note: This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed + // size should be used. + MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size") + + // MessagingMessageIDKey is the attribute Key conforming to the "messaging.message.id" semantic conventions. It represents a value used by the messaging system as an identifier for the message, represented as a string. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 452a7c7c7c7048c2f887f61572b18fc2 + MessagingMessageIDKey = attribute.Key("messaging.message.id") + + // MessagingOperationNameKey is the attribute Key conforming to the "messaging.operation.name" semantic conventions. It represents the system-specific name of the messaging operation. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "ack", "nack", "send" + MessagingOperationNameKey = attribute.Key("messaging.operation.name") + + // MessagingOperationTypeKey is the attribute Key conforming to the "messaging.operation.type" semantic conventions. It represents a string identifying the type of the messaging operation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: If a custom value is used, it MUST be of low cardinality. + MessagingOperationTypeKey = attribute.Key("messaging.operation.type") + + // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to the "messaging.rabbitmq.destination.routing_key" semantic conventions. It represents the rabbitMQ message routing key. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: myKey + MessagingRabbitmqDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key") + + // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents the rabbitMQ message delivery tag. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingRabbitmqMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag") + + // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the "messaging.rocketmq.consumption_model" semantic conventions. It represents the model of message consumption. This only applies to consumer spans. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model") + + // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to the "messaging.rocketmq.message.delay_time_level" semantic conventions. It represents the delay time level for delay message, which determines the message delay time. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingRocketmqMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level") + + // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. It represents the timestamp in milliseconds that the delay message is expected to be delivered to consumer. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingRocketmqMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp") + + // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the "messaging.rocketmq.message.group" semantic conventions. It represents the it is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: myMessageGroup + MessagingRocketmqMessageGroupKey = attribute.Key("messaging.rocketmq.message.group") + + // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the "messaging.rocketmq.message.keys" semantic conventions. It represents the key(s) of message, another way to mark message besides message id. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "keyA", "keyB" + MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys") + + // MessagingRocketmqMessageTagKey is the attribute Key conforming to the "messaging.rocketmq.message.tag" semantic conventions. It represents the secondary classifier of message besides topic. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: tagA + MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message.tag") + + // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the "messaging.rocketmq.message.type" semantic conventions. It represents the type of message. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message.type") + + // MessagingRocketmqNamespaceKey is the attribute Key conforming to the "messaging.rocketmq.namespace" semantic conventions. It represents the namespace of RocketMQ resources, resources in different namespaces are individual. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: myNamespace + MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace") + + // MessagingServicebusDispositionStatusKey is the attribute Key conforming to the "messaging.servicebus.disposition_status" semantic conventions. It represents the describes the [settlement type]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock + MessagingServicebusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status") + + // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to the "messaging.servicebus.message.delivery_count" semantic conventions. It represents the number of deliveries that have been attempted for this message. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingServicebusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count") + + // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to the "messaging.servicebus.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + MessagingServicebusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time") + + // MessagingSystemKey is the attribute Key conforming to the "messaging.system" semantic conventions. It represents the messaging system as identified by the client instrumentation. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge. + MessagingSystemKey = attribute.Key("messaging.system") +) + +// MessagingBatchMessageCount returns an attribute KeyValue conforming to the "messaging.batch.message_count" semantic conventions. It represents the number of messages sent, received, or processed in the scope of the batching operation. +func MessagingBatchMessageCount(val int) attribute.KeyValue { + return MessagingBatchMessageCountKey.Int(val) +} + +// MessagingClientID returns an attribute KeyValue conforming to the "messaging.client.id" semantic conventions. It represents a unique identifier for the client that consumes or produces a message. +func MessagingClientID(val string) attribute.KeyValue { + return MessagingClientIDKey.String(val) +} + +// MessagingConsumerGroupName returns an attribute KeyValue conforming to the "messaging.consumer.group.name" semantic conventions. It represents the name of the consumer group with which a consumer is associated. +func MessagingConsumerGroupName(val string) attribute.KeyValue { + return MessagingConsumerGroupNameKey.String(val) +} + +// MessagingDestinationAnonymous returns an attribute KeyValue conforming to the "messaging.destination.anonymous" semantic conventions. It represents a boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). +func MessagingDestinationAnonymous(val bool) attribute.KeyValue { + return MessagingDestinationAnonymousKey.Bool(val) +} + +// MessagingDestinationName returns an attribute KeyValue conforming to the "messaging.destination.name" semantic conventions. It represents the message destination name. +func MessagingDestinationName(val string) attribute.KeyValue { + return MessagingDestinationNameKey.String(val) +} + +// MessagingDestinationPartitionID returns an attribute KeyValue conforming to the "messaging.destination.partition.id" semantic conventions. It represents the identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. +func MessagingDestinationPartitionID(val string) attribute.KeyValue { + return MessagingDestinationPartitionIDKey.String(val) +} + +// MessagingDestinationSubscriptionName returns an attribute KeyValue conforming to the "messaging.destination.subscription.name" semantic conventions. It represents the name of the destination subscription from which a message is consumed. +func MessagingDestinationSubscriptionName(val string) attribute.KeyValue { + return MessagingDestinationSubscriptionNameKey.String(val) +} + +// MessagingDestinationTemplate returns an attribute KeyValue conforming to the "messaging.destination.template" semantic conventions. It represents the low cardinality representation of the messaging destination name. +func MessagingDestinationTemplate(val string) attribute.KeyValue { + return MessagingDestinationTemplateKey.String(val) +} + +// MessagingDestinationTemporary returns an attribute KeyValue conforming to the "messaging.destination.temporary" semantic conventions. It represents a boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. +func MessagingDestinationTemporary(val bool) attribute.KeyValue { + return MessagingDestinationTemporaryKey.Bool(val) +} + +// MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. +func MessagingEventhubsMessageEnqueuedTime(val int) attribute.KeyValue { + return MessagingEventhubsMessageEnqueuedTimeKey.Int(val) +} + +// MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It represents the ack deadline in seconds set for the modify ack deadline request. +func MessagingGCPPubsubMessageAckDeadline(val int) attribute.KeyValue { + return MessagingGCPPubsubMessageAckDeadlineKey.Int(val) +} + +// MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the ack id for a given message. +func MessagingGCPPubsubMessageAckID(val string) attribute.KeyValue { + return MessagingGCPPubsubMessageAckIDKey.String(val) +} + +// MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. It represents the delivery attempt for a given message. +func MessagingGCPPubsubMessageDeliveryAttempt(val int) attribute.KeyValue { + return MessagingGCPPubsubMessageDeliveryAttemptKey.Int(val) +} + +// MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It represents the ordering key for a given message. If the attribute is not present, the message does not have an ordering key. +func MessagingGCPPubsubMessageOrderingKey(val string) attribute.KeyValue { + return MessagingGCPPubsubMessageOrderingKeyKey.String(val) +} + +// MessagingKafkaMessageKey returns an attribute KeyValue conforming to the "messaging.kafka.message.key" semantic conventions. It represents the message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. +func MessagingKafkaMessageKey(val string) attribute.KeyValue { + return MessagingKafkaMessageKeyKey.String(val) +} + +// MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the "messaging.kafka.message.tombstone" semantic conventions. It represents a boolean that is true if the message is a tombstone. +func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue { + return MessagingKafkaMessageTombstoneKey.Bool(val) +} + +// MessagingKafkaOffset returns an attribute KeyValue conforming to the "messaging.kafka.offset" semantic conventions. It represents the offset of a record in the corresponding Kafka partition. +func MessagingKafkaOffset(val int) attribute.KeyValue { + return MessagingKafkaOffsetKey.Int(val) +} + +// MessagingMessageBodySize returns an attribute KeyValue conforming to the "messaging.message.body.size" semantic conventions. It represents the size of the message body in bytes. +func MessagingMessageBodySize(val int) attribute.KeyValue { + return MessagingMessageBodySizeKey.Int(val) +} + +// MessagingMessageConversationID returns an attribute KeyValue conforming to the "messaging.message.conversation_id" semantic conventions. It represents the conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". +func MessagingMessageConversationID(val string) attribute.KeyValue { + return MessagingMessageConversationIDKey.String(val) +} + +// MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the "messaging.message.envelope.size" semantic conventions. It represents the size of the message body and metadata in bytes. +func MessagingMessageEnvelopeSize(val int) attribute.KeyValue { + return MessagingMessageEnvelopeSizeKey.Int(val) +} + +// MessagingMessageID returns an attribute KeyValue conforming to the "messaging.message.id" semantic conventions. It represents a value used by the messaging system as an identifier for the message, represented as a string. +func MessagingMessageID(val string) attribute.KeyValue { + return MessagingMessageIDKey.String(val) +} + +// MessagingOperationName returns an attribute KeyValue conforming to the "messaging.operation.name" semantic conventions. It represents the system-specific name of the messaging operation. +func MessagingOperationName(val string) attribute.KeyValue { + return MessagingOperationNameKey.String(val) +} + +// MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue conforming to the "messaging.rabbitmq.destination.routing_key" semantic conventions. It represents the rabbitMQ message routing key. +func MessagingRabbitmqDestinationRoutingKey(val string) attribute.KeyValue { + return MessagingRabbitmqDestinationRoutingKeyKey.String(val) +} + +// MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents the rabbitMQ message delivery tag. +func MessagingRabbitmqMessageDeliveryTag(val int) attribute.KeyValue { + return MessagingRabbitmqMessageDeliveryTagKey.Int(val) +} + +// MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue conforming to the "messaging.rocketmq.message.delay_time_level" semantic conventions. It represents the delay time level for delay message, which determines the message delay time. +func MessagingRocketmqMessageDelayTimeLevel(val int) attribute.KeyValue { + return MessagingRocketmqMessageDelayTimeLevelKey.Int(val) +} + +// MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. It represents the timestamp in milliseconds that the delay message is expected to be delivered to consumer. +func MessagingRocketmqMessageDeliveryTimestamp(val int) attribute.KeyValue { + return MessagingRocketmqMessageDeliveryTimestampKey.Int(val) +} + +// MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the "messaging.rocketmq.message.group" semantic conventions. It represents the it is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. +func MessagingRocketmqMessageGroup(val string) attribute.KeyValue { + return MessagingRocketmqMessageGroupKey.String(val) +} + +// MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the "messaging.rocketmq.message.keys" semantic conventions. It represents the key(s) of message, another way to mark message besides message id. +func MessagingRocketmqMessageKeys(val ...string) attribute.KeyValue { + return MessagingRocketmqMessageKeysKey.StringSlice(val) +} + +// MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the "messaging.rocketmq.message.tag" semantic conventions. It represents the secondary classifier of message besides topic. +func MessagingRocketmqMessageTag(val string) attribute.KeyValue { + return MessagingRocketmqMessageTagKey.String(val) +} + +// MessagingRocketmqNamespace returns an attribute KeyValue conforming to the "messaging.rocketmq.namespace" semantic conventions. It represents the namespace of RocketMQ resources, resources in different namespaces are individual. +func MessagingRocketmqNamespace(val string) attribute.KeyValue { + return MessagingRocketmqNamespaceKey.String(val) +} + +// MessagingServicebusMessageDeliveryCount returns an attribute KeyValue conforming to the "messaging.servicebus.message.delivery_count" semantic conventions. It represents the number of deliveries that have been attempted for this message. +func MessagingServicebusMessageDeliveryCount(val int) attribute.KeyValue { + return MessagingServicebusMessageDeliveryCountKey.Int(val) +} + +// MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue conforming to the "messaging.servicebus.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. +func MessagingServicebusMessageEnqueuedTime(val int) attribute.KeyValue { + return MessagingServicebusMessageEnqueuedTimeKey.Int(val) +} + +// Enum values for messaging.operation.type +var ( + // A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch sending scenarios. + // + // Stability: experimental + MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create") + // One or more messages are provided for sending to an intermediary. If a single message is sent, the context of the "Send" span can be used as the creation context and no "Create" span needs to be created. + // + // Stability: experimental + MessagingOperationTypeSend = MessagingOperationTypeKey.String("send") + // One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. + // + // Stability: experimental + MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive") + // One or more messages are processed by a consumer. + // + // Stability: experimental + MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process") + // One or more messages are settled. + // + // Stability: experimental + MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle") + // Deprecated: Replaced by `process`. + MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver") + // Deprecated: Replaced by `send`. + MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish") +) + +// Enum values for messaging.rocketmq.consumption_model +var ( + // Clustering consumption model + // Stability: experimental + MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering") + // Broadcasting consumption model + // Stability: experimental + MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting") +) + +// Enum values for messaging.rocketmq.message.type +var ( + // Normal message + // Stability: experimental + MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal") + // FIFO message + // Stability: experimental + MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo") + // Delay message + // Stability: experimental + MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay") + // Transaction message + // Stability: experimental + MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction") +) + +// Enum values for messaging.servicebus.disposition_status +var ( + // Message is completed + // Stability: experimental + MessagingServicebusDispositionStatusComplete = MessagingServicebusDispositionStatusKey.String("complete") + // Message is abandoned + // Stability: experimental + MessagingServicebusDispositionStatusAbandon = MessagingServicebusDispositionStatusKey.String("abandon") + // Message is sent to dead letter queue + // Stability: experimental + MessagingServicebusDispositionStatusDeadLetter = MessagingServicebusDispositionStatusKey.String("dead_letter") + // Message is deferred + // Stability: experimental + MessagingServicebusDispositionStatusDefer = MessagingServicebusDispositionStatusKey.String("defer") +) + +// Enum values for messaging.system +var ( + // Apache ActiveMQ + // Stability: experimental + MessagingSystemActivemq = MessagingSystemKey.String("activemq") + // Amazon Simple Queue Service (SQS) + // Stability: experimental + MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs") + // Azure Event Grid + // Stability: experimental + MessagingSystemEventgrid = MessagingSystemKey.String("eventgrid") + // Azure Event Hubs + // Stability: experimental + MessagingSystemEventhubs = MessagingSystemKey.String("eventhubs") + // Azure Service Bus + // Stability: experimental + MessagingSystemServicebus = MessagingSystemKey.String("servicebus") + // Google Cloud Pub/Sub + // Stability: experimental + MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub") + // Java Message Service + // Stability: experimental + MessagingSystemJms = MessagingSystemKey.String("jms") + // Apache Kafka + // Stability: experimental + MessagingSystemKafka = MessagingSystemKey.String("kafka") + // RabbitMQ + // Stability: experimental + MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq") + // Apache RocketMQ + // Stability: experimental + MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq") + // Apache Pulsar + // Stability: experimental + MessagingSystemPulsar = MessagingSystemKey.String("pulsar") +) + +// Namespace: network +const ( + // NetworkCarrierIccKey is the attribute Key conforming to the "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: DE + NetworkCarrierIccKey = attribute.Key("network.carrier.icc") + + // NetworkCarrierMccKey is the attribute Key conforming to the "network.carrier.mcc" semantic conventions. It represents the mobile carrier country code. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 310 + NetworkCarrierMccKey = attribute.Key("network.carrier.mcc") + + // NetworkCarrierMncKey is the attribute Key conforming to the "network.carrier.mnc" semantic conventions. It represents the mobile carrier network code. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 001 + NetworkCarrierMncKey = attribute.Key("network.carrier.mnc") + + // NetworkCarrierNameKey is the attribute Key conforming to the "network.carrier.name" semantic conventions. It represents the name of the mobile carrier. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: sprint + NetworkCarrierNameKey = attribute.Key("network.carrier.name") + + // NetworkConnectionSubtypeKey is the attribute Key conforming to the "network.connection.subtype" semantic conventions. It represents the this describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: LTE + NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype") + + // NetworkConnectionTypeKey is the attribute Key conforming to the "network.connection.type" semantic conventions. It represents the internet connection type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: wifi + NetworkConnectionTypeKey = attribute.Key("network.connection.type") + + // NetworkIoDirectionKey is the attribute Key conforming to the "network.io.direction" semantic conventions. It represents the network IO operation direction. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "transmit" + NetworkIoDirectionKey = attribute.Key("network.io.direction") + + // NetworkLocalAddressKey is the attribute Key conforming to the "network.local.address" semantic conventions. It represents the local address of the network connection - IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "10.1.2.80", "/tmp/my.sock" + NetworkLocalAddressKey = attribute.Key("network.local.address") + + // NetworkLocalPortKey is the attribute Key conforming to the "network.local.port" semantic conventions. It represents the local port number of the network connection. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: 65123 + NetworkLocalPortKey = attribute.Key("network.local.port") + + // NetworkPeerAddressKey is the attribute Key conforming to the "network.peer.address" semantic conventions. It represents the peer address of the network connection - IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "10.1.2.80", "/tmp/my.sock" + NetworkPeerAddressKey = attribute.Key("network.peer.address") + + // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port" semantic conventions. It represents the peer port number of the network connection. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: 65123 + NetworkPeerPortKey = attribute.Key("network.peer.port") + + // NetworkProtocolNameKey is the attribute Key conforming to the "network.protocol.name" semantic conventions. It represents the [OSI application layer] or non-OSI equivalent. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "amqp", "http", "mqtt" + // Note: The value SHOULD be normalized to lowercase. + // + // [OSI application layer]: https://osi-model.com/application-layer/ + NetworkProtocolNameKey = attribute.Key("network.protocol.name") + + // NetworkProtocolVersionKey is the attribute Key conforming to the "network.protocol.version" semantic conventions. It represents the actual version of the protocol used for network communication. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "1.1", "2" + // Note: If protocol version is subject to negotiation (for example using [ALPN]), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set. + // + // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html + NetworkProtocolVersionKey = attribute.Key("network.protocol.version") + + // NetworkTransportKey is the attribute Key conforming to the "network.transport" semantic conventions. It represents the [OSI transport layer] or [inter-process communication method]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "tcp", "udp" + // Note: The value SHOULD be normalized to lowercase. + // + // Consider always setting the transport when setting a port number, since + // a port number is ambiguous without knowing the transport. For example + // different processes could be listening on TCP port 12345 and UDP port 12345. + // + // [OSI transport layer]: https://osi-model.com/transport-layer/ + // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication + NetworkTransportKey = attribute.Key("network.transport") + + // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic conventions. It represents the [OSI network layer] or non-OSI equivalent. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "ipv4", "ipv6" + // Note: The value SHOULD be normalized to lowercase. + // + // [OSI network layer]: https://osi-model.com/network-layer/ + NetworkTypeKey = attribute.Key("network.type") +) + +// NetworkCarrierIcc returns an attribute KeyValue conforming to the "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. +func NetworkCarrierIcc(val string) attribute.KeyValue { + return NetworkCarrierIccKey.String(val) +} + +// NetworkCarrierMcc returns an attribute KeyValue conforming to the "network.carrier.mcc" semantic conventions. It represents the mobile carrier country code. +func NetworkCarrierMcc(val string) attribute.KeyValue { + return NetworkCarrierMccKey.String(val) +} + +// NetworkCarrierMnc returns an attribute KeyValue conforming to the "network.carrier.mnc" semantic conventions. It represents the mobile carrier network code. +func NetworkCarrierMnc(val string) attribute.KeyValue { + return NetworkCarrierMncKey.String(val) +} + +// NetworkCarrierName returns an attribute KeyValue conforming to the "network.carrier.name" semantic conventions. It represents the name of the mobile carrier. +func NetworkCarrierName(val string) attribute.KeyValue { + return NetworkCarrierNameKey.String(val) +} + +// NetworkLocalAddress returns an attribute KeyValue conforming to the "network.local.address" semantic conventions. It represents the local address of the network connection - IP address or Unix domain socket name. +func NetworkLocalAddress(val string) attribute.KeyValue { + return NetworkLocalAddressKey.String(val) +} + +// NetworkLocalPort returns an attribute KeyValue conforming to the "network.local.port" semantic conventions. It represents the local port number of the network connection. +func NetworkLocalPort(val int) attribute.KeyValue { + return NetworkLocalPortKey.Int(val) +} + +// NetworkPeerAddress returns an attribute KeyValue conforming to the "network.peer.address" semantic conventions. It represents the peer address of the network connection - IP address or Unix domain socket name. +func NetworkPeerAddress(val string) attribute.KeyValue { + return NetworkPeerAddressKey.String(val) +} + +// NetworkPeerPort returns an attribute KeyValue conforming to the "network.peer.port" semantic conventions. It represents the peer port number of the network connection. +func NetworkPeerPort(val int) attribute.KeyValue { + return NetworkPeerPortKey.Int(val) +} + +// NetworkProtocolName returns an attribute KeyValue conforming to the "network.protocol.name" semantic conventions. It represents the [OSI application layer] or non-OSI equivalent. +// +// [OSI application layer]: https://osi-model.com/application-layer/ +func NetworkProtocolName(val string) attribute.KeyValue { + return NetworkProtocolNameKey.String(val) +} + +// NetworkProtocolVersion returns an attribute KeyValue conforming to the "network.protocol.version" semantic conventions. It represents the actual version of the protocol used for network communication. +func NetworkProtocolVersion(val string) attribute.KeyValue { + return NetworkProtocolVersionKey.String(val) +} + +// Enum values for network.connection.subtype +var ( + // GPRS + // Stability: experimental + NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs") + // EDGE + // Stability: experimental + NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge") + // UMTS + // Stability: experimental + NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts") + // CDMA + // Stability: experimental + NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma") + // EVDO Rel. 0 + // Stability: experimental + NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0") + // EVDO Rev. A + // Stability: experimental + NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a") + // CDMA2000 1XRTT + // Stability: experimental + NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt") + // HSDPA + // Stability: experimental + NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa") + // HSUPA + // Stability: experimental + NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa") + // HSPA + // Stability: experimental + NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa") + // IDEN + // Stability: experimental + NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden") + // EVDO Rev. B + // Stability: experimental + NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b") + // LTE + // Stability: experimental + NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte") + // EHRPD + // Stability: experimental + NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd") + // HSPAP + // Stability: experimental + NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap") + // GSM + // Stability: experimental + NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm") + // TD-SCDMA + // Stability: experimental + NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma") + // IWLAN + // Stability: experimental + NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan") + // 5G NR (New Radio) + // Stability: experimental + NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr") + // 5G NRNSA (New Radio Non-Standalone) + // Stability: experimental + NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa") + // LTE CA + // Stability: experimental + NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca") +) + +// Enum values for network.connection.type +var ( + // wifi + // Stability: experimental + NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi") + // wired + // Stability: experimental + NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired") + // cell + // Stability: experimental + NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell") + // unavailable + // Stability: experimental + NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable") + // unknown + // Stability: experimental + NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown") +) + +// Enum values for network.io.direction +var ( + // transmit + // Stability: experimental + NetworkIoDirectionTransmit = NetworkIoDirectionKey.String("transmit") + // receive + // Stability: experimental + NetworkIoDirectionReceive = NetworkIoDirectionKey.String("receive") +) + +// Enum values for network.transport +var ( + // TCP + // Stability: stable + NetworkTransportTCP = NetworkTransportKey.String("tcp") + // UDP + // Stability: stable + NetworkTransportUDP = NetworkTransportKey.String("udp") + // Named or anonymous pipe. + // Stability: stable + NetworkTransportPipe = NetworkTransportKey.String("pipe") + // Unix domain socket + // Stability: stable + NetworkTransportUnix = NetworkTransportKey.String("unix") + // QUIC + // Stability: experimental + NetworkTransportQUIC = NetworkTransportKey.String("quic") +) + +// Enum values for network.type +var ( + // IPv4 + // Stability: stable + NetworkTypeIpv4 = NetworkTypeKey.String("ipv4") + // IPv6 + // Stability: stable + NetworkTypeIpv6 = NetworkTypeKey.String("ipv6") +) + +// Namespace: nodejs +const ( + // NodejsEventloopStateKey is the attribute Key conforming to the "nodejs.eventloop.state" semantic conventions. It represents the state of event loop time. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + NodejsEventloopStateKey = attribute.Key("nodejs.eventloop.state") +) + +// Enum values for nodejs.eventloop.state +var ( + // Active time. + // Stability: experimental + NodejsEventloopStateActive = NodejsEventloopStateKey.String("active") + // Idle time. + // Stability: experimental + NodejsEventloopStateIdle = NodejsEventloopStateKey.String("idle") +) + +// Namespace: oci +const ( + // OciManifestDigestKey is the attribute Key conforming to the "oci.manifest.digest" semantic conventions. It represents the digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4" + // Note: Follows [OCI Image Manifest Specification], and specifically the [Digest property]. + // An example can be found in [Example Image Manifest]. + // + // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md + // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests + // [Example Image Manifest]: https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest + OciManifestDigestKey = attribute.Key("oci.manifest.digest") +) + +// OciManifestDigest returns an attribute KeyValue conforming to the "oci.manifest.digest" semantic conventions. It represents the digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. +func OciManifestDigest(val string) attribute.KeyValue { + return OciManifestDigestKey.String(val) +} + +// Namespace: opentracing +const ( + // OpentracingRefTypeKey is the attribute Key conforming to the "opentracing.ref_type" semantic conventions. It represents the parent-child Reference type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: The causal relationship between a child Span and a parent Span. + OpentracingRefTypeKey = attribute.Key("opentracing.ref_type") +) + +// Enum values for opentracing.ref_type +var ( + // The parent Span depends on the child Span in some capacity + // Stability: experimental + OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of") + // The parent Span doesn't depend in any way on the result of the child Span + // Stability: experimental + OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from") +) + +// Namespace: os +const ( + // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic conventions. It represents the unique identifier for a particular build or compilation of the operating system. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "TQ3C.230805.001.B2", "20E247", "22621" + OSBuildIDKey = attribute.Key("os.build_id") + + // OSDescriptionKey is the attribute Key conforming to the "os.description" semantic conventions. It represents the human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS" + OSDescriptionKey = attribute.Key("os.description") + + // OSNameKey is the attribute Key conforming to the "os.name" semantic conventions. It represents the human readable operating system name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "iOS", "Android", "Ubuntu" + OSNameKey = attribute.Key("os.name") + + // OSTypeKey is the attribute Key conforming to the "os.type" semantic conventions. It represents the operating system type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + OSTypeKey = attribute.Key("os.type") + + // OSVersionKey is the attribute Key conforming to the "os.version" semantic conventions. It represents the version string of the operating system as defined in [Version Attributes]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "14.2.1", "18.04.1" + // + // [Version Attributes]: /docs/resource/README.md#version-attributes + OSVersionKey = attribute.Key("os.version") +) + +// OSBuildID returns an attribute KeyValue conforming to the "os.build_id" semantic conventions. It represents the unique identifier for a particular build or compilation of the operating system. +func OSBuildID(val string) attribute.KeyValue { + return OSBuildIDKey.String(val) +} + +// OSDescription returns an attribute KeyValue conforming to the "os.description" semantic conventions. It represents the human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. +func OSDescription(val string) attribute.KeyValue { + return OSDescriptionKey.String(val) +} + +// OSName returns an attribute KeyValue conforming to the "os.name" semantic conventions. It represents the human readable operating system name. +func OSName(val string) attribute.KeyValue { + return OSNameKey.String(val) +} + +// OSVersion returns an attribute KeyValue conforming to the "os.version" semantic conventions. It represents the version string of the operating system as defined in [Version Attributes]. +// +// [Version Attributes]: /docs/resource/README.md#version-attributes +func OSVersion(val string) attribute.KeyValue { + return OSVersionKey.String(val) +} + +// Enum values for os.type +var ( + // Microsoft Windows + // Stability: experimental + OSTypeWindows = OSTypeKey.String("windows") + // Linux + // Stability: experimental + OSTypeLinux = OSTypeKey.String("linux") + // Apple Darwin + // Stability: experimental + OSTypeDarwin = OSTypeKey.String("darwin") + // FreeBSD + // Stability: experimental + OSTypeFreeBSD = OSTypeKey.String("freebsd") + // NetBSD + // Stability: experimental + OSTypeNetBSD = OSTypeKey.String("netbsd") + // OpenBSD + // Stability: experimental + OSTypeOpenBSD = OSTypeKey.String("openbsd") + // DragonFly BSD + // Stability: experimental + OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd") + // HP-UX (Hewlett Packard Unix) + // Stability: experimental + OSTypeHPUX = OSTypeKey.String("hpux") + // AIX (Advanced Interactive eXecutive) + // Stability: experimental + OSTypeAIX = OSTypeKey.String("aix") + // SunOS, Oracle Solaris + // Stability: experimental + OSTypeSolaris = OSTypeKey.String("solaris") + // IBM z/OS + // Stability: experimental + OSTypeZOS = OSTypeKey.String("z_os") +) + +// Namespace: otel +const ( + // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name" semantic conventions. It represents the name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "io.opentelemetry.contrib.mongodb" + OTelScopeNameKey = attribute.Key("otel.scope.name") + + // OTelScopeVersionKey is the attribute Key conforming to the "otel.scope.version" semantic conventions. It represents the version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "1.0.0" + OTelScopeVersionKey = attribute.Key("otel.scope.version") + + // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code" semantic conventions. It represents the name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: + OTelStatusCodeKey = attribute.Key("otel.status_code") + + // OTelStatusDescriptionKey is the attribute Key conforming to the "otel.status_description" semantic conventions. It represents the description of the Status if it has a value, otherwise not set. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "resource not found" + OTelStatusDescriptionKey = attribute.Key("otel.status_description") +) + +// OTelScopeName returns an attribute KeyValue conforming to the "otel.scope.name" semantic conventions. It represents the name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). +func OTelScopeName(val string) attribute.KeyValue { + return OTelScopeNameKey.String(val) +} + +// OTelScopeVersion returns an attribute KeyValue conforming to the "otel.scope.version" semantic conventions. It represents the version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). +func OTelScopeVersion(val string) attribute.KeyValue { + return OTelScopeVersionKey.String(val) +} + +// OTelStatusDescription returns an attribute KeyValue conforming to the "otel.status_description" semantic conventions. It represents the description of the Status if it has a value, otherwise not set. +func OTelStatusDescription(val string) attribute.KeyValue { + return OTelStatusDescriptionKey.String(val) +} + +// Enum values for otel.status_code +var ( + // The operation has been validated by an Application developer or Operator to have completed successfully. + // Stability: stable + OTelStatusCodeOk = OTelStatusCodeKey.String("OK") + // The operation contains an error. + // Stability: stable + OTelStatusCodeError = OTelStatusCodeKey.String("ERROR") +) + +// Namespace: peer +const ( + // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic conventions. It represents the [`service.name`] of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: AuthTokenCache + // + // [`service.name`]: /docs/resource/README.md#service + PeerServiceKey = attribute.Key("peer.service") +) + +// PeerService returns an attribute KeyValue conforming to the "peer.service" semantic conventions. It represents the [`service.name`] of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. +// +// [`service.name`]: /docs/resource/README.md#service +func PeerService(val string) attribute.KeyValue { + return PeerServiceKey.String(val) +} + +// Namespace: process +const ( + // ProcessArgsCountKey is the attribute Key conforming to the "process.args_count" semantic conventions. It represents the length of the process.command_args array. + // + // Type: int + // RequirementLevel: {"Recommended": "If `Process.Command_Args` Is Populated."} + // Stability: Experimental + // + // Examples: 4 + // Note: This field can be useful for querying or performing bucket analysis on how many arguments were provided to start a process. More arguments may be an indication of suspicious activity. + ProcessArgsCountKey = attribute.Key("process.args_count") + + // ProcessCommandKey is the attribute Key conforming to the "process.command" semantic conventions. It represents the command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "cmd/otelcol" + ProcessCommandKey = attribute.Key("process.command") + + // ProcessCommandArgsKey is the attribute Key conforming to the "process.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "cmd/otecol", "--config=config.yaml" + ProcessCommandArgsKey = attribute.Key("process.command_args") + + // ProcessCommandLineKey is the attribute Key conforming to the "process.command_line" semantic conventions. It represents the full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "C:\cmd\otecol --config="my directory\config.yaml"" + ProcessCommandLineKey = attribute.Key("process.command_line") + + // ProcessContextSwitchTypeKey is the attribute Key conforming to the "process.context_switch_type" semantic conventions. It represents the specifies whether the context switches for this data point were voluntary or involuntary. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type") + + // ProcessCreationTimeKey is the attribute Key conforming to the "process.creation.time" semantic conventions. It represents the date and time the process was created, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2023-11-21T09:25:34.853Z" + ProcessCreationTimeKey = attribute.Key("process.creation.time") + + // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the "process.executable.build_id.gnu" semantic conventions. It represents the GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "c89b11207f6479603b0d49bf291c092c2b719293" + ProcessExecutableBuildIDGnuKey = attribute.Key("process.executable.build_id.gnu") + + // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the "process.executable.build_id.go" semantic conventions. It represents the Go build ID as retrieved by `go tool buildid `. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY" + ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go") + + // ProcessExecutableBuildIDProfilingKey is the attribute Key conforming to the "process.executable.build_id.profiling" semantic conventions. It represents the profiling specific build ID for executables. See the OTel specification for Profiles for more information. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "600DCAFE4A110000F2BF38C493F5FB92" + ProcessExecutableBuildIDProfilingKey = attribute.Key("process.executable.build_id.profiling") + + // ProcessExecutableNameKey is the attribute Key conforming to the "process.executable.name" semantic conventions. It represents the name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "otelcol" + ProcessExecutableNameKey = attribute.Key("process.executable.name") + + // ProcessExecutablePathKey is the attribute Key conforming to the "process.executable.path" semantic conventions. It represents the full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/usr/bin/cmd/otelcol" + ProcessExecutablePathKey = attribute.Key("process.executable.path") + + // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code" semantic conventions. It represents the exit code of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 127 + ProcessExitCodeKey = attribute.Key("process.exit.code") + + // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time" semantic conventions. It represents the date and time the process exited, in ISO 8601 format. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2023-11-21T09:26:12.315Z" + ProcessExitTimeKey = attribute.Key("process.exit.time") + + // ProcessGroupLeaderPIDKey is the attribute Key conforming to the "process.group_leader.pid" semantic conventions. It represents the PID of the process's group leader. This is also the process group ID (PGID) of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 23 + ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid") + + // ProcessInteractiveKey is the attribute Key conforming to the "process.interactive" semantic conventions. It represents the whether the process is connected to an interactive shell. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + ProcessInteractiveKey = attribute.Key("process.interactive") + + // ProcessOwnerKey is the attribute Key conforming to the "process.owner" semantic conventions. It represents the username of the user that owns the process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "root" + ProcessOwnerKey = attribute.Key("process.owner") + + // ProcessPagingFaultTypeKey is the attribute Key conforming to the "process.paging.fault_type" semantic conventions. It represents the type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type") + + // ProcessParentPIDKey is the attribute Key conforming to the "process.parent_pid" semantic conventions. It represents the parent Process identifier (PPID). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 111 + ProcessParentPIDKey = attribute.Key("process.parent_pid") + + // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic conventions. It represents the process identifier (PID). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1234 + ProcessPIDKey = attribute.Key("process.pid") + + // ProcessRealUserIDKey is the attribute Key conforming to the "process.real_user.id" semantic conventions. It represents the real user ID (RUID) of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1000 + ProcessRealUserIDKey = attribute.Key("process.real_user.id") + + // ProcessRealUserNameKey is the attribute Key conforming to the "process.real_user.name" semantic conventions. It represents the username of the real user of the process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "operator" + ProcessRealUserNameKey = attribute.Key("process.real_user.name") + + // ProcessRuntimeDescriptionKey is the attribute Key conforming to the "process.runtime.description" semantic conventions. It represents an additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0 + ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description") + + // ProcessRuntimeNameKey is the attribute Key conforming to the "process.runtime.name" semantic conventions. It represents the name of the runtime of this process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "OpenJDK Runtime Environment" + ProcessRuntimeNameKey = attribute.Key("process.runtime.name") + + // ProcessRuntimeVersionKey is the attribute Key conforming to the "process.runtime.version" semantic conventions. It represents the version of the runtime of this process, as returned by the runtime without modification. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 14.0.2 + ProcessRuntimeVersionKey = attribute.Key("process.runtime.version") + + // ProcessSavedUserIDKey is the attribute Key conforming to the "process.saved_user.id" semantic conventions. It represents the saved user ID (SUID) of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1002 + ProcessSavedUserIDKey = attribute.Key("process.saved_user.id") + + // ProcessSavedUserNameKey is the attribute Key conforming to the "process.saved_user.name" semantic conventions. It represents the username of the saved user. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "operator" + ProcessSavedUserNameKey = attribute.Key("process.saved_user.name") + + // ProcessSessionLeaderPIDKey is the attribute Key conforming to the "process.session_leader.pid" semantic conventions. It represents the PID of the process's session leader. This is also the session ID (SID) of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 14 + ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid") + + // ProcessTitleKey is the attribute Key conforming to the "process.title" semantic conventions. It represents the process title (proctitle). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "cat /etc/hostname", "xfce4-session", "bash" + // Note: In many Unix-like systems, process title (proctitle), is the string that represents the name or command line of a running process, displayed by system monitoring tools like ps, top, and htop. + ProcessTitleKey = attribute.Key("process.title") + + // ProcessUserIDKey is the attribute Key conforming to the "process.user.id" semantic conventions. It represents the effective user ID (EUID) of the process. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1001 + ProcessUserIDKey = attribute.Key("process.user.id") + + // ProcessUserNameKey is the attribute Key conforming to the "process.user.name" semantic conventions. It represents the username of the effective user of the process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "root" + ProcessUserNameKey = attribute.Key("process.user.name") + + // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic conventions. It represents the virtual process identifier. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 12 + // Note: The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within. + ProcessVpidKey = attribute.Key("process.vpid") + + // ProcessWorkingDirectoryKey is the attribute Key conforming to the "process.working_directory" semantic conventions. It represents the working directory of the process. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/root" + ProcessWorkingDirectoryKey = attribute.Key("process.working_directory") +) + +// ProcessArgsCount returns an attribute KeyValue conforming to the "process.args_count" semantic conventions. It represents the length of the process.command_args array. +func ProcessArgsCount(val int) attribute.KeyValue { + return ProcessArgsCountKey.Int(val) +} + +// ProcessCommand returns an attribute KeyValue conforming to the "process.command" semantic conventions. It represents the command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. +func ProcessCommand(val string) attribute.KeyValue { + return ProcessCommandKey.String(val) +} + +// ProcessCommandArgs returns an attribute KeyValue conforming to the "process.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. +func ProcessCommandArgs(val ...string) attribute.KeyValue { + return ProcessCommandArgsKey.StringSlice(val) +} + +// ProcessCommandLine returns an attribute KeyValue conforming to the "process.command_line" semantic conventions. It represents the full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. +func ProcessCommandLine(val string) attribute.KeyValue { + return ProcessCommandLineKey.String(val) +} + +// ProcessCreationTime returns an attribute KeyValue conforming to the "process.creation.time" semantic conventions. It represents the date and time the process was created, in ISO 8601 format. +func ProcessCreationTime(val string) attribute.KeyValue { + return ProcessCreationTimeKey.String(val) +} + +// ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the "process.executable.build_id.gnu" semantic conventions. It represents the GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). +func ProcessExecutableBuildIDGnu(val string) attribute.KeyValue { + return ProcessExecutableBuildIDGnuKey.String(val) +} + +// ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the "process.executable.build_id.go" semantic conventions. It represents the Go build ID as retrieved by `go tool buildid `. +func ProcessExecutableBuildIDGo(val string) attribute.KeyValue { + return ProcessExecutableBuildIDGoKey.String(val) +} + +// ProcessExecutableBuildIDProfiling returns an attribute KeyValue conforming to the "process.executable.build_id.profiling" semantic conventions. It represents the profiling specific build ID for executables. See the OTel specification for Profiles for more information. +func ProcessExecutableBuildIDProfiling(val string) attribute.KeyValue { + return ProcessExecutableBuildIDProfilingKey.String(val) +} + +// ProcessExecutableName returns an attribute KeyValue conforming to the "process.executable.name" semantic conventions. It represents the name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. +func ProcessExecutableName(val string) attribute.KeyValue { + return ProcessExecutableNameKey.String(val) +} + +// ProcessExecutablePath returns an attribute KeyValue conforming to the "process.executable.path" semantic conventions. It represents the full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. +func ProcessExecutablePath(val string) attribute.KeyValue { + return ProcessExecutablePathKey.String(val) +} + +// ProcessExitCode returns an attribute KeyValue conforming to the "process.exit.code" semantic conventions. It represents the exit code of the process. +func ProcessExitCode(val int) attribute.KeyValue { + return ProcessExitCodeKey.Int(val) +} + +// ProcessExitTime returns an attribute KeyValue conforming to the "process.exit.time" semantic conventions. It represents the date and time the process exited, in ISO 8601 format. +func ProcessExitTime(val string) attribute.KeyValue { + return ProcessExitTimeKey.String(val) +} + +// ProcessGroupLeaderPID returns an attribute KeyValue conforming to the "process.group_leader.pid" semantic conventions. It represents the PID of the process's group leader. This is also the process group ID (PGID) of the process. +func ProcessGroupLeaderPID(val int) attribute.KeyValue { + return ProcessGroupLeaderPIDKey.Int(val) +} + +// ProcessInteractive returns an attribute KeyValue conforming to the "process.interactive" semantic conventions. It represents the whether the process is connected to an interactive shell. +func ProcessInteractive(val bool) attribute.KeyValue { + return ProcessInteractiveKey.Bool(val) +} + +// ProcessOwner returns an attribute KeyValue conforming to the "process.owner" semantic conventions. It represents the username of the user that owns the process. +func ProcessOwner(val string) attribute.KeyValue { + return ProcessOwnerKey.String(val) +} + +// ProcessParentPID returns an attribute KeyValue conforming to the "process.parent_pid" semantic conventions. It represents the parent Process identifier (PPID). +func ProcessParentPID(val int) attribute.KeyValue { + return ProcessParentPIDKey.Int(val) +} + +// ProcessPID returns an attribute KeyValue conforming to the "process.pid" semantic conventions. It represents the process identifier (PID). +func ProcessPID(val int) attribute.KeyValue { + return ProcessPIDKey.Int(val) +} + +// ProcessRealUserID returns an attribute KeyValue conforming to the "process.real_user.id" semantic conventions. It represents the real user ID (RUID) of the process. +func ProcessRealUserID(val int) attribute.KeyValue { + return ProcessRealUserIDKey.Int(val) +} + +// ProcessRealUserName returns an attribute KeyValue conforming to the "process.real_user.name" semantic conventions. It represents the username of the real user of the process. +func ProcessRealUserName(val string) attribute.KeyValue { + return ProcessRealUserNameKey.String(val) +} + +// ProcessRuntimeDescription returns an attribute KeyValue conforming to the "process.runtime.description" semantic conventions. It represents an additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. +func ProcessRuntimeDescription(val string) attribute.KeyValue { + return ProcessRuntimeDescriptionKey.String(val) +} + +// ProcessRuntimeName returns an attribute KeyValue conforming to the "process.runtime.name" semantic conventions. It represents the name of the runtime of this process. +func ProcessRuntimeName(val string) attribute.KeyValue { + return ProcessRuntimeNameKey.String(val) +} + +// ProcessRuntimeVersion returns an attribute KeyValue conforming to the "process.runtime.version" semantic conventions. It represents the version of the runtime of this process, as returned by the runtime without modification. +func ProcessRuntimeVersion(val string) attribute.KeyValue { + return ProcessRuntimeVersionKey.String(val) +} + +// ProcessSavedUserID returns an attribute KeyValue conforming to the "process.saved_user.id" semantic conventions. It represents the saved user ID (SUID) of the process. +func ProcessSavedUserID(val int) attribute.KeyValue { + return ProcessSavedUserIDKey.Int(val) +} + +// ProcessSavedUserName returns an attribute KeyValue conforming to the "process.saved_user.name" semantic conventions. It represents the username of the saved user. +func ProcessSavedUserName(val string) attribute.KeyValue { + return ProcessSavedUserNameKey.String(val) +} + +// ProcessSessionLeaderPID returns an attribute KeyValue conforming to the "process.session_leader.pid" semantic conventions. It represents the PID of the process's session leader. This is also the session ID (SID) of the process. +func ProcessSessionLeaderPID(val int) attribute.KeyValue { + return ProcessSessionLeaderPIDKey.Int(val) +} + +// ProcessTitle returns an attribute KeyValue conforming to the "process.title" semantic conventions. It represents the process title (proctitle). +func ProcessTitle(val string) attribute.KeyValue { + return ProcessTitleKey.String(val) +} + +// ProcessUserID returns an attribute KeyValue conforming to the "process.user.id" semantic conventions. It represents the effective user ID (EUID) of the process. +func ProcessUserID(val int) attribute.KeyValue { + return ProcessUserIDKey.Int(val) +} + +// ProcessUserName returns an attribute KeyValue conforming to the "process.user.name" semantic conventions. It represents the username of the effective user of the process. +func ProcessUserName(val string) attribute.KeyValue { + return ProcessUserNameKey.String(val) +} + +// ProcessVpid returns an attribute KeyValue conforming to the "process.vpid" semantic conventions. It represents the virtual process identifier. +func ProcessVpid(val int) attribute.KeyValue { + return ProcessVpidKey.Int(val) +} + +// ProcessWorkingDirectory returns an attribute KeyValue conforming to the "process.working_directory" semantic conventions. It represents the working directory of the process. +func ProcessWorkingDirectory(val string) attribute.KeyValue { + return ProcessWorkingDirectoryKey.String(val) +} + +// Enum values for process.context_switch_type +var ( + // voluntary + // Stability: experimental + ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary") + // involuntary + // Stability: experimental + ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary") +) + +// Enum values for process.paging.fault_type +var ( + // major + // Stability: experimental + ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major") + // minor + // Stability: experimental + ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor") +) + +// Namespace: profile +const ( + // ProfileFrameTypeKey is the attribute Key conforming to the "profile.frame.type" semantic conventions. It represents the describes the interpreter or compiler of a single frame. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "cpython" + ProfileFrameTypeKey = attribute.Key("profile.frame.type") +) + +// Enum values for profile.frame.type +var ( + // [.NET] + // + // Stability: experimental + // + // [.NET]: https://wikipedia.org/wiki/.NET + ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet") + // [JVM] + // + // Stability: experimental + // + // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine + ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm") + // [Kernel] + // + // Stability: experimental + // + // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system) + ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel") + // [C], [C++], [Go], [Rust] + // + // Stability: experimental + // + // [C]: https://wikipedia.org/wiki/C_(programming_language) + // [C++]: https://wikipedia.org/wiki/C%2B%2B + // [Go]: https://wikipedia.org/wiki/Go_(programming_language) + // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language) + ProfileFrameTypeNative = ProfileFrameTypeKey.String("native") + // [Perl] + // + // Stability: experimental + // + // [Perl]: https://wikipedia.org/wiki/Perl + ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl") + // [PHP] + // + // Stability: experimental + // + // [PHP]: https://wikipedia.org/wiki/PHP + ProfileFrameTypePHP = ProfileFrameTypeKey.String("php") + // [Python] + // + // Stability: experimental + // + // [Python]: https://wikipedia.org/wiki/Python_(programming_language) + ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython") + // [Ruby] + // + // Stability: experimental + // + // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language) + ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby") + // [V8JS] + // + // Stability: experimental + // + // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine) + ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js") +) + +// Namespace: rpc +const ( + // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the "rpc.connect_rpc.error_code" semantic conventions. It represents the [error codes] of the Connect request. Error codes are always string values. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [error codes]: https://connect.build/docs/protocol/#error-codes + RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code") + + // RPCGRPCStatusCodeKey is the attribute Key conforming to the "rpc.grpc.status_code" semantic conventions. It represents the [numeric status code] of the gRPC request. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md + RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code") + + // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` property of response if it is an error response. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: -32700, 100 + RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code") + + // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the "rpc.jsonrpc.error_message" semantic conventions. It represents the `error.message` property of response if it is an error response. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Parse error", "User already exists" + RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message") + + // RPCJsonrpcRequestIDKey is the attribute Key conforming to the "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "10", "request-7", "" + RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id") + + // RPCJsonrpcVersionKey is the attribute Key conforming to the "rpc.jsonrpc.version" semantic conventions. It represents the protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2.0", "1.0" + RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version") + + // RPCMessageCompressedSizeKey is the attribute Key conforming to the "rpc.message.compressed_size" semantic conventions. It represents the compressed size of the message in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size") + + // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id" semantic conventions. It represents the mUST be calculated as two different counters starting from `1` one for sent messages and one for received message. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: This way we guarantee that the values will be consistent between different implementations. + RPCMessageIDKey = attribute.Key("rpc.message.id") + + // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type" semantic conventions. It represents the whether this is a received or sent message. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + RPCMessageTypeKey = attribute.Key("rpc.message.type") + + // RPCMessageUncompressedSizeKey is the attribute Key conforming to the "rpc.message.uncompressed_size" semantic conventions. It represents the uncompressed size of the message in bytes. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size") + + // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic conventions. It represents the name of the (logical) method being called, must be equal to the $method part in the span name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: exampleMethod + // Note: This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). + RPCMethodKey = attribute.Key("rpc.method") + + // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic conventions. It represents the full (logical) name of the service being called, including its package name, if applicable. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: myservice.EchoService + // Note: This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). + RPCServiceKey = attribute.Key("rpc.service") + + // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic conventions. It represents a string identifying the remoting system. See below for a list of well-known identifiers. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + RPCSystemKey = attribute.Key("rpc.system") +) + +// RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` property of response if it is an error response. +func RPCJsonrpcErrorCode(val int) attribute.KeyValue { + return RPCJsonrpcErrorCodeKey.Int(val) +} + +// RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the "rpc.jsonrpc.error_message" semantic conventions. It represents the `error.message` property of response if it is an error response. +func RPCJsonrpcErrorMessage(val string) attribute.KeyValue { + return RPCJsonrpcErrorMessageKey.String(val) +} + +// RPCJsonrpcRequestID returns an attribute KeyValue conforming to the "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. +func RPCJsonrpcRequestID(val string) attribute.KeyValue { + return RPCJsonrpcRequestIDKey.String(val) +} + +// RPCJsonrpcVersion returns an attribute KeyValue conforming to the "rpc.jsonrpc.version" semantic conventions. It represents the protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. +func RPCJsonrpcVersion(val string) attribute.KeyValue { + return RPCJsonrpcVersionKey.String(val) +} + +// RPCMessageCompressedSize returns an attribute KeyValue conforming to the "rpc.message.compressed_size" semantic conventions. It represents the compressed size of the message in bytes. +func RPCMessageCompressedSize(val int) attribute.KeyValue { + return RPCMessageCompressedSizeKey.Int(val) +} + +// RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id" semantic conventions. It represents the mUST be calculated as two different counters starting from `1` one for sent messages and one for received message. +func RPCMessageID(val int) attribute.KeyValue { + return RPCMessageIDKey.Int(val) +} + +// RPCMessageUncompressedSize returns an attribute KeyValue conforming to the "rpc.message.uncompressed_size" semantic conventions. It represents the uncompressed size of the message in bytes. +func RPCMessageUncompressedSize(val int) attribute.KeyValue { + return RPCMessageUncompressedSizeKey.Int(val) +} + +// RPCMethod returns an attribute KeyValue conforming to the "rpc.method" semantic conventions. It represents the name of the (logical) method being called, must be equal to the $method part in the span name. +func RPCMethod(val string) attribute.KeyValue { + return RPCMethodKey.String(val) +} + +// RPCService returns an attribute KeyValue conforming to the "rpc.service" semantic conventions. It represents the full (logical) name of the service being called, including its package name, if applicable. +func RPCService(val string) attribute.KeyValue { + return RPCServiceKey.String(val) +} + +// Enum values for rpc.connect_rpc.error_code +var ( + // cancelled + // Stability: experimental + RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled") + // unknown + // Stability: experimental + RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown") + // invalid_argument + // Stability: experimental + RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument") + // deadline_exceeded + // Stability: experimental + RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded") + // not_found + // Stability: experimental + RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found") + // already_exists + // Stability: experimental + RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists") + // permission_denied + // Stability: experimental + RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied") + // resource_exhausted + // Stability: experimental + RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted") + // failed_precondition + // Stability: experimental + RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition") + // aborted + // Stability: experimental + RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted") + // out_of_range + // Stability: experimental + RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range") + // unimplemented + // Stability: experimental + RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented") + // internal + // Stability: experimental + RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal") + // unavailable + // Stability: experimental + RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable") + // data_loss + // Stability: experimental + RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss") + // unauthenticated + // Stability: experimental + RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated") +) + +// Enum values for rpc.grpc.status_code +var ( + // OK + // Stability: experimental + RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0) + // CANCELLED + // Stability: experimental + RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1) + // UNKNOWN + // Stability: experimental + RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2) + // INVALID_ARGUMENT + // Stability: experimental + RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3) + // DEADLINE_EXCEEDED + // Stability: experimental + RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4) + // NOT_FOUND + // Stability: experimental + RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5) + // ALREADY_EXISTS + // Stability: experimental + RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6) + // PERMISSION_DENIED + // Stability: experimental + RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7) + // RESOURCE_EXHAUSTED + // Stability: experimental + RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8) + // FAILED_PRECONDITION + // Stability: experimental + RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9) + // ABORTED + // Stability: experimental + RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10) + // OUT_OF_RANGE + // Stability: experimental + RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11) + // UNIMPLEMENTED + // Stability: experimental + RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12) + // INTERNAL + // Stability: experimental + RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13) + // UNAVAILABLE + // Stability: experimental + RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14) + // DATA_LOSS + // Stability: experimental + RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15) + // UNAUTHENTICATED + // Stability: experimental + RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16) +) + +// Enum values for rpc.message.type +var ( + // sent + // Stability: experimental + RPCMessageTypeSent = RPCMessageTypeKey.String("SENT") + // received + // Stability: experimental + RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED") +) + +// Enum values for rpc.system +var ( + // gRPC + // Stability: experimental + RPCSystemGRPC = RPCSystemKey.String("grpc") + // Java RMI + // Stability: experimental + RPCSystemJavaRmi = RPCSystemKey.String("java_rmi") + // .NET WCF + // Stability: experimental + RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf") + // Apache Dubbo + // Stability: experimental + RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo") + // Connect RPC + // Stability: experimental + RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc") +) + +// Namespace: server +const ( + // ServerAddressKey is the attribute Key conforming to the "server.address" semantic conventions. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "example.com", "10.1.2.80", "/tmp/my.sock" + // Note: When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available. + ServerAddressKey = attribute.Key("server.address") + + // ServerPortKey is the attribute Key conforming to the "server.port" semantic conventions. It represents the server port number. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: 80, 8080, 443 + // Note: When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available. + ServerPortKey = attribute.Key("server.port") +) + +// ServerAddress returns an attribute KeyValue conforming to the "server.address" semantic conventions. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +func ServerAddress(val string) attribute.KeyValue { + return ServerAddressKey.String(val) +} + +// ServerPort returns an attribute KeyValue conforming to the "server.port" semantic conventions. It represents the server port number. +func ServerPort(val int) attribute.KeyValue { + return ServerPortKey.Int(val) +} + +// Namespace: service +const ( + // ServiceInstanceIDKey is the attribute Key conforming to the "service.instance.id" semantic conventions. It represents the string ID of the service instance. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "627cc493-f310-47de-96bd-71410b7dec09" + // Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words + // `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to + // distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + // service). + // + // Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC + // 4122] UUID, but are free to use an inherent unique ID as the source of + // this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and + // SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + // + // UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + // needed. Similar to what can be seen in the man page for the + // [`/etc/machine-id`] file, the underlying + // data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + // or not via another resource attribute. + // + // For applications running behind an application server (like unicorn), we do not recommend using one identifier + // for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + // thread in unicorn) to have its own instance.id. + // + // It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the + // service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will + // likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. + // However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance + // for that telemetry. This is typically the case for scraping receivers, as they know the target address and + // port. + // + // [RFC + // 4122]: https://www.ietf.org/rfc/rfc4122.txt + // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/machine-id.html + ServiceInstanceIDKey = attribute.Key("service.instance.id") + + // ServiceNameKey is the attribute Key conforming to the "service.name" semantic conventions. It represents the logical name of the service. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "shoppingcart" + // Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`], e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`. + // + // [`process.executable.name`]: process.md + ServiceNameKey = attribute.Key("service.name") + + // ServiceNamespaceKey is the attribute Key conforming to the "service.namespace" semantic conventions. It represents a namespace for `service.name`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Shop" + // Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + ServiceNamespaceKey = attribute.Key("service.namespace") + + // ServiceVersionKey is the attribute Key conforming to the "service.version" semantic conventions. It represents the version string of the service API or implementation. The format is not defined by these conventions. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "2.0.0", "a01dbef8a" + ServiceVersionKey = attribute.Key("service.version") +) + +// ServiceInstanceID returns an attribute KeyValue conforming to the "service.instance.id" semantic conventions. It represents the string ID of the service instance. +func ServiceInstanceID(val string) attribute.KeyValue { + return ServiceInstanceIDKey.String(val) +} + +// ServiceName returns an attribute KeyValue conforming to the "service.name" semantic conventions. It represents the logical name of the service. +func ServiceName(val string) attribute.KeyValue { + return ServiceNameKey.String(val) +} + +// ServiceNamespace returns an attribute KeyValue conforming to the "service.namespace" semantic conventions. It represents a namespace for `service.name`. +func ServiceNamespace(val string) attribute.KeyValue { + return ServiceNamespaceKey.String(val) +} + +// ServiceVersion returns an attribute KeyValue conforming to the "service.version" semantic conventions. It represents the version string of the service API or implementation. The format is not defined by these conventions. +func ServiceVersion(val string) attribute.KeyValue { + return ServiceVersionKey.String(val) +} + +// Namespace: session +const ( + // SessionIDKey is the attribute Key conforming to the "session.id" semantic conventions. It represents a unique id to identify a session. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 00112233-4455-6677-8899-aabbccddeeff + SessionIDKey = attribute.Key("session.id") + + // SessionPreviousIDKey is the attribute Key conforming to the "session.previous_id" semantic conventions. It represents the previous `session.id` for this user, when known. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 00112233-4455-6677-8899-aabbccddeeff + SessionPreviousIDKey = attribute.Key("session.previous_id") +) + +// SessionID returns an attribute KeyValue conforming to the "session.id" semantic conventions. It represents a unique id to identify a session. +func SessionID(val string) attribute.KeyValue { + return SessionIDKey.String(val) +} + +// SessionPreviousID returns an attribute KeyValue conforming to the "session.previous_id" semantic conventions. It represents the previous `session.id` for this user, when known. +func SessionPreviousID(val string) attribute.KeyValue { + return SessionPreviousIDKey.String(val) +} + +// Namespace: signalr +const ( + // SignalrConnectionStatusKey is the attribute Key conforming to the "signalr.connection.status" semantic conventions. It represents the signalR HTTP connection closure status. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "app_shutdown", "timeout" + SignalrConnectionStatusKey = attribute.Key("signalr.connection.status") + + // SignalrTransportKey is the attribute Key conforming to the "signalr.transport" semantic conventions. It represents the [SignalR transport type]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "web_sockets", "long_polling" + // + // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md + SignalrTransportKey = attribute.Key("signalr.transport") +) + +// Enum values for signalr.connection.status +var ( + // The connection was closed normally. + // Stability: stable + SignalrConnectionStatusNormalClosure = SignalrConnectionStatusKey.String("normal_closure") + // The connection was closed due to a timeout. + // Stability: stable + SignalrConnectionStatusTimeout = SignalrConnectionStatusKey.String("timeout") + // The connection was closed because the app is shutting down. + // Stability: stable + SignalrConnectionStatusAppShutdown = SignalrConnectionStatusKey.String("app_shutdown") +) + +// Enum values for signalr.transport +var ( + // ServerSentEvents protocol + // Stability: stable + SignalrTransportServerSentEvents = SignalrTransportKey.String("server_sent_events") + // LongPolling protocol + // Stability: stable + SignalrTransportLongPolling = SignalrTransportKey.String("long_polling") + // WebSockets protocol + // Stability: stable + SignalrTransportWebSockets = SignalrTransportKey.String("web_sockets") +) + +// Namespace: source +const ( + // SourceAddressKey is the attribute Key conforming to the "source.address" semantic conventions. It represents the source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock" + // Note: When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent the source address behind any intermediaries, for example proxies, if it's available. + SourceAddressKey = attribute.Key("source.address") + + // SourcePortKey is the attribute Key conforming to the "source.port" semantic conventions. It represents the source port number. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 3389, 2888 + SourcePortKey = attribute.Key("source.port") +) + +// SourceAddress returns an attribute KeyValue conforming to the "source.address" semantic conventions. It represents the source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +func SourceAddress(val string) attribute.KeyValue { + return SourceAddressKey.String(val) +} + +// SourcePort returns an attribute KeyValue conforming to the "source.port" semantic conventions. It represents the source port number. +func SourcePort(val int) attribute.KeyValue { + return SourcePortKey.Int(val) +} + +// Namespace: system +const ( + // SystemCPULogicalNumberKey is the attribute Key conforming to the "system.cpu.logical_number" semantic conventions. It represents the logical CPU number [0..n-1]. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 1 + SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number") + + // SystemDeviceKey is the attribute Key conforming to the "system.device" semantic conventions. It represents the device identifier. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "(identifier)" + SystemDeviceKey = attribute.Key("system.device") + + // SystemFilesystemModeKey is the attribute Key conforming to the "system.filesystem.mode" semantic conventions. It represents the filesystem mode. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "rw, ro" + SystemFilesystemModeKey = attribute.Key("system.filesystem.mode") + + // SystemFilesystemMountpointKey is the attribute Key conforming to the "system.filesystem.mountpoint" semantic conventions. It represents the filesystem mount path. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/mnt/data" + SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint") + + // SystemFilesystemStateKey is the attribute Key conforming to the "system.filesystem.state" semantic conventions. It represents the filesystem state. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "used" + SystemFilesystemStateKey = attribute.Key("system.filesystem.state") + + // SystemFilesystemTypeKey is the attribute Key conforming to the "system.filesystem.type" semantic conventions. It represents the filesystem type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "ext4" + SystemFilesystemTypeKey = attribute.Key("system.filesystem.type") + + // SystemMemoryStateKey is the attribute Key conforming to the "system.memory.state" semantic conventions. It represents the memory state. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "free", "cached" + SystemMemoryStateKey = attribute.Key("system.memory.state") + + // SystemNetworkStateKey is the attribute Key conforming to the "system.network.state" semantic conventions. It represents a stateless protocol MUST NOT set this attribute. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "close_wait" + SystemNetworkStateKey = attribute.Key("system.network.state") + + // SystemPagingDirectionKey is the attribute Key conforming to the "system.paging.direction" semantic conventions. It represents the paging access direction. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "in" + SystemPagingDirectionKey = attribute.Key("system.paging.direction") + + // SystemPagingStateKey is the attribute Key conforming to the "system.paging.state" semantic conventions. It represents the memory paging state. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "free" + SystemPagingStateKey = attribute.Key("system.paging.state") + + // SystemPagingTypeKey is the attribute Key conforming to the "system.paging.type" semantic conventions. It represents the memory paging type. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "minor" + SystemPagingTypeKey = attribute.Key("system.paging.type") + + // SystemProcessStatusKey is the attribute Key conforming to the "system.process.status" semantic conventions. It represents the process state, e.g., [Linux Process State Codes]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "running" + // + // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES + SystemProcessStatusKey = attribute.Key("system.process.status") +) + +// SystemCPULogicalNumber returns an attribute KeyValue conforming to the "system.cpu.logical_number" semantic conventions. It represents the logical CPU number [0..n-1]. +func SystemCPULogicalNumber(val int) attribute.KeyValue { + return SystemCPULogicalNumberKey.Int(val) +} + +// SystemDevice returns an attribute KeyValue conforming to the "system.device" semantic conventions. It represents the device identifier. +func SystemDevice(val string) attribute.KeyValue { + return SystemDeviceKey.String(val) +} + +// SystemFilesystemMode returns an attribute KeyValue conforming to the "system.filesystem.mode" semantic conventions. It represents the filesystem mode. +func SystemFilesystemMode(val string) attribute.KeyValue { + return SystemFilesystemModeKey.String(val) +} + +// SystemFilesystemMountpoint returns an attribute KeyValue conforming to the "system.filesystem.mountpoint" semantic conventions. It represents the filesystem mount path. +func SystemFilesystemMountpoint(val string) attribute.KeyValue { + return SystemFilesystemMountpointKey.String(val) +} + +// Enum values for system.filesystem.state +var ( + // used + // Stability: experimental + SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used") + // free + // Stability: experimental + SystemFilesystemStateFree = SystemFilesystemStateKey.String("free") + // reserved + // Stability: experimental + SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved") +) + +// Enum values for system.filesystem.type +var ( + // fat32 + // Stability: experimental + SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32") + // exfat + // Stability: experimental + SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat") + // ntfs + // Stability: experimental + SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs") + // refs + // Stability: experimental + SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs") + // hfsplus + // Stability: experimental + SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus") + // ext4 + // Stability: experimental + SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4") +) + +// Enum values for system.memory.state +var ( + // used + // Stability: experimental + SystemMemoryStateUsed = SystemMemoryStateKey.String("used") + // free + // Stability: experimental + SystemMemoryStateFree = SystemMemoryStateKey.String("free") + // Deprecated: Removed, report shared memory usage with `metric.system.memory.shared` metric. + SystemMemoryStateShared = SystemMemoryStateKey.String("shared") + // buffers + // Stability: experimental + SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers") + // cached + // Stability: experimental + SystemMemoryStateCached = SystemMemoryStateKey.String("cached") +) + +// Enum values for system.network.state +var ( + // close + // Stability: experimental + SystemNetworkStateClose = SystemNetworkStateKey.String("close") + // close_wait + // Stability: experimental + SystemNetworkStateCloseWait = SystemNetworkStateKey.String("close_wait") + // closing + // Stability: experimental + SystemNetworkStateClosing = SystemNetworkStateKey.String("closing") + // delete + // Stability: experimental + SystemNetworkStateDelete = SystemNetworkStateKey.String("delete") + // established + // Stability: experimental + SystemNetworkStateEstablished = SystemNetworkStateKey.String("established") + // fin_wait_1 + // Stability: experimental + SystemNetworkStateFinWait1 = SystemNetworkStateKey.String("fin_wait_1") + // fin_wait_2 + // Stability: experimental + SystemNetworkStateFinWait2 = SystemNetworkStateKey.String("fin_wait_2") + // last_ack + // Stability: experimental + SystemNetworkStateLastAck = SystemNetworkStateKey.String("last_ack") + // listen + // Stability: experimental + SystemNetworkStateListen = SystemNetworkStateKey.String("listen") + // syn_recv + // Stability: experimental + SystemNetworkStateSynRecv = SystemNetworkStateKey.String("syn_recv") + // syn_sent + // Stability: experimental + SystemNetworkStateSynSent = SystemNetworkStateKey.String("syn_sent") + // time_wait + // Stability: experimental + SystemNetworkStateTimeWait = SystemNetworkStateKey.String("time_wait") +) + +// Enum values for system.paging.direction +var ( + // in + // Stability: experimental + SystemPagingDirectionIn = SystemPagingDirectionKey.String("in") + // out + // Stability: experimental + SystemPagingDirectionOut = SystemPagingDirectionKey.String("out") +) + +// Enum values for system.paging.state +var ( + // used + // Stability: experimental + SystemPagingStateUsed = SystemPagingStateKey.String("used") + // free + // Stability: experimental + SystemPagingStateFree = SystemPagingStateKey.String("free") +) + +// Enum values for system.paging.type +var ( + // major + // Stability: experimental + SystemPagingTypeMajor = SystemPagingTypeKey.String("major") + // minor + // Stability: experimental + SystemPagingTypeMinor = SystemPagingTypeKey.String("minor") +) + +// Enum values for system.process.status +var ( + // running + // Stability: experimental + SystemProcessStatusRunning = SystemProcessStatusKey.String("running") + // sleeping + // Stability: experimental + SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping") + // stopped + // Stability: experimental + SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped") + // defunct + // Stability: experimental + SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct") +) + +// Namespace: telemetry +const ( + // TelemetryDistroNameKey is the attribute Key conforming to the "telemetry.distro.name" semantic conventions. It represents the name of the auto instrumentation agent or distribution, if used. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "parts-unlimited-java" + // Note: Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to + // a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. + TelemetryDistroNameKey = attribute.Key("telemetry.distro.name") + + // TelemetryDistroVersionKey is the attribute Key conforming to the "telemetry.distro.version" semantic conventions. It represents the version string of the auto instrumentation agent or distribution, if used. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1.2.3" + TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version") + + // TelemetrySDKLanguageKey is the attribute Key conforming to the "telemetry.sdk.language" semantic conventions. It represents the language of the telemetry SDK. + // + // Type: Enum + // RequirementLevel: Required + // Stability: Stable + // + // Examples: + TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language") + + // TelemetrySDKNameKey is the attribute Key conforming to the "telemetry.sdk.name" semantic conventions. It represents the name of the telemetry SDK as defined above. + // + // Type: string + // RequirementLevel: Required + // Stability: Stable + // + // Examples: "opentelemetry" + // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. + // If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the + // `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point + // or another suitable identifier depending on the language. + // The identifier `opentelemetry` is reserved and MUST NOT be used in this case. + // All custom identifiers SHOULD be stable across different versions of an implementation. + TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name") + + // TelemetrySDKVersionKey is the attribute Key conforming to the "telemetry.sdk.version" semantic conventions. It represents the version string of the telemetry SDK. + // + // Type: string + // RequirementLevel: Required + // Stability: Stable + // + // Examples: "1.2.3" + TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version") +) + +// TelemetryDistroName returns an attribute KeyValue conforming to the "telemetry.distro.name" semantic conventions. It represents the name of the auto instrumentation agent or distribution, if used. +func TelemetryDistroName(val string) attribute.KeyValue { + return TelemetryDistroNameKey.String(val) +} + +// TelemetryDistroVersion returns an attribute KeyValue conforming to the "telemetry.distro.version" semantic conventions. It represents the version string of the auto instrumentation agent or distribution, if used. +func TelemetryDistroVersion(val string) attribute.KeyValue { + return TelemetryDistroVersionKey.String(val) +} + +// TelemetrySDKName returns an attribute KeyValue conforming to the "telemetry.sdk.name" semantic conventions. It represents the name of the telemetry SDK as defined above. +func TelemetrySDKName(val string) attribute.KeyValue { + return TelemetrySDKNameKey.String(val) +} + +// TelemetrySDKVersion returns an attribute KeyValue conforming to the "telemetry.sdk.version" semantic conventions. It represents the version string of the telemetry SDK. +func TelemetrySDKVersion(val string) attribute.KeyValue { + return TelemetrySDKVersionKey.String(val) +} + +// Enum values for telemetry.sdk.language +var ( + // cpp + // Stability: stable + TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp") + // dotnet + // Stability: stable + TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet") + // erlang + // Stability: stable + TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang") + // go + // Stability: stable + TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go") + // java + // Stability: stable + TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java") + // nodejs + // Stability: stable + TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs") + // php + // Stability: stable + TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php") + // python + // Stability: stable + TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python") + // ruby + // Stability: stable + TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby") + // rust + // Stability: stable + TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust") + // swift + // Stability: stable + TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift") + // webjs + // Stability: stable + TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs") +) + +// Namespace: test +const ( + // TestCaseNameKey is the attribute Key conforming to the "test.case.name" semantic conventions. It represents the fully qualified human readable name of the [test case]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1", "ExampleTestCase1_test1" + // + // [test case]: https://en.wikipedia.org/wiki/Test_case + TestCaseNameKey = attribute.Key("test.case.name") + + // TestCaseResultStatusKey is the attribute Key conforming to the "test.case.result.status" semantic conventions. It represents the status of the actual test case result from test execution. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "pass", "fail" + TestCaseResultStatusKey = attribute.Key("test.case.result.status") + + // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name" semantic conventions. It represents the human readable name of a [test suite]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "TestSuite1" + // + // [test suite]: https://en.wikipedia.org/wiki/Test_suite + TestSuiteNameKey = attribute.Key("test.suite.name") + + // TestSuiteRunStatusKey is the attribute Key conforming to the "test.suite.run.status" semantic conventions. It represents the status of the test suite run. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "success", "failure", "skipped", "aborted", "timed_out", "in_progress" + TestSuiteRunStatusKey = attribute.Key("test.suite.run.status") +) + +// TestCaseName returns an attribute KeyValue conforming to the "test.case.name" semantic conventions. It represents the fully qualified human readable name of the [test case]. +// +// [test case]: https://en.wikipedia.org/wiki/Test_case +func TestCaseName(val string) attribute.KeyValue { + return TestCaseNameKey.String(val) +} + +// TestSuiteName returns an attribute KeyValue conforming to the "test.suite.name" semantic conventions. It represents the human readable name of a [test suite]. +// +// [test suite]: https://en.wikipedia.org/wiki/Test_suite +func TestSuiteName(val string) attribute.KeyValue { + return TestSuiteNameKey.String(val) +} + +// Enum values for test.case.result.status +var ( + // pass + // Stability: experimental + TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass") + // fail + // Stability: experimental + TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail") +) + +// Enum values for test.suite.run.status +var ( + // success + // Stability: experimental + TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success") + // failure + // Stability: experimental + TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure") + // skipped + // Stability: experimental + TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped") + // aborted + // Stability: experimental + TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted") + // timed_out + // Stability: experimental + TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out") + // in_progress + // Stability: experimental + TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress") +) + +// Namespace: thread +const ( + // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic conventions. It represents the current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + ThreadIDKey = attribute.Key("thread.id") + + // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic conventions. It represents the current thread name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: main + ThreadNameKey = attribute.Key("thread.name") +) + +// ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic conventions. It represents the current "managed" thread ID (as opposed to OS thread ID). +func ThreadID(val int) attribute.KeyValue { + return ThreadIDKey.Int(val) +} + +// ThreadName returns an attribute KeyValue conforming to the "thread.name" semantic conventions. It represents the current thread name. +func ThreadName(val string) attribute.KeyValue { + return ThreadNameKey.String(val) +} + +// Namespace: tls +const ( + // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic conventions. It represents the string indicating the [cipher] used during the current connection. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions` of the [registered TLS Cipher Suits]. + // + // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 + // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4 + TLSCipherKey = attribute.Key("tls.cipher") + + // TLSClientCertificateKey is the attribute Key conforming to the "tls.client.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "MII..." + TLSClientCertificateKey = attribute.Key("tls.client.certificate") + + // TLSClientCertificateChainKey is the attribute Key conforming to the "tls.client.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "MII...", "MI..." + TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain") + + // TLSClientHashMd5Key is the attribute Key conforming to the "tls.client.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" + TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5") + + // TLSClientHashSha1Key is the attribute Key conforming to the "tls.client.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" + TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1") + + // TLSClientHashSha256Key is the attribute Key conforming to the "tls.client.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" + TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256") + + // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" + // + // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 + TLSClientIssuerKey = attribute.Key("tls.client.issuer") + + // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3" semantic conventions. It represents a hash that identifies clients based on how they perform an SSL/TLS handshake. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "d4e5b18d6b55c71272893221c96ba240" + TLSClientJa3Key = attribute.Key("tls.client.ja3") + + // TLSClientNotAfterKey is the attribute Key conforming to the "tls.client.not_after" semantic conventions. It represents the date/Time indicating when client certificate is no longer considered valid. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T00:00:00.000Z" + TLSClientNotAfterKey = attribute.Key("tls.client.not_after") + + // TLSClientNotBeforeKey is the attribute Key conforming to the "tls.client.not_before" semantic conventions. It represents the date/Time indicating when client certificate is first considered valid. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1970-01-01T00:00:00.000Z" + TLSClientNotBeforeKey = attribute.Key("tls.client.not_before") + + // TLSClientSubjectKey is the attribute Key conforming to the "tls.client.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the client. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com" + TLSClientSubjectKey = attribute.Key("tls.client.subject") + + // TLSClientSupportedCiphersKey is the attribute Key conforming to the "tls.client.supported_ciphers" semantic conventions. It represents the array of ciphers offered by the client during the client hello. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers") + + // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic conventions. It represents the string indicating the curve used for the given cipher, when applicable. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "secp256r1" + TLSCurveKey = attribute.Key("tls.curve") + + // TLSEstablishedKey is the attribute Key conforming to the "tls.established" semantic conventions. It represents the boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: true + TLSEstablishedKey = attribute.Key("tls.established") + + // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol" semantic conventions. It represents the string indicating the protocol being tunneled. Per the values in the [IANA registry], this string should be lower case. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "http/1.1" + // + // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + TLSNextProtocolKey = attribute.Key("tls.next_protocol") + + // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name" semantic conventions. It represents the normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version]. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // + // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES + TLSProtocolNameKey = attribute.Key("tls.protocol.name") + + // TLSProtocolVersionKey is the attribute Key conforming to the "tls.protocol.version" semantic conventions. It represents the numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1.2", "3" + // + // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES + TLSProtocolVersionKey = attribute.Key("tls.protocol.version") + + // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic conventions. It represents the boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. + // + // Type: boolean + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: true + TLSResumedKey = attribute.Key("tls.resumed") + + // TLSServerCertificateKey is the attribute Key conforming to the "tls.server.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "MII..." + TLSServerCertificateKey = attribute.Key("tls.server.certificate") + + // TLSServerCertificateChainKey is the attribute Key conforming to the "tls.server.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "MII...", "MI..." + TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain") + + // TLSServerHashMd5Key is the attribute Key conforming to the "tls.server.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" + TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5") + + // TLSServerHashSha1Key is the attribute Key conforming to the "tls.server.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" + TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1") + + // TLSServerHashSha256Key is the attribute Key conforming to the "tls.server.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" + TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256") + + // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" + // + // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 + TLSServerIssuerKey = attribute.Key("tls.server.issuer") + + // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s" semantic conventions. It represents a hash that identifies servers based on how they perform an SSL/TLS handshake. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "d4e5b18d6b55c71272893221c96ba240" + TLSServerJa3sKey = attribute.Key("tls.server.ja3s") + + // TLSServerNotAfterKey is the attribute Key conforming to the "tls.server.not_after" semantic conventions. It represents the date/Time indicating when server certificate is no longer considered valid. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "2021-01-01T00:00:00.000Z" + TLSServerNotAfterKey = attribute.Key("tls.server.not_after") + + // TLSServerNotBeforeKey is the attribute Key conforming to the "tls.server.not_before" semantic conventions. It represents the date/Time indicating when server certificate is first considered valid. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "1970-01-01T00:00:00.000Z" + TLSServerNotBeforeKey = attribute.Key("tls.server.not_before") + + // TLSServerSubjectKey is the attribute Key conforming to the "tls.server.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the server. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com" + TLSServerSubjectKey = attribute.Key("tls.server.subject") +) + +// TLSCipher returns an attribute KeyValue conforming to the "tls.cipher" semantic conventions. It represents the string indicating the [cipher] used during the current connection. +// +// [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 +func TLSCipher(val string) attribute.KeyValue { + return TLSCipherKey.String(val) +} + +// TLSClientCertificate returns an attribute KeyValue conforming to the "tls.client.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. +func TLSClientCertificate(val string) attribute.KeyValue { + return TLSClientCertificateKey.String(val) +} + +// TLSClientCertificateChain returns an attribute KeyValue conforming to the "tls.client.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. +func TLSClientCertificateChain(val ...string) attribute.KeyValue { + return TLSClientCertificateChainKey.StringSlice(val) +} + +// TLSClientHashMd5 returns an attribute KeyValue conforming to the "tls.client.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSClientHashMd5(val string) attribute.KeyValue { + return TLSClientHashMd5Key.String(val) +} + +// TLSClientHashSha1 returns an attribute KeyValue conforming to the "tls.client.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSClientHashSha1(val string) attribute.KeyValue { + return TLSClientHashSha1Key.String(val) +} + +// TLSClientHashSha256 returns an attribute KeyValue conforming to the "tls.client.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSClientHashSha256(val string) attribute.KeyValue { + return TLSClientHashSha256Key.String(val) +} + +// TLSClientIssuer returns an attribute KeyValue conforming to the "tls.client.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. +// +// [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 +func TLSClientIssuer(val string) attribute.KeyValue { + return TLSClientIssuerKey.String(val) +} + +// TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3" semantic conventions. It represents a hash that identifies clients based on how they perform an SSL/TLS handshake. +func TLSClientJa3(val string) attribute.KeyValue { + return TLSClientJa3Key.String(val) +} + +// TLSClientNotAfter returns an attribute KeyValue conforming to the "tls.client.not_after" semantic conventions. It represents the date/Time indicating when client certificate is no longer considered valid. +func TLSClientNotAfter(val string) attribute.KeyValue { + return TLSClientNotAfterKey.String(val) +} + +// TLSClientNotBefore returns an attribute KeyValue conforming to the "tls.client.not_before" semantic conventions. It represents the date/Time indicating when client certificate is first considered valid. +func TLSClientNotBefore(val string) attribute.KeyValue { + return TLSClientNotBeforeKey.String(val) +} + +// TLSClientSubject returns an attribute KeyValue conforming to the "tls.client.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the client. +func TLSClientSubject(val string) attribute.KeyValue { + return TLSClientSubjectKey.String(val) +} + +// TLSClientSupportedCiphers returns an attribute KeyValue conforming to the "tls.client.supported_ciphers" semantic conventions. It represents the array of ciphers offered by the client during the client hello. +func TLSClientSupportedCiphers(val ...string) attribute.KeyValue { + return TLSClientSupportedCiphersKey.StringSlice(val) +} + +// TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic conventions. It represents the string indicating the curve used for the given cipher, when applicable. +func TLSCurve(val string) attribute.KeyValue { + return TLSCurveKey.String(val) +} + +// TLSEstablished returns an attribute KeyValue conforming to the "tls.established" semantic conventions. It represents the boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. +func TLSEstablished(val bool) attribute.KeyValue { + return TLSEstablishedKey.Bool(val) +} + +// TLSNextProtocol returns an attribute KeyValue conforming to the "tls.next_protocol" semantic conventions. It represents the string indicating the protocol being tunneled. Per the values in the [IANA registry], this string should be lower case. +// +// [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids +func TLSNextProtocol(val string) attribute.KeyValue { + return TLSNextProtocolKey.String(val) +} + +// TLSProtocolVersion returns an attribute KeyValue conforming to the "tls.protocol.version" semantic conventions. It represents the numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version]. +// +// [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES +func TLSProtocolVersion(val string) attribute.KeyValue { + return TLSProtocolVersionKey.String(val) +} + +// TLSResumed returns an attribute KeyValue conforming to the "tls.resumed" semantic conventions. It represents the boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. +func TLSResumed(val bool) attribute.KeyValue { + return TLSResumedKey.Bool(val) +} + +// TLSServerCertificate returns an attribute KeyValue conforming to the "tls.server.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. +func TLSServerCertificate(val string) attribute.KeyValue { + return TLSServerCertificateKey.String(val) +} + +// TLSServerCertificateChain returns an attribute KeyValue conforming to the "tls.server.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. +func TLSServerCertificateChain(val ...string) attribute.KeyValue { + return TLSServerCertificateChainKey.StringSlice(val) +} + +// TLSServerHashMd5 returns an attribute KeyValue conforming to the "tls.server.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSServerHashMd5(val string) attribute.KeyValue { + return TLSServerHashMd5Key.String(val) +} + +// TLSServerHashSha1 returns an attribute KeyValue conforming to the "tls.server.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSServerHashSha1(val string) attribute.KeyValue { + return TLSServerHashSha1Key.String(val) +} + +// TLSServerHashSha256 returns an attribute KeyValue conforming to the "tls.server.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +func TLSServerHashSha256(val string) attribute.KeyValue { + return TLSServerHashSha256Key.String(val) +} + +// TLSServerIssuer returns an attribute KeyValue conforming to the "tls.server.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. +// +// [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 +func TLSServerIssuer(val string) attribute.KeyValue { + return TLSServerIssuerKey.String(val) +} + +// TLSServerJa3s returns an attribute KeyValue conforming to the "tls.server.ja3s" semantic conventions. It represents a hash that identifies servers based on how they perform an SSL/TLS handshake. +func TLSServerJa3s(val string) attribute.KeyValue { + return TLSServerJa3sKey.String(val) +} + +// TLSServerNotAfter returns an attribute KeyValue conforming to the "tls.server.not_after" semantic conventions. It represents the date/Time indicating when server certificate is no longer considered valid. +func TLSServerNotAfter(val string) attribute.KeyValue { + return TLSServerNotAfterKey.String(val) +} + +// TLSServerNotBefore returns an attribute KeyValue conforming to the "tls.server.not_before" semantic conventions. It represents the date/Time indicating when server certificate is first considered valid. +func TLSServerNotBefore(val string) attribute.KeyValue { + return TLSServerNotBeforeKey.String(val) +} + +// TLSServerSubject returns an attribute KeyValue conforming to the "tls.server.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the server. +func TLSServerSubject(val string) attribute.KeyValue { + return TLSServerSubjectKey.String(val) +} + +// Enum values for tls.protocol.name +var ( + // ssl + // Stability: experimental + TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl") + // tls + // Stability: experimental + TLSProtocolNameTLS = TLSProtocolNameKey.String("tls") +) + +// Namespace: url +const ( + // URLDomainKey is the attribute Key conforming to the "url.domain" semantic conventions. It represents the domain extracted from the `url.full`, such as "opentelemetry.io". + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2", "[1080:0:0:0:8:800:200C:417A]" + // Note: In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. + // + // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2 + URLDomainKey = attribute.Key("url.domain") + + // URLExtensionKey is the attribute Key conforming to the "url.extension" semantic conventions. It represents the file extension extracted from the `url.full`, excluding the leading dot. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "png", "gz" + // Note: The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. + URLExtensionKey = attribute.Key("url.extension") + + // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic conventions. It represents the [URI fragment] component. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "SemConv" + // + // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 + URLFragmentKey = attribute.Key("url.fragment") + + // URLFullKey is the attribute Key conforming to the "url.full" semantic conventions. It represents the absolute URL describing a network resource according to [RFC3986]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost" + // Note: For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. + // `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. + // `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it. + // + // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 + URLFullKey = attribute.Key("url.full") + + // URLOriginalKey is the attribute Key conforming to the "url.original" semantic conventions. It represents the unmodified original URL as seen in the event source. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "search?q=OpenTelemetry" + // Note: In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. + // `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same. + URLOriginalKey = attribute.Key("url.original") + + // URLPathKey is the attribute Key conforming to the "url.path" semantic conventions. It represents the [URI path] component. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "/search" + // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it. + // + // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 + URLPathKey = attribute.Key("url.path") + + // URLPortKey is the attribute Key conforming to the "url.port" semantic conventions. It represents the port extracted from the `url.full`. + // + // Type: int + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: 443 + URLPortKey = attribute.Key("url.port") + + // URLQueryKey is the attribute Key conforming to the "url.query" semantic conventions. It represents the [URI query] component. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "q=OpenTelemetry" + // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it. + // + // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 + URLQueryKey = attribute.Key("url.query") + + // URLRegisteredDomainKey is the attribute Key conforming to the "url.registered_domain" semantic conventions. It represents the highest registered url domain, stripped of the subdomain. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "example.com", "foo.co.uk" + // Note: This value can be determined precisely with the [public suffix list]. For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. + // + // [public suffix list]: http://publicsuffix.org + URLRegisteredDomainKey = attribute.Key("url.registered_domain") + + // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic conventions. It represents the [URI scheme] component identifying the used protocol. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "https", "ftp", "telnet" + // + // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 + URLSchemeKey = attribute.Key("url.scheme") + + // URLSubdomainKey is the attribute Key conforming to the "url.subdomain" semantic conventions. It represents the subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "east", "sub2.sub1" + // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. + URLSubdomainKey = attribute.Key("url.subdomain") + + // URLTemplateKey is the attribute Key conforming to the "url.template" semantic conventions. It represents the low-cardinality template of an [absolute path reference]. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "/users/{id}", "/users/:id", "/users?id={id}" + // + // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 + URLTemplateKey = attribute.Key("url.template") + + // URLTopLevelDomainKey is the attribute Key conforming to the "url.top_level_domain" semantic conventions. It represents the effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "com", "co.uk" + // Note: This value can be determined precisely with the [public suffix list]. + // + // [public suffix list]: http://publicsuffix.org + URLTopLevelDomainKey = attribute.Key("url.top_level_domain") +) + +// URLDomain returns an attribute KeyValue conforming to the "url.domain" semantic conventions. It represents the domain extracted from the `url.full`, such as "opentelemetry.io". +func URLDomain(val string) attribute.KeyValue { + return URLDomainKey.String(val) +} + +// URLExtension returns an attribute KeyValue conforming to the "url.extension" semantic conventions. It represents the file extension extracted from the `url.full`, excluding the leading dot. +func URLExtension(val string) attribute.KeyValue { + return URLExtensionKey.String(val) +} + +// URLFragment returns an attribute KeyValue conforming to the "url.fragment" semantic conventions. It represents the [URI fragment] component. +// +// [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 +func URLFragment(val string) attribute.KeyValue { + return URLFragmentKey.String(val) +} + +// URLFull returns an attribute KeyValue conforming to the "url.full" semantic conventions. It represents the absolute URL describing a network resource according to [RFC3986]. +// +// [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 +func URLFull(val string) attribute.KeyValue { + return URLFullKey.String(val) +} + +// URLOriginal returns an attribute KeyValue conforming to the "url.original" semantic conventions. It represents the unmodified original URL as seen in the event source. +func URLOriginal(val string) attribute.KeyValue { + return URLOriginalKey.String(val) +} + +// URLPath returns an attribute KeyValue conforming to the "url.path" semantic conventions. It represents the [URI path] component. +// +// [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 +func URLPath(val string) attribute.KeyValue { + return URLPathKey.String(val) +} + +// URLPort returns an attribute KeyValue conforming to the "url.port" semantic conventions. It represents the port extracted from the `url.full`. +func URLPort(val int) attribute.KeyValue { + return URLPortKey.Int(val) +} + +// URLQuery returns an attribute KeyValue conforming to the "url.query" semantic conventions. It represents the [URI query] component. +// +// [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 +func URLQuery(val string) attribute.KeyValue { + return URLQueryKey.String(val) +} + +// URLRegisteredDomain returns an attribute KeyValue conforming to the "url.registered_domain" semantic conventions. It represents the highest registered url domain, stripped of the subdomain. +func URLRegisteredDomain(val string) attribute.KeyValue { + return URLRegisteredDomainKey.String(val) +} + +// URLScheme returns an attribute KeyValue conforming to the "url.scheme" semantic conventions. It represents the [URI scheme] component identifying the used protocol. +// +// [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 +func URLScheme(val string) attribute.KeyValue { + return URLSchemeKey.String(val) +} + +// URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain" semantic conventions. It represents the subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. +func URLSubdomain(val string) attribute.KeyValue { + return URLSubdomainKey.String(val) +} + +// URLTemplate returns an attribute KeyValue conforming to the "url.template" semantic conventions. It represents the low-cardinality template of an [absolute path reference]. +// +// [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 +func URLTemplate(val string) attribute.KeyValue { + return URLTemplateKey.String(val) +} + +// URLTopLevelDomain returns an attribute KeyValue conforming to the "url.top_level_domain" semantic conventions. It represents the effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. +func URLTopLevelDomain(val string) attribute.KeyValue { + return URLTopLevelDomainKey.String(val) +} + +// Namespace: user +const ( + // UserEmailKey is the attribute Key conforming to the "user.email" semantic conventions. It represents the user email address. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "a.einstein@example.com" + UserEmailKey = attribute.Key("user.email") + + // UserFullNameKey is the attribute Key conforming to the "user.full_name" semantic conventions. It represents the user's full name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Albert Einstein" + UserFullNameKey = attribute.Key("user.full_name") + + // UserHashKey is the attribute Key conforming to the "user.hash" semantic conventions. It represents the unique user hash to correlate information for a user in anonymized form. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa" + // Note: Useful if `user.id` or `user.name` contain confidential information and cannot be used. + UserHashKey = attribute.Key("user.hash") + + // UserIDKey is the attribute Key conforming to the "user.id" semantic conventions. It represents the unique identifier of the user. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000" + UserIDKey = attribute.Key("user.id") + + // UserNameKey is the attribute Key conforming to the "user.name" semantic conventions. It represents the short name or login/username of the user. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "a.einstein" + UserNameKey = attribute.Key("user.name") + + // UserRolesKey is the attribute Key conforming to the "user.roles" semantic conventions. It represents the array of user roles at the time of the event. + // + // Type: string[] + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "admin", "reporting_user" + UserRolesKey = attribute.Key("user.roles") +) + +// UserEmail returns an attribute KeyValue conforming to the "user.email" semantic conventions. It represents the user email address. +func UserEmail(val string) attribute.KeyValue { + return UserEmailKey.String(val) +} + +// UserFullName returns an attribute KeyValue conforming to the "user.full_name" semantic conventions. It represents the user's full name. +func UserFullName(val string) attribute.KeyValue { + return UserFullNameKey.String(val) +} + +// UserHash returns an attribute KeyValue conforming to the "user.hash" semantic conventions. It represents the unique user hash to correlate information for a user in anonymized form. +func UserHash(val string) attribute.KeyValue { + return UserHashKey.String(val) +} + +// UserID returns an attribute KeyValue conforming to the "user.id" semantic conventions. It represents the unique identifier of the user. +func UserID(val string) attribute.KeyValue { + return UserIDKey.String(val) +} + +// UserName returns an attribute KeyValue conforming to the "user.name" semantic conventions. It represents the short name or login/username of the user. +func UserName(val string) attribute.KeyValue { + return UserNameKey.String(val) +} + +// UserRoles returns an attribute KeyValue conforming to the "user.roles" semantic conventions. It represents the array of user roles at the time of the event. +func UserRoles(val ...string) attribute.KeyValue { + return UserRolesKey.StringSlice(val) +} + +// Namespace: user_agent +const ( + // UserAgentNameKey is the attribute Key conforming to the "user_agent.name" semantic conventions. It represents the name of the user-agent extracted from original. Usually refers to the browser's name. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Safari", "YourApp" + // Note: [Example] of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version` + // + // [Example]: https://www.whatsmyua.info + UserAgentNameKey = attribute.Key("user_agent.name") + + // UserAgentOriginalKey is the attribute Key conforming to the "user_agent.original" semantic conventions. It represents the value of the [HTTP User-Agent] header sent by the client. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Stable + // + // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0 grpc-java-okhttp/1.27.2" + // + // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent + UserAgentOriginalKey = attribute.Key("user_agent.original") + + // UserAgentVersionKey is the attribute Key conforming to the "user_agent.version" semantic conventions. It represents the version of the user-agent extracted from original. Usually refers to the browser's version. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "14.1.2", "1.0.0" + // Note: [Example] of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name` + // + // [Example]: https://www.whatsmyua.info + UserAgentVersionKey = attribute.Key("user_agent.version") +) + +// UserAgentName returns an attribute KeyValue conforming to the "user_agent.name" semantic conventions. It represents the name of the user-agent extracted from original. Usually refers to the browser's name. +func UserAgentName(val string) attribute.KeyValue { + return UserAgentNameKey.String(val) +} + +// UserAgentOriginal returns an attribute KeyValue conforming to the "user_agent.original" semantic conventions. It represents the value of the [HTTP User-Agent] header sent by the client. +// +// [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent +func UserAgentOriginal(val string) attribute.KeyValue { + return UserAgentOriginalKey.String(val) +} + +// UserAgentVersion returns an attribute KeyValue conforming to the "user_agent.version" semantic conventions. It represents the version of the user-agent extracted from original. Usually refers to the browser's version. +func UserAgentVersion(val string) attribute.KeyValue { + return UserAgentVersionKey.String(val) +} + +// Namespace: v8js +const ( + // V8JSGCTypeKey is the attribute Key conforming to the "v8js.gc.type" semantic conventions. It represents the type of garbage collection. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + V8JSGCTypeKey = attribute.Key("v8js.gc.type") + + // V8JSHeapSpaceNameKey is the attribute Key conforming to the "v8js.heap.space.name" semantic conventions. It represents the name of the space type of heap memory. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: + // Note: Value can be retrieved from value `space_name` of [`v8.getHeapSpaceStatistics()`] + // + // [`v8.getHeapSpaceStatistics()`]: https://nodejs.org/api/v8.html#v8getheapspacestatistics + V8JSHeapSpaceNameKey = attribute.Key("v8js.heap.space.name") +) + +// Enum values for v8js.gc.type +var ( + // Major (Mark Sweep Compact). + // Stability: experimental + V8JSGCTypeMajor = V8JSGCTypeKey.String("major") + // Minor (Scavenge). + // Stability: experimental + V8JSGCTypeMinor = V8JSGCTypeKey.String("minor") + // Incremental (Incremental Marking). + // Stability: experimental + V8JSGCTypeIncremental = V8JSGCTypeKey.String("incremental") + // Weak Callbacks (Process Weak Callbacks). + // Stability: experimental + V8JSGCTypeWeakcb = V8JSGCTypeKey.String("weakcb") +) + +// Enum values for v8js.heap.space.name +var ( + // New memory space. + // Stability: experimental + V8JSHeapSpaceNameNewSpace = V8JSHeapSpaceNameKey.String("new_space") + // Old memory space. + // Stability: experimental + V8JSHeapSpaceNameOldSpace = V8JSHeapSpaceNameKey.String("old_space") + // Code memory space. + // Stability: experimental + V8JSHeapSpaceNameCodeSpace = V8JSHeapSpaceNameKey.String("code_space") + // Map memory space. + // Stability: experimental + V8JSHeapSpaceNameMapSpace = V8JSHeapSpaceNameKey.String("map_space") + // Large object memory space. + // Stability: experimental + V8JSHeapSpaceNameLargeObjectSpace = V8JSHeapSpaceNameKey.String("large_object_space") +) + +// Namespace: vcs +const ( + // VCSRepositoryChangeIDKey is the attribute Key conforming to the "vcs.repository.change.id" semantic conventions. It represents the ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "123" + VCSRepositoryChangeIDKey = attribute.Key("vcs.repository.change.id") + + // VCSRepositoryChangeTitleKey is the attribute Key conforming to the "vcs.repository.change.title" semantic conventions. It represents the human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update dependency" + VCSRepositoryChangeTitleKey = attribute.Key("vcs.repository.change.title") + + // VCSRepositoryRefNameKey is the attribute Key conforming to the "vcs.repository.ref.name" semantic conventions. It represents the name of the [reference] such as **branch** or **tag** in the repository. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "my-feature-branch", "tag-1-test" + // + // [reference]: https://git-scm.com/docs/gitglossary#def_ref + VCSRepositoryRefNameKey = attribute.Key("vcs.repository.ref.name") + + // VCSRepositoryRefRevisionKey is the attribute Key conforming to the "vcs.repository.ref.revision" semantic conventions. It represents the revision, literally [revised version], The revision most often refers to a commit object in Git, or a revision number in SVN. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", "main", "123", "HEAD" + // Note: The revision can be a full [hash value (see glossary)], + // of the recorded change to a ref within a repository pointing to a + // commit [commit] object. It does + // not necessarily have to be a hash; it can simply define a + // [revision number] + // which is an integer that is monotonically increasing. In cases where + // it is identical to the `ref.name`, it SHOULD still be included. It is + // up to the implementer to decide which value to set as the revision + // based on the VCS system and situational context. + // + // [revised version]: https://www.merriam-webster.com/dictionary/revision + // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf + // [commit]: https://git-scm.com/docs/git-commit + // [revision number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html + VCSRepositoryRefRevisionKey = attribute.Key("vcs.repository.ref.revision") + + // VCSRepositoryRefTypeKey is the attribute Key conforming to the "vcs.repository.ref.type" semantic conventions. It represents the type of the [reference] in the repository. + // + // Type: Enum + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "branch", "tag" + // + // [reference]: https://git-scm.com/docs/gitglossary#def_ref + VCSRepositoryRefTypeKey = attribute.Key("vcs.repository.ref.type") + + // VCSRepositoryURLFullKey is the attribute Key conforming to the "vcs.repository.url.full" semantic conventions. It represents the [URL] of the repository providing the complete address in order to locate and identify the repository. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "https://github.com/opentelemetry/open-telemetry-collector-contrib", "https://gitlab.com/my-org/my-project/my-projects-project/repo" + // + // [URL]: https://en.wikipedia.org/wiki/URL + VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full") +) + +// VCSRepositoryChangeID returns an attribute KeyValue conforming to the "vcs.repository.change.id" semantic conventions. It represents the ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. +func VCSRepositoryChangeID(val string) attribute.KeyValue { + return VCSRepositoryChangeIDKey.String(val) +} + +// VCSRepositoryChangeTitle returns an attribute KeyValue conforming to the "vcs.repository.change.title" semantic conventions. It represents the human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. +func VCSRepositoryChangeTitle(val string) attribute.KeyValue { + return VCSRepositoryChangeTitleKey.String(val) +} + +// VCSRepositoryRefName returns an attribute KeyValue conforming to the "vcs.repository.ref.name" semantic conventions. It represents the name of the [reference] such as **branch** or **tag** in the repository. +// +// [reference]: https://git-scm.com/docs/gitglossary#def_ref +func VCSRepositoryRefName(val string) attribute.KeyValue { + return VCSRepositoryRefNameKey.String(val) +} + +// VCSRepositoryRefRevision returns an attribute KeyValue conforming to the "vcs.repository.ref.revision" semantic conventions. It represents the revision, literally [revised version], The revision most often refers to a commit object in Git, or a revision number in SVN. +// +// [revised version]: https://www.merriam-webster.com/dictionary/revision +func VCSRepositoryRefRevision(val string) attribute.KeyValue { + return VCSRepositoryRefRevisionKey.String(val) +} + +// VCSRepositoryURLFull returns an attribute KeyValue conforming to the "vcs.repository.url.full" semantic conventions. It represents the [URL] of the repository providing the complete address in order to locate and identify the repository. +// +// [URL]: https://en.wikipedia.org/wiki/URL +func VCSRepositoryURLFull(val string) attribute.KeyValue { + return VCSRepositoryURLFullKey.String(val) +} + +// Enum values for vcs.repository.ref.type +var ( + // [branch] + // Stability: experimental + // + // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch + VCSRepositoryRefTypeBranch = VCSRepositoryRefTypeKey.String("branch") + // [tag] + // Stability: experimental + // + // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag + VCSRepositoryRefTypeTag = VCSRepositoryRefTypeKey.String("tag") +) + +// Namespace: webengine +const ( + // WebEngineDescriptionKey is the attribute Key conforming to the "webengine.description" semantic conventions. It represents the additional description of the web engine (e.g. detailed version and edition information). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final" + WebEngineDescriptionKey = attribute.Key("webengine.description") + + // WebEngineNameKey is the attribute Key conforming to the "webengine.name" semantic conventions. It represents the name of the web engine. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "WildFly" + WebEngineNameKey = attribute.Key("webengine.name") + + // WebEngineVersionKey is the attribute Key conforming to the "webengine.version" semantic conventions. It represents the version of the web engine. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Experimental + // + // Examples: "21.0.0" + WebEngineVersionKey = attribute.Key("webengine.version") +) + +// WebEngineDescription returns an attribute KeyValue conforming to the "webengine.description" semantic conventions. It represents the additional description of the web engine (e.g. detailed version and edition information). +func WebEngineDescription(val string) attribute.KeyValue { + return WebEngineDescriptionKey.String(val) +} + +// WebEngineName returns an attribute KeyValue conforming to the "webengine.name" semantic conventions. It represents the name of the web engine. +func WebEngineName(val string) attribute.KeyValue { + return WebEngineNameKey.String(val) +} + +// WebEngineVersion returns an attribute KeyValue conforming to the "webengine.version" semantic conventions. It represents the version of the web engine. +func WebEngineVersion(val string) attribute.KeyValue { + return WebEngineVersionKey.String(val) +} \ No newline at end of file diff --git a/semconv/v1.28.0/doc.go b/semconv/v1.28.0/doc.go new file mode 100644 index 00000000000..f456a933559 --- /dev/null +++ b/semconv/v1.28.0/doc.go @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +// Package semconv implements OpenTelemetry semantic conventions. +// +// OpenTelemetry semantic conventions are agreed standardized naming +// patterns for OpenTelemetry things. This package represents the v1.28.0 +// version of the OpenTelemetry semantic conventions. +package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" diff --git a/semconv/v1.28.0/exception.go b/semconv/v1.28.0/exception.go new file mode 100644 index 00000000000..e703b7a7ba0 --- /dev/null +++ b/semconv/v1.28.0/exception.go @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" + +const ( + // ExceptionEventName is the name of the Span event representing an exception. + ExceptionEventName = "exception" +) diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go new file mode 100644 index 00000000000..1dc8f2ce865 --- /dev/null +++ b/semconv/v1.28.0/metric.go @@ -0,0 +1,1418 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" + +const ( + // ASPNETCoreDiagnosticsExceptions is the metric conforming to the "aspnetcore.diagnostics.exceptions" semantic conventions. It represents the number of exceptions caught by exception handling middleware. + // Instrument: counter + // Unit: {exception} + // Stability: stable + ASPNETCoreDiagnosticsExceptionsName = "aspnetcore.diagnostics.exceptions" + ASPNETCoreDiagnosticsExceptionsUnit = "{exception}" + ASPNETCoreDiagnosticsExceptionsDescription = "Number of exceptions caught by exception handling middleware." + // ASPNETCoreRateLimitingActiveRequestLeases is the metric conforming to the "aspnetcore.rate_limiting.active_request_leases" semantic conventions. It represents the number of requests that are currently active on the server that hold a rate limiting lease. + // Instrument: updowncounter + // Unit: {request} + // Stability: stable + ASPNETCoreRateLimitingActiveRequestLeasesName = "aspnetcore.rate_limiting.active_request_leases" + ASPNETCoreRateLimitingActiveRequestLeasesUnit = "{request}" + ASPNETCoreRateLimitingActiveRequestLeasesDescription = "Number of requests that are currently active on the server that hold a rate limiting lease." + // ASPNETCoreRateLimitingQueuedRequests is the metric conforming to the "aspnetcore.rate_limiting.queued_requests" semantic conventions. It represents the number of requests that are currently queued, waiting to acquire a rate limiting lease. + // Instrument: updowncounter + // Unit: {request} + // Stability: stable + ASPNETCoreRateLimitingQueuedRequestsName = "aspnetcore.rate_limiting.queued_requests" + ASPNETCoreRateLimitingQueuedRequestsUnit = "{request}" + ASPNETCoreRateLimitingQueuedRequestsDescription = "Number of requests that are currently queued, waiting to acquire a rate limiting lease." + // ASPNETCoreRateLimitingRequestTimeInQueue is the metric conforming to the "aspnetcore.rate_limiting.request.time_in_queue" semantic conventions. It represents the time the request spent in a queue waiting to acquire a rate limiting lease. + // Instrument: histogram + // Unit: s + // Stability: stable + ASPNETCoreRateLimitingRequestTimeInQueueName = "aspnetcore.rate_limiting.request.time_in_queue" + ASPNETCoreRateLimitingRequestTimeInQueueUnit = "s" + ASPNETCoreRateLimitingRequestTimeInQueueDescription = "The time the request spent in a queue waiting to acquire a rate limiting lease." + // ASPNETCoreRateLimitingRequestLeaseDuration is the metric conforming to the "aspnetcore.rate_limiting.request_lease.duration" semantic conventions. It represents the duration of rate limiting lease held by requests on the server. + // Instrument: histogram + // Unit: s + // Stability: stable + ASPNETCoreRateLimitingRequestLeaseDurationName = "aspnetcore.rate_limiting.request_lease.duration" + ASPNETCoreRateLimitingRequestLeaseDurationUnit = "s" + ASPNETCoreRateLimitingRequestLeaseDurationDescription = "The duration of rate limiting lease held by requests on the server." + // ASPNETCoreRateLimitingRequests is the metric conforming to the "aspnetcore.rate_limiting.requests" semantic conventions. It represents the number of requests that tried to acquire a rate limiting lease. + // Instrument: counter + // Unit: {request} + // Stability: stable + ASPNETCoreRateLimitingRequestsName = "aspnetcore.rate_limiting.requests" + ASPNETCoreRateLimitingRequestsUnit = "{request}" + ASPNETCoreRateLimitingRequestsDescription = "Number of requests that tried to acquire a rate limiting lease." + // ASPNETCoreRoutingMatchAttempts is the metric conforming to the "aspnetcore.routing.match_attempts" semantic conventions. It represents the number of requests that were attempted to be matched to an endpoint. + // Instrument: counter + // Unit: {match_attempt} + // Stability: stable + ASPNETCoreRoutingMatchAttemptsName = "aspnetcore.routing.match_attempts" + ASPNETCoreRoutingMatchAttemptsUnit = "{match_attempt}" + ASPNETCoreRoutingMatchAttemptsDescription = "Number of requests that were attempted to be matched to an endpoint." + // ContainerCPUTime is the metric conforming to the "container.cpu.time" semantic conventions. It represents the total CPU time consumed. + // Instrument: counter + // Unit: s + // Stability: experimental + ContainerCPUTimeName = "container.cpu.time" + ContainerCPUTimeUnit = "s" + ContainerCPUTimeDescription = "Total CPU time consumed" + // ContainerCPUUsage is the metric conforming to the "container.cpu.usage" semantic conventions. It represents the container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // Instrument: gauge + // Unit: {cpu} + // Stability: experimental + ContainerCPUUsageName = "container.cpu.usage" + ContainerCPUUsageUnit = "{cpu}" + ContainerCPUUsageDescription = "Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" + // ContainerDiskIo is the metric conforming to the "container.disk.io" semantic conventions. It represents the disk bytes for the container. + // Instrument: counter + // Unit: By + // Stability: experimental + ContainerDiskIoName = "container.disk.io" + ContainerDiskIoUnit = "By" + ContainerDiskIoDescription = "Disk bytes for the container." + // ContainerMemoryUsage is the metric conforming to the "container.memory.usage" semantic conventions. It represents the memory usage of the container. + // Instrument: counter + // Unit: By + // Stability: experimental + ContainerMemoryUsageName = "container.memory.usage" + ContainerMemoryUsageUnit = "By" + ContainerMemoryUsageDescription = "Memory usage of the container." + // ContainerNetworkIo is the metric conforming to the "container.network.io" semantic conventions. It represents the network bytes for the container. + // Instrument: counter + // Unit: By + // Stability: experimental + ContainerNetworkIoName = "container.network.io" + ContainerNetworkIoUnit = "By" + ContainerNetworkIoDescription = "Network bytes for the container." + // DBClientConnectionCount is the metric conforming to the "db.client.connection.count" semantic conventions. It represents the number of connections that are currently in state described by the `state` attribute. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + DBClientConnectionCountName = "db.client.connection.count" + DBClientConnectionCountUnit = "{connection}" + DBClientConnectionCountDescription = "The number of connections that are currently in state described by the `state` attribute" + // DBClientConnectionCreateTime is the metric conforming to the "db.client.connection.create_time" semantic conventions. It represents the time it took to create a new connection. + // Instrument: histogram + // Unit: s + // Stability: experimental + DBClientConnectionCreateTimeName = "db.client.connection.create_time" + DBClientConnectionCreateTimeUnit = "s" + DBClientConnectionCreateTimeDescription = "The time it took to create a new connection" + // DBClientConnectionIdleMax is the metric conforming to the "db.client.connection.idle.max" semantic conventions. It represents the maximum number of idle open connections allowed. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + DBClientConnectionIdleMaxName = "db.client.connection.idle.max" + DBClientConnectionIdleMaxUnit = "{connection}" + DBClientConnectionIdleMaxDescription = "The maximum number of idle open connections allowed" + // DBClientConnectionIdleMin is the metric conforming to the "db.client.connection.idle.min" semantic conventions. It represents the minimum number of idle open connections allowed. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + DBClientConnectionIdleMinName = "db.client.connection.idle.min" + DBClientConnectionIdleMinUnit = "{connection}" + DBClientConnectionIdleMinDescription = "The minimum number of idle open connections allowed" + // DBClientConnectionMax is the metric conforming to the "db.client.connection.max" semantic conventions. It represents the maximum number of open connections allowed. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + DBClientConnectionMaxName = "db.client.connection.max" + DBClientConnectionMaxUnit = "{connection}" + DBClientConnectionMaxDescription = "The maximum number of open connections allowed" + // DBClientConnectionPendingRequests is the metric conforming to the "db.client.connection.pending_requests" semantic conventions. It represents the number of current pending requests for an open connection. + // Instrument: updowncounter + // Unit: {request} + // Stability: experimental + DBClientConnectionPendingRequestsName = "db.client.connection.pending_requests" + DBClientConnectionPendingRequestsUnit = "{request}" + DBClientConnectionPendingRequestsDescription = "The number of current pending requests for an open connection" + // DBClientConnectionTimeouts is the metric conforming to the "db.client.connection.timeouts" semantic conventions. It represents the number of connection timeouts that have occurred trying to obtain a connection from the pool. + // Instrument: counter + // Unit: {timeout} + // Stability: experimental + DBClientConnectionTimeoutsName = "db.client.connection.timeouts" + DBClientConnectionTimeoutsUnit = "{timeout}" + DBClientConnectionTimeoutsDescription = "The number of connection timeouts that have occurred trying to obtain a connection from the pool" + // DBClientConnectionUseTime is the metric conforming to the "db.client.connection.use_time" semantic conventions. It represents the time between borrowing a connection and returning it to the pool. + // Instrument: histogram + // Unit: s + // Stability: experimental + DBClientConnectionUseTimeName = "db.client.connection.use_time" + DBClientConnectionUseTimeUnit = "s" + DBClientConnectionUseTimeDescription = "The time between borrowing a connection and returning it to the pool" + // DBClientConnectionWaitTime is the metric conforming to the "db.client.connection.wait_time" semantic conventions. It represents the time it took to obtain an open connection from the pool. + // Instrument: histogram + // Unit: s + // Stability: experimental + DBClientConnectionWaitTimeName = "db.client.connection.wait_time" + DBClientConnectionWaitTimeUnit = "s" + DBClientConnectionWaitTimeDescription = "The time it took to obtain an open connection from the pool" + // DBClientConnectionsCreateTime is the metric conforming to the "db.client.connections.create_time" semantic conventions. It represents the deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. + // Instrument: histogram + // Unit: ms + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. + DBClientConnectionsCreateTimeName = "db.client.connections.create_time" + DBClientConnectionsCreateTimeUnit = "ms" + DBClientConnectionsCreateTimeDescription = "Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`." + // DBClientConnectionsIdleMax is the metric conforming to the "db.client.connections.idle.max" semantic conventions. It represents the deprecated, use `db.client.connection.idle.max` instead. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.idle.max`. + DBClientConnectionsIdleMaxName = "db.client.connections.idle.max" + DBClientConnectionsIdleMaxUnit = "{connection}" + DBClientConnectionsIdleMaxDescription = "Deprecated, use `db.client.connection.idle.max` instead." + // DBClientConnectionsIdleMin is the metric conforming to the "db.client.connections.idle.min" semantic conventions. It represents the deprecated, use `db.client.connection.idle.min` instead. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.idle.min`. + DBClientConnectionsIdleMinName = "db.client.connections.idle.min" + DBClientConnectionsIdleMinUnit = "{connection}" + DBClientConnectionsIdleMinDescription = "Deprecated, use `db.client.connection.idle.min` instead." + // DBClientConnectionsMax is the metric conforming to the "db.client.connections.max" semantic conventions. It represents the deprecated, use `db.client.connection.max` instead. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.max`. + DBClientConnectionsMaxName = "db.client.connections.max" + DBClientConnectionsMaxUnit = "{connection}" + DBClientConnectionsMaxDescription = "Deprecated, use `db.client.connection.max` instead." + // DBClientConnectionsPendingRequests is the metric conforming to the "db.client.connections.pending_requests" semantic conventions. It represents the deprecated, use `db.client.connection.pending_requests` instead. + // Instrument: updowncounter + // Unit: {request} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.pending_requests`. + DBClientConnectionsPendingRequestsName = "db.client.connections.pending_requests" + DBClientConnectionsPendingRequestsUnit = "{request}" + DBClientConnectionsPendingRequestsDescription = "Deprecated, use `db.client.connection.pending_requests` instead." + // DBClientConnectionsTimeouts is the metric conforming to the "db.client.connections.timeouts" semantic conventions. It represents the deprecated, use `db.client.connection.timeouts` instead. + // Instrument: counter + // Unit: {timeout} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.timeouts`. + DBClientConnectionsTimeoutsName = "db.client.connections.timeouts" + DBClientConnectionsTimeoutsUnit = "{timeout}" + DBClientConnectionsTimeoutsDescription = "Deprecated, use `db.client.connection.timeouts` instead." + // DBClientConnectionsUsage is the metric conforming to the "db.client.connections.usage" semantic conventions. It represents the deprecated, use `db.client.connection.count` instead. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.count`. + DBClientConnectionsUsageName = "db.client.connections.usage" + DBClientConnectionsUsageUnit = "{connection}" + DBClientConnectionsUsageDescription = "Deprecated, use `db.client.connection.count` instead." + // DBClientConnectionsUseTime is the metric conforming to the "db.client.connections.use_time" semantic conventions. It represents the deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. + // Instrument: histogram + // Unit: ms + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. + DBClientConnectionsUseTimeName = "db.client.connections.use_time" + DBClientConnectionsUseTimeUnit = "ms" + DBClientConnectionsUseTimeDescription = "Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`." + // DBClientConnectionsWaitTime is the metric conforming to the "db.client.connections.wait_time" semantic conventions. It represents the deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. + // Instrument: histogram + // Unit: ms + // Stability: experimental + // Deprecated: Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. + DBClientConnectionsWaitTimeName = "db.client.connections.wait_time" + DBClientConnectionsWaitTimeUnit = "ms" + DBClientConnectionsWaitTimeDescription = "Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`." + // DBClientOperationDuration is the metric conforming to the "db.client.operation.duration" semantic conventions. It represents the duration of database client operations. + // Instrument: histogram + // Unit: s + // Stability: experimental + DBClientOperationDurationName = "db.client.operation.duration" + DBClientOperationDurationUnit = "s" + DBClientOperationDurationDescription = "Duration of database client operations." + // DNSLookupDuration is the metric conforming to the "dns.lookup.duration" semantic conventions. It represents the measures the time taken to perform a DNS lookup. + // Instrument: histogram + // Unit: s + // Stability: experimental + DNSLookupDurationName = "dns.lookup.duration" + DNSLookupDurationUnit = "s" + DNSLookupDurationDescription = "Measures the time taken to perform a DNS lookup." + // DotnetAssemblyCount is the metric conforming to the "dotnet.assembly.count" semantic conventions. It represents the number of .NET assemblies that are currently loaded. + // Instrument: updowncounter + // Unit: {assembly} + // Stability: experimental + DotnetAssemblyCountName = "dotnet.assembly.count" + DotnetAssemblyCountUnit = "{assembly}" + DotnetAssemblyCountDescription = "The number of .NET assemblies that are currently loaded." + // DotnetExceptions is the metric conforming to the "dotnet.exceptions" semantic conventions. It represents the number of exceptions that have been thrown in managed code. + // Instrument: counter + // Unit: {exception} + // Stability: experimental + DotnetExceptionsName = "dotnet.exceptions" + DotnetExceptionsUnit = "{exception}" + DotnetExceptionsDescription = "The number of exceptions that have been thrown in managed code." + // DotnetGCCollections is the metric conforming to the "dotnet.gc.collections" semantic conventions. It represents the number of garbage collections that have occurred since the process has started. + // Instrument: counter + // Unit: {collection} + // Stability: experimental + DotnetGCCollectionsName = "dotnet.gc.collections" + DotnetGCCollectionsUnit = "{collection}" + DotnetGCCollectionsDescription = "The number of garbage collections that have occurred since the process has started." + // DotnetGCHeapTotalAllocated is the metric conforming to the "dotnet.gc.heap.total_allocated" semantic conventions. It represents the *approximate* number of bytes allocated on the managed GC heap since the process has started. The returned value does not include any native allocations. + // Instrument: counter + // Unit: By + // Stability: experimental + DotnetGCHeapTotalAllocatedName = "dotnet.gc.heap.total_allocated" + DotnetGCHeapTotalAllocatedUnit = "By" + DotnetGCHeapTotalAllocatedDescription = "The *approximate* number of bytes allocated on the managed GC heap since the process has started. The returned value does not include any native allocations." + // DotnetGCLastCollectionHeapFragmentationSize is the metric conforming to the "dotnet.gc.last_collection.heap.fragmentation.size" semantic conventions. It represents the heap fragmentation, as observed during the latest garbage collection. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + DotnetGCLastCollectionHeapFragmentationSizeName = "dotnet.gc.last_collection.heap.fragmentation.size" + DotnetGCLastCollectionHeapFragmentationSizeUnit = "By" + DotnetGCLastCollectionHeapFragmentationSizeDescription = "The heap fragmentation, as observed during the latest garbage collection." + // DotnetGCLastCollectionHeapSize is the metric conforming to the "dotnet.gc.last_collection.heap.size" semantic conventions. It represents the managed GC heap size (including fragmentation), as observed during the latest garbage collection. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + DotnetGCLastCollectionHeapSizeName = "dotnet.gc.last_collection.heap.size" + DotnetGCLastCollectionHeapSizeUnit = "By" + DotnetGCLastCollectionHeapSizeDescription = "The managed GC heap size (including fragmentation), as observed during the latest garbage collection." + // DotnetGCLastCollectionMemoryCommittedSize is the metric conforming to the "dotnet.gc.last_collection.memory.committed_size" semantic conventions. It represents the amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + DotnetGCLastCollectionMemoryCommittedSizeName = "dotnet.gc.last_collection.memory.committed_size" + DotnetGCLastCollectionMemoryCommittedSizeUnit = "By" + DotnetGCLastCollectionMemoryCommittedSizeDescription = "The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection." + // DotnetGCPauseTime is the metric conforming to the "dotnet.gc.pause.time" semantic conventions. It represents the total amount of time paused in GC since the process has started. + // Instrument: counter + // Unit: s + // Stability: experimental + DotnetGCPauseTimeName = "dotnet.gc.pause.time" + DotnetGCPauseTimeUnit = "s" + DotnetGCPauseTimeDescription = "The total amount of time paused in GC since the process has started." + // DotnetJitCompilationTime is the metric conforming to the "dotnet.jit.compilation.time" semantic conventions. It represents the amount of time the JIT compiler has spent compiling methods since the process has started. + // Instrument: counter + // Unit: s + // Stability: experimental + DotnetJitCompilationTimeName = "dotnet.jit.compilation.time" + DotnetJitCompilationTimeUnit = "s" + DotnetJitCompilationTimeDescription = "The amount of time the JIT compiler has spent compiling methods since the process has started." + // DotnetJitCompiledIlSize is the metric conforming to the "dotnet.jit.compiled_il.size" semantic conventions. It represents the count of bytes of intermediate language that have been compiled since the process has started. + // Instrument: counter + // Unit: By + // Stability: experimental + DotnetJitCompiledIlSizeName = "dotnet.jit.compiled_il.size" + DotnetJitCompiledIlSizeUnit = "By" + DotnetJitCompiledIlSizeDescription = "Count of bytes of intermediate language that have been compiled since the process has started." + // DotnetJitCompiledMethods is the metric conforming to the "dotnet.jit.compiled_methods" semantic conventions. It represents the number of times the JIT compiler (re)compiled methods since the process has started. + // Instrument: counter + // Unit: {method} + // Stability: experimental + DotnetJitCompiledMethodsName = "dotnet.jit.compiled_methods" + DotnetJitCompiledMethodsUnit = "{method}" + DotnetJitCompiledMethodsDescription = "The number of times the JIT compiler (re)compiled methods since the process has started." + // DotnetMonitorLockContentions is the metric conforming to the "dotnet.monitor.lock_contentions" semantic conventions. It represents the number of times there was contention when trying to acquire a monitor lock since the process has started. + // Instrument: counter + // Unit: {contention} + // Stability: experimental + DotnetMonitorLockContentionsName = "dotnet.monitor.lock_contentions" + DotnetMonitorLockContentionsUnit = "{contention}" + DotnetMonitorLockContentionsDescription = "The number of times there was contention when trying to acquire a monitor lock since the process has started." + // DotnetProcessCPUCount is the metric conforming to the "dotnet.process.cpu.count" semantic conventions. It represents the number of processors available to the process. + // Instrument: updowncounter + // Unit: {cpu} + // Stability: experimental + DotnetProcessCPUCountName = "dotnet.process.cpu.count" + DotnetProcessCPUCountUnit = "{cpu}" + DotnetProcessCPUCountDescription = "The number of processors available to the process." + // DotnetProcessCPUTime is the metric conforming to the "dotnet.process.cpu.time" semantic conventions. It represents the cPU time used by the process. + // Instrument: counter + // Unit: s + // Stability: experimental + DotnetProcessCPUTimeName = "dotnet.process.cpu.time" + DotnetProcessCPUTimeUnit = "s" + DotnetProcessCPUTimeDescription = "CPU time used by the process." + // DotnetProcessMemoryWorkingSet is the metric conforming to the "dotnet.process.memory.working_set" semantic conventions. It represents the number of bytes of physical memory mapped to the process context. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + DotnetProcessMemoryWorkingSetName = "dotnet.process.memory.working_set" + DotnetProcessMemoryWorkingSetUnit = "By" + DotnetProcessMemoryWorkingSetDescription = "The number of bytes of physical memory mapped to the process context." + // DotnetThreadPoolQueueLength is the metric conforming to the "dotnet.thread_pool.queue.length" semantic conventions. It represents the number of work items that are currently queued to be processed by the thread pool. + // Instrument: updowncounter + // Unit: {work_item} + // Stability: experimental + DotnetThreadPoolQueueLengthName = "dotnet.thread_pool.queue.length" + DotnetThreadPoolQueueLengthUnit = "{work_item}" + DotnetThreadPoolQueueLengthDescription = "The number of work items that are currently queued to be processed by the thread pool." + // DotnetThreadPoolThreadCount is the metric conforming to the "dotnet.thread_pool.thread.count" semantic conventions. It represents the number of thread pool threads that currently exist. + // Instrument: updowncounter + // Unit: {thread} + // Stability: experimental + DotnetThreadPoolThreadCountName = "dotnet.thread_pool.thread.count" + DotnetThreadPoolThreadCountUnit = "{thread}" + DotnetThreadPoolThreadCountDescription = "The number of thread pool threads that currently exist." + // DotnetThreadPoolWorkItemCount is the metric conforming to the "dotnet.thread_pool.work_item.count" semantic conventions. It represents the number of work items that the thread pool has completed since the process has started. + // Instrument: counter + // Unit: {work_item} + // Stability: experimental + DotnetThreadPoolWorkItemCountName = "dotnet.thread_pool.work_item.count" + DotnetThreadPoolWorkItemCountUnit = "{work_item}" + DotnetThreadPoolWorkItemCountDescription = "The number of work items that the thread pool has completed since the process has started." + // DotnetTimerCount is the metric conforming to the "dotnet.timer.count" semantic conventions. It represents the number of timer instances that are currently active. + // Instrument: updowncounter + // Unit: {timer} + // Stability: experimental + DotnetTimerCountName = "dotnet.timer.count" + DotnetTimerCountUnit = "{timer}" + DotnetTimerCountDescription = "The number of timer instances that are currently active." + // FaaSColdstarts is the metric conforming to the "faas.coldstarts" semantic conventions. It represents the number of invocation cold starts. + // Instrument: counter + // Unit: {coldstart} + // Stability: experimental + FaaSColdstartsName = "faas.coldstarts" + FaaSColdstartsUnit = "{coldstart}" + FaaSColdstartsDescription = "Number of invocation cold starts" + // FaaSCPUUsage is the metric conforming to the "faas.cpu_usage" semantic conventions. It represents the distribution of CPU usage per invocation. + // Instrument: histogram + // Unit: s + // Stability: experimental + FaaSCPUUsageName = "faas.cpu_usage" + FaaSCPUUsageUnit = "s" + FaaSCPUUsageDescription = "Distribution of CPU usage per invocation" + // FaaSErrors is the metric conforming to the "faas.errors" semantic conventions. It represents the number of invocation errors. + // Instrument: counter + // Unit: {error} + // Stability: experimental + FaaSErrorsName = "faas.errors" + FaaSErrorsUnit = "{error}" + FaaSErrorsDescription = "Number of invocation errors" + // FaaSInitDuration is the metric conforming to the "faas.init_duration" semantic conventions. It represents the measures the duration of the function's initialization, such as a cold start. + // Instrument: histogram + // Unit: s + // Stability: experimental + FaaSInitDurationName = "faas.init_duration" + FaaSInitDurationUnit = "s" + FaaSInitDurationDescription = "Measures the duration of the function's initialization, such as a cold start" + // FaaSInvocations is the metric conforming to the "faas.invocations" semantic conventions. It represents the number of successful invocations. + // Instrument: counter + // Unit: {invocation} + // Stability: experimental + FaaSInvocationsName = "faas.invocations" + FaaSInvocationsUnit = "{invocation}" + FaaSInvocationsDescription = "Number of successful invocations" + // FaaSInvokeDuration is the metric conforming to the "faas.invoke_duration" semantic conventions. It represents the measures the duration of the function's logic execution. + // Instrument: histogram + // Unit: s + // Stability: experimental + FaaSInvokeDurationName = "faas.invoke_duration" + FaaSInvokeDurationUnit = "s" + FaaSInvokeDurationDescription = "Measures the duration of the function's logic execution" + // FaaSMemUsage is the metric conforming to the "faas.mem_usage" semantic conventions. It represents the distribution of max memory usage per invocation. + // Instrument: histogram + // Unit: By + // Stability: experimental + FaaSMemUsageName = "faas.mem_usage" + FaaSMemUsageUnit = "By" + FaaSMemUsageDescription = "Distribution of max memory usage per invocation" + // FaaSNetIo is the metric conforming to the "faas.net_io" semantic conventions. It represents the distribution of net I/O usage per invocation. + // Instrument: histogram + // Unit: By + // Stability: experimental + FaaSNetIoName = "faas.net_io" + FaaSNetIoUnit = "By" + FaaSNetIoDescription = "Distribution of net I/O usage per invocation" + // FaaSTimeouts is the metric conforming to the "faas.timeouts" semantic conventions. It represents the number of invocation timeouts. + // Instrument: counter + // Unit: {timeout} + // Stability: experimental + FaaSTimeoutsName = "faas.timeouts" + FaaSTimeoutsUnit = "{timeout}" + FaaSTimeoutsDescription = "Number of invocation timeouts" + // GenAIClientOperationDuration is the metric conforming to the "gen_ai.client.operation.duration" semantic conventions. It represents the genAI operation duration. + // Instrument: histogram + // Unit: s + // Stability: experimental + GenAIClientOperationDurationName = "gen_ai.client.operation.duration" + GenAIClientOperationDurationUnit = "s" + GenAIClientOperationDurationDescription = "GenAI operation duration" + // GenAIClientTokenUsage is the metric conforming to the "gen_ai.client.token.usage" semantic conventions. It represents the measures number of input and output tokens used. + // Instrument: histogram + // Unit: {token} + // Stability: experimental + GenAIClientTokenUsageName = "gen_ai.client.token.usage" + GenAIClientTokenUsageUnit = "{token}" + GenAIClientTokenUsageDescription = "Measures number of input and output tokens used" + // GenAIServerRequestDuration is the metric conforming to the "gen_ai.server.request.duration" semantic conventions. It represents the generative AI server request duration such as time-to-last byte or last output token. + // Instrument: histogram + // Unit: s + // Stability: experimental + GenAIServerRequestDurationName = "gen_ai.server.request.duration" + GenAIServerRequestDurationUnit = "s" + GenAIServerRequestDurationDescription = "Generative AI server request duration such as time-to-last byte or last output token" + // GenAIServerTimePerOutputToken is the metric conforming to the "gen_ai.server.time_per_output_token" semantic conventions. It represents the time per output token generated after the first token for successful responses. + // Instrument: histogram + // Unit: s + // Stability: experimental + GenAIServerTimePerOutputTokenName = "gen_ai.server.time_per_output_token" + GenAIServerTimePerOutputTokenUnit = "s" + GenAIServerTimePerOutputTokenDescription = "Time per output token generated after the first token for successful responses" + // GenAIServerTimeToFirstToken is the metric conforming to the "gen_ai.server.time_to_first_token" semantic conventions. It represents the time to generate first token for successful responses. + // Instrument: histogram + // Unit: s + // Stability: experimental + GenAIServerTimeToFirstTokenName = "gen_ai.server.time_to_first_token" + GenAIServerTimeToFirstTokenUnit = "s" + GenAIServerTimeToFirstTokenDescription = "Time to generate first token for successful responses" + // GoConfigGogc is the metric conforming to the "go.config.gogc" semantic conventions. It represents the heap size target percentage configured by the user, otherwise 100. + // Instrument: updowncounter + // Unit: % + // Stability: experimental + GoConfigGogcName = "go.config.gogc" + GoConfigGogcUnit = "%" + GoConfigGogcDescription = "Heap size target percentage configured by the user, otherwise 100." + // GoGoroutineCount is the metric conforming to the "go.goroutine.count" semantic conventions. It represents the count of live goroutines. + // Instrument: updowncounter + // Unit: {goroutine} + // Stability: experimental + GoGoroutineCountName = "go.goroutine.count" + GoGoroutineCountUnit = "{goroutine}" + GoGoroutineCountDescription = "Count of live goroutines." + // GoMemoryAllocated is the metric conforming to the "go.memory.allocated" semantic conventions. It represents the memory allocated to the heap by the application. + // Instrument: counter + // Unit: By + // Stability: experimental + GoMemoryAllocatedName = "go.memory.allocated" + GoMemoryAllocatedUnit = "By" + GoMemoryAllocatedDescription = "Memory allocated to the heap by the application." + // GoMemoryAllocations is the metric conforming to the "go.memory.allocations" semantic conventions. It represents the count of allocations to the heap by the application. + // Instrument: counter + // Unit: {allocation} + // Stability: experimental + GoMemoryAllocationsName = "go.memory.allocations" + GoMemoryAllocationsUnit = "{allocation}" + GoMemoryAllocationsDescription = "Count of allocations to the heap by the application." + // GoMemoryGCGoal is the metric conforming to the "go.memory.gc.goal" semantic conventions. It represents the heap size target for the end of the GC cycle. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + GoMemoryGCGoalName = "go.memory.gc.goal" + GoMemoryGCGoalUnit = "By" + GoMemoryGCGoalDescription = "Heap size target for the end of the GC cycle." + // GoMemoryLimit is the metric conforming to the "go.memory.limit" semantic conventions. It represents the go runtime memory limit configured by the user, if a limit exists. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + GoMemoryLimitName = "go.memory.limit" + GoMemoryLimitUnit = "By" + GoMemoryLimitDescription = "Go runtime memory limit configured by the user, if a limit exists." + // GoMemoryUsed is the metric conforming to the "go.memory.used" semantic conventions. It represents the memory used by the Go runtime. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + GoMemoryUsedName = "go.memory.used" + GoMemoryUsedUnit = "By" + GoMemoryUsedDescription = "Memory used by the Go runtime." + // GoProcessorLimit is the metric conforming to the "go.processor.limit" semantic conventions. It represents the number of OS threads that can execute user-level Go code simultaneously. + // Instrument: updowncounter + // Unit: {thread} + // Stability: experimental + GoProcessorLimitName = "go.processor.limit" + GoProcessorLimitUnit = "{thread}" + GoProcessorLimitDescription = "The number of OS threads that can execute user-level Go code simultaneously." + // GoScheduleDuration is the metric conforming to the "go.schedule.duration" semantic conventions. It represents the time goroutines have spent in the scheduler in a runnable state before actually running. + // Instrument: histogram + // Unit: s + // Stability: experimental + GoScheduleDurationName = "go.schedule.duration" + GoScheduleDurationUnit = "s" + GoScheduleDurationDescription = "The time goroutines have spent in the scheduler in a runnable state before actually running." + // HTTPClientActiveRequests is the metric conforming to the "http.client.active_requests" semantic conventions. It represents the number of active HTTP requests. + // Instrument: updowncounter + // Unit: {request} + // Stability: experimental + HTTPClientActiveRequestsName = "http.client.active_requests" + HTTPClientActiveRequestsUnit = "{request}" + HTTPClientActiveRequestsDescription = "Number of active HTTP requests." + // HTTPClientConnectionDuration is the metric conforming to the "http.client.connection.duration" semantic conventions. It represents the duration of the successfully established outbound HTTP connections. + // Instrument: histogram + // Unit: s + // Stability: experimental + HTTPClientConnectionDurationName = "http.client.connection.duration" + HTTPClientConnectionDurationUnit = "s" + HTTPClientConnectionDurationDescription = "The duration of the successfully established outbound HTTP connections." + // HTTPClientOpenConnections is the metric conforming to the "http.client.open_connections" semantic conventions. It represents the number of outbound HTTP connections that are currently active or idle on the client. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + HTTPClientOpenConnectionsName = "http.client.open_connections" + HTTPClientOpenConnectionsUnit = "{connection}" + HTTPClientOpenConnectionsDescription = "Number of outbound HTTP connections that are currently active or idle on the client." + // HTTPClientRequestBodySize is the metric conforming to the "http.client.request.body.size" semantic conventions. It represents the size of HTTP client request bodies. + // Instrument: histogram + // Unit: By + // Stability: experimental + HTTPClientRequestBodySizeName = "http.client.request.body.size" + HTTPClientRequestBodySizeUnit = "By" + HTTPClientRequestBodySizeDescription = "Size of HTTP client request bodies." + // HTTPClientRequestDuration is the metric conforming to the "http.client.request.duration" semantic conventions. It represents the duration of HTTP client requests. + // Instrument: histogram + // Unit: s + // Stability: stable + HTTPClientRequestDurationName = "http.client.request.duration" + HTTPClientRequestDurationUnit = "s" + HTTPClientRequestDurationDescription = "Duration of HTTP client requests." + // HTTPClientResponseBodySize is the metric conforming to the "http.client.response.body.size" semantic conventions. It represents the size of HTTP client response bodies. + // Instrument: histogram + // Unit: By + // Stability: experimental + HTTPClientResponseBodySizeName = "http.client.response.body.size" + HTTPClientResponseBodySizeUnit = "By" + HTTPClientResponseBodySizeDescription = "Size of HTTP client response bodies." + // HTTPServerActiveRequests is the metric conforming to the "http.server.active_requests" semantic conventions. It represents the number of active HTTP server requests. + // Instrument: updowncounter + // Unit: {request} + // Stability: experimental + HTTPServerActiveRequestsName = "http.server.active_requests" + HTTPServerActiveRequestsUnit = "{request}" + HTTPServerActiveRequestsDescription = "Number of active HTTP server requests." + // HTTPServerRequestBodySize is the metric conforming to the "http.server.request.body.size" semantic conventions. It represents the size of HTTP server request bodies. + // Instrument: histogram + // Unit: By + // Stability: experimental + HTTPServerRequestBodySizeName = "http.server.request.body.size" + HTTPServerRequestBodySizeUnit = "By" + HTTPServerRequestBodySizeDescription = "Size of HTTP server request bodies." + // HTTPServerRequestDuration is the metric conforming to the "http.server.request.duration" semantic conventions. It represents the duration of HTTP server requests. + // Instrument: histogram + // Unit: s + // Stability: stable + HTTPServerRequestDurationName = "http.server.request.duration" + HTTPServerRequestDurationUnit = "s" + HTTPServerRequestDurationDescription = "Duration of HTTP server requests." + // HTTPServerResponseBodySize is the metric conforming to the "http.server.response.body.size" semantic conventions. It represents the size of HTTP server response bodies. + // Instrument: histogram + // Unit: By + // Stability: experimental + HTTPServerResponseBodySizeName = "http.server.response.body.size" + HTTPServerResponseBodySizeUnit = "By" + HTTPServerResponseBodySizeDescription = "Size of HTTP server response bodies." + // HwEnergy is the metric conforming to the "hw.energy" semantic conventions. It represents the energy consumed by the component. + // Instrument: counter + // Unit: J + // Stability: experimental + HwEnergyName = "hw.energy" + HwEnergyUnit = "J" + HwEnergyDescription = "Energy consumed by the component" + // HwErrors is the metric conforming to the "hw.errors" semantic conventions. It represents the number of errors encountered by the component. + // Instrument: counter + // Unit: {error} + // Stability: experimental + HwErrorsName = "hw.errors" + HwErrorsUnit = "{error}" + HwErrorsDescription = "Number of errors encountered by the component" + // HwPower is the metric conforming to the "hw.power" semantic conventions. It represents the instantaneous power consumed by the component. + // Instrument: gauge + // Unit: W + // Stability: experimental + HwPowerName = "hw.power" + HwPowerUnit = "W" + HwPowerDescription = "Instantaneous power consumed by the component" + // HwStatus is the metric conforming to the "hw.status" semantic conventions. It represents the operational status: `1` (true) or `0` (false) for each of the possible states. + // Instrument: updowncounter + // Unit: 1 + // Stability: experimental + HwStatusName = "hw.status" + HwStatusUnit = "1" + HwStatusDescription = "Operational status: `1` (true) or `0` (false) for each of the possible states" + // JVMBufferCount is the metric conforming to the "jvm.buffer.count" semantic conventions. It represents the number of buffers in the pool. + // Instrument: updowncounter + // Unit: {buffer} + // Stability: experimental + JVMBufferCountName = "jvm.buffer.count" + JVMBufferCountUnit = "{buffer}" + JVMBufferCountDescription = "Number of buffers in the pool." + // JVMBufferMemoryLimit is the metric conforming to the "jvm.buffer.memory.limit" semantic conventions. It represents the measure of total memory capacity of buffers. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + JVMBufferMemoryLimitName = "jvm.buffer.memory.limit" + JVMBufferMemoryLimitUnit = "By" + JVMBufferMemoryLimitDescription = "Measure of total memory capacity of buffers." + // JVMBufferMemoryUsage is the metric conforming to the "jvm.buffer.memory.usage" semantic conventions. It represents the deprecated, use `jvm.buffer.memory.used` instead. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + // Deprecated: Replaced by `jvm.buffer.memory.used`. + JVMBufferMemoryUsageName = "jvm.buffer.memory.usage" + JVMBufferMemoryUsageUnit = "By" + JVMBufferMemoryUsageDescription = "Deprecated, use `jvm.buffer.memory.used` instead." + // JVMBufferMemoryUsed is the metric conforming to the "jvm.buffer.memory.used" semantic conventions. It represents the measure of memory used by buffers. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + JVMBufferMemoryUsedName = "jvm.buffer.memory.used" + JVMBufferMemoryUsedUnit = "By" + JVMBufferMemoryUsedDescription = "Measure of memory used by buffers." + // JVMClassCount is the metric conforming to the "jvm.class.count" semantic conventions. It represents the number of classes currently loaded. + // Instrument: updowncounter + // Unit: {class} + // Stability: stable + JVMClassCountName = "jvm.class.count" + JVMClassCountUnit = "{class}" + JVMClassCountDescription = "Number of classes currently loaded." + // JVMClassLoaded is the metric conforming to the "jvm.class.loaded" semantic conventions. It represents the number of classes loaded since JVM start. + // Instrument: counter + // Unit: {class} + // Stability: stable + JVMClassLoadedName = "jvm.class.loaded" + JVMClassLoadedUnit = "{class}" + JVMClassLoadedDescription = "Number of classes loaded since JVM start." + // JVMClassUnloaded is the metric conforming to the "jvm.class.unloaded" semantic conventions. It represents the number of classes unloaded since JVM start. + // Instrument: counter + // Unit: {class} + // Stability: stable + JVMClassUnloadedName = "jvm.class.unloaded" + JVMClassUnloadedUnit = "{class}" + JVMClassUnloadedDescription = "Number of classes unloaded since JVM start." + // JVMCPUCount is the metric conforming to the "jvm.cpu.count" semantic conventions. It represents the number of processors available to the Java virtual machine. + // Instrument: updowncounter + // Unit: {cpu} + // Stability: stable + JVMCPUCountName = "jvm.cpu.count" + JVMCPUCountUnit = "{cpu}" + JVMCPUCountDescription = "Number of processors available to the Java virtual machine." + // JVMCPURecentUtilization is the metric conforming to the "jvm.cpu.recent_utilization" semantic conventions. It represents the recent CPU utilization for the process as reported by the JVM. + // Instrument: gauge + // Unit: 1 + // Stability: stable + JVMCPURecentUtilizationName = "jvm.cpu.recent_utilization" + JVMCPURecentUtilizationUnit = "1" + JVMCPURecentUtilizationDescription = "Recent CPU utilization for the process as reported by the JVM." + // JVMCPUTime is the metric conforming to the "jvm.cpu.time" semantic conventions. It represents the cPU time used by the process as reported by the JVM. + // Instrument: counter + // Unit: s + // Stability: stable + JVMCPUTimeName = "jvm.cpu.time" + JVMCPUTimeUnit = "s" + JVMCPUTimeDescription = "CPU time used by the process as reported by the JVM." + // JVMGCDuration is the metric conforming to the "jvm.gc.duration" semantic conventions. It represents the duration of JVM garbage collection actions. + // Instrument: histogram + // Unit: s + // Stability: stable + JVMGCDurationName = "jvm.gc.duration" + JVMGCDurationUnit = "s" + JVMGCDurationDescription = "Duration of JVM garbage collection actions." + // JVMMemoryCommitted is the metric conforming to the "jvm.memory.committed" semantic conventions. It represents the measure of memory committed. + // Instrument: updowncounter + // Unit: By + // Stability: stable + JVMMemoryCommittedName = "jvm.memory.committed" + JVMMemoryCommittedUnit = "By" + JVMMemoryCommittedDescription = "Measure of memory committed." + // JVMMemoryInit is the metric conforming to the "jvm.memory.init" semantic conventions. It represents the measure of initial memory requested. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + JVMMemoryInitName = "jvm.memory.init" + JVMMemoryInitUnit = "By" + JVMMemoryInitDescription = "Measure of initial memory requested." + // JVMMemoryLimit is the metric conforming to the "jvm.memory.limit" semantic conventions. It represents the measure of max obtainable memory. + // Instrument: updowncounter + // Unit: By + // Stability: stable + JVMMemoryLimitName = "jvm.memory.limit" + JVMMemoryLimitUnit = "By" + JVMMemoryLimitDescription = "Measure of max obtainable memory." + // JVMMemoryUsed is the metric conforming to the "jvm.memory.used" semantic conventions. It represents the measure of memory used. + // Instrument: updowncounter + // Unit: By + // Stability: stable + JVMMemoryUsedName = "jvm.memory.used" + JVMMemoryUsedUnit = "By" + JVMMemoryUsedDescription = "Measure of memory used." + // JVMMemoryUsedAfterLastGC is the metric conforming to the "jvm.memory.used_after_last_gc" semantic conventions. It represents the measure of memory used, as measured after the most recent garbage collection event on this pool. + // Instrument: updowncounter + // Unit: By + // Stability: stable + JVMMemoryUsedAfterLastGCName = "jvm.memory.used_after_last_gc" + JVMMemoryUsedAfterLastGCUnit = "By" + JVMMemoryUsedAfterLastGCDescription = "Measure of memory used, as measured after the most recent garbage collection event on this pool." + // JVMSystemCPULoad1m is the metric conforming to the "jvm.system.cpu.load_1m" semantic conventions. It represents the average CPU load of the whole system for the last minute as reported by the JVM. + // Instrument: gauge + // Unit: {run_queue_item} + // Stability: experimental + JVMSystemCPULoad1mName = "jvm.system.cpu.load_1m" + JVMSystemCPULoad1mUnit = "{run_queue_item}" + JVMSystemCPULoad1mDescription = "Average CPU load of the whole system for the last minute as reported by the JVM." + // JVMSystemCPUUtilization is the metric conforming to the "jvm.system.cpu.utilization" semantic conventions. It represents the recent CPU utilization for the whole system as reported by the JVM. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + JVMSystemCPUUtilizationName = "jvm.system.cpu.utilization" + JVMSystemCPUUtilizationUnit = "1" + JVMSystemCPUUtilizationDescription = "Recent CPU utilization for the whole system as reported by the JVM." + // JVMThreadCount is the metric conforming to the "jvm.thread.count" semantic conventions. It represents the number of executing platform threads. + // Instrument: updowncounter + // Unit: {thread} + // Stability: stable + JVMThreadCountName = "jvm.thread.count" + JVMThreadCountUnit = "{thread}" + JVMThreadCountDescription = "Number of executing platform threads." + // K8SNodeCPUTime is the metric conforming to the "k8s.node.cpu.time" semantic conventions. It represents the total CPU time consumed. + // Instrument: counter + // Unit: s + // Stability: experimental + K8SNodeCPUTimeName = "k8s.node.cpu.time" + K8SNodeCPUTimeUnit = "s" + K8SNodeCPUTimeDescription = "Total CPU time consumed" + // K8SNodeCPUUsage is the metric conforming to the "k8s.node.cpu.usage" semantic conventions. It represents the node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // Instrument: gauge + // Unit: {cpu} + // Stability: experimental + K8SNodeCPUUsageName = "k8s.node.cpu.usage" + K8SNodeCPUUsageUnit = "{cpu}" + K8SNodeCPUUsageDescription = "Node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" + // K8SNodeMemoryUsage is the metric conforming to the "k8s.node.memory.usage" semantic conventions. It represents the memory usage of the Node. + // Instrument: gauge + // Unit: By + // Stability: experimental + K8SNodeMemoryUsageName = "k8s.node.memory.usage" + K8SNodeMemoryUsageUnit = "By" + K8SNodeMemoryUsageDescription = "Memory usage of the Node" + // K8SPodCPUTime is the metric conforming to the "k8s.pod.cpu.time" semantic conventions. It represents the total CPU time consumed. + // Instrument: counter + // Unit: s + // Stability: experimental + K8SPodCPUTimeName = "k8s.pod.cpu.time" + K8SPodCPUTimeUnit = "s" + K8SPodCPUTimeDescription = "Total CPU time consumed" + // K8SPodCPUUsage is the metric conforming to the "k8s.pod.cpu.usage" semantic conventions. It represents the pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // Instrument: gauge + // Unit: {cpu} + // Stability: experimental + K8SPodCPUUsageName = "k8s.pod.cpu.usage" + K8SPodCPUUsageUnit = "{cpu}" + K8SPodCPUUsageDescription = "Pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" + // K8SPodMemoryUsage is the metric conforming to the "k8s.pod.memory.usage" semantic conventions. It represents the memory usage of the Pod. + // Instrument: gauge + // Unit: By + // Stability: experimental + K8SPodMemoryUsageName = "k8s.pod.memory.usage" + K8SPodMemoryUsageUnit = "By" + K8SPodMemoryUsageDescription = "Memory usage of the Pod" + // KestrelActiveConnections is the metric conforming to the "kestrel.active_connections" semantic conventions. It represents the number of connections that are currently active on the server. + // Instrument: updowncounter + // Unit: {connection} + // Stability: stable + KestrelActiveConnectionsName = "kestrel.active_connections" + KestrelActiveConnectionsUnit = "{connection}" + KestrelActiveConnectionsDescription = "Number of connections that are currently active on the server." + // KestrelActiveTLSHandshakes is the metric conforming to the "kestrel.active_tls_handshakes" semantic conventions. It represents the number of TLS handshakes that are currently in progress on the server. + // Instrument: updowncounter + // Unit: {handshake} + // Stability: stable + KestrelActiveTLSHandshakesName = "kestrel.active_tls_handshakes" + KestrelActiveTLSHandshakesUnit = "{handshake}" + KestrelActiveTLSHandshakesDescription = "Number of TLS handshakes that are currently in progress on the server." + // KestrelConnectionDuration is the metric conforming to the "kestrel.connection.duration" semantic conventions. It represents the duration of connections on the server. + // Instrument: histogram + // Unit: s + // Stability: stable + KestrelConnectionDurationName = "kestrel.connection.duration" + KestrelConnectionDurationUnit = "s" + KestrelConnectionDurationDescription = "The duration of connections on the server." + // KestrelQueuedConnections is the metric conforming to the "kestrel.queued_connections" semantic conventions. It represents the number of connections that are currently queued and are waiting to start. + // Instrument: updowncounter + // Unit: {connection} + // Stability: stable + KestrelQueuedConnectionsName = "kestrel.queued_connections" + KestrelQueuedConnectionsUnit = "{connection}" + KestrelQueuedConnectionsDescription = "Number of connections that are currently queued and are waiting to start." + // KestrelQueuedRequests is the metric conforming to the "kestrel.queued_requests" semantic conventions. It represents the number of HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are currently queued and are waiting to start. + // Instrument: updowncounter + // Unit: {request} + // Stability: stable + KestrelQueuedRequestsName = "kestrel.queued_requests" + KestrelQueuedRequestsUnit = "{request}" + KestrelQueuedRequestsDescription = "Number of HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are currently queued and are waiting to start." + // KestrelRejectedConnections is the metric conforming to the "kestrel.rejected_connections" semantic conventions. It represents the number of connections rejected by the server. + // Instrument: counter + // Unit: {connection} + // Stability: stable + KestrelRejectedConnectionsName = "kestrel.rejected_connections" + KestrelRejectedConnectionsUnit = "{connection}" + KestrelRejectedConnectionsDescription = "Number of connections rejected by the server." + // KestrelTLSHandshakeDuration is the metric conforming to the "kestrel.tls_handshake.duration" semantic conventions. It represents the duration of TLS handshakes on the server. + // Instrument: histogram + // Unit: s + // Stability: stable + KestrelTLSHandshakeDurationName = "kestrel.tls_handshake.duration" + KestrelTLSHandshakeDurationUnit = "s" + KestrelTLSHandshakeDurationDescription = "The duration of TLS handshakes on the server." + // KestrelUpgradedConnections is the metric conforming to the "kestrel.upgraded_connections" semantic conventions. It represents the number of connections that are currently upgraded (WebSockets). . + // Instrument: updowncounter + // Unit: {connection} + // Stability: stable + KestrelUpgradedConnectionsName = "kestrel.upgraded_connections" + KestrelUpgradedConnectionsUnit = "{connection}" + KestrelUpgradedConnectionsDescription = "Number of connections that are currently upgraded (WebSockets). ." + // MessagingClientConsumedMessages is the metric conforming to the "messaging.client.consumed.messages" semantic conventions. It represents the number of messages that were delivered to the application. + // Instrument: counter + // Unit: {message} + // Stability: experimental + MessagingClientConsumedMessagesName = "messaging.client.consumed.messages" + MessagingClientConsumedMessagesUnit = "{message}" + MessagingClientConsumedMessagesDescription = "Number of messages that were delivered to the application." + // MessagingClientOperationDuration is the metric conforming to the "messaging.client.operation.duration" semantic conventions. It represents the duration of messaging operation initiated by a producer or consumer client. + // Instrument: histogram + // Unit: s + // Stability: experimental + MessagingClientOperationDurationName = "messaging.client.operation.duration" + MessagingClientOperationDurationUnit = "s" + MessagingClientOperationDurationDescription = "Duration of messaging operation initiated by a producer or consumer client." + // MessagingClientPublishedMessages is the metric conforming to the "messaging.client.published.messages" semantic conventions. It represents the deprecated. Use `messaging.client.sent.messages` instead. + // Instrument: counter + // Unit: {message} + // Stability: experimental + // Deprecated: Replaced by `messaging.client.sent.messages`. + MessagingClientPublishedMessagesName = "messaging.client.published.messages" + MessagingClientPublishedMessagesUnit = "{message}" + MessagingClientPublishedMessagesDescription = "Deprecated. Use `messaging.client.sent.messages` instead." + // MessagingClientSentMessages is the metric conforming to the "messaging.client.sent.messages" semantic conventions. It represents the number of messages producer attempted to send to the broker. + // Instrument: counter + // Unit: {message} + // Stability: experimental + MessagingClientSentMessagesName = "messaging.client.sent.messages" + MessagingClientSentMessagesUnit = "{message}" + MessagingClientSentMessagesDescription = "Number of messages producer attempted to send to the broker." + // MessagingProcessDuration is the metric conforming to the "messaging.process.duration" semantic conventions. It represents the duration of processing operation. + // Instrument: histogram + // Unit: s + // Stability: experimental + MessagingProcessDurationName = "messaging.process.duration" + MessagingProcessDurationUnit = "s" + MessagingProcessDurationDescription = "Duration of processing operation." + // MessagingProcessMessages is the metric conforming to the "messaging.process.messages" semantic conventions. It represents the deprecated. Use `messaging.client.consumed.messages` instead. + // Instrument: counter + // Unit: {message} + // Stability: experimental + // Deprecated: Replaced by `messaging.client.consumed.messages`. + MessagingProcessMessagesName = "messaging.process.messages" + MessagingProcessMessagesUnit = "{message}" + MessagingProcessMessagesDescription = "Deprecated. Use `messaging.client.consumed.messages` instead." + // MessagingPublishDuration is the metric conforming to the "messaging.publish.duration" semantic conventions. It represents the deprecated. Use `messaging.client.operation.duration` instead. + // Instrument: histogram + // Unit: s + // Stability: experimental + // Deprecated: Replaced by `messaging.client.operation.duration`. + MessagingPublishDurationName = "messaging.publish.duration" + MessagingPublishDurationUnit = "s" + MessagingPublishDurationDescription = "Deprecated. Use `messaging.client.operation.duration` instead." + // MessagingPublishMessages is the metric conforming to the "messaging.publish.messages" semantic conventions. It represents the deprecated. Use `messaging.client.produced.messages` instead. + // Instrument: counter + // Unit: {message} + // Stability: experimental + // Deprecated: Replaced by `messaging.client.produced.messages`. + MessagingPublishMessagesName = "messaging.publish.messages" + MessagingPublishMessagesUnit = "{message}" + MessagingPublishMessagesDescription = "Deprecated. Use `messaging.client.produced.messages` instead." + // MessagingReceiveDuration is the metric conforming to the "messaging.receive.duration" semantic conventions. It represents the deprecated. Use `messaging.client.operation.duration` instead. + // Instrument: histogram + // Unit: s + // Stability: experimental + // Deprecated: Replaced by `messaging.client.operation.duration`. + MessagingReceiveDurationName = "messaging.receive.duration" + MessagingReceiveDurationUnit = "s" + MessagingReceiveDurationDescription = "Deprecated. Use `messaging.client.operation.duration` instead." + // MessagingReceiveMessages is the metric conforming to the "messaging.receive.messages" semantic conventions. It represents the deprecated. Use `messaging.client.consumed.messages` instead. + // Instrument: counter + // Unit: {message} + // Stability: experimental + // Deprecated: Replaced by `messaging.client.consumed.messages`. + MessagingReceiveMessagesName = "messaging.receive.messages" + MessagingReceiveMessagesUnit = "{message}" + MessagingReceiveMessagesDescription = "Deprecated. Use `messaging.client.consumed.messages` instead." + // NodejsEventloopDelayMax is the metric conforming to the "nodejs.eventloop.delay.max" semantic conventions. It represents the event loop maximum delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayMaxName = "nodejs.eventloop.delay.max" + NodejsEventloopDelayMaxUnit = "s" + NodejsEventloopDelayMaxDescription = "Event loop maximum delay." + // NodejsEventloopDelayMean is the metric conforming to the "nodejs.eventloop.delay.mean" semantic conventions. It represents the event loop mean delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayMeanName = "nodejs.eventloop.delay.mean" + NodejsEventloopDelayMeanUnit = "s" + NodejsEventloopDelayMeanDescription = "Event loop mean delay." + // NodejsEventloopDelayMin is the metric conforming to the "nodejs.eventloop.delay.min" semantic conventions. It represents the event loop minimum delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayMinName = "nodejs.eventloop.delay.min" + NodejsEventloopDelayMinUnit = "s" + NodejsEventloopDelayMinDescription = "Event loop minimum delay." + // NodejsEventloopDelayP50 is the metric conforming to the "nodejs.eventloop.delay.p50" semantic conventions. It represents the event loop 50 percentile delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayP50Name = "nodejs.eventloop.delay.p50" + NodejsEventloopDelayP50Unit = "s" + NodejsEventloopDelayP50Description = "Event loop 50 percentile delay." + // NodejsEventloopDelayP90 is the metric conforming to the "nodejs.eventloop.delay.p90" semantic conventions. It represents the event loop 90 percentile delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayP90Name = "nodejs.eventloop.delay.p90" + NodejsEventloopDelayP90Unit = "s" + NodejsEventloopDelayP90Description = "Event loop 90 percentile delay." + // NodejsEventloopDelayP99 is the metric conforming to the "nodejs.eventloop.delay.p99" semantic conventions. It represents the event loop 99 percentile delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayP99Name = "nodejs.eventloop.delay.p99" + NodejsEventloopDelayP99Unit = "s" + NodejsEventloopDelayP99Description = "Event loop 99 percentile delay." + // NodejsEventloopDelayStddev is the metric conforming to the "nodejs.eventloop.delay.stddev" semantic conventions. It represents the event loop standard deviation delay. + // Instrument: gauge + // Unit: s + // Stability: experimental + NodejsEventloopDelayStddevName = "nodejs.eventloop.delay.stddev" + NodejsEventloopDelayStddevUnit = "s" + NodejsEventloopDelayStddevDescription = "Event loop standard deviation delay." + // NodejsEventloopTime is the metric conforming to the "nodejs.eventloop.time" semantic conventions. It represents the cumulative duration of time the event loop has been in each state. + // Instrument: counter + // Unit: s + // Stability: experimental + NodejsEventloopTimeName = "nodejs.eventloop.time" + NodejsEventloopTimeUnit = "s" + NodejsEventloopTimeDescription = "Cumulative duration of time the event loop has been in each state." + // NodejsEventloopUtilization is the metric conforming to the "nodejs.eventloop.utilization" semantic conventions. It represents the event loop utilization. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + NodejsEventloopUtilizationName = "nodejs.eventloop.utilization" + NodejsEventloopUtilizationUnit = "1" + NodejsEventloopUtilizationDescription = "Event loop utilization." + // ProcessContextSwitches is the metric conforming to the "process.context_switches" semantic conventions. It represents the number of times the process has been context switched. + // Instrument: counter + // Unit: {count} + // Stability: experimental + ProcessContextSwitchesName = "process.context_switches" + ProcessContextSwitchesUnit = "{count}" + ProcessContextSwitchesDescription = "Number of times the process has been context switched." + // ProcessCPUTime is the metric conforming to the "process.cpu.time" semantic conventions. It represents the total CPU seconds broken down by different states. + // Instrument: counter + // Unit: s + // Stability: experimental + ProcessCPUTimeName = "process.cpu.time" + ProcessCPUTimeUnit = "s" + ProcessCPUTimeDescription = "Total CPU seconds broken down by different states." + // ProcessCPUUtilization is the metric conforming to the "process.cpu.utilization" semantic conventions. It represents the difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + ProcessCPUUtilizationName = "process.cpu.utilization" + ProcessCPUUtilizationUnit = "1" + ProcessCPUUtilizationDescription = "Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process." + // ProcessDiskIo is the metric conforming to the "process.disk.io" semantic conventions. It represents the disk bytes transferred. + // Instrument: counter + // Unit: By + // Stability: experimental + ProcessDiskIoName = "process.disk.io" + ProcessDiskIoUnit = "By" + ProcessDiskIoDescription = "Disk bytes transferred." + // ProcessMemoryUsage is the metric conforming to the "process.memory.usage" semantic conventions. It represents the amount of physical memory in use. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + ProcessMemoryUsageName = "process.memory.usage" + ProcessMemoryUsageUnit = "By" + ProcessMemoryUsageDescription = "The amount of physical memory in use." + // ProcessMemoryVirtual is the metric conforming to the "process.memory.virtual" semantic conventions. It represents the amount of committed virtual memory. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + ProcessMemoryVirtualName = "process.memory.virtual" + ProcessMemoryVirtualUnit = "By" + ProcessMemoryVirtualDescription = "The amount of committed virtual memory." + // ProcessNetworkIo is the metric conforming to the "process.network.io" semantic conventions. It represents the network bytes transferred. + // Instrument: counter + // Unit: By + // Stability: experimental + ProcessNetworkIoName = "process.network.io" + ProcessNetworkIoUnit = "By" + ProcessNetworkIoDescription = "Network bytes transferred." + // ProcessOpenFileDescriptorCount is the metric conforming to the "process.open_file_descriptor.count" semantic conventions. It represents the number of file descriptors in use by the process. + // Instrument: updowncounter + // Unit: {count} + // Stability: experimental + ProcessOpenFileDescriptorCountName = "process.open_file_descriptor.count" + ProcessOpenFileDescriptorCountUnit = "{count}" + ProcessOpenFileDescriptorCountDescription = "Number of file descriptors in use by the process." + // ProcessPagingFaults is the metric conforming to the "process.paging.faults" semantic conventions. It represents the number of page faults the process has made. + // Instrument: counter + // Unit: {fault} + // Stability: experimental + ProcessPagingFaultsName = "process.paging.faults" + ProcessPagingFaultsUnit = "{fault}" + ProcessPagingFaultsDescription = "Number of page faults the process has made." + // ProcessThreadCount is the metric conforming to the "process.thread.count" semantic conventions. It represents the process threads count. + // Instrument: updowncounter + // Unit: {thread} + // Stability: experimental + ProcessThreadCountName = "process.thread.count" + ProcessThreadCountUnit = "{thread}" + ProcessThreadCountDescription = "Process threads count." + // ProcessUptime is the metric conforming to the "process.uptime" semantic conventions. It represents the time the process has been running. + // Instrument: counter + // Unit: s + // Stability: experimental + ProcessUptimeName = "process.uptime" + ProcessUptimeUnit = "s" + ProcessUptimeDescription = "The time the process has been running." + // RPCClientDuration is the metric conforming to the "rpc.client.duration" semantic conventions. It represents the measures the duration of outbound RPC. + // Instrument: histogram + // Unit: ms + // Stability: experimental + RPCClientDurationName = "rpc.client.duration" + RPCClientDurationUnit = "ms" + RPCClientDurationDescription = "Measures the duration of outbound RPC." + // RPCClientRequestSize is the metric conforming to the "rpc.client.request.size" semantic conventions. It represents the measures the size of RPC request messages (uncompressed). + // Instrument: histogram + // Unit: By + // Stability: experimental + RPCClientRequestSizeName = "rpc.client.request.size" + RPCClientRequestSizeUnit = "By" + RPCClientRequestSizeDescription = "Measures the size of RPC request messages (uncompressed)." + // RPCClientRequestsPerRPC is the metric conforming to the "rpc.client.requests_per_rpc" semantic conventions. It represents the measures the number of messages received per RPC. + // Instrument: histogram + // Unit: {count} + // Stability: experimental + RPCClientRequestsPerRPCName = "rpc.client.requests_per_rpc" + RPCClientRequestsPerRPCUnit = "{count}" + RPCClientRequestsPerRPCDescription = "Measures the number of messages received per RPC." + // RPCClientResponseSize is the metric conforming to the "rpc.client.response.size" semantic conventions. It represents the measures the size of RPC response messages (uncompressed). + // Instrument: histogram + // Unit: By + // Stability: experimental + RPCClientResponseSizeName = "rpc.client.response.size" + RPCClientResponseSizeUnit = "By" + RPCClientResponseSizeDescription = "Measures the size of RPC response messages (uncompressed)." + // RPCClientResponsesPerRPC is the metric conforming to the "rpc.client.responses_per_rpc" semantic conventions. It represents the measures the number of messages sent per RPC. + // Instrument: histogram + // Unit: {count} + // Stability: experimental + RPCClientResponsesPerRPCName = "rpc.client.responses_per_rpc" + RPCClientResponsesPerRPCUnit = "{count}" + RPCClientResponsesPerRPCDescription = "Measures the number of messages sent per RPC." + // RPCServerDuration is the metric conforming to the "rpc.server.duration" semantic conventions. It represents the measures the duration of inbound RPC. + // Instrument: histogram + // Unit: ms + // Stability: experimental + RPCServerDurationName = "rpc.server.duration" + RPCServerDurationUnit = "ms" + RPCServerDurationDescription = "Measures the duration of inbound RPC." + // RPCServerRequestSize is the metric conforming to the "rpc.server.request.size" semantic conventions. It represents the measures the size of RPC request messages (uncompressed). + // Instrument: histogram + // Unit: By + // Stability: experimental + RPCServerRequestSizeName = "rpc.server.request.size" + RPCServerRequestSizeUnit = "By" + RPCServerRequestSizeDescription = "Measures the size of RPC request messages (uncompressed)." + // RPCServerRequestsPerRPC is the metric conforming to the "rpc.server.requests_per_rpc" semantic conventions. It represents the measures the number of messages received per RPC. + // Instrument: histogram + // Unit: {count} + // Stability: experimental + RPCServerRequestsPerRPCName = "rpc.server.requests_per_rpc" + RPCServerRequestsPerRPCUnit = "{count}" + RPCServerRequestsPerRPCDescription = "Measures the number of messages received per RPC." + // RPCServerResponseSize is the metric conforming to the "rpc.server.response.size" semantic conventions. It represents the measures the size of RPC response messages (uncompressed). + // Instrument: histogram + // Unit: By + // Stability: experimental + RPCServerResponseSizeName = "rpc.server.response.size" + RPCServerResponseSizeUnit = "By" + RPCServerResponseSizeDescription = "Measures the size of RPC response messages (uncompressed)." + // RPCServerResponsesPerRPC is the metric conforming to the "rpc.server.responses_per_rpc" semantic conventions. It represents the measures the number of messages sent per RPC. + // Instrument: histogram + // Unit: {count} + // Stability: experimental + RPCServerResponsesPerRPCName = "rpc.server.responses_per_rpc" + RPCServerResponsesPerRPCUnit = "{count}" + RPCServerResponsesPerRPCDescription = "Measures the number of messages sent per RPC." + // SignalrServerActiveConnections is the metric conforming to the "signalr.server.active_connections" semantic conventions. It represents the number of connections that are currently active on the server. + // Instrument: updowncounter + // Unit: {connection} + // Stability: stable + SignalrServerActiveConnectionsName = "signalr.server.active_connections" + SignalrServerActiveConnectionsUnit = "{connection}" + SignalrServerActiveConnectionsDescription = "Number of connections that are currently active on the server." + // SignalrServerConnectionDuration is the metric conforming to the "signalr.server.connection.duration" semantic conventions. It represents the duration of connections on the server. + // Instrument: histogram + // Unit: s + // Stability: stable + SignalrServerConnectionDurationName = "signalr.server.connection.duration" + SignalrServerConnectionDurationUnit = "s" + SignalrServerConnectionDurationDescription = "The duration of connections on the server." + // SystemCPUFrequency is the metric conforming to the "system.cpu.frequency" semantic conventions. It represents the reports the current frequency of the CPU in Hz. + // Instrument: gauge + // Unit: {Hz} + // Stability: experimental + SystemCPUFrequencyName = "system.cpu.frequency" + SystemCPUFrequencyUnit = "{Hz}" + SystemCPUFrequencyDescription = "Reports the current frequency of the CPU in Hz" + // SystemCPULogicalCount is the metric conforming to the "system.cpu.logical.count" semantic conventions. It represents the reports the number of logical (virtual) processor cores created by the operating system to manage multitasking. + // Instrument: updowncounter + // Unit: {cpu} + // Stability: experimental + SystemCPULogicalCountName = "system.cpu.logical.count" + SystemCPULogicalCountUnit = "{cpu}" + SystemCPULogicalCountDescription = "Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking" + // SystemCPUPhysicalCount is the metric conforming to the "system.cpu.physical.count" semantic conventions. It represents the reports the number of actual physical processor cores on the hardware. + // Instrument: updowncounter + // Unit: {cpu} + // Stability: experimental + SystemCPUPhysicalCountName = "system.cpu.physical.count" + SystemCPUPhysicalCountUnit = "{cpu}" + SystemCPUPhysicalCountDescription = "Reports the number of actual physical processor cores on the hardware" + // SystemCPUTime is the metric conforming to the "system.cpu.time" semantic conventions. It represents the seconds each logical CPU spent on each mode. + // Instrument: counter + // Unit: s + // Stability: experimental + SystemCPUTimeName = "system.cpu.time" + SystemCPUTimeUnit = "s" + SystemCPUTimeDescription = "Seconds each logical CPU spent on each mode" + // SystemCPUUtilization is the metric conforming to the "system.cpu.utilization" semantic conventions. It represents the difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + SystemCPUUtilizationName = "system.cpu.utilization" + SystemCPUUtilizationUnit = "1" + SystemCPUUtilizationDescription = "Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs" + // SystemDiskIo is the metric conforming to the "system.disk.io" semantic conventions. + // Instrument: counter + // Unit: By + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemDiskIoName = "system.disk.io" + SystemDiskIoUnit = "By" + // SystemDiskIoTime is the metric conforming to the "system.disk.io_time" semantic conventions. It represents the time disk spent activated. + // Instrument: counter + // Unit: s + // Stability: experimental + SystemDiskIoTimeName = "system.disk.io_time" + SystemDiskIoTimeUnit = "s" + SystemDiskIoTimeDescription = "Time disk spent activated" + // SystemDiskLimit is the metric conforming to the "system.disk.limit" semantic conventions. It represents the total storage capacity of the disk. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemDiskLimitName = "system.disk.limit" + SystemDiskLimitUnit = "By" + SystemDiskLimitDescription = "The total storage capacity of the disk" + // SystemDiskMerged is the metric conforming to the "system.disk.merged" semantic conventions. + // Instrument: counter + // Unit: {operation} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemDiskMergedName = "system.disk.merged" + SystemDiskMergedUnit = "{operation}" + // SystemDiskOperationTime is the metric conforming to the "system.disk.operation_time" semantic conventions. It represents the sum of the time each operation took to complete. + // Instrument: counter + // Unit: s + // Stability: experimental + SystemDiskOperationTimeName = "system.disk.operation_time" + SystemDiskOperationTimeUnit = "s" + SystemDiskOperationTimeDescription = "Sum of the time each operation took to complete" + // SystemDiskOperations is the metric conforming to the "system.disk.operations" semantic conventions. + // Instrument: counter + // Unit: {operation} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemDiskOperationsName = "system.disk.operations" + SystemDiskOperationsUnit = "{operation}" + // SystemFilesystemLimit is the metric conforming to the "system.filesystem.limit" semantic conventions. It represents the total storage capacity of the filesystem. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemFilesystemLimitName = "system.filesystem.limit" + SystemFilesystemLimitUnit = "By" + SystemFilesystemLimitDescription = "The total storage capacity of the filesystem" + // SystemFilesystemUsage is the metric conforming to the "system.filesystem.usage" semantic conventions. It represents the reports a filesystem's space usage across different states. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemFilesystemUsageName = "system.filesystem.usage" + SystemFilesystemUsageUnit = "By" + SystemFilesystemUsageDescription = "Reports a filesystem's space usage across different states." + // SystemFilesystemUtilization is the metric conforming to the "system.filesystem.utilization" semantic conventions. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemFilesystemUtilizationName = "system.filesystem.utilization" + SystemFilesystemUtilizationUnit = "1" + // SystemLinuxMemoryAvailable is the metric conforming to the "system.linux.memory.available" semantic conventions. It represents an estimate of how much memory is available for starting new applications, without causing swapping. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemLinuxMemoryAvailableName = "system.linux.memory.available" + SystemLinuxMemoryAvailableUnit = "By" + SystemLinuxMemoryAvailableDescription = "An estimate of how much memory is available for starting new applications, without causing swapping" + // SystemLinuxMemorySlabUsage is the metric conforming to the "system.linux.memory.slab.usage" semantic conventions. It represents the reports the memory used by the Linux kernel for managing caches of frequently used objects. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemLinuxMemorySlabUsageName = "system.linux.memory.slab.usage" + SystemLinuxMemorySlabUsageUnit = "By" + SystemLinuxMemorySlabUsageDescription = "Reports the memory used by the Linux kernel for managing caches of frequently used objects." + // SystemMemoryLimit is the metric conforming to the "system.memory.limit" semantic conventions. It represents the total memory available in the system. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemMemoryLimitName = "system.memory.limit" + SystemMemoryLimitUnit = "By" + SystemMemoryLimitDescription = "Total memory available in the system." + // SystemMemoryShared is the metric conforming to the "system.memory.shared" semantic conventions. It represents the shared memory used (mostly by tmpfs). + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemMemorySharedName = "system.memory.shared" + SystemMemorySharedUnit = "By" + SystemMemorySharedDescription = "Shared memory used (mostly by tmpfs)." + // SystemMemoryUsage is the metric conforming to the "system.memory.usage" semantic conventions. It represents the reports memory in use by state. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemMemoryUsageName = "system.memory.usage" + SystemMemoryUsageUnit = "By" + SystemMemoryUsageDescription = "Reports memory in use by state." + // SystemMemoryUtilization is the metric conforming to the "system.memory.utilization" semantic conventions. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemMemoryUtilizationName = "system.memory.utilization" + SystemMemoryUtilizationUnit = "1" + // SystemNetworkConnections is the metric conforming to the "system.network.connections" semantic conventions. + // Instrument: updowncounter + // Unit: {connection} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemNetworkConnectionsName = "system.network.connections" + SystemNetworkConnectionsUnit = "{connection}" + // SystemNetworkDropped is the metric conforming to the "system.network.dropped" semantic conventions. It represents the count of packets that are dropped or discarded even though there was no error. + // Instrument: counter + // Unit: {packet} + // Stability: experimental + SystemNetworkDroppedName = "system.network.dropped" + SystemNetworkDroppedUnit = "{packet}" + SystemNetworkDroppedDescription = "Count of packets that are dropped or discarded even though there was no error" + // SystemNetworkErrors is the metric conforming to the "system.network.errors" semantic conventions. It represents the count of network errors detected. + // Instrument: counter + // Unit: {error} + // Stability: experimental + SystemNetworkErrorsName = "system.network.errors" + SystemNetworkErrorsUnit = "{error}" + SystemNetworkErrorsDescription = "Count of network errors detected" + // SystemNetworkIo is the metric conforming to the "system.network.io" semantic conventions. + // Instrument: counter + // Unit: By + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemNetworkIoName = "system.network.io" + SystemNetworkIoUnit = "By" + // SystemNetworkPackets is the metric conforming to the "system.network.packets" semantic conventions. + // Instrument: counter + // Unit: {packet} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemNetworkPacketsName = "system.network.packets" + SystemNetworkPacketsUnit = "{packet}" + // SystemPagingFaults is the metric conforming to the "system.paging.faults" semantic conventions. + // Instrument: counter + // Unit: {fault} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemPagingFaultsName = "system.paging.faults" + SystemPagingFaultsUnit = "{fault}" + // SystemPagingOperations is the metric conforming to the "system.paging.operations" semantic conventions. + // Instrument: counter + // Unit: {operation} + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemPagingOperationsName = "system.paging.operations" + SystemPagingOperationsUnit = "{operation}" + // SystemPagingUsage is the metric conforming to the "system.paging.usage" semantic conventions. It represents the unix swap or windows pagefile usage. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + SystemPagingUsageName = "system.paging.usage" + SystemPagingUsageUnit = "By" + SystemPagingUsageDescription = "Unix swap or windows pagefile usage" + // SystemPagingUtilization is the metric conforming to the "system.paging.utilization" semantic conventions. + // Instrument: gauge + // Unit: 1 + // Stability: experimental + // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. + SystemPagingUtilizationName = "system.paging.utilization" + SystemPagingUtilizationUnit = "1" + // SystemProcessCount is the metric conforming to the "system.process.count" semantic conventions. It represents the total number of processes in each state. + // Instrument: updowncounter + // Unit: {process} + // Stability: experimental + SystemProcessCountName = "system.process.count" + SystemProcessCountUnit = "{process}" + SystemProcessCountDescription = "Total number of processes in each state" + // SystemProcessCreated is the metric conforming to the "system.process.created" semantic conventions. It represents the total number of processes created over uptime of the host. + // Instrument: counter + // Unit: {process} + // Stability: experimental + SystemProcessCreatedName = "system.process.created" + SystemProcessCreatedUnit = "{process}" + SystemProcessCreatedDescription = "Total number of processes created over uptime of the host" + // V8JSGCDuration is the metric conforming to the "v8js.gc.duration" semantic conventions. It represents the garbage collection duration. + // Instrument: histogram + // Unit: s + // Stability: experimental + V8JSGCDurationName = "v8js.gc.duration" + V8JSGCDurationUnit = "s" + V8JSGCDurationDescription = "Garbage collection duration." + // V8JSHeapSpaceAvailableSize is the metric conforming to the "v8js.heap.space.available_size" semantic conventions. It represents the heap space available size. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + V8JSHeapSpaceAvailableSizeName = "v8js.heap.space.available_size" + V8JSHeapSpaceAvailableSizeUnit = "By" + V8JSHeapSpaceAvailableSizeDescription = "Heap space available size." + // V8JSHeapSpacePhysicalSize is the metric conforming to the "v8js.heap.space.physical_size" semantic conventions. It represents the committed size of a heap space. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + V8JSHeapSpacePhysicalSizeName = "v8js.heap.space.physical_size" + V8JSHeapSpacePhysicalSizeUnit = "By" + V8JSHeapSpacePhysicalSizeDescription = "Committed size of a heap space." + // V8JSMemoryHeapLimit is the metric conforming to the "v8js.memory.heap.limit" semantic conventions. It represents the total heap memory size pre-allocated. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + V8JSMemoryHeapLimitName = "v8js.memory.heap.limit" + V8JSMemoryHeapLimitUnit = "By" + V8JSMemoryHeapLimitDescription = "Total heap memory size pre-allocated." + // V8JSMemoryHeapUsed is the metric conforming to the "v8js.memory.heap.used" semantic conventions. It represents the heap Memory size allocated. + // Instrument: updowncounter + // Unit: By + // Stability: experimental + V8JSMemoryHeapUsedName = "v8js.memory.heap.used" + V8JSMemoryHeapUsedUnit = "By" + V8JSMemoryHeapUsedDescription = "Heap Memory size allocated." +) \ No newline at end of file diff --git a/semconv/v1.28.0/schema.go b/semconv/v1.28.0/schema.go new file mode 100644 index 00000000000..700b4e9c543 --- /dev/null +++ b/semconv/v1.28.0/schema.go @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Semconv packages starting from v1.4.0 must declare +// non-empty schema URL in the form https://opentelemetry.io/schemas/ +const SchemaURL = "https://opentelemetry.io/schemas/1.28.0" From b8adfe8ced693f2508a2eb8761d7b0a1352f93b0 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:40:18 -0800 Subject: [PATCH 03/11] Exclude the "dotnet" namespace --- semconv/v1.28.0/attribute_group.go | 31 ------- semconv/v1.28.0/metric.go | 133 ----------------------------- semconv/weaver.yaml | 2 +- 3 files changed, 1 insertion(+), 165 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index 06155ac7294..d8a9b18b06d 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -2890,37 +2890,6 @@ func DNSQuestionName(val string) attribute.KeyValue { return DNSQuestionNameKey.String(val) } -// Namespace: dotnet -const ( - // DotnetGCHeapGenerationKey is the attribute Key conforming to the "dotnet.gc.heap.generation" semantic conventions. It represents the name of the garbage collector managed heap generation. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "gen0", "gen1", "gen2" - DotnetGCHeapGenerationKey = attribute.Key("dotnet.gc.heap.generation") -) - -// Enum values for dotnet.gc.heap.generation -var ( - // Generation 0 - // Stability: experimental - DotnetGCHeapGenerationGen0 = DotnetGCHeapGenerationKey.String("gen0") - // Generation 1 - // Stability: experimental - DotnetGCHeapGenerationGen1 = DotnetGCHeapGenerationKey.String("gen1") - // Generation 2 - // Stability: experimental - DotnetGCHeapGenerationGen2 = DotnetGCHeapGenerationKey.String("gen2") - // Large Object Heap - // Stability: experimental - DotnetGCHeapGenerationLoh = DotnetGCHeapGenerationKey.String("loh") - // Pinned Object Heap - // Stability: experimental - DotnetGCHeapGenerationPoh = DotnetGCHeapGenerationKey.String("poh") -) - // Namespace: error const ( // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic conventions. It represents the describes a class of error the operation ended with. diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index 1dc8f2ce865..2e125761777 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -239,139 +239,6 @@ const ( DNSLookupDurationName = "dns.lookup.duration" DNSLookupDurationUnit = "s" DNSLookupDurationDescription = "Measures the time taken to perform a DNS lookup." - // DotnetAssemblyCount is the metric conforming to the "dotnet.assembly.count" semantic conventions. It represents the number of .NET assemblies that are currently loaded. - // Instrument: updowncounter - // Unit: {assembly} - // Stability: experimental - DotnetAssemblyCountName = "dotnet.assembly.count" - DotnetAssemblyCountUnit = "{assembly}" - DotnetAssemblyCountDescription = "The number of .NET assemblies that are currently loaded." - // DotnetExceptions is the metric conforming to the "dotnet.exceptions" semantic conventions. It represents the number of exceptions that have been thrown in managed code. - // Instrument: counter - // Unit: {exception} - // Stability: experimental - DotnetExceptionsName = "dotnet.exceptions" - DotnetExceptionsUnit = "{exception}" - DotnetExceptionsDescription = "The number of exceptions that have been thrown in managed code." - // DotnetGCCollections is the metric conforming to the "dotnet.gc.collections" semantic conventions. It represents the number of garbage collections that have occurred since the process has started. - // Instrument: counter - // Unit: {collection} - // Stability: experimental - DotnetGCCollectionsName = "dotnet.gc.collections" - DotnetGCCollectionsUnit = "{collection}" - DotnetGCCollectionsDescription = "The number of garbage collections that have occurred since the process has started." - // DotnetGCHeapTotalAllocated is the metric conforming to the "dotnet.gc.heap.total_allocated" semantic conventions. It represents the *approximate* number of bytes allocated on the managed GC heap since the process has started. The returned value does not include any native allocations. - // Instrument: counter - // Unit: By - // Stability: experimental - DotnetGCHeapTotalAllocatedName = "dotnet.gc.heap.total_allocated" - DotnetGCHeapTotalAllocatedUnit = "By" - DotnetGCHeapTotalAllocatedDescription = "The *approximate* number of bytes allocated on the managed GC heap since the process has started. The returned value does not include any native allocations." - // DotnetGCLastCollectionHeapFragmentationSize is the metric conforming to the "dotnet.gc.last_collection.heap.fragmentation.size" semantic conventions. It represents the heap fragmentation, as observed during the latest garbage collection. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - DotnetGCLastCollectionHeapFragmentationSizeName = "dotnet.gc.last_collection.heap.fragmentation.size" - DotnetGCLastCollectionHeapFragmentationSizeUnit = "By" - DotnetGCLastCollectionHeapFragmentationSizeDescription = "The heap fragmentation, as observed during the latest garbage collection." - // DotnetGCLastCollectionHeapSize is the metric conforming to the "dotnet.gc.last_collection.heap.size" semantic conventions. It represents the managed GC heap size (including fragmentation), as observed during the latest garbage collection. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - DotnetGCLastCollectionHeapSizeName = "dotnet.gc.last_collection.heap.size" - DotnetGCLastCollectionHeapSizeUnit = "By" - DotnetGCLastCollectionHeapSizeDescription = "The managed GC heap size (including fragmentation), as observed during the latest garbage collection." - // DotnetGCLastCollectionMemoryCommittedSize is the metric conforming to the "dotnet.gc.last_collection.memory.committed_size" semantic conventions. It represents the amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - DotnetGCLastCollectionMemoryCommittedSizeName = "dotnet.gc.last_collection.memory.committed_size" - DotnetGCLastCollectionMemoryCommittedSizeUnit = "By" - DotnetGCLastCollectionMemoryCommittedSizeDescription = "The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection." - // DotnetGCPauseTime is the metric conforming to the "dotnet.gc.pause.time" semantic conventions. It represents the total amount of time paused in GC since the process has started. - // Instrument: counter - // Unit: s - // Stability: experimental - DotnetGCPauseTimeName = "dotnet.gc.pause.time" - DotnetGCPauseTimeUnit = "s" - DotnetGCPauseTimeDescription = "The total amount of time paused in GC since the process has started." - // DotnetJitCompilationTime is the metric conforming to the "dotnet.jit.compilation.time" semantic conventions. It represents the amount of time the JIT compiler has spent compiling methods since the process has started. - // Instrument: counter - // Unit: s - // Stability: experimental - DotnetJitCompilationTimeName = "dotnet.jit.compilation.time" - DotnetJitCompilationTimeUnit = "s" - DotnetJitCompilationTimeDescription = "The amount of time the JIT compiler has spent compiling methods since the process has started." - // DotnetJitCompiledIlSize is the metric conforming to the "dotnet.jit.compiled_il.size" semantic conventions. It represents the count of bytes of intermediate language that have been compiled since the process has started. - // Instrument: counter - // Unit: By - // Stability: experimental - DotnetJitCompiledIlSizeName = "dotnet.jit.compiled_il.size" - DotnetJitCompiledIlSizeUnit = "By" - DotnetJitCompiledIlSizeDescription = "Count of bytes of intermediate language that have been compiled since the process has started." - // DotnetJitCompiledMethods is the metric conforming to the "dotnet.jit.compiled_methods" semantic conventions. It represents the number of times the JIT compiler (re)compiled methods since the process has started. - // Instrument: counter - // Unit: {method} - // Stability: experimental - DotnetJitCompiledMethodsName = "dotnet.jit.compiled_methods" - DotnetJitCompiledMethodsUnit = "{method}" - DotnetJitCompiledMethodsDescription = "The number of times the JIT compiler (re)compiled methods since the process has started." - // DotnetMonitorLockContentions is the metric conforming to the "dotnet.monitor.lock_contentions" semantic conventions. It represents the number of times there was contention when trying to acquire a monitor lock since the process has started. - // Instrument: counter - // Unit: {contention} - // Stability: experimental - DotnetMonitorLockContentionsName = "dotnet.monitor.lock_contentions" - DotnetMonitorLockContentionsUnit = "{contention}" - DotnetMonitorLockContentionsDescription = "The number of times there was contention when trying to acquire a monitor lock since the process has started." - // DotnetProcessCPUCount is the metric conforming to the "dotnet.process.cpu.count" semantic conventions. It represents the number of processors available to the process. - // Instrument: updowncounter - // Unit: {cpu} - // Stability: experimental - DotnetProcessCPUCountName = "dotnet.process.cpu.count" - DotnetProcessCPUCountUnit = "{cpu}" - DotnetProcessCPUCountDescription = "The number of processors available to the process." - // DotnetProcessCPUTime is the metric conforming to the "dotnet.process.cpu.time" semantic conventions. It represents the cPU time used by the process. - // Instrument: counter - // Unit: s - // Stability: experimental - DotnetProcessCPUTimeName = "dotnet.process.cpu.time" - DotnetProcessCPUTimeUnit = "s" - DotnetProcessCPUTimeDescription = "CPU time used by the process." - // DotnetProcessMemoryWorkingSet is the metric conforming to the "dotnet.process.memory.working_set" semantic conventions. It represents the number of bytes of physical memory mapped to the process context. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - DotnetProcessMemoryWorkingSetName = "dotnet.process.memory.working_set" - DotnetProcessMemoryWorkingSetUnit = "By" - DotnetProcessMemoryWorkingSetDescription = "The number of bytes of physical memory mapped to the process context." - // DotnetThreadPoolQueueLength is the metric conforming to the "dotnet.thread_pool.queue.length" semantic conventions. It represents the number of work items that are currently queued to be processed by the thread pool. - // Instrument: updowncounter - // Unit: {work_item} - // Stability: experimental - DotnetThreadPoolQueueLengthName = "dotnet.thread_pool.queue.length" - DotnetThreadPoolQueueLengthUnit = "{work_item}" - DotnetThreadPoolQueueLengthDescription = "The number of work items that are currently queued to be processed by the thread pool." - // DotnetThreadPoolThreadCount is the metric conforming to the "dotnet.thread_pool.thread.count" semantic conventions. It represents the number of thread pool threads that currently exist. - // Instrument: updowncounter - // Unit: {thread} - // Stability: experimental - DotnetThreadPoolThreadCountName = "dotnet.thread_pool.thread.count" - DotnetThreadPoolThreadCountUnit = "{thread}" - DotnetThreadPoolThreadCountDescription = "The number of thread pool threads that currently exist." - // DotnetThreadPoolWorkItemCount is the metric conforming to the "dotnet.thread_pool.work_item.count" semantic conventions. It represents the number of work items that the thread pool has completed since the process has started. - // Instrument: counter - // Unit: {work_item} - // Stability: experimental - DotnetThreadPoolWorkItemCountName = "dotnet.thread_pool.work_item.count" - DotnetThreadPoolWorkItemCountUnit = "{work_item}" - DotnetThreadPoolWorkItemCountDescription = "The number of work items that the thread pool has completed since the process has started." - // DotnetTimerCount is the metric conforming to the "dotnet.timer.count" semantic conventions. It represents the number of timer instances that are currently active. - // Instrument: updowncounter - // Unit: {timer} - // Stability: experimental - DotnetTimerCountName = "dotnet.timer.count" - DotnetTimerCountUnit = "{timer}" - DotnetTimerCountDescription = "The number of timer instances that are currently active." // FaaSColdstarts is the metric conforming to the "faas.coldstarts" semantic conventions. It represents the number of invocation cold starts. // Instrument: counter // Unit: {coldstart} diff --git a/semconv/weaver.yaml b/semconv/weaver.yaml index 937e22e0490..38bd58394cd 100644 --- a/semconv/weaver.yaml +++ b/semconv/weaver.yaml @@ -1,5 +1,5 @@ params: - excluded_namespaces: [] + excluded_namespaces: ["dotnet"] excluded_attributes: ["messaging.client_id"] templates: - pattern: attribute_group.go.j2 From a172546c0b2ddc9f7d4e508af426306b3a5c0d86 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:41:21 -0800 Subject: [PATCH 04/11] Exclude the "aspnetcore" namespace --- semconv/v1.28.0/attribute_group.go | 132 ----------------------------- semconv/v1.28.0/metric.go | 49 ----------- semconv/weaver.yaml | 2 +- 3 files changed, 1 insertion(+), 182 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index d8a9b18b06d..75eac933f4b 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -168,138 +168,6 @@ func ArtifactVersion(val string) attribute.KeyValue { return ArtifactVersionKey.String(val) } -// Namespace: aspnetcore -const ( - // ASPNETCoreDiagnosticsExceptionResultKey is the attribute Key conforming to the "aspnetcore.diagnostics.exception.result" semantic conventions. It represents the aSP.NET Core exception middleware handling result. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "handled", "unhandled" - ASPNETCoreDiagnosticsExceptionResultKey = attribute.Key("aspnetcore.diagnostics.exception.result") - - // ASPNETCoreDiagnosticsHandlerTypeKey is the attribute Key conforming to the "aspnetcore.diagnostics.handler.type" semantic conventions. It represents the full type name of the [`IExceptionHandler`] implementation that handled the exception. - // - // Type: string - // RequirementLevel: {"Conditionally_Required": "If And Only If The Exception Was Handled By This Handler."} - // Stability: Stable - // - // Examples: "Contoso.MyHandler" - // - // [`IExceptionHandler`]: https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler - ASPNETCoreDiagnosticsHandlerTypeKey = attribute.Key("aspnetcore.diagnostics.handler.type") - - // ASPNETCoreRateLimitingPolicyKey is the attribute Key conforming to the "aspnetcore.rate_limiting.policy" semantic conventions. It represents the rate limiting policy name. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "fixed", "sliding", "token" - ASPNETCoreRateLimitingPolicyKey = attribute.Key("aspnetcore.rate_limiting.policy") - - // ASPNETCoreRateLimitingResultKey is the attribute Key conforming to the "aspnetcore.rate_limiting.result" semantic conventions. It represents the rate-limiting result, shows whether the lease was acquired or contains a rejection reason. - // - // Type: Enum - // RequirementLevel: Required - // Stability: Stable - // - // Examples: "acquired", "request_canceled" - ASPNETCoreRateLimitingResultKey = attribute.Key("aspnetcore.rate_limiting.result") - - // ASPNETCoreRequestIsUnhandledKey is the attribute Key conforming to the "aspnetcore.request.is_unhandled" semantic conventions. It represents the flag indicating if request was handled by the application pipeline. - // - // Type: boolean - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: true - ASPNETCoreRequestIsUnhandledKey = attribute.Key("aspnetcore.request.is_unhandled") - - // ASPNETCoreRoutingIsFallbackKey is the attribute Key conforming to the "aspnetcore.routing.is_fallback" semantic conventions. It represents a value that indicates whether the matched route is a fallback route. - // - // Type: boolean - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: true - ASPNETCoreRoutingIsFallbackKey = attribute.Key("aspnetcore.routing.is_fallback") - - // ASPNETCoreRoutingMatchStatusKey is the attribute Key conforming to the "aspnetcore.routing.match_status" semantic conventions. It represents the match result - success or failure. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "success", "failure" - ASPNETCoreRoutingMatchStatusKey = attribute.Key("aspnetcore.routing.match_status") -) - -// ASPNETCoreDiagnosticsHandlerType returns an attribute KeyValue conforming to the "aspnetcore.diagnostics.handler.type" semantic conventions. It represents the full type name of the [`IExceptionHandler`] implementation that handled the exception. -// -// [`IExceptionHandler`]: https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler -func ASPNETCoreDiagnosticsHandlerType(val string) attribute.KeyValue { - return ASPNETCoreDiagnosticsHandlerTypeKey.String(val) -} - -// ASPNETCoreRateLimitingPolicy returns an attribute KeyValue conforming to the "aspnetcore.rate_limiting.policy" semantic conventions. It represents the rate limiting policy name. -func ASPNETCoreRateLimitingPolicy(val string) attribute.KeyValue { - return ASPNETCoreRateLimitingPolicyKey.String(val) -} - -// ASPNETCoreRequestIsUnhandled returns an attribute KeyValue conforming to the "aspnetcore.request.is_unhandled" semantic conventions. It represents the flag indicating if request was handled by the application pipeline. -func ASPNETCoreRequestIsUnhandled(val bool) attribute.KeyValue { - return ASPNETCoreRequestIsUnhandledKey.Bool(val) -} - -// ASPNETCoreRoutingIsFallback returns an attribute KeyValue conforming to the "aspnetcore.routing.is_fallback" semantic conventions. It represents a value that indicates whether the matched route is a fallback route. -func ASPNETCoreRoutingIsFallback(val bool) attribute.KeyValue { - return ASPNETCoreRoutingIsFallbackKey.Bool(val) -} - -// Enum values for aspnetcore.diagnostics.exception.result -var ( - // Exception was handled by the exception handling middleware. - // Stability: stable - ASPNETCoreDiagnosticsExceptionResultHandled = ASPNETCoreDiagnosticsExceptionResultKey.String("handled") - // Exception was not handled by the exception handling middleware. - // Stability: stable - ASPNETCoreDiagnosticsExceptionResultUnhandled = ASPNETCoreDiagnosticsExceptionResultKey.String("unhandled") - // Exception handling was skipped because the response had started. - // Stability: stable - ASPNETCoreDiagnosticsExceptionResultSkipped = ASPNETCoreDiagnosticsExceptionResultKey.String("skipped") - // Exception handling didn't run because the request was aborted. - // Stability: stable - ASPNETCoreDiagnosticsExceptionResultAborted = ASPNETCoreDiagnosticsExceptionResultKey.String("aborted") -) - -// Enum values for aspnetcore.rate_limiting.result -var ( - // Lease was acquired - // Stability: stable - ASPNETCoreRateLimitingResultAcquired = ASPNETCoreRateLimitingResultKey.String("acquired") - // Lease request was rejected by the endpoint limiter - // Stability: stable - ASPNETCoreRateLimitingResultEndpointLimiter = ASPNETCoreRateLimitingResultKey.String("endpoint_limiter") - // Lease request was rejected by the global limiter - // Stability: stable - ASPNETCoreRateLimitingResultGlobalLimiter = ASPNETCoreRateLimitingResultKey.String("global_limiter") - // Lease request was canceled - // Stability: stable - ASPNETCoreRateLimitingResultRequestCanceled = ASPNETCoreRateLimitingResultKey.String("request_canceled") -) - -// Enum values for aspnetcore.routing.match_status -var ( - // Match succeeded - // Stability: stable - ASPNETCoreRoutingMatchStatusSuccess = ASPNETCoreRoutingMatchStatusKey.String("success") - // Match failed - // Stability: stable - ASPNETCoreRoutingMatchStatusFailure = ASPNETCoreRoutingMatchStatusKey.String("failure") -) - // Namespace: aws const ( // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the "aws.dynamodb.attribute_definitions" semantic conventions. It represents the JSON-serialized value of each item in the `AttributeDefinitions` request field. diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index 2e125761777..af29b9a28c4 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -6,55 +6,6 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" const ( - // ASPNETCoreDiagnosticsExceptions is the metric conforming to the "aspnetcore.diagnostics.exceptions" semantic conventions. It represents the number of exceptions caught by exception handling middleware. - // Instrument: counter - // Unit: {exception} - // Stability: stable - ASPNETCoreDiagnosticsExceptionsName = "aspnetcore.diagnostics.exceptions" - ASPNETCoreDiagnosticsExceptionsUnit = "{exception}" - ASPNETCoreDiagnosticsExceptionsDescription = "Number of exceptions caught by exception handling middleware." - // ASPNETCoreRateLimitingActiveRequestLeases is the metric conforming to the "aspnetcore.rate_limiting.active_request_leases" semantic conventions. It represents the number of requests that are currently active on the server that hold a rate limiting lease. - // Instrument: updowncounter - // Unit: {request} - // Stability: stable - ASPNETCoreRateLimitingActiveRequestLeasesName = "aspnetcore.rate_limiting.active_request_leases" - ASPNETCoreRateLimitingActiveRequestLeasesUnit = "{request}" - ASPNETCoreRateLimitingActiveRequestLeasesDescription = "Number of requests that are currently active on the server that hold a rate limiting lease." - // ASPNETCoreRateLimitingQueuedRequests is the metric conforming to the "aspnetcore.rate_limiting.queued_requests" semantic conventions. It represents the number of requests that are currently queued, waiting to acquire a rate limiting lease. - // Instrument: updowncounter - // Unit: {request} - // Stability: stable - ASPNETCoreRateLimitingQueuedRequestsName = "aspnetcore.rate_limiting.queued_requests" - ASPNETCoreRateLimitingQueuedRequestsUnit = "{request}" - ASPNETCoreRateLimitingQueuedRequestsDescription = "Number of requests that are currently queued, waiting to acquire a rate limiting lease." - // ASPNETCoreRateLimitingRequestTimeInQueue is the metric conforming to the "aspnetcore.rate_limiting.request.time_in_queue" semantic conventions. It represents the time the request spent in a queue waiting to acquire a rate limiting lease. - // Instrument: histogram - // Unit: s - // Stability: stable - ASPNETCoreRateLimitingRequestTimeInQueueName = "aspnetcore.rate_limiting.request.time_in_queue" - ASPNETCoreRateLimitingRequestTimeInQueueUnit = "s" - ASPNETCoreRateLimitingRequestTimeInQueueDescription = "The time the request spent in a queue waiting to acquire a rate limiting lease." - // ASPNETCoreRateLimitingRequestLeaseDuration is the metric conforming to the "aspnetcore.rate_limiting.request_lease.duration" semantic conventions. It represents the duration of rate limiting lease held by requests on the server. - // Instrument: histogram - // Unit: s - // Stability: stable - ASPNETCoreRateLimitingRequestLeaseDurationName = "aspnetcore.rate_limiting.request_lease.duration" - ASPNETCoreRateLimitingRequestLeaseDurationUnit = "s" - ASPNETCoreRateLimitingRequestLeaseDurationDescription = "The duration of rate limiting lease held by requests on the server." - // ASPNETCoreRateLimitingRequests is the metric conforming to the "aspnetcore.rate_limiting.requests" semantic conventions. It represents the number of requests that tried to acquire a rate limiting lease. - // Instrument: counter - // Unit: {request} - // Stability: stable - ASPNETCoreRateLimitingRequestsName = "aspnetcore.rate_limiting.requests" - ASPNETCoreRateLimitingRequestsUnit = "{request}" - ASPNETCoreRateLimitingRequestsDescription = "Number of requests that tried to acquire a rate limiting lease." - // ASPNETCoreRoutingMatchAttempts is the metric conforming to the "aspnetcore.routing.match_attempts" semantic conventions. It represents the number of requests that were attempted to be matched to an endpoint. - // Instrument: counter - // Unit: {match_attempt} - // Stability: stable - ASPNETCoreRoutingMatchAttemptsName = "aspnetcore.routing.match_attempts" - ASPNETCoreRoutingMatchAttemptsUnit = "{match_attempt}" - ASPNETCoreRoutingMatchAttemptsDescription = "Number of requests that were attempted to be matched to an endpoint." // ContainerCPUTime is the metric conforming to the "container.cpu.time" semantic conventions. It represents the total CPU time consumed. // Instrument: counter // Unit: s diff --git a/semconv/weaver.yaml b/semconv/weaver.yaml index 38bd58394cd..4e51bdf9851 100644 --- a/semconv/weaver.yaml +++ b/semconv/weaver.yaml @@ -1,5 +1,5 @@ params: - excluded_namespaces: ["dotnet"] + excluded_namespaces: ["aspnetcore", "dotnet"] excluded_attributes: ["messaging.client_id"] templates: - pattern: attribute_group.go.j2 From d4851dd624f4efe61f3a81d0abe8392713c3e07c Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:42:10 -0800 Subject: [PATCH 05/11] Exclude the "jvm" namespace --- semconv/v1.28.0/attribute_group.go | 135 ----------------------------- semconv/v1.28.0/metric.go | 134 ---------------------------- semconv/weaver.yaml | 2 +- 3 files changed, 1 insertion(+), 270 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index 75eac933f4b..ed69f6a0cda 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -4640,141 +4640,6 @@ var ( HwTypeVoltage = HwTypeKey.String("voltage") ) -// Namespace: jvm -const ( - // JVMBufferPoolNameKey is the attribute Key conforming to the "jvm.buffer.pool.name" semantic conventions. It represents the name of the buffer pool. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "mapped", "direct" - // Note: Pool names are generally obtained via [BufferPoolMXBean#getName()]. - // - // [BufferPoolMXBean#getName()]: https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName() - JVMBufferPoolNameKey = attribute.Key("jvm.buffer.pool.name") - - // JVMGCActionKey is the attribute Key conforming to the "jvm.gc.action" semantic conventions. It represents the name of the garbage collector action. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "end of minor GC", "end of major GC" - // Note: Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()]. - // - // [GarbageCollectionNotificationInfo#getGcAction()]: https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction() - JVMGCActionKey = attribute.Key("jvm.gc.action") - - // JVMGCNameKey is the attribute Key conforming to the "jvm.gc.name" semantic conventions. It represents the name of the garbage collector. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "G1 Young Generation", "G1 Old Generation" - // Note: Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()]. - // - // [GarbageCollectionNotificationInfo#getGcName()]: https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName() - JVMGCNameKey = attribute.Key("jvm.gc.name") - - // JVMMemoryPoolNameKey is the attribute Key conforming to the "jvm.memory.pool.name" semantic conventions. It represents the name of the memory pool. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "G1 Old Gen", "G1 Eden space", "G1 Survivor Space" - // Note: Pool names are generally obtained via [MemoryPoolMXBean#getName()]. - // - // [MemoryPoolMXBean#getName()]: https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName() - JVMMemoryPoolNameKey = attribute.Key("jvm.memory.pool.name") - - // JVMMemoryTypeKey is the attribute Key conforming to the "jvm.memory.type" semantic conventions. It represents the type of memory. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "heap", "non_heap" - JVMMemoryTypeKey = attribute.Key("jvm.memory.type") - - // JVMThreadDaemonKey is the attribute Key conforming to the "jvm.thread.daemon" semantic conventions. It represents the whether the thread is daemon or not. - // - // Type: boolean - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: - JVMThreadDaemonKey = attribute.Key("jvm.thread.daemon") - - // JVMThreadStateKey is the attribute Key conforming to the "jvm.thread.state" semantic conventions. It represents the state of the thread. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Stable - // - // Examples: "runnable", "blocked" - JVMThreadStateKey = attribute.Key("jvm.thread.state") -) - -// JVMBufferPoolName returns an attribute KeyValue conforming to the "jvm.buffer.pool.name" semantic conventions. It represents the name of the buffer pool. -func JVMBufferPoolName(val string) attribute.KeyValue { - return JVMBufferPoolNameKey.String(val) -} - -// JVMGCAction returns an attribute KeyValue conforming to the "jvm.gc.action" semantic conventions. It represents the name of the garbage collector action. -func JVMGCAction(val string) attribute.KeyValue { - return JVMGCActionKey.String(val) -} - -// JVMGCName returns an attribute KeyValue conforming to the "jvm.gc.name" semantic conventions. It represents the name of the garbage collector. -func JVMGCName(val string) attribute.KeyValue { - return JVMGCNameKey.String(val) -} - -// JVMMemoryPoolName returns an attribute KeyValue conforming to the "jvm.memory.pool.name" semantic conventions. It represents the name of the memory pool. -func JVMMemoryPoolName(val string) attribute.KeyValue { - return JVMMemoryPoolNameKey.String(val) -} - -// JVMThreadDaemon returns an attribute KeyValue conforming to the "jvm.thread.daemon" semantic conventions. It represents the whether the thread is daemon or not. -func JVMThreadDaemon(val bool) attribute.KeyValue { - return JVMThreadDaemonKey.Bool(val) -} - -// Enum values for jvm.memory.type -var ( - // Heap memory. - // Stability: stable - JVMMemoryTypeHeap = JVMMemoryTypeKey.String("heap") - // Non-heap memory - // Stability: stable - JVMMemoryTypeNonHeap = JVMMemoryTypeKey.String("non_heap") -) - -// Enum values for jvm.thread.state -var ( - // A thread that has not yet started is in this state. - // Stability: stable - JVMThreadStateNew = JVMThreadStateKey.String("new") - // A thread executing in the Java virtual machine is in this state. - // Stability: stable - JVMThreadStateRunnable = JVMThreadStateKey.String("runnable") - // A thread that is blocked waiting for a monitor lock is in this state. - // Stability: stable - JVMThreadStateBlocked = JVMThreadStateKey.String("blocked") - // A thread that is waiting indefinitely for another thread to perform a particular action is in this state. - // Stability: stable - JVMThreadStateWaiting = JVMThreadStateKey.String("waiting") - // A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state. - // Stability: stable - JVMThreadStateTimedWaiting = JVMThreadStateKey.String("timed_waiting") - // A thread that has exited is in this state. - // Stability: stable - JVMThreadStateTerminated = JVMThreadStateKey.String("terminated") -) - // Namespace: k8s const ( // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name" semantic conventions. It represents the name of the cluster. diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index af29b9a28c4..d694f2733e4 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -449,140 +449,6 @@ const ( HwStatusName = "hw.status" HwStatusUnit = "1" HwStatusDescription = "Operational status: `1` (true) or `0` (false) for each of the possible states" - // JVMBufferCount is the metric conforming to the "jvm.buffer.count" semantic conventions. It represents the number of buffers in the pool. - // Instrument: updowncounter - // Unit: {buffer} - // Stability: experimental - JVMBufferCountName = "jvm.buffer.count" - JVMBufferCountUnit = "{buffer}" - JVMBufferCountDescription = "Number of buffers in the pool." - // JVMBufferMemoryLimit is the metric conforming to the "jvm.buffer.memory.limit" semantic conventions. It represents the measure of total memory capacity of buffers. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - JVMBufferMemoryLimitName = "jvm.buffer.memory.limit" - JVMBufferMemoryLimitUnit = "By" - JVMBufferMemoryLimitDescription = "Measure of total memory capacity of buffers." - // JVMBufferMemoryUsage is the metric conforming to the "jvm.buffer.memory.usage" semantic conventions. It represents the deprecated, use `jvm.buffer.memory.used` instead. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - // Deprecated: Replaced by `jvm.buffer.memory.used`. - JVMBufferMemoryUsageName = "jvm.buffer.memory.usage" - JVMBufferMemoryUsageUnit = "By" - JVMBufferMemoryUsageDescription = "Deprecated, use `jvm.buffer.memory.used` instead." - // JVMBufferMemoryUsed is the metric conforming to the "jvm.buffer.memory.used" semantic conventions. It represents the measure of memory used by buffers. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - JVMBufferMemoryUsedName = "jvm.buffer.memory.used" - JVMBufferMemoryUsedUnit = "By" - JVMBufferMemoryUsedDescription = "Measure of memory used by buffers." - // JVMClassCount is the metric conforming to the "jvm.class.count" semantic conventions. It represents the number of classes currently loaded. - // Instrument: updowncounter - // Unit: {class} - // Stability: stable - JVMClassCountName = "jvm.class.count" - JVMClassCountUnit = "{class}" - JVMClassCountDescription = "Number of classes currently loaded." - // JVMClassLoaded is the metric conforming to the "jvm.class.loaded" semantic conventions. It represents the number of classes loaded since JVM start. - // Instrument: counter - // Unit: {class} - // Stability: stable - JVMClassLoadedName = "jvm.class.loaded" - JVMClassLoadedUnit = "{class}" - JVMClassLoadedDescription = "Number of classes loaded since JVM start." - // JVMClassUnloaded is the metric conforming to the "jvm.class.unloaded" semantic conventions. It represents the number of classes unloaded since JVM start. - // Instrument: counter - // Unit: {class} - // Stability: stable - JVMClassUnloadedName = "jvm.class.unloaded" - JVMClassUnloadedUnit = "{class}" - JVMClassUnloadedDescription = "Number of classes unloaded since JVM start." - // JVMCPUCount is the metric conforming to the "jvm.cpu.count" semantic conventions. It represents the number of processors available to the Java virtual machine. - // Instrument: updowncounter - // Unit: {cpu} - // Stability: stable - JVMCPUCountName = "jvm.cpu.count" - JVMCPUCountUnit = "{cpu}" - JVMCPUCountDescription = "Number of processors available to the Java virtual machine." - // JVMCPURecentUtilization is the metric conforming to the "jvm.cpu.recent_utilization" semantic conventions. It represents the recent CPU utilization for the process as reported by the JVM. - // Instrument: gauge - // Unit: 1 - // Stability: stable - JVMCPURecentUtilizationName = "jvm.cpu.recent_utilization" - JVMCPURecentUtilizationUnit = "1" - JVMCPURecentUtilizationDescription = "Recent CPU utilization for the process as reported by the JVM." - // JVMCPUTime is the metric conforming to the "jvm.cpu.time" semantic conventions. It represents the cPU time used by the process as reported by the JVM. - // Instrument: counter - // Unit: s - // Stability: stable - JVMCPUTimeName = "jvm.cpu.time" - JVMCPUTimeUnit = "s" - JVMCPUTimeDescription = "CPU time used by the process as reported by the JVM." - // JVMGCDuration is the metric conforming to the "jvm.gc.duration" semantic conventions. It represents the duration of JVM garbage collection actions. - // Instrument: histogram - // Unit: s - // Stability: stable - JVMGCDurationName = "jvm.gc.duration" - JVMGCDurationUnit = "s" - JVMGCDurationDescription = "Duration of JVM garbage collection actions." - // JVMMemoryCommitted is the metric conforming to the "jvm.memory.committed" semantic conventions. It represents the measure of memory committed. - // Instrument: updowncounter - // Unit: By - // Stability: stable - JVMMemoryCommittedName = "jvm.memory.committed" - JVMMemoryCommittedUnit = "By" - JVMMemoryCommittedDescription = "Measure of memory committed." - // JVMMemoryInit is the metric conforming to the "jvm.memory.init" semantic conventions. It represents the measure of initial memory requested. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - JVMMemoryInitName = "jvm.memory.init" - JVMMemoryInitUnit = "By" - JVMMemoryInitDescription = "Measure of initial memory requested." - // JVMMemoryLimit is the metric conforming to the "jvm.memory.limit" semantic conventions. It represents the measure of max obtainable memory. - // Instrument: updowncounter - // Unit: By - // Stability: stable - JVMMemoryLimitName = "jvm.memory.limit" - JVMMemoryLimitUnit = "By" - JVMMemoryLimitDescription = "Measure of max obtainable memory." - // JVMMemoryUsed is the metric conforming to the "jvm.memory.used" semantic conventions. It represents the measure of memory used. - // Instrument: updowncounter - // Unit: By - // Stability: stable - JVMMemoryUsedName = "jvm.memory.used" - JVMMemoryUsedUnit = "By" - JVMMemoryUsedDescription = "Measure of memory used." - // JVMMemoryUsedAfterLastGC is the metric conforming to the "jvm.memory.used_after_last_gc" semantic conventions. It represents the measure of memory used, as measured after the most recent garbage collection event on this pool. - // Instrument: updowncounter - // Unit: By - // Stability: stable - JVMMemoryUsedAfterLastGCName = "jvm.memory.used_after_last_gc" - JVMMemoryUsedAfterLastGCUnit = "By" - JVMMemoryUsedAfterLastGCDescription = "Measure of memory used, as measured after the most recent garbage collection event on this pool." - // JVMSystemCPULoad1m is the metric conforming to the "jvm.system.cpu.load_1m" semantic conventions. It represents the average CPU load of the whole system for the last minute as reported by the JVM. - // Instrument: gauge - // Unit: {run_queue_item} - // Stability: experimental - JVMSystemCPULoad1mName = "jvm.system.cpu.load_1m" - JVMSystemCPULoad1mUnit = "{run_queue_item}" - JVMSystemCPULoad1mDescription = "Average CPU load of the whole system for the last minute as reported by the JVM." - // JVMSystemCPUUtilization is the metric conforming to the "jvm.system.cpu.utilization" semantic conventions. It represents the recent CPU utilization for the whole system as reported by the JVM. - // Instrument: gauge - // Unit: 1 - // Stability: experimental - JVMSystemCPUUtilizationName = "jvm.system.cpu.utilization" - JVMSystemCPUUtilizationUnit = "1" - JVMSystemCPUUtilizationDescription = "Recent CPU utilization for the whole system as reported by the JVM." - // JVMThreadCount is the metric conforming to the "jvm.thread.count" semantic conventions. It represents the number of executing platform threads. - // Instrument: updowncounter - // Unit: {thread} - // Stability: stable - JVMThreadCountName = "jvm.thread.count" - JVMThreadCountUnit = "{thread}" - JVMThreadCountDescription = "Number of executing platform threads." // K8SNodeCPUTime is the metric conforming to the "k8s.node.cpu.time" semantic conventions. It represents the total CPU time consumed. // Instrument: counter // Unit: s diff --git a/semconv/weaver.yaml b/semconv/weaver.yaml index 4e51bdf9851..1e103a77ff4 100644 --- a/semconv/weaver.yaml +++ b/semconv/weaver.yaml @@ -1,5 +1,5 @@ params: - excluded_namespaces: ["aspnetcore", "dotnet"] + excluded_namespaces: ["aspnetcore", "dotnet", "jvm"] excluded_attributes: ["messaging.client_id"] templates: - pattern: attribute_group.go.j2 From 63a9916f503da08520242b5569869435faed1364 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:42:53 -0800 Subject: [PATCH 06/11] Exclude the "nodejs" namespace --- semconv/v1.28.0/attribute_group.go | 22 ----------- semconv/v1.28.0/metric.go | 63 ------------------------------ semconv/weaver.yaml | 2 +- 3 files changed, 1 insertion(+), 86 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index ed69f6a0cda..78fe87d9a59 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -6095,28 +6095,6 @@ var ( NetworkTypeIpv6 = NetworkTypeKey.String("ipv6") ) -// Namespace: nodejs -const ( - // NodejsEventloopStateKey is the attribute Key conforming to the "nodejs.eventloop.state" semantic conventions. It represents the state of event loop time. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: - NodejsEventloopStateKey = attribute.Key("nodejs.eventloop.state") -) - -// Enum values for nodejs.eventloop.state -var ( - // Active time. - // Stability: experimental - NodejsEventloopStateActive = NodejsEventloopStateKey.String("active") - // Idle time. - // Stability: experimental - NodejsEventloopStateIdle = NodejsEventloopStateKey.String("idle") -) - // Namespace: oci const ( // OciManifestDigestKey is the attribute Key conforming to the "oci.manifest.digest" semantic conventions. It represents the digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index d694f2733e4..6b1c2a26d73 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -623,69 +623,6 @@ const ( MessagingReceiveMessagesName = "messaging.receive.messages" MessagingReceiveMessagesUnit = "{message}" MessagingReceiveMessagesDescription = "Deprecated. Use `messaging.client.consumed.messages` instead." - // NodejsEventloopDelayMax is the metric conforming to the "nodejs.eventloop.delay.max" semantic conventions. It represents the event loop maximum delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayMaxName = "nodejs.eventloop.delay.max" - NodejsEventloopDelayMaxUnit = "s" - NodejsEventloopDelayMaxDescription = "Event loop maximum delay." - // NodejsEventloopDelayMean is the metric conforming to the "nodejs.eventloop.delay.mean" semantic conventions. It represents the event loop mean delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayMeanName = "nodejs.eventloop.delay.mean" - NodejsEventloopDelayMeanUnit = "s" - NodejsEventloopDelayMeanDescription = "Event loop mean delay." - // NodejsEventloopDelayMin is the metric conforming to the "nodejs.eventloop.delay.min" semantic conventions. It represents the event loop minimum delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayMinName = "nodejs.eventloop.delay.min" - NodejsEventloopDelayMinUnit = "s" - NodejsEventloopDelayMinDescription = "Event loop minimum delay." - // NodejsEventloopDelayP50 is the metric conforming to the "nodejs.eventloop.delay.p50" semantic conventions. It represents the event loop 50 percentile delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayP50Name = "nodejs.eventloop.delay.p50" - NodejsEventloopDelayP50Unit = "s" - NodejsEventloopDelayP50Description = "Event loop 50 percentile delay." - // NodejsEventloopDelayP90 is the metric conforming to the "nodejs.eventloop.delay.p90" semantic conventions. It represents the event loop 90 percentile delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayP90Name = "nodejs.eventloop.delay.p90" - NodejsEventloopDelayP90Unit = "s" - NodejsEventloopDelayP90Description = "Event loop 90 percentile delay." - // NodejsEventloopDelayP99 is the metric conforming to the "nodejs.eventloop.delay.p99" semantic conventions. It represents the event loop 99 percentile delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayP99Name = "nodejs.eventloop.delay.p99" - NodejsEventloopDelayP99Unit = "s" - NodejsEventloopDelayP99Description = "Event loop 99 percentile delay." - // NodejsEventloopDelayStddev is the metric conforming to the "nodejs.eventloop.delay.stddev" semantic conventions. It represents the event loop standard deviation delay. - // Instrument: gauge - // Unit: s - // Stability: experimental - NodejsEventloopDelayStddevName = "nodejs.eventloop.delay.stddev" - NodejsEventloopDelayStddevUnit = "s" - NodejsEventloopDelayStddevDescription = "Event loop standard deviation delay." - // NodejsEventloopTime is the metric conforming to the "nodejs.eventloop.time" semantic conventions. It represents the cumulative duration of time the event loop has been in each state. - // Instrument: counter - // Unit: s - // Stability: experimental - NodejsEventloopTimeName = "nodejs.eventloop.time" - NodejsEventloopTimeUnit = "s" - NodejsEventloopTimeDescription = "Cumulative duration of time the event loop has been in each state." - // NodejsEventloopUtilization is the metric conforming to the "nodejs.eventloop.utilization" semantic conventions. It represents the event loop utilization. - // Instrument: gauge - // Unit: 1 - // Stability: experimental - NodejsEventloopUtilizationName = "nodejs.eventloop.utilization" - NodejsEventloopUtilizationUnit = "1" - NodejsEventloopUtilizationDescription = "Event loop utilization." // ProcessContextSwitches is the metric conforming to the "process.context_switches" semantic conventions. It represents the number of times the process has been context switched. // Instrument: counter // Unit: {count} diff --git a/semconv/weaver.yaml b/semconv/weaver.yaml index 1e103a77ff4..17611a2505a 100644 --- a/semconv/weaver.yaml +++ b/semconv/weaver.yaml @@ -1,5 +1,5 @@ params: - excluded_namespaces: ["aspnetcore", "dotnet", "jvm"] + excluded_namespaces: ["aspnetcore", "dotnet", "jvm", "nodejs"] excluded_attributes: ["messaging.client_id"] templates: - pattern: attribute_group.go.j2 From 5bfd515549e52f722a4a19ef3ee85306ed37ee8e Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 08:43:31 -0800 Subject: [PATCH 07/11] Exclude the "v8js" namespace --- semconv/v1.28.0/attribute_group.go | 59 ------------------------------ semconv/v1.28.0/metric.go | 35 ------------------ semconv/weaver.yaml | 2 +- 3 files changed, 1 insertion(+), 95 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index 78fe87d9a59..b2b0bc0578e 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -8718,65 +8718,6 @@ func UserAgentVersion(val string) attribute.KeyValue { return UserAgentVersionKey.String(val) } -// Namespace: v8js -const ( - // V8JSGCTypeKey is the attribute Key conforming to the "v8js.gc.type" semantic conventions. It represents the type of garbage collection. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: - V8JSGCTypeKey = attribute.Key("v8js.gc.type") - - // V8JSHeapSpaceNameKey is the attribute Key conforming to the "v8js.heap.space.name" semantic conventions. It represents the name of the space type of heap memory. - // - // Type: Enum - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: - // Note: Value can be retrieved from value `space_name` of [`v8.getHeapSpaceStatistics()`] - // - // [`v8.getHeapSpaceStatistics()`]: https://nodejs.org/api/v8.html#v8getheapspacestatistics - V8JSHeapSpaceNameKey = attribute.Key("v8js.heap.space.name") -) - -// Enum values for v8js.gc.type -var ( - // Major (Mark Sweep Compact). - // Stability: experimental - V8JSGCTypeMajor = V8JSGCTypeKey.String("major") - // Minor (Scavenge). - // Stability: experimental - V8JSGCTypeMinor = V8JSGCTypeKey.String("minor") - // Incremental (Incremental Marking). - // Stability: experimental - V8JSGCTypeIncremental = V8JSGCTypeKey.String("incremental") - // Weak Callbacks (Process Weak Callbacks). - // Stability: experimental - V8JSGCTypeWeakcb = V8JSGCTypeKey.String("weakcb") -) - -// Enum values for v8js.heap.space.name -var ( - // New memory space. - // Stability: experimental - V8JSHeapSpaceNameNewSpace = V8JSHeapSpaceNameKey.String("new_space") - // Old memory space. - // Stability: experimental - V8JSHeapSpaceNameOldSpace = V8JSHeapSpaceNameKey.String("old_space") - // Code memory space. - // Stability: experimental - V8JSHeapSpaceNameCodeSpace = V8JSHeapSpaceNameKey.String("code_space") - // Map memory space. - // Stability: experimental - V8JSHeapSpaceNameMapSpace = V8JSHeapSpaceNameKey.String("map_space") - // Large object memory space. - // Stability: experimental - V8JSHeapSpaceNameLargeObjectSpace = V8JSHeapSpaceNameKey.String("large_object_space") -) - // Namespace: vcs const ( // VCSRepositoryChangeIDKey is the attribute Key conforming to the "vcs.repository.change.id" semantic conventions. It represents the ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index 6b1c2a26d73..ab89a2dbd45 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -1001,39 +1001,4 @@ const ( SystemProcessCreatedName = "system.process.created" SystemProcessCreatedUnit = "{process}" SystemProcessCreatedDescription = "Total number of processes created over uptime of the host" - // V8JSGCDuration is the metric conforming to the "v8js.gc.duration" semantic conventions. It represents the garbage collection duration. - // Instrument: histogram - // Unit: s - // Stability: experimental - V8JSGCDurationName = "v8js.gc.duration" - V8JSGCDurationUnit = "s" - V8JSGCDurationDescription = "Garbage collection duration." - // V8JSHeapSpaceAvailableSize is the metric conforming to the "v8js.heap.space.available_size" semantic conventions. It represents the heap space available size. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - V8JSHeapSpaceAvailableSizeName = "v8js.heap.space.available_size" - V8JSHeapSpaceAvailableSizeUnit = "By" - V8JSHeapSpaceAvailableSizeDescription = "Heap space available size." - // V8JSHeapSpacePhysicalSize is the metric conforming to the "v8js.heap.space.physical_size" semantic conventions. It represents the committed size of a heap space. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - V8JSHeapSpacePhysicalSizeName = "v8js.heap.space.physical_size" - V8JSHeapSpacePhysicalSizeUnit = "By" - V8JSHeapSpacePhysicalSizeDescription = "Committed size of a heap space." - // V8JSMemoryHeapLimit is the metric conforming to the "v8js.memory.heap.limit" semantic conventions. It represents the total heap memory size pre-allocated. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - V8JSMemoryHeapLimitName = "v8js.memory.heap.limit" - V8JSMemoryHeapLimitUnit = "By" - V8JSMemoryHeapLimitDescription = "Total heap memory size pre-allocated." - // V8JSMemoryHeapUsed is the metric conforming to the "v8js.memory.heap.used" semantic conventions. It represents the heap Memory size allocated. - // Instrument: updowncounter - // Unit: By - // Stability: experimental - V8JSMemoryHeapUsedName = "v8js.memory.heap.used" - V8JSMemoryHeapUsedUnit = "By" - V8JSMemoryHeapUsedDescription = "Heap Memory size allocated." ) \ No newline at end of file diff --git a/semconv/weaver.yaml b/semconv/weaver.yaml index 17611a2505a..5014fa5665d 100644 --- a/semconv/weaver.yaml +++ b/semconv/weaver.yaml @@ -1,5 +1,5 @@ params: - excluded_namespaces: ["aspnetcore", "dotnet", "jvm", "nodejs"] + excluded_namespaces: ["aspnetcore", "dotnet", "jvm", "nodejs", "v8js"] excluded_attributes: ["messaging.client_id"] templates: - pattern: attribute_group.go.j2 From e521eadf432ce42e2e1881ca4e6d233111259da7 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 09:19:25 -0800 Subject: [PATCH 08/11] Revert "Use weaver@v0.10.0" This reverts commit 59c9cd540036a484833ffda620736d9894a40e3d. --- dependencies.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies.Dockerfile b/dependencies.Dockerfile index d3e746a2e00..31be8c2c385 100644 --- a/dependencies.Dockerfile +++ b/dependencies.Dockerfile @@ -1,3 +1,3 @@ # This is a renovate-friendly source of Docker images. FROM python:3.13.1-slim-bullseye AS python -FROM otel/weaver:v0.10.0 AS weaver +FROM otel/weaver:v0.12.0 AS weaver From 50178af47b83dab5b83fa5f167647564e3b6c32b Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 11:02:19 -0800 Subject: [PATCH 09/11] Regenerate with weaver@v0.12.0 Requires custom modification of the semantic-conventions repository to avoid validation warnings: rm model/{telemetry/resources-experimental.yaml,service/resources-experimental.yaml,feature-flag/events.yaml} --- semconv/v1.28.0/attribute_group.go | 8550 ++++++++++++++++++---------- semconv/v1.28.0/metric.go | 790 ++- 2 files changed, 5978 insertions(+), 3362 deletions(-) diff --git a/semconv/v1.28.0/attribute_group.go b/semconv/v1.28.0/attribute_group.go index b2b0bc0578e..9964cd49926 100644 --- a/semconv/v1.28.0/attribute_group.go +++ b/semconv/v1.28.0/attribute_group.go @@ -9,20 +9,26 @@ import "go.opentelemetry.io/otel/attribute" // Namespace: android const ( - // AndroidOSAPILevelKey is the attribute Key conforming to the "android.os.api_level" semantic conventions. It represents the uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here]. - // + // AndroidOSAPILevelKey is the attribute Key conforming to the + // "android.os.api_level" semantic conventions. It represents the uniquely + // identifies the framework API revision offered by a version (`os.version`) of + // the android operating system. More information can be found [here]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "33", "32" - // + // // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels AndroidOSAPILevelKey = attribute.Key("android.os.api_level") ) -// AndroidOSAPILevel returns an attribute KeyValue conforming to the "android.os.api_level" semantic conventions. It represents the uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here]. -// +// AndroidOSAPILevel returns an attribute KeyValue conforming to the +// "android.os.api_level" semantic conventions. It represents the uniquely +// identifies the framework API revision offered by a version (`os.version`) of +// the android operating system. More information can be found [here]. +// // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels func AndroidOSAPILevel(val string) attribute.KeyValue { return AndroidOSAPILevelKey.String(val) @@ -30,62 +36,80 @@ func AndroidOSAPILevel(val string) attribute.KeyValue { // Namespace: artifact const ( - // ArtifactAttestationFilenameKey is the attribute Key conforming to the "artifact.attestation.filename" semantic conventions. It represents the provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship] specification for more information. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "golang-binary-amd64-v0.1.0.attestation", "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation", "file-name-package.tar.gz.intoto.json1" - // + // ArtifactAttestationFilenameKey is the attribute Key conforming to the + // "artifact.attestation.filename" semantic conventions. It represents the + // provenance filename of the built attestation which directly relates to the + // build artifact filename. This filename SHOULD accompany the artifact at + // publish time. See the [SLSA Relationship] specification for more information. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Development + // + // Examples: "golang-binary-amd64-v0.1.0.attestation", + // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation", + // "file-name-package.tar.gz.intoto.json1" + // // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename") - // ArtifactAttestationHashKey is the attribute Key conforming to the "artifact.attestation.hash" semantic conventions. It represents the full [hash value (see glossary)], of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest]. - // + // ArtifactAttestationHashKey is the attribute Key conforming to the + // "artifact.attestation.hash" semantic conventions. It represents the full + // [hash value (see glossary)], of the built attestation. Some envelopes in the + // software attestation space also refer to this as the [digest]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408" - // + // // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf // [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash") - // ArtifactAttestationIDKey is the attribute Key conforming to the "artifact.attestation.id" semantic conventions. It represents the id of the build [software attestation]. - // + // ArtifactAttestationIDKey is the attribute Key conforming to the + // "artifact.attestation.id" semantic conventions. It represents the id of the + // build [software attestation]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "123" - // + // // [software attestation]: https://slsa.dev/attestation-model ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id") - // ArtifactFilenameKey is the attribute Key conforming to the "artifact.filename" semantic conventions. It represents the human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. - // + // ArtifactFilenameKey is the attribute Key conforming to the + // "artifact.filename" semantic conventions. It represents the human readable + // file name of the artifact, typically generated during build and release + // processes. Often includes the package name and version in the file name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0", "release-1.tar.gz", "file-name-package.tar.gz" + // Stability: Development + // + // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0", + // "release-1.tar.gz", "file-name-package.tar.gz" // Note: This file name can also act as the [Package Name] // in cases where the package ecosystem maps accordingly. // Additionally, the artifact [can be published] // for others, but that is not a guarantee. - // + // // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain ArtifactFilenameKey = attribute.Key("artifact.filename") - // ArtifactHashKey is the attribute Key conforming to the "artifact.hash" semantic conventions. It represents the full [hash value (see glossary)], often found in checksum.txt on a release of the artifact and used to verify package integrity. - // + // ArtifactHashKey is the attribute Key conforming to the "artifact.hash" + // semantic conventions. It represents the full [hash value (see glossary)], + // often found in checksum.txt on a release of the artifact and used to verify + // package integrity. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9" // Note: The specific algorithm used to create the cryptographic hash value is // not defined. In situations where an artifact has multiple @@ -95,479 +119,628 @@ const ( // corresponding attestation. The implementer can then provide the other // hash values through an additional set of attribute extensions as they // deem necessary. - // + // // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf ArtifactHashKey = attribute.Key("artifact.hash") - // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl" semantic conventions. It represents the [Package URL] of the [package artifact] provides a standard way to identify and locate the packaged artifact. - // + // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl" + // semantic conventions. It represents the [Package URL] of the + // [package artifact] provides a standard way to identify and locate the + // packaged artifact. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "pkg:github/package-url/purl-spec@1209109710924", "pkg:npm/foo@12.12.3" - // + // Stability: Development + // + // Examples: "pkg:github/package-url/purl-spec@1209109710924", + // "pkg:npm/foo@12.12.3" + // // [Package URL]: https://github.com/package-url/purl-spec // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model ArtifactPurlKey = attribute.Key("artifact.purl") - // ArtifactVersionKey is the attribute Key conforming to the "artifact.version" semantic conventions. It represents the version of the artifact. - // + // ArtifactVersionKey is the attribute Key conforming to the "artifact.version" + // semantic conventions. It represents the version of the artifact. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "v0.1.0", "1.2.1", "122691-build" ArtifactVersionKey = attribute.Key("artifact.version") ) -// ArtifactAttestationFilename returns an attribute KeyValue conforming to the "artifact.attestation.filename" semantic conventions. It represents the provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship] specification for more information. -// +// ArtifactAttestationFilename returns an attribute KeyValue conforming to the +// "artifact.attestation.filename" semantic conventions. It represents the +// provenance filename of the built attestation which directly relates to the +// build artifact filename. This filename SHOULD accompany the artifact at +// publish time. See the [SLSA Relationship] specification for more information. +// // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations func ArtifactAttestationFilename(val string) attribute.KeyValue { return ArtifactAttestationFilenameKey.String(val) } -// ArtifactAttestationHash returns an attribute KeyValue conforming to the "artifact.attestation.hash" semantic conventions. It represents the full [hash value (see glossary)], of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest]. -// +// ArtifactAttestationHash returns an attribute KeyValue conforming to the +// "artifact.attestation.hash" semantic conventions. It represents the full +// [hash value (see glossary)], of the built attestation. Some envelopes in the +// software attestation space also refer to this as the [digest]. +// // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf // [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec func ArtifactAttestationHash(val string) attribute.KeyValue { return ArtifactAttestationHashKey.String(val) } -// ArtifactAttestationID returns an attribute KeyValue conforming to the "artifact.attestation.id" semantic conventions. It represents the id of the build [software attestation]. -// +// ArtifactAttestationID returns an attribute KeyValue conforming to the +// "artifact.attestation.id" semantic conventions. It represents the id of the +// build [software attestation]. +// // [software attestation]: https://slsa.dev/attestation-model func ArtifactAttestationID(val string) attribute.KeyValue { return ArtifactAttestationIDKey.String(val) } -// ArtifactFilename returns an attribute KeyValue conforming to the "artifact.filename" semantic conventions. It represents the human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. +// ArtifactFilename returns an attribute KeyValue conforming to the +// "artifact.filename" semantic conventions. It represents the human readable +// file name of the artifact, typically generated during build and release +// processes. Often includes the package name and version in the file name. func ArtifactFilename(val string) attribute.KeyValue { return ArtifactFilenameKey.String(val) } -// ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash" semantic conventions. It represents the full [hash value (see glossary)], often found in checksum.txt on a release of the artifact and used to verify package integrity. -// +// ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash" +// semantic conventions. It represents the full [hash value (see glossary)], +// often found in checksum.txt on a release of the artifact and used to verify +// package integrity. +// // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf func ArtifactHash(val string) attribute.KeyValue { return ArtifactHashKey.String(val) } -// ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl" semantic conventions. It represents the [Package URL] of the [package artifact] provides a standard way to identify and locate the packaged artifact. -// +// ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl" +// semantic conventions. It represents the [Package URL] of the +// [package artifact] provides a standard way to identify and locate the packaged +// artifact. +// // [Package URL]: https://github.com/package-url/purl-spec // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model func ArtifactPurl(val string) attribute.KeyValue { return ArtifactPurlKey.String(val) } -// ArtifactVersion returns an attribute KeyValue conforming to the "artifact.version" semantic conventions. It represents the version of the artifact. +// ArtifactVersion returns an attribute KeyValue conforming to the +// "artifact.version" semantic conventions. It represents the version of the +// artifact. func ArtifactVersion(val string) attribute.KeyValue { return ArtifactVersionKey.String(val) } // Namespace: aws const ( - // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the "aws.dynamodb.attribute_definitions" semantic conventions. It represents the JSON-serialized value of each item in the `AttributeDefinitions` request field. - // + // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the + // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the + // JSON-serialized value of each item in the `AttributeDefinitions` request + // field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "{ "AttributeName": "string", "AttributeType": "string" }" AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions") - // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value of the `AttributesToGet` request parameter. - // + // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the + // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the + // value of the `AttributesToGet` request parameter. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "lives", "id" AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get") - // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the "aws.dynamodb.consistent_read" semantic conventions. It represents the value of the `ConsistentRead` request parameter. - // + // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the + // "aws.dynamodb.consistent_read" semantic conventions. It represents the value + // of the `ConsistentRead` request parameter. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read") - // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the "aws.dynamodb.consumed_capacity" semantic conventions. It represents the JSON-serialized value of each item in the `ConsumedCapacity` response field. - // + // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the + // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the + // JSON-serialized value of each item in the `ConsumedCapacity` response field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }" + // Stability: Development + // + // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : + // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, + // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, + // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, + // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": + // "string", "WriteCapacityUnits": number }" AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity") - // AWSDynamoDBCountKey is the attribute Key conforming to the "aws.dynamodb.count" semantic conventions. It represents the value of the `Count` response parameter. - // + // AWSDynamoDBCountKey is the attribute Key conforming to the + // "aws.dynamodb.count" semantic conventions. It represents the value of the + // `Count` response parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 10 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count") - // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the value of the `ExclusiveStartTableName` request parameter. - // + // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the + // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the + // value of the `ExclusiveStartTableName` request parameter. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Users", "CatsTable" AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table") - // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It represents the JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. - // + // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to + // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It + // represents the JSON-serialized value of each item in the + // `GlobalSecondaryIndexUpdates` request field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" + // Stability: Development + // + // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }" AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates") - // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. - // + // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the + // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents + // the JSON-serialized value of each item of the `GlobalSecondaryIndexes` + // request field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" + // Stability: Development + // + // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName": + // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ + // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { + // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }" AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes") - // AWSDynamoDBIndexNameKey is the attribute Key conforming to the "aws.dynamodb.index_name" semantic conventions. It represents the value of the `IndexName` request parameter. - // + // AWSDynamoDBIndexNameKey is the attribute Key conforming to the + // "aws.dynamodb.index_name" semantic conventions. It represents the value of + // the `IndexName` request parameter. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "name_to_group" AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name") - // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents the JSON-serialized value of the `ItemCollectionMetrics` response field. - // + // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the + // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents + // the JSON-serialized value of the `ItemCollectionMetrics` response field. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }" + // Stability: Development + // + // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, + // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : + // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": + // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }" AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics") - // AWSDynamoDBLimitKey is the attribute Key conforming to the "aws.dynamodb.limit" semantic conventions. It represents the value of the `Limit` request parameter. - // + // AWSDynamoDBLimitKey is the attribute Key conforming to the + // "aws.dynamodb.limit" semantic conventions. It represents the value of the + // `Limit` request parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 10 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit") - // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. - // + // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the + // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents + // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request + // field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }" + // Stability: Development + // + // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }" AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes") - // AWSDynamoDBProjectionKey is the attribute Key conforming to the "aws.dynamodb.projection" semantic conventions. It represents the value of the `ProjectionExpression` request parameter. - // + // AWSDynamoDBProjectionKey is the attribute Key conforming to the + // "aws.dynamodb.projection" semantic conventions. It represents the value of + // the `ProjectionExpression` request parameter. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems, ProductReviews" + // Stability: Development + // + // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems, + // ProductReviews" AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection") - // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. - // + // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the + // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents + // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1.0, 2.0 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity") - // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. - // + // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the + // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents + // the value of the `ProvisionedThroughput.WriteCapacityUnits` request + // parameter. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1.0, 2.0 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity") - // AWSDynamoDBScanForwardKey is the attribute Key conforming to the "aws.dynamodb.scan_forward" semantic conventions. It represents the value of the `ScanIndexForward` request parameter. - // + // AWSDynamoDBScanForwardKey is the attribute Key conforming to the + // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of + // the `ScanIndexForward` request parameter. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward") - // AWSDynamoDBScannedCountKey is the attribute Key conforming to the "aws.dynamodb.scanned_count" semantic conventions. It represents the value of the `ScannedCount` response parameter. - // + // AWSDynamoDBScannedCountKey is the attribute Key conforming to the + // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of + // the `ScannedCount` response parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 50 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count") - // AWSDynamoDBSegmentKey is the attribute Key conforming to the "aws.dynamodb.segment" semantic conventions. It represents the value of the `Segment` request parameter. - // + // AWSDynamoDBSegmentKey is the attribute Key conforming to the + // "aws.dynamodb.segment" semantic conventions. It represents the value of the + // `Segment` request parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 10 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment") - // AWSDynamoDBSelectKey is the attribute Key conforming to the "aws.dynamodb.select" semantic conventions. It represents the value of the `Select` request parameter. - // + // AWSDynamoDBSelectKey is the attribute Key conforming to the + // "aws.dynamodb.select" semantic conventions. It represents the value of the + // `Select` request parameter. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "ALL_ATTRIBUTES", "COUNT" AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select") - // AWSDynamoDBTableCountKey is the attribute Key conforming to the "aws.dynamodb.table_count" semantic conventions. It represents the number of items in the `TableNames` response parameter. - // + // AWSDynamoDBTableCountKey is the attribute Key conforming to the + // "aws.dynamodb.table_count" semantic conventions. It represents the number of + // items in the `TableNames` response parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 20 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count") - // AWSDynamoDBTableNamesKey is the attribute Key conforming to the "aws.dynamodb.table_names" semantic conventions. It represents the keys in the `RequestItems` object field. - // + // AWSDynamoDBTableNamesKey is the attribute Key conforming to the + // "aws.dynamodb.table_names" semantic conventions. It represents the keys in + // the `RequestItems` object field. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Users", "Cats" AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names") - // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the "aws.dynamodb.total_segments" semantic conventions. It represents the value of the `TotalSegments` request parameter. - // + // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the + // "aws.dynamodb.total_segments" semantic conventions. It represents the value + // of the `TotalSegments` request parameter. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 100 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments") - // AWSECSClusterARNKey is the attribute Key conforming to the "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an [ECS cluster]. - // + // AWSECSClusterARNKey is the attribute Key conforming to the + // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an + // [ECS cluster]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" - // + // // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn") - // AWSECSContainerARNKey is the attribute Key conforming to the "aws.ecs.container.arn" semantic conventions. It represents the Amazon Resource Name (ARN) of an [ECS container instance]. - // + // AWSECSContainerARNKey is the attribute Key conforming to the + // "aws.ecs.container.arn" semantic conventions. It represents the Amazon + // Resource Name (ARN) of an [ECS container instance]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9" - // + // Stability: Development + // + // Examples: + // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9" + // // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn") - // AWSECSLaunchtypeKey is the attribute Key conforming to the "aws.ecs.launchtype" semantic conventions. It represents the [launch type] for an ECS task. - // + // AWSECSLaunchtypeKey is the attribute Key conforming to the + // "aws.ecs.launchtype" semantic conventions. It represents the [launch type] + // for an ECS task. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype") - // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running [ECS task]. - // + // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn" + // semantic conventions. It represents the ARN of a running [ECS task]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b", "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" - // + // Stability: Development + // + // Examples: + // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b", + // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" + // // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn") - // AWSECSTaskFamilyKey is the attribute Key conforming to the "aws.ecs.task.family" semantic conventions. It represents the family name of the [ECS task definition] used to create the ECS task. - // + // AWSECSTaskFamilyKey is the attribute Key conforming to the + // "aws.ecs.task.family" semantic conventions. It represents the family name of + // the [ECS task definition] used to create the ECS task. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry-family" - // + // // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family") - // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id" semantic conventions. It represents the ID of a running ECS task. The ID MUST be extracted from `task.arn`. - // - // Type: string - // RequirementLevel: {"Conditionally_Required": "If And Only If `Task.Arn` Is Populated."} - // Stability: Experimental - // - // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b", "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" + // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id" + // semantic conventions. It represents the ID of a running ECS task. The ID MUST + // be extracted from `task.arn`. + // + // Type: string + // RequirementLevel: {"Conditionally_Required": "If And Only If `Task.Arn` Is + // Populated."} + // Stability: Development + // + // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b", + // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd" AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id") - // AWSECSTaskRevisionKey is the attribute Key conforming to the "aws.ecs.task.revision" semantic conventions. It represents the revision for the task definition used to create the ECS task. - // + // AWSECSTaskRevisionKey is the attribute Key conforming to the + // "aws.ecs.task.revision" semantic conventions. It represents the revision for + // the task definition used to create the ECS task. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "8", "26" AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision") - // AWSEKSClusterARNKey is the attribute Key conforming to the "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS cluster. - // + // AWSEKSClusterARNKey is the attribute Key conforming to the + // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS + // cluster. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster" AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn") - // AWSLambdaInvokedARNKey is the attribute Key conforming to the "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). - // + // AWSLambdaInvokedARNKey is the attribute Key conforming to the + // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked + // ARN as provided on the `Context` passed to the function ( + // `Lambda-Runtime-Invoked-Function-Arn` header on the + // `/runtime/invocation/next` applicable). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias" // Note: This may be different from `cloud.resource_id` if an alias is involved. AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn") - // AWSLogGroupARNsKey is the attribute Key conforming to the "aws.log.group.arns" semantic conventions. It represents the Amazon Resource Name(s) (ARN) of the AWS log group(s). - // + // AWSLogGroupARNsKey is the attribute Key conforming to the + // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource + // Name(s) (ARN) of the AWS log group(s). + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*" // Note: See the [log group ARN format documentation]. - // + // // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns") - // AWSLogGroupNamesKey is the attribute Key conforming to the "aws.log.group.names" semantic conventions. It represents the name(s) of the AWS log group(s) an application is writing to. - // + // AWSLogGroupNamesKey is the attribute Key conforming to the + // "aws.log.group.names" semantic conventions. It represents the name(s) of the + // AWS log group(s) an application is writing to. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/aws/lambda/my-function", "opentelemetry-service" - // Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. + // Note: Multiple log groups must be supported for cases like multi-container + // applications, where a single application has sidecar containers, and each + // write to their own log group. AWSLogGroupNamesKey = attribute.Key("aws.log.group.names") - // AWSLogStreamARNsKey is the attribute Key conforming to the "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the AWS log stream(s). - // + // AWSLogStreamARNsKey is the attribute Key conforming to the + // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the + // AWS log stream(s). + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" - // Note: See the [log stream ARN format documentation]. One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. - // + // Stability: Development + // + // Examples: + // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" + // Note: See the [log stream ARN format documentation]. One log group can + // contain several log streams, so these ARNs necessarily identify both a log + // group and a log stream. + // // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns") - // AWSLogStreamNamesKey is the attribute Key conforming to the "aws.log.stream.names" semantic conventions. It represents the name(s) of the AWS log stream(s) an application is writing to. - // + // AWSLogStreamNamesKey is the attribute Key conforming to the + // "aws.log.stream.names" semantic conventions. It represents the name(s) of the + // AWS log stream(s) an application is writing to. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b" AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names") - // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id" semantic conventions. It represents the AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. - // + // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id" + // semantic conventions. It represents the AWS request ID as returned in the + // response headers `x-amz-request-id` or `x-amz-requestid`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ" AWSRequestIDKey = attribute.Key("aws.request_id") - // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket" semantic conventions. It represents the S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API] operations. - // + // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket" + // semantic conventions. It represents the S3 bucket name the request refers to. + // Corresponds to the `--bucket` parameter of the [S3 API] operations. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "some-bucket-name" - // Note: The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter. + // Note: The `bucket` attribute is applicable to all S3 operations that + // reference a bucket, i.e. that require the bucket name as a mandatory + // parameter. // This applies to almost all S3 operations except `list-buckets`. - // + // // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html AWSS3BucketKey = attribute.Key("aws.s3.bucket") - // AWSS3CopySourceKey is the attribute Key conforming to the "aws.s3.copy_source" semantic conventions. It represents the source object (in the form `bucket`/`key`) for the copy operation. - // + // AWSS3CopySourceKey is the attribute Key conforming to the + // "aws.s3.copy_source" semantic conventions. It represents the source object + // (in the form `bucket`/`key`) for the copy operation. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "someFile.yml" - // Note: The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter + // Note: The `copy_source` attribute applies to S3 copy operations and + // corresponds to the `--copy-source` parameter // of the [copy-object operation within the S3 API]. // This applies in particular to the following operations: - // + // // - [copy-object] // - [upload-part-copy] + // + // // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source") - // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete" semantic conventions. It represents the delete request container that specifies the objects to be deleted. - // + // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete" + // semantic conventions. It represents the delete request container that + // specifies the objects to be deleted. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" - // Note: The `delete` attribute is only applicable to the [delete-object] operation. + // Stability: Development + // + // Examples: + // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean" + // Note: The `delete` attribute is only applicable to the [delete-object] + // operation. // The `delete` attribute corresponds to the `--delete` parameter of the // [delete-objects operation within the S3 API]. - // + // // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html AWSS3DeleteKey = attribute.Key("aws.s3.delete") - // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic conventions. It represents the S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API] operations. - // + // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic + // conventions. It represents the S3 object key the request refers to. + // Corresponds to the `--key` parameter of the [S3 API] operations. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "someFile.yml" - // Note: The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter. + // Note: The `key` attribute is applicable to all object-related S3 operations, + // i.e. that require the object key as a mandatory parameter. // This applies in particular to the following operations: - // + // // - [copy-object] // - [delete-object] // - [get-object] @@ -581,6 +754,8 @@ const ( // - [list-parts] // - [upload-part] // - [upload-part-copy] + // + // // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html @@ -597,39 +772,48 @@ const ( // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html AWSS3KeyKey = attribute.Key("aws.s3.key") - // AWSS3PartNumberKey is the attribute Key conforming to the "aws.s3.part_number" semantic conventions. It represents the part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. - // + // AWSS3PartNumberKey is the attribute Key conforming to the + // "aws.s3.part_number" semantic conventions. It represents the part number of + // the part being uploaded in a multipart-upload operation. This is a positive + // integer between 1 and 10,000. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 3456 // Note: The `part_number` attribute is only applicable to the [upload-part] // and [upload-part-copy] operations. - // The `part_number` attribute corresponds to the `--part-number` parameter of the + // The `part_number` attribute corresponds to the `--part-number` parameter of + // the // [upload-part operation within the S3 API]. - // + // // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html AWSS3PartNumberKey = attribute.Key("aws.s3.part_number") - // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id" semantic conventions. It represents the upload ID that identifies the multipart upload. - // + // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id" + // semantic conventions. It represents the upload ID that identifies the + // multipart upload. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ" - // Note: The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter + // Note: The `upload_id` attribute applies to S3 multipart-upload operations and + // corresponds to the `--upload-id` parameter // of the [S3 API] multipart operations. // This applies in particular to the following operations: - // + // // - [abort-multipart-upload] // - [complete-multipart-upload] // - [list-parts] // - [upload-part] // - [upload-part-copy] + // + // // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html @@ -639,219 +823,310 @@ const ( AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id") ) -// AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to the "aws.dynamodb.attribute_definitions" semantic conventions. It represents the JSON-serialized value of each item in the `AttributeDefinitions` request field. +// AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to +// the "aws.dynamodb.attribute_definitions" semantic conventions. It represents +// the JSON-serialized value of each item in the `AttributeDefinitions` request +// field. func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue { return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val) } -// AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value of the `AttributesToGet` request parameter. +// AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the +// "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value +// of the `AttributesToGet` request parameter. func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue { return AWSDynamoDBAttributesToGetKey.StringSlice(val) } -// AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the "aws.dynamodb.consistent_read" semantic conventions. It represents the value of the `ConsistentRead` request parameter. +// AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the +// "aws.dynamodb.consistent_read" semantic conventions. It represents the value +// of the `ConsistentRead` request parameter. func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue { return AWSDynamoDBConsistentReadKey.Bool(val) } -// AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.consumed_capacity" semantic conventions. It represents the JSON-serialized value of each item in the `ConsumedCapacity` response field. +// AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the +// "aws.dynamodb.consumed_capacity" semantic conventions. It represents the +// JSON-serialized value of each item in the `ConsumedCapacity` response field. func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue { return AWSDynamoDBConsumedCapacityKey.StringSlice(val) } -// AWSDynamoDBCount returns an attribute KeyValue conforming to the "aws.dynamodb.count" semantic conventions. It represents the value of the `Count` response parameter. +// AWSDynamoDBCount returns an attribute KeyValue conforming to the +// "aws.dynamodb.count" semantic conventions. It represents the value of the +// `Count` response parameter. func AWSDynamoDBCount(val int) attribute.KeyValue { return AWSDynamoDBCountKey.Int(val) } -// AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the value of the `ExclusiveStartTableName` request parameter. +// AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the +// "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the +// value of the `ExclusiveStartTableName` request parameter. func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue { return AWSDynamoDBExclusiveStartTableKey.String(val) } -// AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue conforming to the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It represents the JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. +// AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue +// conforming to the "aws.dynamodb.global_secondary_index_updates" semantic +// conventions. It represents the JSON-serialized value of each item in the +// `GlobalSecondaryIndexUpdates` request field. func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue { return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val) } -// AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to the "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. +// AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to +// the "aws.dynamodb.global_secondary_indexes" semantic conventions. It +// represents the JSON-serialized value of each item of the +// `GlobalSecondaryIndexes` request field. func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue { return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val) } -// AWSDynamoDBIndexName returns an attribute KeyValue conforming to the "aws.dynamodb.index_name" semantic conventions. It represents the value of the `IndexName` request parameter. +// AWSDynamoDBIndexName returns an attribute KeyValue conforming to the +// "aws.dynamodb.index_name" semantic conventions. It represents the value of the +// `IndexName` request parameter. func AWSDynamoDBIndexName(val string) attribute.KeyValue { return AWSDynamoDBIndexNameKey.String(val) } -// AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents the JSON-serialized value of the `ItemCollectionMetrics` response field. +// AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to +// the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents +// the JSON-serialized value of the `ItemCollectionMetrics` response field. func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue { return AWSDynamoDBItemCollectionMetricsKey.String(val) } -// AWSDynamoDBLimit returns an attribute KeyValue conforming to the "aws.dynamodb.limit" semantic conventions. It represents the value of the `Limit` request parameter. +// AWSDynamoDBLimit returns an attribute KeyValue conforming to the +// "aws.dynamodb.limit" semantic conventions. It represents the value of the +// `Limit` request parameter. func AWSDynamoDBLimit(val int) attribute.KeyValue { return AWSDynamoDBLimitKey.Int(val) } -// AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents the JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. +// AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to +// the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents +// the JSON-serialized value of each item of the `LocalSecondaryIndexes` request +// field. func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue { return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val) } -// AWSDynamoDBProjection returns an attribute KeyValue conforming to the "aws.dynamodb.projection" semantic conventions. It represents the value of the `ProjectionExpression` request parameter. +// AWSDynamoDBProjection returns an attribute KeyValue conforming to the +// "aws.dynamodb.projection" semantic conventions. It represents the value of the +// `ProjectionExpression` request parameter. func AWSDynamoDBProjection(val string) attribute.KeyValue { return AWSDynamoDBProjectionKey.String(val) } -// AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. +// AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to +// the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It +// represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request +// parameter. func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue { return AWSDynamoDBProvisionedReadCapacityKey.Float64(val) } -// AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. +// AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming +// to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It +// represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request +// parameter. func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue { return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val) } -// AWSDynamoDBScanForward returns an attribute KeyValue conforming to the "aws.dynamodb.scan_forward" semantic conventions. It represents the value of the `ScanIndexForward` request parameter. +// AWSDynamoDBScanForward returns an attribute KeyValue conforming to the +// "aws.dynamodb.scan_forward" semantic conventions. It represents the value of +// the `ScanIndexForward` request parameter. func AWSDynamoDBScanForward(val bool) attribute.KeyValue { return AWSDynamoDBScanForwardKey.Bool(val) } -// AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the "aws.dynamodb.scanned_count" semantic conventions. It represents the value of the `ScannedCount` response parameter. +// AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the +// "aws.dynamodb.scanned_count" semantic conventions. It represents the value of +// the `ScannedCount` response parameter. func AWSDynamoDBScannedCount(val int) attribute.KeyValue { return AWSDynamoDBScannedCountKey.Int(val) } -// AWSDynamoDBSegment returns an attribute KeyValue conforming to the "aws.dynamodb.segment" semantic conventions. It represents the value of the `Segment` request parameter. +// AWSDynamoDBSegment returns an attribute KeyValue conforming to the +// "aws.dynamodb.segment" semantic conventions. It represents the value of the +// `Segment` request parameter. func AWSDynamoDBSegment(val int) attribute.KeyValue { return AWSDynamoDBSegmentKey.Int(val) } -// AWSDynamoDBSelect returns an attribute KeyValue conforming to the "aws.dynamodb.select" semantic conventions. It represents the value of the `Select` request parameter. +// AWSDynamoDBSelect returns an attribute KeyValue conforming to the +// "aws.dynamodb.select" semantic conventions. It represents the value of the +// `Select` request parameter. func AWSDynamoDBSelect(val string) attribute.KeyValue { return AWSDynamoDBSelectKey.String(val) } -// AWSDynamoDBTableCount returns an attribute KeyValue conforming to the "aws.dynamodb.table_count" semantic conventions. It represents the number of items in the `TableNames` response parameter. +// AWSDynamoDBTableCount returns an attribute KeyValue conforming to the +// "aws.dynamodb.table_count" semantic conventions. It represents the number of +// items in the `TableNames` response parameter. func AWSDynamoDBTableCount(val int) attribute.KeyValue { return AWSDynamoDBTableCountKey.Int(val) } -// AWSDynamoDBTableNames returns an attribute KeyValue conforming to the "aws.dynamodb.table_names" semantic conventions. It represents the keys in the `RequestItems` object field. +// AWSDynamoDBTableNames returns an attribute KeyValue conforming to the +// "aws.dynamodb.table_names" semantic conventions. It represents the keys in the +// `RequestItems` object field. func AWSDynamoDBTableNames(val ...string) attribute.KeyValue { return AWSDynamoDBTableNamesKey.StringSlice(val) } -// AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the "aws.dynamodb.total_segments" semantic conventions. It represents the value of the `TotalSegments` request parameter. +// AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the +// "aws.dynamodb.total_segments" semantic conventions. It represents the value of +// the `TotalSegments` request parameter. func AWSDynamoDBTotalSegments(val int) attribute.KeyValue { return AWSDynamoDBTotalSegmentsKey.Int(val) } -// AWSECSClusterARN returns an attribute KeyValue conforming to the "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an [ECS cluster]. -// +// AWSECSClusterARN returns an attribute KeyValue conforming to the +// "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an +// [ECS cluster]. +// // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html func AWSECSClusterARN(val string) attribute.KeyValue { return AWSECSClusterARNKey.String(val) } -// AWSECSContainerARN returns an attribute KeyValue conforming to the "aws.ecs.container.arn" semantic conventions. It represents the Amazon Resource Name (ARN) of an [ECS container instance]. -// +// AWSECSContainerARN returns an attribute KeyValue conforming to the +// "aws.ecs.container.arn" semantic conventions. It represents the Amazon +// Resource Name (ARN) of an [ECS container instance]. +// // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html func AWSECSContainerARN(val string) attribute.KeyValue { return AWSECSContainerARNKey.String(val) } -// AWSECSTaskARN returns an attribute KeyValue conforming to the "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running [ECS task]. -// +// AWSECSTaskARN returns an attribute KeyValue conforming to the +// "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running +// [ECS task]. +// // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids func AWSECSTaskARN(val string) attribute.KeyValue { return AWSECSTaskARNKey.String(val) } -// AWSECSTaskFamily returns an attribute KeyValue conforming to the "aws.ecs.task.family" semantic conventions. It represents the family name of the [ECS task definition] used to create the ECS task. -// +// AWSECSTaskFamily returns an attribute KeyValue conforming to the +// "aws.ecs.task.family" semantic conventions. It represents the family name of +// the [ECS task definition] used to create the ECS task. +// // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html func AWSECSTaskFamily(val string) attribute.KeyValue { return AWSECSTaskFamilyKey.String(val) } -// AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id" semantic conventions. It represents the ID of a running ECS task. The ID MUST be extracted from `task.arn`. +// AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id" +// semantic conventions. It represents the ID of a running ECS task. The ID MUST +// be extracted from `task.arn`. func AWSECSTaskID(val string) attribute.KeyValue { return AWSECSTaskIDKey.String(val) } -// AWSECSTaskRevision returns an attribute KeyValue conforming to the "aws.ecs.task.revision" semantic conventions. It represents the revision for the task definition used to create the ECS task. +// AWSECSTaskRevision returns an attribute KeyValue conforming to the +// "aws.ecs.task.revision" semantic conventions. It represents the revision for +// the task definition used to create the ECS task. func AWSECSTaskRevision(val string) attribute.KeyValue { return AWSECSTaskRevisionKey.String(val) } -// AWSEKSClusterARN returns an attribute KeyValue conforming to the "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS cluster. +// AWSEKSClusterARN returns an attribute KeyValue conforming to the +// "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS +// cluster. func AWSEKSClusterARN(val string) attribute.KeyValue { return AWSEKSClusterARNKey.String(val) } -// AWSLambdaInvokedARN returns an attribute KeyValue conforming to the "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). +// AWSLambdaInvokedARN returns an attribute KeyValue conforming to the +// "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked +// ARN as provided on the `Context` passed to the function ( +// `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` +// applicable). func AWSLambdaInvokedARN(val string) attribute.KeyValue { return AWSLambdaInvokedARNKey.String(val) } -// AWSLogGroupARNs returns an attribute KeyValue conforming to the "aws.log.group.arns" semantic conventions. It represents the Amazon Resource Name(s) (ARN) of the AWS log group(s). +// AWSLogGroupARNs returns an attribute KeyValue conforming to the +// "aws.log.group.arns" semantic conventions. It represents the Amazon Resource +// Name(s) (ARN) of the AWS log group(s). func AWSLogGroupARNs(val ...string) attribute.KeyValue { return AWSLogGroupARNsKey.StringSlice(val) } -// AWSLogGroupNames returns an attribute KeyValue conforming to the "aws.log.group.names" semantic conventions. It represents the name(s) of the AWS log group(s) an application is writing to. +// AWSLogGroupNames returns an attribute KeyValue conforming to the +// "aws.log.group.names" semantic conventions. It represents the name(s) of the +// AWS log group(s) an application is writing to. func AWSLogGroupNames(val ...string) attribute.KeyValue { return AWSLogGroupNamesKey.StringSlice(val) } -// AWSLogStreamARNs returns an attribute KeyValue conforming to the "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the AWS log stream(s). +// AWSLogStreamARNs returns an attribute KeyValue conforming to the +// "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the +// AWS log stream(s). func AWSLogStreamARNs(val ...string) attribute.KeyValue { return AWSLogStreamARNsKey.StringSlice(val) } -// AWSLogStreamNames returns an attribute KeyValue conforming to the "aws.log.stream.names" semantic conventions. It represents the name(s) of the AWS log stream(s) an application is writing to. +// AWSLogStreamNames returns an attribute KeyValue conforming to the +// "aws.log.stream.names" semantic conventions. It represents the name(s) of the +// AWS log stream(s) an application is writing to. func AWSLogStreamNames(val ...string) attribute.KeyValue { return AWSLogStreamNamesKey.StringSlice(val) } -// AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id" semantic conventions. It represents the AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. +// AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id" +// semantic conventions. It represents the AWS request ID as returned in the +// response headers `x-amz-request-id` or `x-amz-requestid`. func AWSRequestID(val string) attribute.KeyValue { return AWSRequestIDKey.String(val) } -// AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket" semantic conventions. It represents the S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API] operations. -// +// AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket" +// semantic conventions. It represents the S3 bucket name the request refers to. +// Corresponds to the `--bucket` parameter of the [S3 API] operations. +// // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html func AWSS3Bucket(val string) attribute.KeyValue { return AWSS3BucketKey.String(val) } -// AWSS3CopySource returns an attribute KeyValue conforming to the "aws.s3.copy_source" semantic conventions. It represents the source object (in the form `bucket`/`key`) for the copy operation. +// AWSS3CopySource returns an attribute KeyValue conforming to the +// "aws.s3.copy_source" semantic conventions. It represents the source object (in +// the form `bucket`/`key`) for the copy operation. func AWSS3CopySource(val string) attribute.KeyValue { return AWSS3CopySourceKey.String(val) } -// AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete" semantic conventions. It represents the delete request container that specifies the objects to be deleted. +// AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete" +// semantic conventions. It represents the delete request container that +// specifies the objects to be deleted. func AWSS3Delete(val string) attribute.KeyValue { return AWSS3DeleteKey.String(val) } -// AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic conventions. It represents the S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API] operations. -// +// AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic +// conventions. It represents the S3 object key the request refers to. +// Corresponds to the `--key` parameter of the [S3 API] operations. +// // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html func AWSS3Key(val string) attribute.KeyValue { return AWSS3KeyKey.String(val) } -// AWSS3PartNumber returns an attribute KeyValue conforming to the "aws.s3.part_number" semantic conventions. It represents the part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. +// AWSS3PartNumber returns an attribute KeyValue conforming to the +// "aws.s3.part_number" semantic conventions. It represents the part number of +// the part being uploaded in a multipart-upload operation. This is a positive +// integer between 1 and 10,000. func AWSS3PartNumber(val int) attribute.KeyValue { return AWSS3PartNumberKey.Int(val) } -// AWSS3UploadID returns an attribute KeyValue conforming to the "aws.s3.upload_id" semantic conventions. It represents the upload ID that identifies the multipart upload. +// AWSS3UploadID returns an attribute KeyValue conforming to the +// "aws.s3.upload_id" semantic conventions. It represents the upload ID that +// identifies the multipart upload. func AWSS3UploadID(val string) attribute.KeyValue { return AWSS3UploadIDKey.String(val) } @@ -859,205 +1134,273 @@ func AWSS3UploadID(val string) attribute.KeyValue { // Enum values for aws.ecs.launchtype var ( // ec2 - // Stability: experimental + // Stability: development AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2") // fargate - // Stability: experimental + // Stability: development AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate") ) // Namespace: az const ( - // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic conventions. It represents the [Azure Resource Provider Namespace] as recognized by the client. - // + // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic + // conventions. It represents the [Azure Resource Provider Namespace] as + // recognized by the client. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus" - // + // // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers AzNamespaceKey = attribute.Key("az.namespace") - // AzServiceRequestIDKey is the attribute Key conforming to the "az.service_request_id" semantic conventions. It represents the unique identifier of the service request. It's generated by the Azure service and returned with the response. - // + // AzServiceRequestIDKey is the attribute Key conforming to the + // "az.service_request_id" semantic conventions. It represents the unique + // identifier of the service request. It's generated by the Azure service and + // returned with the response. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "00000000-0000-0000-0000-000000000000" AzServiceRequestIDKey = attribute.Key("az.service_request_id") ) -// AzNamespace returns an attribute KeyValue conforming to the "az.namespace" semantic conventions. It represents the [Azure Resource Provider Namespace] as recognized by the client. -// +// AzNamespace returns an attribute KeyValue conforming to the "az.namespace" +// semantic conventions. It represents the [Azure Resource Provider Namespace] as +// recognized by the client. +// // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers func AzNamespace(val string) attribute.KeyValue { return AzNamespaceKey.String(val) } -// AzServiceRequestID returns an attribute KeyValue conforming to the "az.service_request_id" semantic conventions. It represents the unique identifier of the service request. It's generated by the Azure service and returned with the response. +// AzServiceRequestID returns an attribute KeyValue conforming to the +// "az.service_request_id" semantic conventions. It represents the unique +// identifier of the service request. It's generated by the Azure service and +// returned with the response. func AzServiceRequestID(val string) attribute.KeyValue { return AzServiceRequestIDKey.String(val) } // Namespace: browser const ( - // BrowserBrandsKey is the attribute Key conforming to the "browser.brands" semantic conventions. It represents the array of brand name and version separated by a space. - // + // BrowserBrandsKey is the attribute Key conforming to the "browser.brands" + // semantic conventions. It represents the array of brand name and version + // separated by a space. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99" - // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.brands`). - // + // Note: This value is intended to be taken from the [UA client hints API] ( + // `navigator.userAgentData.brands`). + // // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface BrowserBrandsKey = attribute.Key("browser.brands") - // BrowserLanguageKey is the attribute Key conforming to the "browser.language" semantic conventions. It represents the preferred language of the user using the browser. - // + // BrowserLanguageKey is the attribute Key conforming to the "browser.language" + // semantic conventions. It represents the preferred language of the user using + // the browser. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "en", "en-US", "fr", "fr-FR" - // Note: This value is intended to be taken from the Navigator API `navigator.language`. + // Note: This value is intended to be taken from the Navigator API + // `navigator.language`. BrowserLanguageKey = attribute.Key("browser.language") - // BrowserMobileKey is the attribute Key conforming to the "browser.mobile" semantic conventions. It represents a boolean that is true if the browser is running on a mobile device. - // + // BrowserMobileKey is the attribute Key conforming to the "browser.mobile" + // semantic conventions. It represents a boolean that is true if the browser is + // running on a mobile device. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset. - // + // Note: This value is intended to be taken from the [UA client hints API] ( + // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be + // left unset. + // // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface BrowserMobileKey = attribute.Key("browser.mobile") - // BrowserPlatformKey is the attribute Key conforming to the "browser.platform" semantic conventions. It represents the platform on which the browser is running. - // + // BrowserPlatformKey is the attribute Key conforming to the "browser.platform" + // semantic conventions. It represents the platform on which the browser is + // running. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Windows", "macOS", "Android" - // Note: This value is intended to be taken from the [UA client hints API] (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent. - // The list of possible values is defined in the [W3C User-Agent Client Hints specification]. Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes]. However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides. - // + // Note: This value is intended to be taken from the [UA client hints API] ( + // `navigator.userAgentData.platform`). If unavailable, the legacy + // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD + // be left unset in order for the values to be consistent. + // The list of possible values is defined in the + // [W3C User-Agent Client Hints specification]. Note that some (but not all) of + // these values can overlap with values in the + // [`os.type` and `os.name` attributes]. However, for consistency, the values in + // the `browser.platform` attribute should capture the exact value that the user + // agent provides. + // // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform // [`os.type` and `os.name` attributes]: ./os.md BrowserPlatformKey = attribute.Key("browser.platform") ) -// BrowserBrands returns an attribute KeyValue conforming to the "browser.brands" semantic conventions. It represents the array of brand name and version separated by a space. +// BrowserBrands returns an attribute KeyValue conforming to the "browser.brands" +// semantic conventions. It represents the array of brand name and version +// separated by a space. func BrowserBrands(val ...string) attribute.KeyValue { return BrowserBrandsKey.StringSlice(val) } -// BrowserLanguage returns an attribute KeyValue conforming to the "browser.language" semantic conventions. It represents the preferred language of the user using the browser. +// BrowserLanguage returns an attribute KeyValue conforming to the +// "browser.language" semantic conventions. It represents the preferred language +// of the user using the browser. func BrowserLanguage(val string) attribute.KeyValue { return BrowserLanguageKey.String(val) } -// BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile" semantic conventions. It represents a boolean that is true if the browser is running on a mobile device. +// BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile" +// semantic conventions. It represents a boolean that is true if the browser is +// running on a mobile device. func BrowserMobile(val bool) attribute.KeyValue { return BrowserMobileKey.Bool(val) } -// BrowserPlatform returns an attribute KeyValue conforming to the "browser.platform" semantic conventions. It represents the platform on which the browser is running. +// BrowserPlatform returns an attribute KeyValue conforming to the +// "browser.platform" semantic conventions. It represents the platform on which +// the browser is running. func BrowserPlatform(val string) attribute.KeyValue { return BrowserPlatformKey.String(val) } // Namespace: cicd const ( - // CICDPipelineNameKey is the attribute Key conforming to the "cicd.pipeline.name" semantic conventions. It represents the human readable name of the pipeline within a CI/CD system. - // + // CICDPipelineNameKey is the attribute Key conforming to the + // "cicd.pipeline.name" semantic conventions. It represents the human readable + // name of the pipeline within a CI/CD system. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "Build and Test", "Lint", "Deploy Go Project", "deploy_to_environment" + // Stability: Development + // + // Examples: "Build and Test", "Lint", "Deploy Go Project", + // "deploy_to_environment" CICDPipelineNameKey = attribute.Key("cicd.pipeline.name") - // CICDPipelineRunIDKey is the attribute Key conforming to the "cicd.pipeline.run.id" semantic conventions. It represents the unique identifier of a pipeline run within a CI/CD system. - // + // CICDPipelineRunIDKey is the attribute Key conforming to the + // "cicd.pipeline.run.id" semantic conventions. It represents the unique + // identifier of a pipeline run within a CI/CD system. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "120912" CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id") - // CICDPipelineTaskNameKey is the attribute Key conforming to the "cicd.pipeline.task.name" semantic conventions. It represents the human readable name of a task within a pipeline. Task here most closely aligns with a [computing process] in a pipeline. Other terms for tasks include commands, steps, and procedures. - // + // CICDPipelineTaskNameKey is the attribute Key conforming to the + // "cicd.pipeline.task.name" semantic conventions. It represents the human + // readable name of a task within a pipeline. Task here most closely aligns with + // a [computing process] in a pipeline. Other terms for tasks include commands, + // steps, and procedures. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary" - // + // // [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing) CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name") - // CICDPipelineTaskRunIDKey is the attribute Key conforming to the "cicd.pipeline.task.run.id" semantic conventions. It represents the unique identifier of a task run within a pipeline. - // + // CICDPipelineTaskRunIDKey is the attribute Key conforming to the + // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique + // identifier of a task run within a pipeline. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "12097" CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id") - // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the "cicd.pipeline.task.run.url.full" semantic conventions. It represents the [URL] of the pipeline run providing the complete address in order to locate and identify the pipeline run. - // + // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the + // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the + // [URL] of the pipeline run providing the complete address in order to locate + // and identify the pipeline run. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075" - // + // Stability: Development + // + // Examples: + // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075" + // // [URL]: https://en.wikipedia.org/wiki/URL CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full") - // CICDPipelineTaskTypeKey is the attribute Key conforming to the "cicd.pipeline.task.type" semantic conventions. It represents the type of the task within a pipeline. - // + // CICDPipelineTaskTypeKey is the attribute Key conforming to the + // "cicd.pipeline.task.type" semantic conventions. It represents the type of the + // task within a pipeline. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "build", "test", "deploy" CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type") ) -// CICDPipelineName returns an attribute KeyValue conforming to the "cicd.pipeline.name" semantic conventions. It represents the human readable name of the pipeline within a CI/CD system. +// CICDPipelineName returns an attribute KeyValue conforming to the +// "cicd.pipeline.name" semantic conventions. It represents the human readable +// name of the pipeline within a CI/CD system. func CICDPipelineName(val string) attribute.KeyValue { return CICDPipelineNameKey.String(val) } -// CICDPipelineRunID returns an attribute KeyValue conforming to the "cicd.pipeline.run.id" semantic conventions. It represents the unique identifier of a pipeline run within a CI/CD system. +// CICDPipelineRunID returns an attribute KeyValue conforming to the +// "cicd.pipeline.run.id" semantic conventions. It represents the unique +// identifier of a pipeline run within a CI/CD system. func CICDPipelineRunID(val string) attribute.KeyValue { return CICDPipelineRunIDKey.String(val) } -// CICDPipelineTaskName returns an attribute KeyValue conforming to the "cicd.pipeline.task.name" semantic conventions. It represents the human readable name of a task within a pipeline. Task here most closely aligns with a [computing process] in a pipeline. Other terms for tasks include commands, steps, and procedures. -// +// CICDPipelineTaskName returns an attribute KeyValue conforming to the +// "cicd.pipeline.task.name" semantic conventions. It represents the human +// readable name of a task within a pipeline. Task here most closely aligns with +// a [computing process] in a pipeline. Other terms for tasks include commands, +// steps, and procedures. +// // [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing) func CICDPipelineTaskName(val string) attribute.KeyValue { return CICDPipelineTaskNameKey.String(val) } -// CICDPipelineTaskRunID returns an attribute KeyValue conforming to the "cicd.pipeline.task.run.id" semantic conventions. It represents the unique identifier of a task run within a pipeline. +// CICDPipelineTaskRunID returns an attribute KeyValue conforming to the +// "cicd.pipeline.task.run.id" semantic conventions. It represents the unique +// identifier of a task run within a pipeline. func CICDPipelineTaskRunID(val string) attribute.KeyValue { return CICDPipelineTaskRunIDKey.String(val) } -// CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the "cicd.pipeline.task.run.url.full" semantic conventions. It represents the [URL] of the pipeline run providing the complete address in order to locate and identify the pipeline run. -// +// CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the +// "cicd.pipeline.task.run.url.full" semantic conventions. It represents the +// [URL] of the pipeline run providing the complete address in order to locate +// and identify the pipeline run. +// // [URL]: https://en.wikipedia.org/wiki/URL func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue { return CICDPipelineTaskRunURLFullKey.String(val) @@ -1066,98 +1409,123 @@ func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue { // Enum values for cicd.pipeline.task.type var ( // build - // Stability: experimental + // Stability: development CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build") // test - // Stability: experimental + // Stability: development CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test") // deploy - // Stability: experimental + // Stability: development CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy") ) // Namespace: client const ( - // ClientAddressKey is the attribute Key conforming to the "client.address" semantic conventions. It represents the client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. - // + // ClientAddressKey is the attribute Key conforming to the "client.address" + // semantic conventions. It represents the client address - domain name if + // available without reverse DNS lookup; otherwise, IP address or Unix domain + // socket name. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock" - // Note: When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the server side, and when communicating through an + // intermediary, `client.address` SHOULD represent the client address behind any + // intermediaries, for example proxies, if it's available. ClientAddressKey = attribute.Key("client.address") - // ClientPortKey is the attribute Key conforming to the "client.port" semantic conventions. It represents the client port number. - // + // ClientPortKey is the attribute Key conforming to the "client.port" semantic + // conventions. It represents the client port number. + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: 65123 - // Note: When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the server side, and when communicating through an + // intermediary, `client.port` SHOULD represent the client port behind any + // intermediaries, for example proxies, if it's available. ClientPortKey = attribute.Key("client.port") ) -// ClientAddress returns an attribute KeyValue conforming to the "client.address" semantic conventions. It represents the client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +// ClientAddress returns an attribute KeyValue conforming to the "client.address" +// semantic conventions. It represents the client address - domain name if +// available without reverse DNS lookup; otherwise, IP address or Unix domain +// socket name. func ClientAddress(val string) attribute.KeyValue { return ClientAddressKey.String(val) } -// ClientPort returns an attribute KeyValue conforming to the "client.port" semantic conventions. It represents the client port number. +// ClientPort returns an attribute KeyValue conforming to the "client.port" +// semantic conventions. It represents the client port number. func ClientPort(val int) attribute.KeyValue { return ClientPortKey.Int(val) } // Namespace: cloud const ( - // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id" semantic conventions. It represents the cloud account ID the resource is assigned to. - // + // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id" + // semantic conventions. It represents the cloud account ID the resource is + // assigned to. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "111111111111", "opentelemetry" CloudAccountIDKey = attribute.Key("cloud.account.id") - // CloudAvailabilityZoneKey is the attribute Key conforming to the "cloud.availability_zone" semantic conventions. It represents the cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. - // + // CloudAvailabilityZoneKey is the attribute Key conforming to the + // "cloud.availability_zone" semantic conventions. It represents the cloud + // regions often have multiple, isolated locations known as zones to increase + // availability. Availability zone represents the zone where the resource is + // running. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "us-east-1c" - // Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + // Note: Availability zones are called "zones" on Alibaba Cloud and Google + // Cloud. CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone") - // CloudPlatformKey is the attribute Key conforming to the "cloud.platform" semantic conventions. It represents the cloud platform in use. - // + // CloudPlatformKey is the attribute Key conforming to the "cloud.platform" + // semantic conventions. It represents the cloud platform in use. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + // Note: The prefix of the service SHOULD match the one specified in + // `cloud.provider`. CloudPlatformKey = attribute.Key("cloud.platform") - // CloudProviderKey is the attribute Key conforming to the "cloud.provider" semantic conventions. It represents the name of the cloud provider. - // + // CloudProviderKey is the attribute Key conforming to the "cloud.provider" + // semantic conventions. It represents the name of the cloud provider. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: CloudProviderKey = attribute.Key("cloud.provider") - // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic conventions. It represents the geographical region the resource is running. - // + // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic + // conventions. It represents the geographical region the resource is running. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "us-central1", "us-east-1" - // Note: Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions], [AWS regions], [Azure regions], [Google Cloud regions], or [Tencent Cloud regions]. - // + // Note: Refer to your provider's docs to see the available regions, for example + // [Alibaba Cloud regions], [AWS regions], [Azure regions], + // [Google Cloud regions], or [Tencent Cloud regions]. + // // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/ // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/ @@ -1165,30 +1533,45 @@ const ( // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091 CloudRegionKey = attribute.Key("cloud.region") - // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id" semantic conventions. It represents the cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] on GCP). - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function", "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID", "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/" - // Note: On some cloud providers, it may not be possible to determine the full ID at startup, - // so it may be necessary to set `cloud.resource_id` as a span attribute instead. - // + // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id" + // semantic conventions. It represents the cloud provider-specific native + // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a + // [fully qualified resource ID] on Azure, a [full resource name] on GCP). + // + // Type: string + // RequirementLevel: Recommended + // Stability: Development + // + // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function", + // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID", + // "/subscriptions//resourceGroups/ + // /providers/Microsoft.Web/sites//functions/" + // Note: On some cloud providers, it may not be possible to determine the full + // ID at startup, + // so it may be necessary to set `cloud.resource_id` as a span attribute + // instead. + // // The exact value to use for `cloud.resource_id` depends on the cloud provider. - // The following well-known definitions MUST be used if you set this attribute and they apply: - // + // The following well-known definitions MUST be used if you set this attribute + // and they apply: + // // - **AWS Lambda:** The function [ARN]. // Take care not to use the "invoked ARN" directly but replace any // [alias suffix] - // with the resolved function version, as the same runtime instance may be invocable with + // with the resolved function version, as the same runtime instance may be + // invocable with // multiple different aliases. // - **GCP:** The [URI of the resource] // - **Azure:** The [Fully Qualified Resource ID] of the invoked function, // *not* the function app, having the form - // `/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/`. - // This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share + // + // `/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/` + // . + // This means that a span attribute MUST be used, as an Azure function app + // can host multiple functions that would usually share // a TracerProvider. + // + // // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name @@ -1199,23 +1582,35 @@ const ( CloudResourceIDKey = attribute.Key("cloud.resource_id") ) -// CloudAccountID returns an attribute KeyValue conforming to the "cloud.account.id" semantic conventions. It represents the cloud account ID the resource is assigned to. +// CloudAccountID returns an attribute KeyValue conforming to the +// "cloud.account.id" semantic conventions. It represents the cloud account ID +// the resource is assigned to. func CloudAccountID(val string) attribute.KeyValue { return CloudAccountIDKey.String(val) } -// CloudAvailabilityZone returns an attribute KeyValue conforming to the "cloud.availability_zone" semantic conventions. It represents the cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. +// CloudAvailabilityZone returns an attribute KeyValue conforming to the +// "cloud.availability_zone" semantic conventions. It represents the cloud +// regions often have multiple, isolated locations known as zones to increase +// availability. Availability zone represents the zone where the resource is +// running. func CloudAvailabilityZone(val string) attribute.KeyValue { return CloudAvailabilityZoneKey.String(val) } -// CloudRegion returns an attribute KeyValue conforming to the "cloud.region" semantic conventions. It represents the geographical region the resource is running. +// CloudRegion returns an attribute KeyValue conforming to the "cloud.region" +// semantic conventions. It represents the geographical region the resource is +// running. func CloudRegion(val string) attribute.KeyValue { return CloudRegionKey.String(val) } -// CloudResourceID returns an attribute KeyValue conforming to the "cloud.resource_id" semantic conventions. It represents the cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] on GCP). -// +// CloudResourceID returns an attribute KeyValue conforming to the +// "cloud.resource_id" semantic conventions. It represents the cloud +// provider-specific native identifier of the monitored cloud resource (e.g. an +// [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name] +// on GCP). +// // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name @@ -1226,204 +1621,227 @@ func CloudResourceID(val string) attribute.KeyValue { // Enum values for cloud.platform var ( // Alibaba Cloud Elastic Compute Service - // Stability: experimental + // Stability: development CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs") // Alibaba Cloud Function Compute - // Stability: experimental + // Stability: development CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc") // Red Hat OpenShift on Alibaba Cloud - // Stability: experimental + // Stability: development CloudPlatformAlibabaCloudOpenshift = CloudPlatformKey.String("alibaba_cloud_openshift") // AWS Elastic Compute Cloud - // Stability: experimental + // Stability: development CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2") // AWS Elastic Container Service - // Stability: experimental + // Stability: development CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs") // AWS Elastic Kubernetes Service - // Stability: experimental + // Stability: development CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks") // AWS Lambda - // Stability: experimental + // Stability: development CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda") // AWS Elastic Beanstalk - // Stability: experimental + // Stability: development CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk") // AWS App Runner - // Stability: experimental + // Stability: development CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner") // Red Hat OpenShift on AWS (ROSA) - // Stability: experimental + // Stability: development CloudPlatformAWSOpenshift = CloudPlatformKey.String("aws_openshift") // Azure Virtual Machines - // Stability: experimental + // Stability: development CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm") // Azure Container Apps - // Stability: experimental + // Stability: development CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps") // Azure Container Instances - // Stability: experimental + // Stability: development CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances") // Azure Kubernetes Service - // Stability: experimental + // Stability: development CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks") // Azure Functions - // Stability: experimental + // Stability: development CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions") // Azure App Service - // Stability: experimental + // Stability: development CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service") // Azure Red Hat OpenShift - // Stability: experimental + // Stability: development CloudPlatformAzureOpenshift = CloudPlatformKey.String("azure_openshift") // Google Bare Metal Solution (BMS) - // Stability: experimental + // Stability: development CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution") // Google Cloud Compute Engine (GCE) - // Stability: experimental + // Stability: development CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine") // Google Cloud Run - // Stability: experimental + // Stability: development CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run") // Google Cloud Kubernetes Engine (GKE) - // Stability: experimental + // Stability: development CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine") // Google Cloud Functions (GCF) - // Stability: experimental + // Stability: development CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions") // Google Cloud App Engine (GAE) - // Stability: experimental + // Stability: development CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine") // Red Hat OpenShift on Google Cloud - // Stability: experimental + // Stability: development CloudPlatformGCPOpenshift = CloudPlatformKey.String("gcp_openshift") // Red Hat OpenShift on IBM Cloud - // Stability: experimental + // Stability: development CloudPlatformIbmCloudOpenshift = CloudPlatformKey.String("ibm_cloud_openshift") // Tencent Cloud Cloud Virtual Machine (CVM) - // Stability: experimental + // Stability: development CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm") // Tencent Cloud Elastic Kubernetes Service (EKS) - // Stability: experimental + // Stability: development CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks") // Tencent Cloud Serverless Cloud Function (SCF) - // Stability: experimental + // Stability: development CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf") ) // Enum values for cloud.provider var ( // Alibaba Cloud - // Stability: experimental + // Stability: development CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud") // Amazon Web Services - // Stability: experimental + // Stability: development CloudProviderAWS = CloudProviderKey.String("aws") // Microsoft Azure - // Stability: experimental + // Stability: development CloudProviderAzure = CloudProviderKey.String("azure") // Google Cloud Platform - // Stability: experimental + // Stability: development CloudProviderGCP = CloudProviderKey.String("gcp") // Heroku Platform as a Service - // Stability: experimental + // Stability: development CloudProviderHeroku = CloudProviderKey.String("heroku") // IBM Cloud - // Stability: experimental + // Stability: development CloudProviderIbmCloud = CloudProviderKey.String("ibm_cloud") // Tencent Cloud - // Stability: experimental + // Stability: development CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud") ) // Namespace: cloudevents const ( - // CloudeventsEventIDKey is the attribute Key conforming to the "cloudevents.event_id" semantic conventions. It represents the [event_id] uniquely identifies the event. - // + // CloudeventsEventIDKey is the attribute Key conforming to the + // "cloudevents.event_id" semantic conventions. It represents the [event_id] + // uniquely identifies the event. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001" - // + // // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id CloudeventsEventIDKey = attribute.Key("cloudevents.event_id") - // CloudeventsEventSourceKey is the attribute Key conforming to the "cloudevents.event_source" semantic conventions. It represents the [source] identifies the context in which an event happened. - // + // CloudeventsEventSourceKey is the attribute Key conforming to the + // "cloudevents.event_source" semantic conventions. It represents the [source] + // identifies the context in which an event happened. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123", "my-service" - // + // Stability: Development + // + // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123", + // "my-service" + // // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source") - // CloudeventsEventSpecVersionKey is the attribute Key conforming to the "cloudevents.event_spec_version" semantic conventions. It represents the [version of the CloudEvents specification] which the event uses. - // + // CloudeventsEventSpecVersionKey is the attribute Key conforming to the + // "cloudevents.event_spec_version" semantic conventions. It represents the + // [version of the CloudEvents specification] which the event uses. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1.0 - // + // // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version") - // CloudeventsEventSubjectKey is the attribute Key conforming to the "cloudevents.event_subject" semantic conventions. It represents the [subject] of the event in the context of the event producer (identified by source). - // + // CloudeventsEventSubjectKey is the attribute Key conforming to the + // "cloudevents.event_subject" semantic conventions. It represents the [subject] + // of the event in the context of the event producer (identified by source). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: mynewfile.jpg - // + // // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject") - // CloudeventsEventTypeKey is the attribute Key conforming to the "cloudevents.event_type" semantic conventions. It represents the [event_type] contains a value describing the type of event related to the originating occurrence. - // + // CloudeventsEventTypeKey is the attribute Key conforming to the + // "cloudevents.event_type" semantic conventions. It represents the [event_type] + // contains a value describing the type of event related to the originating + // occurrence. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2" - // + // // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type") ) -// CloudeventsEventID returns an attribute KeyValue conforming to the "cloudevents.event_id" semantic conventions. It represents the [event_id] uniquely identifies the event. -// +// CloudeventsEventID returns an attribute KeyValue conforming to the +// "cloudevents.event_id" semantic conventions. It represents the [event_id] +// uniquely identifies the event. +// // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id func CloudeventsEventID(val string) attribute.KeyValue { return CloudeventsEventIDKey.String(val) } -// CloudeventsEventSource returns an attribute KeyValue conforming to the "cloudevents.event_source" semantic conventions. It represents the [source] identifies the context in which an event happened. -// +// CloudeventsEventSource returns an attribute KeyValue conforming to the +// "cloudevents.event_source" semantic conventions. It represents the [source] +// identifies the context in which an event happened. +// // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1 func CloudeventsEventSource(val string) attribute.KeyValue { return CloudeventsEventSourceKey.String(val) } -// CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the "cloudevents.event_spec_version" semantic conventions. It represents the [version of the CloudEvents specification] which the event uses. -// +// CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the +// "cloudevents.event_spec_version" semantic conventions. It represents the +// [version of the CloudEvents specification] which the event uses. +// // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion func CloudeventsEventSpecVersion(val string) attribute.KeyValue { return CloudeventsEventSpecVersionKey.String(val) } -// CloudeventsEventSubject returns an attribute KeyValue conforming to the "cloudevents.event_subject" semantic conventions. It represents the [subject] of the event in the context of the event producer (identified by source). -// +// CloudeventsEventSubject returns an attribute KeyValue conforming to the +// "cloudevents.event_subject" semantic conventions. It represents the [subject] +// of the event in the context of the event producer (identified by source). +// // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject func CloudeventsEventSubject(val string) attribute.KeyValue { return CloudeventsEventSubjectKey.String(val) } -// CloudeventsEventType returns an attribute KeyValue conforming to the "cloudevents.event_type" semantic conventions. It represents the [event_type] contains a value describing the type of event related to the originating occurrence. -// +// CloudeventsEventType returns an attribute KeyValue conforming to the +// "cloudevents.event_type" semantic conventions. It represents the [event_type] +// contains a value describing the type of event related to the originating +// occurrence. +// // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type func CloudeventsEventType(val string) attribute.KeyValue { return CloudeventsEventTypeKey.String(val) @@ -1431,78 +1849,91 @@ func CloudeventsEventType(val string) attribute.KeyValue { // Namespace: cloudfoundry const ( - // CloudfoundryAppIDKey is the attribute Key conforming to the "cloudfoundry.app.id" semantic conventions. It represents the guid of the application. - // + // CloudfoundryAppIDKey is the attribute Key conforming to the + // "cloudfoundry.app.id" semantic conventions. It represents the guid of the + // application. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.application_id`. This is the same value as // reported by `cf app --guid`. CloudfoundryAppIDKey = attribute.Key("cloudfoundry.app.id") - // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the "cloudfoundry.app.instance.id" semantic conventions. It represents the index of the application instance. 0 when just one instance is active. - // + // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the + // "cloudfoundry.app.instance.id" semantic conventions. It represents the index + // of the application instance. 0 when just one instance is active. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0", "1" - // Note: CloudFoundry defines the `instance_id` in the [Loggegator v2 envelope]. + // Note: CloudFoundry defines the `instance_id` in the [Loggegator v2 envelope] + // . // It is used for logs and metrics emitted by CloudFoundry. It is // supposed to contain the application instance index for applications // deployed on the runtime. - // + // // Application instrumentation should use the value from environment // variable `CF_INSTANCE_INDEX`. - // + // // [Loggegator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope CloudfoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id") - // CloudfoundryAppNameKey is the attribute Key conforming to the "cloudfoundry.app.name" semantic conventions. It represents the name of the application. - // + // CloudfoundryAppNameKey is the attribute Key conforming to the + // "cloudfoundry.app.name" semantic conventions. It represents the name of the + // application. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-app-name" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.application_name`. This is the same value // as reported by `cf apps`. CloudfoundryAppNameKey = attribute.Key("cloudfoundry.app.name") - // CloudfoundryOrgIDKey is the attribute Key conforming to the "cloudfoundry.org.id" semantic conventions. It represents the guid of the CloudFoundry org the application is running in. - // + // CloudfoundryOrgIDKey is the attribute Key conforming to the + // "cloudfoundry.org.id" semantic conventions. It represents the guid of the + // CloudFoundry org the application is running in. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.org_id`. This is the same value as // reported by `cf org --guid`. CloudfoundryOrgIDKey = attribute.Key("cloudfoundry.org.id") - // CloudfoundryOrgNameKey is the attribute Key conforming to the "cloudfoundry.org.name" semantic conventions. It represents the name of the CloudFoundry organization the app is running in. - // + // CloudfoundryOrgNameKey is the attribute Key conforming to the + // "cloudfoundry.org.name" semantic conventions. It represents the name of the + // CloudFoundry organization the app is running in. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-org-name" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.org_name`. This is the same value as // reported by `cf orgs`. CloudfoundryOrgNameKey = attribute.Key("cloudfoundry.org.name") - // CloudfoundryProcessIDKey is the attribute Key conforming to the "cloudfoundry.process.id" semantic conventions. It represents the UID identifying the process. - // + // CloudfoundryProcessIDKey is the attribute Key conforming to the + // "cloudfoundry.process.id" semantic conventions. It represents the UID + // identifying the process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to @@ -1510,428 +1941,565 @@ const ( // For system components, this could be the actual PID. CloudfoundryProcessIDKey = attribute.Key("cloudfoundry.process.id") - // CloudfoundryProcessTypeKey is the attribute Key conforming to the "cloudfoundry.process.type" semantic conventions. It represents the type of process. - // + // CloudfoundryProcessTypeKey is the attribute Key conforming to the + // "cloudfoundry.process.type" semantic conventions. It represents the type of + // process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "web" // Note: CloudFoundry applications can consist of multiple jobs. Usually the // main process will be of type `web`. There can be additional background // tasks or side-cars with different process types. CloudfoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type") - // CloudfoundrySpaceIDKey is the attribute Key conforming to the "cloudfoundry.space.id" semantic conventions. It represents the guid of the CloudFoundry space the application is running in. - // + // CloudfoundrySpaceIDKey is the attribute Key conforming to the + // "cloudfoundry.space.id" semantic conventions. It represents the guid of the + // CloudFoundry space the application is running in. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.space_id`. This is the same value as // reported by `cf space --guid`. CloudfoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id") - // CloudfoundrySpaceNameKey is the attribute Key conforming to the "cloudfoundry.space.name" semantic conventions. It represents the name of the CloudFoundry space the application is running in. - // + // CloudfoundrySpaceNameKey is the attribute Key conforming to the + // "cloudfoundry.space.name" semantic conventions. It represents the name of the + // CloudFoundry space the application is running in. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-space-name" // Note: Application instrumentation should use the value from environment // variable `VCAP_APPLICATION.space_name`. This is the same value as // reported by `cf spaces`. CloudfoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name") - // CloudfoundrySystemIDKey is the attribute Key conforming to the "cloudfoundry.system.id" semantic conventions. It represents a guid or another name describing the event source. - // + // CloudfoundrySystemIDKey is the attribute Key conforming to the + // "cloudfoundry.system.id" semantic conventions. It represents a guid or + // another name describing the event source. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "cf/gorouter" // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope]. // It is used for logs and metrics emitted by CloudFoundry. It is // supposed to contain the component name, e.g. "gorouter", for // CloudFoundry components. - // + // // When system components are instrumented, values from the // [Bosh spec] // should be used. The `system.id` should be set to // `spec.deployment/spec.name`. - // + // // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec CloudfoundrySystemIDKey = attribute.Key("cloudfoundry.system.id") - // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the "cloudfoundry.system.instance.id" semantic conventions. It represents a guid describing the concrete instance of the event source. - // + // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the + // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid + // describing the concrete instance of the event source. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" - // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]. + // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope] + // . // It is used for logs and metrics emitted by CloudFoundry. It is // supposed to contain the vm id for CloudFoundry components. - // + // // When system components are instrumented, values from the // [Bosh spec] // should be used. The `system.instance.id` should be set to `spec.id`. - // + // // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec CloudfoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id") ) -// CloudfoundryAppID returns an attribute KeyValue conforming to the "cloudfoundry.app.id" semantic conventions. It represents the guid of the application. +// CloudfoundryAppID returns an attribute KeyValue conforming to the +// "cloudfoundry.app.id" semantic conventions. It represents the guid of the +// application. func CloudfoundryAppID(val string) attribute.KeyValue { return CloudfoundryAppIDKey.String(val) } -// CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the "cloudfoundry.app.instance.id" semantic conventions. It represents the index of the application instance. 0 when just one instance is active. +// CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the +// "cloudfoundry.app.instance.id" semantic conventions. It represents the index +// of the application instance. 0 when just one instance is active. func CloudfoundryAppInstanceID(val string) attribute.KeyValue { return CloudfoundryAppInstanceIDKey.String(val) } -// CloudfoundryAppName returns an attribute KeyValue conforming to the "cloudfoundry.app.name" semantic conventions. It represents the name of the application. +// CloudfoundryAppName returns an attribute KeyValue conforming to the +// "cloudfoundry.app.name" semantic conventions. It represents the name of the +// application. func CloudfoundryAppName(val string) attribute.KeyValue { return CloudfoundryAppNameKey.String(val) } -// CloudfoundryOrgID returns an attribute KeyValue conforming to the "cloudfoundry.org.id" semantic conventions. It represents the guid of the CloudFoundry org the application is running in. +// CloudfoundryOrgID returns an attribute KeyValue conforming to the +// "cloudfoundry.org.id" semantic conventions. It represents the guid of the +// CloudFoundry org the application is running in. func CloudfoundryOrgID(val string) attribute.KeyValue { return CloudfoundryOrgIDKey.String(val) } -// CloudfoundryOrgName returns an attribute KeyValue conforming to the "cloudfoundry.org.name" semantic conventions. It represents the name of the CloudFoundry organization the app is running in. +// CloudfoundryOrgName returns an attribute KeyValue conforming to the +// "cloudfoundry.org.name" semantic conventions. It represents the name of the +// CloudFoundry organization the app is running in. func CloudfoundryOrgName(val string) attribute.KeyValue { return CloudfoundryOrgNameKey.String(val) } -// CloudfoundryProcessID returns an attribute KeyValue conforming to the "cloudfoundry.process.id" semantic conventions. It represents the UID identifying the process. +// CloudfoundryProcessID returns an attribute KeyValue conforming to the +// "cloudfoundry.process.id" semantic conventions. It represents the UID +// identifying the process. func CloudfoundryProcessID(val string) attribute.KeyValue { return CloudfoundryProcessIDKey.String(val) } -// CloudfoundryProcessType returns an attribute KeyValue conforming to the "cloudfoundry.process.type" semantic conventions. It represents the type of process. +// CloudfoundryProcessType returns an attribute KeyValue conforming to the +// "cloudfoundry.process.type" semantic conventions. It represents the type of +// process. func CloudfoundryProcessType(val string) attribute.KeyValue { return CloudfoundryProcessTypeKey.String(val) } -// CloudfoundrySpaceID returns an attribute KeyValue conforming to the "cloudfoundry.space.id" semantic conventions. It represents the guid of the CloudFoundry space the application is running in. +// CloudfoundrySpaceID returns an attribute KeyValue conforming to the +// "cloudfoundry.space.id" semantic conventions. It represents the guid of the +// CloudFoundry space the application is running in. func CloudfoundrySpaceID(val string) attribute.KeyValue { return CloudfoundrySpaceIDKey.String(val) } -// CloudfoundrySpaceName returns an attribute KeyValue conforming to the "cloudfoundry.space.name" semantic conventions. It represents the name of the CloudFoundry space the application is running in. +// CloudfoundrySpaceName returns an attribute KeyValue conforming to the +// "cloudfoundry.space.name" semantic conventions. It represents the name of the +// CloudFoundry space the application is running in. func CloudfoundrySpaceName(val string) attribute.KeyValue { return CloudfoundrySpaceNameKey.String(val) } -// CloudfoundrySystemID returns an attribute KeyValue conforming to the "cloudfoundry.system.id" semantic conventions. It represents a guid or another name describing the event source. +// CloudfoundrySystemID returns an attribute KeyValue conforming to the +// "cloudfoundry.system.id" semantic conventions. It represents a guid or another +// name describing the event source. func CloudfoundrySystemID(val string) attribute.KeyValue { return CloudfoundrySystemIDKey.String(val) } -// CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the "cloudfoundry.system.instance.id" semantic conventions. It represents a guid describing the concrete instance of the event source. +// CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the +// "cloudfoundry.system.instance.id" semantic conventions. It represents a guid +// describing the concrete instance of the event source. func CloudfoundrySystemInstanceID(val string) attribute.KeyValue { return CloudfoundrySystemInstanceIDKey.String(val) } // Namespace: code const ( - // CodeColumnKey is the attribute Key conforming to the "code.column" semantic conventions. It represents the column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. - // + // CodeColumnKey is the attribute Key conforming to the "code.column" semantic + // conventions. It represents the column number in `code.filepath` best + // representing the operation. It SHOULD point within the code unit named in + // `code.function`. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development CodeColumnKey = attribute.Key("code.column") - // CodeFilepathKey is the attribute Key conforming to the "code.filepath" semantic conventions. It represents the source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). - // + // CodeFilepathKey is the attribute Key conforming to the "code.filepath" + // semantic conventions. It represents the source code file name that identifies + // the code unit as uniquely as possible (preferably an absolute file path). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: /usr/local/MyApplication/content_root/app/index.php CodeFilepathKey = attribute.Key("code.filepath") - // CodeFunctionKey is the attribute Key conforming to the "code.function" semantic conventions. It represents the method or function name, or equivalent (usually rightmost part of the code unit's name). - // + // CodeFunctionKey is the attribute Key conforming to the "code.function" + // semantic conventions. It represents the method or function name, or + // equivalent (usually rightmost part of the code unit's name). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: serveRequest CodeFunctionKey = attribute.Key("code.function") - // CodeLineNumberKey is the attribute Key conforming to the "code.lineno" semantic conventions. It represents the line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. - // + // CodeLineNumberKey is the attribute Key conforming to the "code.lineno" + // semantic conventions. It represents the line number in `code.filepath` best + // representing the operation. It SHOULD point within the code unit named in + // `code.function`. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development CodeLineNumberKey = attribute.Key("code.lineno") - // CodeNamespaceKey is the attribute Key conforming to the "code.namespace" semantic conventions. It represents the "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. - // + // CodeNamespaceKey is the attribute Key conforming to the "code.namespace" + // semantic conventions. It represents the "namespace" within which + // `code.function` is defined. Usually the qualified class or module name, such + // that `code.namespace` + some separator + `code.function` form a unique + // identifier for the code unit. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: com.example.MyHttpService CodeNamespaceKey = attribute.Key("code.namespace") - // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. - // + // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace" + // semantic conventions. It represents a stacktrace as a string in the natural + // representation for the language runtime. The representation is to be + // determined and documented by each language SIG. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + // Stability: Development + // + // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at + // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at + // com.example.GenerateTrace.main(GenerateTrace.java:5) CodeStacktraceKey = attribute.Key("code.stacktrace") ) -// CodeColumn returns an attribute KeyValue conforming to the "code.column" semantic conventions. It represents the column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +// CodeColumn returns an attribute KeyValue conforming to the "code.column" +// semantic conventions. It represents the column number in `code.filepath` best +// representing the operation. It SHOULD point within the code unit named in +// `code.function`. func CodeColumn(val int) attribute.KeyValue { return CodeColumnKey.Int(val) } -// CodeFilepath returns an attribute KeyValue conforming to the "code.filepath" semantic conventions. It represents the source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). +// CodeFilepath returns an attribute KeyValue conforming to the "code.filepath" +// semantic conventions. It represents the source code file name that identifies +// the code unit as uniquely as possible (preferably an absolute file path). func CodeFilepath(val string) attribute.KeyValue { return CodeFilepathKey.String(val) } -// CodeFunction returns an attribute KeyValue conforming to the "code.function" semantic conventions. It represents the method or function name, or equivalent (usually rightmost part of the code unit's name). +// CodeFunction returns an attribute KeyValue conforming to the "code.function" +// semantic conventions. It represents the method or function name, or equivalent +// (usually rightmost part of the code unit's name). func CodeFunction(val string) attribute.KeyValue { return CodeFunctionKey.String(val) } -// CodeLineNumber returns an attribute KeyValue conforming to the "code.lineno" semantic conventions. It represents the line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +// CodeLineNumber returns an attribute KeyValue conforming to the "code.lineno" +// semantic conventions. It represents the line number in `code.filepath` best +// representing the operation. It SHOULD point within the code unit named in +// `code.function`. func CodeLineNumber(val int) attribute.KeyValue { return CodeLineNumberKey.Int(val) } -// CodeNamespace returns an attribute KeyValue conforming to the "code.namespace" semantic conventions. It represents the "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. +// CodeNamespace returns an attribute KeyValue conforming to the "code.namespace" +// semantic conventions. It represents the "namespace" within which +// `code.function` is defined. Usually the qualified class or module name, such +// that `code.namespace` + some separator + `code.function` form a unique +// identifier for the code unit. func CodeNamespace(val string) attribute.KeyValue { return CodeNamespaceKey.String(val) } -// CodeStacktrace returns an attribute KeyValue conforming to the "code.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +// CodeStacktrace returns an attribute KeyValue conforming to the +// "code.stacktrace" semantic conventions. It represents a stacktrace as a string +// in the natural representation for the language runtime. The representation is +// to be determined and documented by each language SIG. func CodeStacktrace(val string) attribute.KeyValue { return CodeStacktraceKey.String(val) } // Namespace: container const ( - // ContainerCommandKey is the attribute Key conforming to the "container.command" semantic conventions. It represents the command used to run the container (i.e. the command name). - // + // ContainerCommandKey is the attribute Key conforming to the + // "container.command" semantic conventions. It represents the command used to + // run the container (i.e. the command name). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "otelcontribcol" - // Note: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + // Note: If using embedded credentials or sensitive data, it is recommended to + // remove them to prevent potential leakage. ContainerCommandKey = attribute.Key("container.command") - // ContainerCommandArgsKey is the attribute Key conforming to the "container.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) run by the container. - // + // ContainerCommandArgsKey is the attribute Key conforming to the + // "container.command_args" semantic conventions. It represents the all the + // command arguments (including the command/executable itself) run by the + // container. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "otelcontribcol", "--config", "config.yaml" ContainerCommandArgsKey = attribute.Key("container.command_args") - // ContainerCommandLineKey is the attribute Key conforming to the "container.command_line" semantic conventions. It represents the full command run by the container as a single string representing the full command. - // + // ContainerCommandLineKey is the attribute Key conforming to the + // "container.command_line" semantic conventions. It represents the full command + // run by the container as a single string representing the full command. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "otelcontribcol --config config.yaml" ContainerCommandLineKey = attribute.Key("container.command_line") - // ContainerCsiPluginNameKey is the attribute Key conforming to the "container.csi.plugin.name" semantic conventions. It represents the name of the CSI ([Container Storage Interface]) plugin used by the volume. - // + // ContainerCsiPluginNameKey is the attribute Key conforming to the + // "container.csi.plugin.name" semantic conventions. It represents the name of + // the CSI ([Container Storage Interface]) plugin used by the volume. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "pd.csi.storage.gke.io" - // Note: This can sometimes be referred to as a "driver" in CSI implementations. This should represent the `name` field of the GetPluginInfo RPC. - // + // Note: This can sometimes be referred to as a "driver" in CSI implementations. + // This should represent the `name` field of the GetPluginInfo RPC. + // // [Container Storage Interface]: https://github.com/container-storage-interface/spec ContainerCsiPluginNameKey = attribute.Key("container.csi.plugin.name") - // ContainerCsiVolumeIDKey is the attribute Key conforming to the "container.csi.volume.id" semantic conventions. It represents the unique volume ID returned by the CSI ([Container Storage Interface]) plugin. - // + // ContainerCsiVolumeIDKey is the attribute Key conforming to the + // "container.csi.volume.id" semantic conventions. It represents the unique + // volume ID returned by the CSI ([Container Storage Interface]) plugin. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk" - // Note: This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the `Volume.volume_id` field in CSI spec. - // + // Note: This can sometimes be referred to as a "volume handle" in CSI + // implementations. This should represent the `Volume.volume_id` field in CSI + // spec. + // // [Container Storage Interface]: https://github.com/container-storage-interface/spec ContainerCsiVolumeIDKey = attribute.Key("container.csi.volume.id") - // ContainerIDKey is the attribute Key conforming to the "container.id" semantic conventions. It represents the container ID. Usually a UUID, as for example used to [identify Docker containers]. The UUID might be abbreviated. - // + // ContainerIDKey is the attribute Key conforming to the "container.id" semantic + // conventions. It represents the container ID. Usually a UUID, as for example + // used to [identify Docker containers]. The UUID might be abbreviated. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "a3bf90e006b2" - // + // // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification ContainerIDKey = attribute.Key("container.id") - // ContainerImageIDKey is the attribute Key conforming to the "container.image.id" semantic conventions. It represents the runtime specific image identifier. Usually a hash algorithm followed by a UUID. - // + // ContainerImageIDKey is the attribute Key conforming to the + // "container.image.id" semantic conventions. It represents the runtime specific + // image identifier. Usually a hash algorithm followed by a UUID. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f" - // Note: Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API] endpoint. - // K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`. - // The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes. - // + // Stability: Development + // + // Examples: + // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f" + // Note: Docker defines a sha256 of the image id; `container.image.id` + // corresponds to the `Image` field from the Docker container inspect [API] + // endpoint. + // K8s defines a link to the container registry repository with digest + // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"` + // . + // The ID is assigned by the container runtime and can vary in different + // environments. Consider using `oci.manifest.digest` if it is important to + // identify the same image in different environments/runtimes. + // // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect ContainerImageIDKey = attribute.Key("container.image.id") - // ContainerImageNameKey is the attribute Key conforming to the "container.image.name" semantic conventions. It represents the name of the image the container was built on. - // + // ContainerImageNameKey is the attribute Key conforming to the + // "container.image.name" semantic conventions. It represents the name of the + // image the container was built on. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "gcr.io/opentelemetry/operator" ContainerImageNameKey = attribute.Key("container.image.name") - // ContainerImageRepoDigestsKey is the attribute Key conforming to the "container.image.repo_digests" semantic conventions. It represents the repo digests of the container image as provided by the container runtime. - // + // ContainerImageRepoDigestsKey is the attribute Key conforming to the + // "container.image.repo_digests" semantic conventions. It represents the repo + // digests of the container image as provided by the container runtime. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578" + // Stability: Development + // + // Examples: + // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", + // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578" // Note: [Docker] and [CRI] report those under the `RepoDigests` field. - // + // // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests") - // ContainerImageTagsKey is the attribute Key conforming to the "container.image.tags" semantic conventions. It represents the container image tags. An example can be found in [Docker Image Inspect]. Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. - // + // ContainerImageTagsKey is the attribute Key conforming to the + // "container.image.tags" semantic conventions. It represents the container + // image tags. An example can be found in [Docker Image Inspect]. Should be only + // the `` section of the full name for example from + // `registry.example.com/my-org/my-image:`. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "v1.27.1", "3.5.7-0" - // + // // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect ContainerImageTagsKey = attribute.Key("container.image.tags") - // ContainerNameKey is the attribute Key conforming to the "container.name" semantic conventions. It represents the container name used by container runtime. - // + // ContainerNameKey is the attribute Key conforming to the "container.name" + // semantic conventions. It represents the container name used by container + // runtime. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry-autoconf" ContainerNameKey = attribute.Key("container.name") - // ContainerRuntimeKey is the attribute Key conforming to the "container.runtime" semantic conventions. It represents the container runtime managing this container. - // + // ContainerRuntimeKey is the attribute Key conforming to the + // "container.runtime" semantic conventions. It represents the container runtime + // managing this container. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "docker", "containerd", "rkt" ContainerRuntimeKey = attribute.Key("container.runtime") ) -// ContainerCommand returns an attribute KeyValue conforming to the "container.command" semantic conventions. It represents the command used to run the container (i.e. the command name). +// ContainerCommand returns an attribute KeyValue conforming to the +// "container.command" semantic conventions. It represents the command used to +// run the container (i.e. the command name). func ContainerCommand(val string) attribute.KeyValue { return ContainerCommandKey.String(val) } -// ContainerCommandArgs returns an attribute KeyValue conforming to the "container.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) run by the container. +// ContainerCommandArgs returns an attribute KeyValue conforming to the +// "container.command_args" semantic conventions. It represents the all the +// command arguments (including the command/executable itself) run by the +// container. func ContainerCommandArgs(val ...string) attribute.KeyValue { return ContainerCommandArgsKey.StringSlice(val) } -// ContainerCommandLine returns an attribute KeyValue conforming to the "container.command_line" semantic conventions. It represents the full command run by the container as a single string representing the full command. +// ContainerCommandLine returns an attribute KeyValue conforming to the +// "container.command_line" semantic conventions. It represents the full command +// run by the container as a single string representing the full command. func ContainerCommandLine(val string) attribute.KeyValue { return ContainerCommandLineKey.String(val) } -// ContainerCsiPluginName returns an attribute KeyValue conforming to the "container.csi.plugin.name" semantic conventions. It represents the name of the CSI ([Container Storage Interface]) plugin used by the volume. -// +// ContainerCsiPluginName returns an attribute KeyValue conforming to the +// "container.csi.plugin.name" semantic conventions. It represents the name of +// the CSI ([Container Storage Interface]) plugin used by the volume. +// // [Container Storage Interface]: https://github.com/container-storage-interface/spec func ContainerCsiPluginName(val string) attribute.KeyValue { return ContainerCsiPluginNameKey.String(val) } -// ContainerCsiVolumeID returns an attribute KeyValue conforming to the "container.csi.volume.id" semantic conventions. It represents the unique volume ID returned by the CSI ([Container Storage Interface]) plugin. -// +// ContainerCsiVolumeID returns an attribute KeyValue conforming to the +// "container.csi.volume.id" semantic conventions. It represents the unique +// volume ID returned by the CSI ([Container Storage Interface]) plugin. +// // [Container Storage Interface]: https://github.com/container-storage-interface/spec func ContainerCsiVolumeID(val string) attribute.KeyValue { return ContainerCsiVolumeIDKey.String(val) } -// ContainerID returns an attribute KeyValue conforming to the "container.id" semantic conventions. It represents the container ID. Usually a UUID, as for example used to [identify Docker containers]. The UUID might be abbreviated. -// +// ContainerID returns an attribute KeyValue conforming to the "container.id" +// semantic conventions. It represents the container ID. Usually a UUID, as for +// example used to [identify Docker containers]. The UUID might be abbreviated. +// // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification func ContainerID(val string) attribute.KeyValue { return ContainerIDKey.String(val) } -// ContainerImageID returns an attribute KeyValue conforming to the "container.image.id" semantic conventions. It represents the runtime specific image identifier. Usually a hash algorithm followed by a UUID. +// ContainerImageID returns an attribute KeyValue conforming to the +// "container.image.id" semantic conventions. It represents the runtime specific +// image identifier. Usually a hash algorithm followed by a UUID. func ContainerImageID(val string) attribute.KeyValue { return ContainerImageIDKey.String(val) } -// ContainerImageName returns an attribute KeyValue conforming to the "container.image.name" semantic conventions. It represents the name of the image the container was built on. +// ContainerImageName returns an attribute KeyValue conforming to the +// "container.image.name" semantic conventions. It represents the name of the +// image the container was built on. func ContainerImageName(val string) attribute.KeyValue { return ContainerImageNameKey.String(val) } -// ContainerImageRepoDigests returns an attribute KeyValue conforming to the "container.image.repo_digests" semantic conventions. It represents the repo digests of the container image as provided by the container runtime. +// ContainerImageRepoDigests returns an attribute KeyValue conforming to the +// "container.image.repo_digests" semantic conventions. It represents the repo +// digests of the container image as provided by the container runtime. func ContainerImageRepoDigests(val ...string) attribute.KeyValue { return ContainerImageRepoDigestsKey.StringSlice(val) } -// ContainerImageTags returns an attribute KeyValue conforming to the "container.image.tags" semantic conventions. It represents the container image tags. An example can be found in [Docker Image Inspect]. Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. -// +// ContainerImageTags returns an attribute KeyValue conforming to the +// "container.image.tags" semantic conventions. It represents the container image +// tags. An example can be found in [Docker Image Inspect]. Should be only the +// `` section of the full name for example from +// `registry.example.com/my-org/my-image:`. +// // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect func ContainerImageTags(val ...string) attribute.KeyValue { return ContainerImageTagsKey.StringSlice(val) } -// ContainerName returns an attribute KeyValue conforming to the "container.name" semantic conventions. It represents the container name used by container runtime. +// ContainerName returns an attribute KeyValue conforming to the "container.name" +// semantic conventions. It represents the container name used by container +// runtime. func ContainerName(val string) attribute.KeyValue { return ContainerNameKey.String(val) } -// ContainerRuntime returns an attribute KeyValue conforming to the "container.runtime" semantic conventions. It represents the container runtime managing this container. +// ContainerRuntime returns an attribute KeyValue conforming to the +// "container.runtime" semantic conventions. It represents the container runtime +// managing this container. func ContainerRuntime(val string) attribute.KeyValue { return ContainerRuntimeKey.String(val) } // Namespace: cpu const ( - // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic conventions. It represents the mode of the CPU. - // + // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic + // conventions. It represents the mode of the CPU. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "user", "system" CPUModeKey = attribute.Key("cpu.mode") ) @@ -1939,340 +2507,464 @@ const ( // Enum values for cpu.mode var ( // user - // Stability: experimental + // Stability: development CPUModeUser = CPUModeKey.String("user") // system - // Stability: experimental + // Stability: development CPUModeSystem = CPUModeKey.String("system") // nice - // Stability: experimental + // Stability: development CPUModeNice = CPUModeKey.String("nice") // idle - // Stability: experimental + // Stability: development CPUModeIdle = CPUModeKey.String("idle") // iowait - // Stability: experimental + // Stability: development CPUModeIowait = CPUModeKey.String("iowait") // interrupt - // Stability: experimental + // Stability: development CPUModeInterrupt = CPUModeKey.String("interrupt") // steal - // Stability: experimental + // Stability: development CPUModeSteal = CPUModeKey.String("steal") // kernel - // Stability: experimental + // Stability: development CPUModeKernel = CPUModeKey.String("kernel") ) // Namespace: db const ( - // DBCassandraConsistencyLevelKey is the attribute Key conforming to the "db.cassandra.consistency_level" semantic conventions. It represents the consistency level of the query. Based on consistency values from [CQL]. - // + // DBCassandraConsistencyLevelKey is the attribute Key conforming to the + // "db.cassandra.consistency_level" semantic conventions. It represents the + // consistency level of the query. Based on consistency values from [CQL]. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html DBCassandraConsistencyLevelKey = attribute.Key("db.cassandra.consistency_level") - // DBCassandraCoordinatorDCKey is the attribute Key conforming to the "db.cassandra.coordinator.dc" semantic conventions. It represents the data center of the coordinating node for a query. - // + // DBCassandraCoordinatorDCKey is the attribute Key conforming to the + // "db.cassandra.coordinator.dc" semantic conventions. It represents the data + // center of the coordinating node for a query. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: us-west-2 DBCassandraCoordinatorDCKey = attribute.Key("db.cassandra.coordinator.dc") - // DBCassandraCoordinatorIDKey is the attribute Key conforming to the "db.cassandra.coordinator.id" semantic conventions. It represents the ID of the coordinating node for a query. - // + // DBCassandraCoordinatorIDKey is the attribute Key conforming to the + // "db.cassandra.coordinator.id" semantic conventions. It represents the ID of + // the coordinating node for a query. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af DBCassandraCoordinatorIDKey = attribute.Key("db.cassandra.coordinator.id") - // DBCassandraIdempotenceKey is the attribute Key conforming to the "db.cassandra.idempotence" semantic conventions. It represents the whether or not the query is idempotent. - // + // DBCassandraIdempotenceKey is the attribute Key conforming to the + // "db.cassandra.idempotence" semantic conventions. It represents the whether or + // not the query is idempotent. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DBCassandraIdempotenceKey = attribute.Key("db.cassandra.idempotence") - // DBCassandraPageSizeKey is the attribute Key conforming to the "db.cassandra.page_size" semantic conventions. It represents the fetch size used for paging, i.e. how many rows will be returned at once. - // + // DBCassandraPageSizeKey is the attribute Key conforming to the + // "db.cassandra.page_size" semantic conventions. It represents the fetch size + // used for paging, i.e. how many rows will be returned at once. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 5000 DBCassandraPageSizeKey = attribute.Key("db.cassandra.page_size") - // DBCassandraSpeculativeExecutionCountKey is the attribute Key conforming to the "db.cassandra.speculative_execution_count" semantic conventions. It represents the number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. - // + // DBCassandraSpeculativeExecutionCountKey is the attribute Key conforming to + // the "db.cassandra.speculative_execution_count" semantic conventions. It + // represents the number of times a query was speculatively executed. Not set or + // `0` if the query was not executed speculatively. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0, 2 DBCassandraSpeculativeExecutionCountKey = attribute.Key("db.cassandra.speculative_execution_count") - // DBClientConnectionPoolNameKey is the attribute Key conforming to the "db.client.connection.pool.name" semantic conventions. It represents the name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns SHOULD document it. - // + // DBClientConnectionPoolNameKey is the attribute Key conforming to the + // "db.client.connection.pool.name" semantic conventions. It represents the name + // of the connection pool; unique within the instrumented application. In case + // the connection pool implementation doesn't provide a name, instrumentation + // SHOULD use a combination of parameters that would make the name unique, for + // example, combining attributes `server.address`, `server.port`, and + // `db.namespace`, formatted as `server.address:server.port/db.namespace`. + // Instrumentations that generate connection pool name following different + // patterns SHOULD document it. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "myDataSource" DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name") - // DBClientConnectionStateKey is the attribute Key conforming to the "db.client.connection.state" semantic conventions. It represents the state of a connection in the pool. - // + // DBClientConnectionStateKey is the attribute Key conforming to the + // "db.client.connection.state" semantic conventions. It represents the state of + // a connection in the pool. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "idle" DBClientConnectionStateKey = attribute.Key("db.client.connection.state") - // DBCollectionNameKey is the attribute Key conforming to the "db.collection.name" semantic conventions. It represents the name of a collection (table, container) within the database. - // + // DBCollectionNameKey is the attribute Key conforming to the + // "db.collection.name" semantic conventions. It represents the name of a + // collection (table, container) within the database. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "public.users", "customers" - // Note: It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. - // If the collection name is parsed from the query text, it SHOULD be the first collection name found in the query and it SHOULD match the value provided in the query text including any schema and database name prefix. - // For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured. + // Note: It is RECOMMENDED to capture the value as provided by the application + // without attempting to do any case normalization. + // If the collection name is parsed from the query text, it SHOULD be the first + // collection name found in the query and it SHOULD match the value provided in + // the query text including any schema and database name prefix. + // For batch operations, if the individual operations are known to have the same + // collection name then that collection name SHOULD be used, otherwise + // `db.collection.name` SHOULD NOT be captured. // This attribute has stability level RELEASE CANDIDATE. DBCollectionNameKey = attribute.Key("db.collection.name") - // DBCosmosDBClientIDKey is the attribute Key conforming to the "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos client instance id. - // + // DBCosmosDBClientIDKey is the attribute Key conforming to the + // "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos + // client instance id. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 3ba4827d-4422-483f-b59f-85b74211c11d DBCosmosDBClientIDKey = attribute.Key("db.cosmosdb.client_id") - // DBCosmosDBConnectionModeKey is the attribute Key conforming to the "db.cosmosdb.connection_mode" semantic conventions. It represents the cosmos client connection mode. - // + // DBCosmosDBConnectionModeKey is the attribute Key conforming to the + // "db.cosmosdb.connection_mode" semantic conventions. It represents the cosmos + // client connection mode. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DBCosmosDBConnectionModeKey = attribute.Key("db.cosmosdb.connection_mode") - // DBCosmosDBOperationTypeKey is the attribute Key conforming to the "db.cosmosdb.operation_type" semantic conventions. It represents the cosmos DB Operation Type. - // + // DBCosmosDBOperationTypeKey is the attribute Key conforming to the + // "db.cosmosdb.operation_type" semantic conventions. It represents the cosmos + // DB Operation Type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DBCosmosDBOperationTypeKey = attribute.Key("db.cosmosdb.operation_type") - // DBCosmosDBRequestChargeKey is the attribute Key conforming to the "db.cosmosdb.request_charge" semantic conventions. It represents the rU consumed for that operation. - // + // DBCosmosDBRequestChargeKey is the attribute Key conforming to the + // "db.cosmosdb.request_charge" semantic conventions. It represents the rU + // consumed for that operation. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 46.18, 1.0 DBCosmosDBRequestChargeKey = attribute.Key("db.cosmosdb.request_charge") - // DBCosmosDBRequestContentLengthKey is the attribute Key conforming to the "db.cosmosdb.request_content_length" semantic conventions. It represents the request payload size in bytes. - // + // DBCosmosDBRequestContentLengthKey is the attribute Key conforming to the + // "db.cosmosdb.request_content_length" semantic conventions. It represents the + // request payload size in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DBCosmosDBRequestContentLengthKey = attribute.Key("db.cosmosdb.request_content_length") - // DBCosmosDBSubStatusCodeKey is the attribute Key conforming to the "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos DB sub status code. - // + // DBCosmosDBSubStatusCodeKey is the attribute Key conforming to the + // "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos + // DB sub status code. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1000, 1002 DBCosmosDBSubStatusCodeKey = attribute.Key("db.cosmosdb.sub_status_code") - // DBElasticsearchNodeNameKey is the attribute Key conforming to the "db.elasticsearch.node.name" semantic conventions. It represents the represents the human-readable identifier of the node/instance to which a request was routed. - // + // DBElasticsearchNodeNameKey is the attribute Key conforming to the + // "db.elasticsearch.node.name" semantic conventions. It represents the + // represents the human-readable identifier of the node/instance to which a + // request was routed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "instance-0000000001" DBElasticsearchNodeNameKey = attribute.Key("db.elasticsearch.node.name") - // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic conventions. It represents the name of the database, fully qualified within the server address and port. - // + // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic + // conventions. It represents the name of the database, fully qualified within + // the server address and port. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "customers", "test.users" - // Note: If a database system has multiple namespace components, they SHOULD be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces SHOULD NOT be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid. - // Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system. - // It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + // Note: If a database system has multiple namespace components, they SHOULD be + // concatenated (potentially using database system specific conventions) from + // most general to most specific namespace component, and more specific + // namespaces SHOULD NOT be captured without the more general namespaces, to + // ensure that "startswith" queries for the more general namespaces will be + // valid. + // Semantic conventions for individual database systems SHOULD document what + // `db.namespace` means in the context of that system. + // It is RECOMMENDED to capture the value as provided by the application without + // attempting to do any case normalization. // This attribute has stability level RELEASE CANDIDATE. DBNamespaceKey = attribute.Key("db.namespace") - // DBOperationBatchSizeKey is the attribute Key conforming to the "db.operation.batch.size" semantic conventions. It represents the number of queries included in a batch operation. - // + // DBOperationBatchSizeKey is the attribute Key conforming to the + // "db.operation.batch.size" semantic conventions. It represents the number of + // queries included in a batch operation. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 2, 3, 4 - // Note: Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` SHOULD never be `1`. + // Note: Operations are only considered batches when they contain two or more + // operations, and so `db.operation.batch.size` SHOULD never be `1`. // This attribute has stability level RELEASE CANDIDATE. DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size") - // DBOperationNameKey is the attribute Key conforming to the "db.operation.name" semantic conventions. It represents the name of the operation or command being executed. - // + // DBOperationNameKey is the attribute Key conforming to the "db.operation.name" + // semantic conventions. It represents the name of the operation or command + // being executed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "findAndModify", "HMSET", "SELECT" - // Note: It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. - // If the operation name is parsed from the query text, it SHOULD be the first operation name found in the query. - // For batch operations, if the individual operations are known to have the same operation name then that operation name SHOULD be used prepended by `BATCH `, otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable. + // Note: It is RECOMMENDED to capture the value as provided by the application + // without attempting to do any case normalization. + // If the operation name is parsed from the query text, it SHOULD be the first + // operation name found in the query. + // For batch operations, if the individual operations are known to have the same + // operation name then that operation name SHOULD be used prepended by `BATCH ` + // , otherwise `db.operation.name` SHOULD be `BATCH` or some other database + // system specific term if more applicable. // This attribute has stability level RELEASE CANDIDATE. DBOperationNameKey = attribute.Key("db.operation.name") - // DBQueryTextKey is the attribute Key conforming to the "db.query.text" semantic conventions. It represents the database query being executed. - // + // DBQueryTextKey is the attribute Key conforming to the "db.query.text" + // semantic conventions. It represents the database query being executed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey "WuValue"" + // Stability: Development + // + // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey + // "WuValue"" // Note: For sanitization see [Sanitization of `db.query.text`]. - // For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable. - // Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk. + // For batch operations, if the individual operations are known to have the same + // query text then that query text SHOULD be used, otherwise all of the + // individual query texts SHOULD be concatenated with separator `; ` or some + // other database system specific separator if more applicable. + // Even though parameterized query text can potentially have sensitive data, by + // using a parameterized query the user is giving a strong signal that any + // sensitive data will be passed as parameter values, and the benefit to + // observability of capturing the static part of the query text by default + // outweighs the risk. // This attribute has stability level RELEASE CANDIDATE. - // + // // [Sanitization of `db.query.text`]: ../../docs/database/database-spans.md#sanitization-of-dbquerytext DBQueryTextKey = attribute.Key("db.query.text") - // DBResponseStatusCodeKey is the attribute Key conforming to the "db.response.status_code" semantic conventions. It represents the database response status code. - // + // DBResponseStatusCodeKey is the attribute Key conforming to the + // "db.response.status_code" semantic conventions. It represents the database + // response status code. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "102", "ORA-17002", "08P01", "404" - // Note: The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes. - // Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system. + // Note: The status code returned by the database. Usually it represents an + // error code, but may also represent partial success, warning, or differentiate + // between various types of successful outcomes. + // Semantic conventions for individual database systems SHOULD document what + // `db.response.status_code` means in the context of that system. // This attribute has stability level RELEASE CANDIDATE. DBResponseStatusCodeKey = attribute.Key("db.response.status_code") - // DBSystemKey is the attribute Key conforming to the "db.system" semantic conventions. It represents the database management system (DBMS) product as identified by the client instrumentation. - // + // DBSystemKey is the attribute Key conforming to the "db.system" semantic + // conventions. It represents the database management system (DBMS) product as + // identified by the client instrumentation. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` is set to `postgresql` based on the instrumentation's best knowledge. + // Note: The actual DBMS may differ from the one identified by the client. For + // example, when using PostgreSQL client libraries to connect to a CockroachDB, + // the `db.system` is set to `postgresql` based on the instrumentation's best + // knowledge. // This attribute has stability level RELEASE CANDIDATE. DBSystemKey = attribute.Key("db.system") ) -// DBCassandraCoordinatorDC returns an attribute KeyValue conforming to the "db.cassandra.coordinator.dc" semantic conventions. It represents the data center of the coordinating node for a query. +// DBCassandraCoordinatorDC returns an attribute KeyValue conforming to the +// "db.cassandra.coordinator.dc" semantic conventions. It represents the data +// center of the coordinating node for a query. func DBCassandraCoordinatorDC(val string) attribute.KeyValue { return DBCassandraCoordinatorDCKey.String(val) } -// DBCassandraCoordinatorID returns an attribute KeyValue conforming to the "db.cassandra.coordinator.id" semantic conventions. It represents the ID of the coordinating node for a query. +// DBCassandraCoordinatorID returns an attribute KeyValue conforming to the +// "db.cassandra.coordinator.id" semantic conventions. It represents the ID of +// the coordinating node for a query. func DBCassandraCoordinatorID(val string) attribute.KeyValue { return DBCassandraCoordinatorIDKey.String(val) } -// DBCassandraIdempotence returns an attribute KeyValue conforming to the "db.cassandra.idempotence" semantic conventions. It represents the whether or not the query is idempotent. +// DBCassandraIdempotence returns an attribute KeyValue conforming to the +// "db.cassandra.idempotence" semantic conventions. It represents the whether or +// not the query is idempotent. func DBCassandraIdempotence(val bool) attribute.KeyValue { return DBCassandraIdempotenceKey.Bool(val) } -// DBCassandraPageSize returns an attribute KeyValue conforming to the "db.cassandra.page_size" semantic conventions. It represents the fetch size used for paging, i.e. how many rows will be returned at once. +// DBCassandraPageSize returns an attribute KeyValue conforming to the +// "db.cassandra.page_size" semantic conventions. It represents the fetch size +// used for paging, i.e. how many rows will be returned at once. func DBCassandraPageSize(val int) attribute.KeyValue { return DBCassandraPageSizeKey.Int(val) } -// DBCassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to the "db.cassandra.speculative_execution_count" semantic conventions. It represents the number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. +// DBCassandraSpeculativeExecutionCount returns an attribute KeyValue conforming +// to the "db.cassandra.speculative_execution_count" semantic conventions. It +// represents the number of times a query was speculatively executed. Not set or +// `0` if the query was not executed speculatively. func DBCassandraSpeculativeExecutionCount(val int) attribute.KeyValue { return DBCassandraSpeculativeExecutionCountKey.Int(val) } -// DBClientConnectionPoolName returns an attribute KeyValue conforming to the "db.client.connection.pool.name" semantic conventions. It represents the name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns SHOULD document it. +// DBClientConnectionPoolName returns an attribute KeyValue conforming to the +// "db.client.connection.pool.name" semantic conventions. It represents the name +// of the connection pool; unique within the instrumented application. In case +// the connection pool implementation doesn't provide a name, instrumentation +// SHOULD use a combination of parameters that would make the name unique, for +// example, combining attributes `server.address`, `server.port`, and +// `db.namespace`, formatted as `server.address:server.port/db.namespace`. +// Instrumentations that generate connection pool name following different +// patterns SHOULD document it. func DBClientConnectionPoolName(val string) attribute.KeyValue { return DBClientConnectionPoolNameKey.String(val) } -// DBCollectionName returns an attribute KeyValue conforming to the "db.collection.name" semantic conventions. It represents the name of a collection (table, container) within the database. +// DBCollectionName returns an attribute KeyValue conforming to the +// "db.collection.name" semantic conventions. It represents the name of a +// collection (table, container) within the database. func DBCollectionName(val string) attribute.KeyValue { return DBCollectionNameKey.String(val) } -// DBCosmosDBClientID returns an attribute KeyValue conforming to the "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos client instance id. +// DBCosmosDBClientID returns an attribute KeyValue conforming to the +// "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos +// client instance id. func DBCosmosDBClientID(val string) attribute.KeyValue { return DBCosmosDBClientIDKey.String(val) } -// DBCosmosDBRequestCharge returns an attribute KeyValue conforming to the "db.cosmosdb.request_charge" semantic conventions. It represents the rU consumed for that operation. +// DBCosmosDBRequestCharge returns an attribute KeyValue conforming to the +// "db.cosmosdb.request_charge" semantic conventions. It represents the rU +// consumed for that operation. func DBCosmosDBRequestCharge(val float64) attribute.KeyValue { return DBCosmosDBRequestChargeKey.Float64(val) } -// DBCosmosDBRequestContentLength returns an attribute KeyValue conforming to the "db.cosmosdb.request_content_length" semantic conventions. It represents the request payload size in bytes. +// DBCosmosDBRequestContentLength returns an attribute KeyValue conforming to the +// "db.cosmosdb.request_content_length" semantic conventions. It represents the +// request payload size in bytes. func DBCosmosDBRequestContentLength(val int) attribute.KeyValue { return DBCosmosDBRequestContentLengthKey.Int(val) } -// DBCosmosDBSubStatusCode returns an attribute KeyValue conforming to the "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos DB sub status code. +// DBCosmosDBSubStatusCode returns an attribute KeyValue conforming to the +// "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos +// DB sub status code. func DBCosmosDBSubStatusCode(val int) attribute.KeyValue { return DBCosmosDBSubStatusCodeKey.Int(val) } -// DBElasticsearchNodeName returns an attribute KeyValue conforming to the "db.elasticsearch.node.name" semantic conventions. It represents the represents the human-readable identifier of the node/instance to which a request was routed. +// DBElasticsearchNodeName returns an attribute KeyValue conforming to the +// "db.elasticsearch.node.name" semantic conventions. It represents the +// represents the human-readable identifier of the node/instance to which a +// request was routed. func DBElasticsearchNodeName(val string) attribute.KeyValue { return DBElasticsearchNodeNameKey.String(val) } -// DBNamespace returns an attribute KeyValue conforming to the "db.namespace" semantic conventions. It represents the name of the database, fully qualified within the server address and port. +// DBNamespace returns an attribute KeyValue conforming to the "db.namespace" +// semantic conventions. It represents the name of the database, fully qualified +// within the server address and port. func DBNamespace(val string) attribute.KeyValue { return DBNamespaceKey.String(val) } -// DBOperationBatchSize returns an attribute KeyValue conforming to the "db.operation.batch.size" semantic conventions. It represents the number of queries included in a batch operation. +// DBOperationBatchSize returns an attribute KeyValue conforming to the +// "db.operation.batch.size" semantic conventions. It represents the number of +// queries included in a batch operation. func DBOperationBatchSize(val int) attribute.KeyValue { return DBOperationBatchSizeKey.Int(val) } -// DBOperationName returns an attribute KeyValue conforming to the "db.operation.name" semantic conventions. It represents the name of the operation or command being executed. +// DBOperationName returns an attribute KeyValue conforming to the +// "db.operation.name" semantic conventions. It represents the name of the +// operation or command being executed. func DBOperationName(val string) attribute.KeyValue { return DBOperationNameKey.String(val) } -// DBQueryText returns an attribute KeyValue conforming to the "db.query.text" semantic conventions. It represents the database query being executed. +// DBQueryText returns an attribute KeyValue conforming to the "db.query.text" +// semantic conventions. It represents the database query being executed. func DBQueryText(val string) attribute.KeyValue { return DBQueryTextKey.String(val) } -// DBResponseStatusCode returns an attribute KeyValue conforming to the "db.response.status_code" semantic conventions. It represents the database response status code. +// DBResponseStatusCode returns an attribute KeyValue conforming to the +// "db.response.status_code" semantic conventions. It represents the database +// response status code. func DBResponseStatusCode(val string) attribute.KeyValue { return DBResponseStatusCodeKey.String(val) } @@ -2280,330 +2972,346 @@ func DBResponseStatusCode(val string) attribute.KeyValue { // Enum values for db.cassandra.consistency_level var ( // all - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelAll = DBCassandraConsistencyLevelKey.String("all") // each_quorum - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelEachQuorum = DBCassandraConsistencyLevelKey.String("each_quorum") // quorum - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelQuorum = DBCassandraConsistencyLevelKey.String("quorum") // local_quorum - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelLocalQuorum = DBCassandraConsistencyLevelKey.String("local_quorum") // one - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelOne = DBCassandraConsistencyLevelKey.String("one") // two - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelTwo = DBCassandraConsistencyLevelKey.String("two") // three - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelThree = DBCassandraConsistencyLevelKey.String("three") // local_one - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelLocalOne = DBCassandraConsistencyLevelKey.String("local_one") // any - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelAny = DBCassandraConsistencyLevelKey.String("any") // serial - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelSerial = DBCassandraConsistencyLevelKey.String("serial") // local_serial - // Stability: experimental + // Stability: development DBCassandraConsistencyLevelLocalSerial = DBCassandraConsistencyLevelKey.String("local_serial") ) // Enum values for db.client.connection.state var ( // idle - // Stability: experimental + // Stability: development DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle") // used - // Stability: experimental + // Stability: development DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used") ) // Enum values for db.cosmosdb.connection_mode var ( // Gateway (HTTP) connections mode - // Stability: experimental + // Stability: development DBCosmosDBConnectionModeGateway = DBCosmosDBConnectionModeKey.String("gateway") // Direct connection. - // Stability: experimental + // Stability: development DBCosmosDBConnectionModeDirect = DBCosmosDBConnectionModeKey.String("direct") ) // Enum values for db.cosmosdb.operation_type var ( // batch - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeBatch = DBCosmosDBOperationTypeKey.String("batch") // create - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeCreate = DBCosmosDBOperationTypeKey.String("create") // delete - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeDelete = DBCosmosDBOperationTypeKey.String("delete") // execute - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeExecute = DBCosmosDBOperationTypeKey.String("execute") // execute_javascript - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeExecuteJavascript = DBCosmosDBOperationTypeKey.String("execute_javascript") // invalid - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeInvalid = DBCosmosDBOperationTypeKey.String("invalid") // head - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeHead = DBCosmosDBOperationTypeKey.String("head") // head_feed - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeHeadFeed = DBCosmosDBOperationTypeKey.String("head_feed") // patch - // Stability: experimental + // Stability: development DBCosmosDBOperationTypePatch = DBCosmosDBOperationTypeKey.String("patch") // query - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeQuery = DBCosmosDBOperationTypeKey.String("query") // query_plan - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeQueryPlan = DBCosmosDBOperationTypeKey.String("query_plan") // read - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeRead = DBCosmosDBOperationTypeKey.String("read") // read_feed - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeReadFeed = DBCosmosDBOperationTypeKey.String("read_feed") // replace - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeReplace = DBCosmosDBOperationTypeKey.String("replace") // upsert - // Stability: experimental + // Stability: development DBCosmosDBOperationTypeUpsert = DBCosmosDBOperationTypeKey.String("upsert") ) // Enum values for db.system var ( // Some other SQL database. Fallback only. See notes. - // Stability: experimental + // Stability: development DBSystemOtherSQL = DBSystemKey.String("other_sql") // Adabas (Adaptable Database System) - // Stability: experimental + // Stability: development DBSystemAdabas = DBSystemKey.String("adabas") // Deprecated: Replaced by `intersystems_cache`. DBSystemCache = DBSystemKey.String("cache") // InterSystems Caché - // Stability: experimental + // Stability: development DBSystemIntersystemsCache = DBSystemKey.String("intersystems_cache") // Apache Cassandra - // Stability: experimental + // Stability: development DBSystemCassandra = DBSystemKey.String("cassandra") // ClickHouse - // Stability: experimental + // Stability: development DBSystemClickhouse = DBSystemKey.String("clickhouse") // Deprecated: Replaced by `other_sql`. DBSystemCloudscape = DBSystemKey.String("cloudscape") // CockroachDB - // Stability: experimental + // Stability: development DBSystemCockroachdb = DBSystemKey.String("cockroachdb") // Deprecated: Removed. DBSystemColdfusion = DBSystemKey.String("coldfusion") // Microsoft Azure Cosmos DB - // Stability: experimental + // Stability: development DBSystemCosmosDB = DBSystemKey.String("cosmosdb") // Couchbase - // Stability: experimental + // Stability: development DBSystemCouchbase = DBSystemKey.String("couchbase") // CouchDB - // Stability: experimental + // Stability: development DBSystemCouchDB = DBSystemKey.String("couchdb") // IBM Db2 - // Stability: experimental + // Stability: development DBSystemDb2 = DBSystemKey.String("db2") // Apache Derby - // Stability: experimental + // Stability: development DBSystemDerby = DBSystemKey.String("derby") // Amazon DynamoDB - // Stability: experimental + // Stability: development DBSystemDynamoDB = DBSystemKey.String("dynamodb") // EnterpriseDB - // Stability: experimental + // Stability: development DBSystemEDB = DBSystemKey.String("edb") // Elasticsearch - // Stability: experimental + // Stability: development DBSystemElasticsearch = DBSystemKey.String("elasticsearch") // FileMaker - // Stability: experimental + // Stability: development DBSystemFilemaker = DBSystemKey.String("filemaker") // Firebird - // Stability: experimental + // Stability: development DBSystemFirebird = DBSystemKey.String("firebird") // Deprecated: Replaced by `other_sql`. DBSystemFirstSQL = DBSystemKey.String("firstsql") // Apache Geode - // Stability: experimental + // Stability: development DBSystemGeode = DBSystemKey.String("geode") // H2 - // Stability: experimental + // Stability: development DBSystemH2 = DBSystemKey.String("h2") // SAP HANA - // Stability: experimental + // Stability: development DBSystemHanaDB = DBSystemKey.String("hanadb") // Apache HBase - // Stability: experimental + // Stability: development DBSystemHBase = DBSystemKey.String("hbase") // Apache Hive - // Stability: experimental + // Stability: development DBSystemHive = DBSystemKey.String("hive") // HyperSQL DataBase - // Stability: experimental + // Stability: development DBSystemHSQLDB = DBSystemKey.String("hsqldb") // InfluxDB - // Stability: experimental + // Stability: development DBSystemInfluxdb = DBSystemKey.String("influxdb") // Informix - // Stability: experimental + // Stability: development DBSystemInformix = DBSystemKey.String("informix") // Ingres - // Stability: experimental + // Stability: development DBSystemIngres = DBSystemKey.String("ingres") // InstantDB - // Stability: experimental + // Stability: development DBSystemInstantDB = DBSystemKey.String("instantdb") // InterBase - // Stability: experimental + // Stability: development DBSystemInterbase = DBSystemKey.String("interbase") // MariaDB (This value has stability level RELEASE CANDIDATE) - // Stability: experimental + // Stability: development DBSystemMariaDB = DBSystemKey.String("mariadb") // SAP MaxDB - // Stability: experimental + // Stability: development DBSystemMaxDB = DBSystemKey.String("maxdb") // Memcached - // Stability: experimental + // Stability: development DBSystemMemcached = DBSystemKey.String("memcached") // MongoDB - // Stability: experimental + // Stability: development DBSystemMongoDB = DBSystemKey.String("mongodb") // Microsoft SQL Server (This value has stability level RELEASE CANDIDATE) - // Stability: experimental + // Stability: development DBSystemMSSQL = DBSystemKey.String("mssql") // Deprecated: Removed, use `other_sql` instead. DBSystemMssqlcompact = DBSystemKey.String("mssqlcompact") // MySQL (This value has stability level RELEASE CANDIDATE) - // Stability: experimental + // Stability: development DBSystemMySQL = DBSystemKey.String("mysql") // Neo4j - // Stability: experimental + // Stability: development DBSystemNeo4j = DBSystemKey.String("neo4j") // Netezza - // Stability: experimental + // Stability: development DBSystemNetezza = DBSystemKey.String("netezza") // OpenSearch - // Stability: experimental + // Stability: development DBSystemOpensearch = DBSystemKey.String("opensearch") // Oracle Database - // Stability: experimental + // Stability: development DBSystemOracle = DBSystemKey.String("oracle") // Pervasive PSQL - // Stability: experimental + // Stability: development DBSystemPervasive = DBSystemKey.String("pervasive") // PointBase - // Stability: experimental + // Stability: development DBSystemPointbase = DBSystemKey.String("pointbase") // PostgreSQL (This value has stability level RELEASE CANDIDATE) - // Stability: experimental + // Stability: development DBSystemPostgreSQL = DBSystemKey.String("postgresql") // Progress Database - // Stability: experimental + // Stability: development DBSystemProgress = DBSystemKey.String("progress") // Redis - // Stability: experimental + // Stability: development DBSystemRedis = DBSystemKey.String("redis") // Amazon Redshift - // Stability: experimental + // Stability: development DBSystemRedshift = DBSystemKey.String("redshift") // Cloud Spanner - // Stability: experimental + // Stability: development DBSystemSpanner = DBSystemKey.String("spanner") // SQLite - // Stability: experimental + // Stability: development DBSystemSqlite = DBSystemKey.String("sqlite") // Sybase - // Stability: experimental + // Stability: development DBSystemSybase = DBSystemKey.String("sybase") // Teradata - // Stability: experimental + // Stability: development DBSystemTeradata = DBSystemKey.String("teradata") // Trino - // Stability: experimental + // Stability: development DBSystemTrino = DBSystemKey.String("trino") // Vertica - // Stability: experimental + // Stability: development DBSystemVertica = DBSystemKey.String("vertica") ) // Namespace: deployment const ( - // DeploymentEnvironmentNameKey is the attribute Key conforming to the "deployment.environment.name" semantic conventions. It represents the name of the [deployment environment] (aka deployment tier). - // + // DeploymentEnvironmentNameKey is the attribute Key conforming to the + // "deployment.environment.name" semantic conventions. It represents the name of + // the [deployment environment] (aka deployment tier). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "staging", "production" - // Note: `deployment.environment.name` does not affect the uniqueness constraints defined through - // the `service.namespace`, `service.name` and `service.instance.id` resource attributes. - // This implies that resources carrying the following attribute combinations MUST be + // Note: `deployment.environment.name` does not affect the uniqueness + // constraints defined through + // the `service.namespace`, `service.name` and `service.instance.id` resource + // attributes. + // This implies that resources carrying the following attribute combinations + // MUST be // considered to be identifying the same service: - // + // // - `service.name=frontend`, `deployment.environment.name=production` // - `service.name=frontend`, `deployment.environment.name=staging`. + // + // // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name") - // DeploymentIDKey is the attribute Key conforming to the "deployment.id" semantic conventions. It represents the id of the deployment. - // + // DeploymentIDKey is the attribute Key conforming to the "deployment.id" + // semantic conventions. It represents the id of the deployment. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1208" DeploymentIDKey = attribute.Key("deployment.id") - // DeploymentNameKey is the attribute Key conforming to the "deployment.name" semantic conventions. It represents the name of the deployment. - // + // DeploymentNameKey is the attribute Key conforming to the "deployment.name" + // semantic conventions. It represents the name of the deployment. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "deploy my app", "deploy-frontend" DeploymentNameKey = attribute.Key("deployment.name") - // DeploymentStatusKey is the attribute Key conforming to the "deployment.status" semantic conventions. It represents the status of the deployment. - // + // DeploymentStatusKey is the attribute Key conforming to the + // "deployment.status" semantic conventions. It represents the status of the + // deployment. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DeploymentStatusKey = attribute.Key("deployment.status") ) -// DeploymentEnvironmentName returns an attribute KeyValue conforming to the "deployment.environment.name" semantic conventions. It represents the name of the [deployment environment] (aka deployment tier). -// +// DeploymentEnvironmentName returns an attribute KeyValue conforming to the +// "deployment.environment.name" semantic conventions. It represents the name of +// the [deployment environment] (aka deployment tier). +// // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment func DeploymentEnvironmentName(val string) attribute.KeyValue { return DeploymentEnvironmentNameKey.String(val) } -// DeploymentID returns an attribute KeyValue conforming to the "deployment.id" semantic conventions. It represents the id of the deployment. +// DeploymentID returns an attribute KeyValue conforming to the "deployment.id" +// semantic conventions. It represents the id of the deployment. func DeploymentID(val string) attribute.KeyValue { return DeploymentIDKey.String(val) } -// DeploymentName returns an attribute KeyValue conforming to the "deployment.name" semantic conventions. It represents the name of the deployment. +// DeploymentName returns an attribute KeyValue conforming to the +// "deployment.name" semantic conventions. It represents the name of the +// deployment. func DeploymentName(val string) attribute.KeyValue { return DeploymentNameKey.String(val) } @@ -2611,121 +3319,158 @@ func DeploymentName(val string) attribute.KeyValue { // Enum values for deployment.status var ( // failed - // Stability: experimental + // Stability: development DeploymentStatusFailed = DeploymentStatusKey.String("failed") // succeeded - // Stability: experimental + // Stability: development DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded") ) // Namespace: destination const ( - // DestinationAddressKey is the attribute Key conforming to the "destination.address" semantic conventions. It represents the destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. - // + // DestinationAddressKey is the attribute Key conforming to the + // "destination.address" semantic conventions. It represents the destination + // address - domain name if available without reverse DNS lookup; otherwise, IP + // address or Unix domain socket name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock" - // Note: When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent the destination address behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the source side, and when communicating through an + // intermediary, `destination.address` SHOULD represent the destination address + // behind any intermediaries, for example proxies, if it's available. DestinationAddressKey = attribute.Key("destination.address") - // DestinationPortKey is the attribute Key conforming to the "destination.port" semantic conventions. It represents the destination port number. - // + // DestinationPortKey is the attribute Key conforming to the "destination.port" + // semantic conventions. It represents the destination port number. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 3389, 2888 DestinationPortKey = attribute.Key("destination.port") ) -// DestinationAddress returns an attribute KeyValue conforming to the "destination.address" semantic conventions. It represents the destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +// DestinationAddress returns an attribute KeyValue conforming to the +// "destination.address" semantic conventions. It represents the destination +// address - domain name if available without reverse DNS lookup; otherwise, IP +// address or Unix domain socket name. func DestinationAddress(val string) attribute.KeyValue { return DestinationAddressKey.String(val) } -// DestinationPort returns an attribute KeyValue conforming to the "destination.port" semantic conventions. It represents the destination port number. +// DestinationPort returns an attribute KeyValue conforming to the +// "destination.port" semantic conventions. It represents the destination port +// number. func DestinationPort(val int) attribute.KeyValue { return DestinationPortKey.Int(val) } // Namespace: device const ( - // DeviceIDKey is the attribute Key conforming to the "device.id" semantic conventions. It represents a unique identifier representing the device. - // + // DeviceIDKey is the attribute Key conforming to the "device.id" semantic + // conventions. It represents a unique identifier representing the device. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092" - // Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here] on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence. - // + // Note: The device identifier MUST only be defined using the values outlined + // below. This value is not an advertising identifier and MUST NOT be used as + // such. On iOS (Swift or Objective-C), this value MUST be equal to the + // [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to + // the Firebase Installation ID or a globally unique UUID which is persisted + // across sessions in your application. More information can be found [here] on + // best practices and exact implementation details. Caution should be taken when + // storing personal data or anything which can identify a user. GDPR and data + // protection laws may apply, ensure you do your own due diligence. + // // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor // [here]: https://developer.android.com/training/articles/user-data-ids DeviceIDKey = attribute.Key("device.id") - // DeviceManufacturerKey is the attribute Key conforming to the "device.manufacturer" semantic conventions. It represents the name of the device manufacturer. - // + // DeviceManufacturerKey is the attribute Key conforming to the + // "device.manufacturer" semantic conventions. It represents the name of the + // device manufacturer. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Apple", "Samsung" - // Note: The Android OS provides this field via [Build]. iOS apps SHOULD hardcode the value `Apple`. - // + // Note: The Android OS provides this field via [Build]. iOS apps SHOULD + // hardcode the value `Apple`. + // // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER DeviceManufacturerKey = attribute.Key("device.manufacturer") - // DeviceModelIdentifierKey is the attribute Key conforming to the "device.model.identifier" semantic conventions. It represents the model identifier for the device. - // + // DeviceModelIdentifierKey is the attribute Key conforming to the + // "device.model.identifier" semantic conventions. It represents the model + // identifier for the device. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "iPhone3,4", "SM-G920F" - // Note: It's recommended this value represents a machine-readable version of the model identifier rather than the market or consumer-friendly name of the device. + // Note: It's recommended this value represents a machine-readable version of + // the model identifier rather than the market or consumer-friendly name of the + // device. DeviceModelIdentifierKey = attribute.Key("device.model.identifier") - // DeviceModelNameKey is the attribute Key conforming to the "device.model.name" semantic conventions. It represents the marketing name for the device model. - // + // DeviceModelNameKey is the attribute Key conforming to the "device.model.name" + // semantic conventions. It represents the marketing name for the device model. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "iPhone 6s Plus", "Samsung Galaxy S6" - // Note: It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + // Note: It's recommended this value represents a human-readable version of the + // device model rather than a machine-readable alternative. DeviceModelNameKey = attribute.Key("device.model.name") ) -// DeviceID returns an attribute KeyValue conforming to the "device.id" semantic conventions. It represents a unique identifier representing the device. +// DeviceID returns an attribute KeyValue conforming to the "device.id" semantic +// conventions. It represents a unique identifier representing the device. func DeviceID(val string) attribute.KeyValue { return DeviceIDKey.String(val) } -// DeviceManufacturer returns an attribute KeyValue conforming to the "device.manufacturer" semantic conventions. It represents the name of the device manufacturer. +// DeviceManufacturer returns an attribute KeyValue conforming to the +// "device.manufacturer" semantic conventions. It represents the name of the +// device manufacturer. func DeviceManufacturer(val string) attribute.KeyValue { return DeviceManufacturerKey.String(val) } -// DeviceModelIdentifier returns an attribute KeyValue conforming to the "device.model.identifier" semantic conventions. It represents the model identifier for the device. +// DeviceModelIdentifier returns an attribute KeyValue conforming to the +// "device.model.identifier" semantic conventions. It represents the model +// identifier for the device. func DeviceModelIdentifier(val string) attribute.KeyValue { return DeviceModelIdentifierKey.String(val) } -// DeviceModelName returns an attribute KeyValue conforming to the "device.model.name" semantic conventions. It represents the marketing name for the device model. +// DeviceModelName returns an attribute KeyValue conforming to the +// "device.model.name" semantic conventions. It represents the marketing name for +// the device model. func DeviceModelName(val string) attribute.KeyValue { return DeviceModelNameKey.String(val) } // Namespace: disk const ( - // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction" semantic conventions. It represents the disk IO operation direction. - // + // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction" + // semantic conventions. It represents the disk IO operation direction. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "read" DiskIoDirectionKey = attribute.Key("disk.io.direction") ) @@ -2733,342 +3478,435 @@ const ( // Enum values for disk.io.direction var ( // read - // Stability: experimental + // Stability: development DiskIoDirectionRead = DiskIoDirectionKey.String("read") // write - // Stability: experimental + // Stability: development DiskIoDirectionWrite = DiskIoDirectionKey.String("write") ) // Namespace: dns const ( - // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name" semantic conventions. It represents the name being queried. - // + // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name" + // semantic conventions. It represents the name being queried. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "www.example.com", "opentelemetry.io" - // Note: If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively. + // Note: If the name field contains non-printable characters (below 32 or above + // 126), those characters should be represented as escaped base 10 integers + // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, + // and line feeds should be converted to \t, \r, and \n respectively. DNSQuestionNameKey = attribute.Key("dns.question.name") ) -// DNSQuestionName returns an attribute KeyValue conforming to the "dns.question.name" semantic conventions. It represents the name being queried. +// DNSQuestionName returns an attribute KeyValue conforming to the +// "dns.question.name" semantic conventions. It represents the name being +// queried. func DNSQuestionName(val string) attribute.KeyValue { return DNSQuestionNameKey.String(val) } // Namespace: error const ( - // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic conventions. It represents the describes a class of error the operation ended with. - // + // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic + // conventions. It represents the describes a class of error the operation ended + // with. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // - // Examples: "timeout", "java.net.UnknownHostException", "server_certificate_invalid", "500" - // Note: The `error.type` SHOULD be predictable, and SHOULD have low cardinality. - // + // + // Examples: "timeout", "java.net.UnknownHostException", + // "server_certificate_invalid", "500" + // Note: The `error.type` SHOULD be predictable, and SHOULD have low + // cardinality. + // // When `error.type` is set to a type (e.g., an exception type), its // canonical class name identifying the type within the artifact SHOULD be used. - // + // // Instrumentations SHOULD document the list of errors they report. - // - // The cardinality of `error.type` within one instrumentation library SHOULD be low. - // Telemetry consumers that aggregate data from multiple instrumentation libraries and applications - // should be prepared for `error.type` to have high cardinality at query time when no + // + // The cardinality of `error.type` within one instrumentation library SHOULD be + // low. + // Telemetry consumers that aggregate data from multiple instrumentation + // libraries and applications + // should be prepared for `error.type` to have high cardinality at query time + // when no // additional filters are applied. - // - // If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`. - // - // If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes), + // + // If the operation has completed successfully, instrumentations SHOULD NOT set + // `error.type`. + // + // If a specific domain defines its own set of error identifiers (such as HTTP + // or gRPC status codes), // it's RECOMMENDED to: - // + // // - Use a domain-specific attribute - // - Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not. + // - Set `error.type` to capture all errors, regardless of whether they are + // defined within the domain-specific set or not. ErrorTypeKey = attribute.Key("error.type") ) // Enum values for error.type var ( - // A fallback error value to be used when the instrumentation doesn't define a custom value. - // + // A fallback error value to be used when the instrumentation doesn't define a + // custom value. + // // Stability: stable ErrorTypeOther = ErrorTypeKey.String("_OTHER") ) // Namespace: event const ( - // EventNameKey is the attribute Key conforming to the "event.name" semantic conventions. It represents the identifies the class / type of event. - // + // EventNameKey is the attribute Key conforming to the "event.name" semantic + // conventions. It represents the identifies the class / type of event. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "browser.mouse.click", "device.app.lifecycle" - // Note: Event names are subject to the same rules as [attribute names]. Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. - // + // Note: Event names are subject to the same rules as [attribute names]. + // Notably, event names are namespaced to avoid collisions and provide a clean + // separation of semantics for events in separate domains like browser, mobile, + // and kubernetes. + // // [attribute names]: /docs/general/attribute-naming.md EventNameKey = attribute.Key("event.name") ) -// EventName returns an attribute KeyValue conforming to the "event.name" semantic conventions. It represents the identifies the class / type of event. +// EventName returns an attribute KeyValue conforming to the "event.name" +// semantic conventions. It represents the identifies the class / type of event. func EventName(val string) attribute.KeyValue { return EventNameKey.String(val) } // Namespace: exception const ( - // ExceptionEscapedKey is the attribute Key conforming to the "exception.escaped" semantic conventions. It represents the sHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. - // + // ExceptionEscapedKey is the attribute Key conforming to the + // "exception.escaped" semantic conventions. It represents the sHOULD be set to + // true if the exception event is recorded at a point where it is known that the + // exception is escaping the scope of the span. + // // Type: boolean // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: - // Note: An exception is considered to have escaped (or left) the scope of a span, + // Note: An exception is considered to have escaped (or left) the scope of a + // span, // if that span is ended while the exception is still logically "in flight". // This may be actually "in flight" in some languages (e.g. if the exception // is passed to a Context manager's `__exit__` method in Python) but will // usually be caught at the point of recording the exception in most languages. - // - // It is usually not possible to determine at the point where an exception is thrown + // + // It is usually not possible to determine at the point where an exception is + // thrown // whether it will escape the scope of a span. // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, + // will escape, if one checks for an active exception just before ending the + // span, // as done in the [example for recording span exceptions]. - // + // // It follows that an exception may still escape the scope of the span // even if the `exception.escaped` attribute was not set or set to false, // since the event might have been recorded at a time where it was not // clear whether the exception will escape. - // + // // [example for recording span exceptions]: https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception ExceptionEscapedKey = attribute.Key("exception.escaped") - // ExceptionMessageKey is the attribute Key conforming to the "exception.message" semantic conventions. It represents the exception message. - // + // ExceptionMessageKey is the attribute Key conforming to the + // "exception.message" semantic conventions. It represents the exception + // message. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "Division by zero", "Can't convert 'int' object to str implicitly" ExceptionMessageKey = attribute.Key("exception.message") - // ExceptionStacktraceKey is the attribute Key conforming to the "exception.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. - // + // ExceptionStacktraceKey is the attribute Key conforming to the + // "exception.stacktrace" semantic conventions. It represents a stacktrace as a + // string in the natural representation for the language runtime. The + // representation is to be determined and documented by each language SIG. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // - // Examples: Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + // + // Examples: Exception in thread "main" java.lang.RuntimeException: Test + // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at + // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at + // com.example.GenerateTrace.main(GenerateTrace.java:5) ExceptionStacktraceKey = attribute.Key("exception.stacktrace") - // ExceptionTypeKey is the attribute Key conforming to the "exception.type" semantic conventions. It represents the type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. - // + // ExceptionTypeKey is the attribute Key conforming to the "exception.type" + // semantic conventions. It represents the type of the exception (its + // fully-qualified class name, if applicable). The dynamic type of the exception + // should be preferred over the static type in languages that support it. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "java.net.ConnectException", "OSError" ExceptionTypeKey = attribute.Key("exception.type") ) -// ExceptionEscaped returns an attribute KeyValue conforming to the "exception.escaped" semantic conventions. It represents the sHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. +// ExceptionEscaped returns an attribute KeyValue conforming to the +// "exception.escaped" semantic conventions. It represents the sHOULD be set to +// true if the exception event is recorded at a point where it is known that the +// exception is escaping the scope of the span. func ExceptionEscaped(val bool) attribute.KeyValue { return ExceptionEscapedKey.Bool(val) } -// ExceptionMessage returns an attribute KeyValue conforming to the "exception.message" semantic conventions. It represents the exception message. +// ExceptionMessage returns an attribute KeyValue conforming to the +// "exception.message" semantic conventions. It represents the exception message. func ExceptionMessage(val string) attribute.KeyValue { return ExceptionMessageKey.String(val) } -// ExceptionStacktrace returns an attribute KeyValue conforming to the "exception.stacktrace" semantic conventions. It represents a stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +// ExceptionStacktrace returns an attribute KeyValue conforming to the +// "exception.stacktrace" semantic conventions. It represents a stacktrace as a +// string in the natural representation for the language runtime. The +// representation is to be determined and documented by each language SIG. func ExceptionStacktrace(val string) attribute.KeyValue { return ExceptionStacktraceKey.String(val) } -// ExceptionType returns an attribute KeyValue conforming to the "exception.type" semantic conventions. It represents the type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. +// ExceptionType returns an attribute KeyValue conforming to the "exception.type" +// semantic conventions. It represents the type of the exception (its +// fully-qualified class name, if applicable). The dynamic type of the exception +// should be preferred over the static type in languages that support it. func ExceptionType(val string) attribute.KeyValue { return ExceptionTypeKey.String(val) } // Namespace: faas const ( - // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart" semantic conventions. It represents a boolean that is true if the serverless function is executed for the first time (aka cold-start). - // + // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart" + // semantic conventions. It represents a boolean that is true if the serverless + // function is executed for the first time (aka cold-start). + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: FaaSColdstartKey = attribute.Key("faas.coldstart") - // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic conventions. It represents a string containing the schedule period as [Cron Expression]. - // + // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic + // conventions. It represents a string containing the schedule period as + // [Cron Expression]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0/5 * * * ? * - // + // // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm FaaSCronKey = attribute.Key("faas.cron") - // FaaSDocumentCollectionKey is the attribute Key conforming to the "faas.document.collection" semantic conventions. It represents the name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. - // + // FaaSDocumentCollectionKey is the attribute Key conforming to the + // "faas.document.collection" semantic conventions. It represents the name of + // the source on which the triggering operation was performed. For example, in + // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the + // database name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "myBucketName", "myDbName" FaaSDocumentCollectionKey = attribute.Key("faas.document.collection") - // FaaSDocumentNameKey is the attribute Key conforming to the "faas.document.name" semantic conventions. It represents the document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. - // + // FaaSDocumentNameKey is the attribute Key conforming to the + // "faas.document.name" semantic conventions. It represents the document + // name/table subjected to the operation. For example, in Cloud Storage or S3 is + // the name of the file, and in Cosmos DB the table name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "myFile.txt", "myTableName" FaaSDocumentNameKey = attribute.Key("faas.document.name") - // FaaSDocumentOperationKey is the attribute Key conforming to the "faas.document.operation" semantic conventions. It represents the describes the type of the operation that was performed on the data. - // + // FaaSDocumentOperationKey is the attribute Key conforming to the + // "faas.document.operation" semantic conventions. It represents the describes + // the type of the operation that was performed on the data. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: FaaSDocumentOperationKey = attribute.Key("faas.document.operation") - // FaaSDocumentTimeKey is the attribute Key conforming to the "faas.document.time" semantic conventions. It represents a string containing the time when the data was accessed in the [ISO 8601] format expressed in [UTC]. - // + // FaaSDocumentTimeKey is the attribute Key conforming to the + // "faas.document.time" semantic conventions. It represents a string containing + // the time when the data was accessed in the [ISO 8601] format expressed in + // [UTC]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 2020-01-23T13:47:06Z - // + // // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html // [UTC]: https://www.w3.org/TR/NOTE-datetime FaaSDocumentTimeKey = attribute.Key("faas.document.time") - // FaaSInstanceKey is the attribute Key conforming to the "faas.instance" semantic conventions. It represents the execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. - // + // FaaSInstanceKey is the attribute Key conforming to the "faas.instance" + // semantic conventions. It represents the execution environment ID as a string, + // that will be potentially reused for other invocations to the same + // function/function version. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de" // Note: * **AWS Lambda:** Use the (full) log stream name. FaaSInstanceKey = attribute.Key("faas.instance") - // FaaSInvocationIDKey is the attribute Key conforming to the "faas.invocation_id" semantic conventions. It represents the invocation ID of the current function invocation. - // + // FaaSInvocationIDKey is the attribute Key conforming to the + // "faas.invocation_id" semantic conventions. It represents the invocation ID of + // the current function invocation. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28 FaaSInvocationIDKey = attribute.Key("faas.invocation_id") - // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name" semantic conventions. It represents the name of the invoked function. - // + // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name" + // semantic conventions. It represents the name of the invoked function. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: my-function - // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked function. + // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked + // function. FaaSInvokedNameKey = attribute.Key("faas.invoked_name") - // FaaSInvokedProviderKey is the attribute Key conforming to the "faas.invoked_provider" semantic conventions. It represents the cloud provider of the invoked function. - // + // FaaSInvokedProviderKey is the attribute Key conforming to the + // "faas.invoked_provider" semantic conventions. It represents the cloud + // provider of the invoked function. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + // Note: SHOULD be equal to the `cloud.provider` resource attribute of the + // invoked function. FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider") - // FaaSInvokedRegionKey is the attribute Key conforming to the "faas.invoked_region" semantic conventions. It represents the cloud region of the invoked function. - // + // FaaSInvokedRegionKey is the attribute Key conforming to the + // "faas.invoked_region" semantic conventions. It represents the cloud region of + // the invoked function. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: eu-central-1 - // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked function. + // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked + // function. FaaSInvokedRegionKey = attribute.Key("faas.invoked_region") - // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory" semantic conventions. It represents the amount of memory available to the serverless function converted to Bytes. - // + // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory" + // semantic conventions. It represents the amount of memory available to the + // serverless function converted to Bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // - // Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576). + // Stability: Development + // + // Note: It's recommended to set this attribute since e.g. too little memory can + // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, + // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this + // information (which must be multiplied by 1,048,576). FaaSMaxMemoryKey = attribute.Key("faas.max_memory") - // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic conventions. It represents the name of the single function that this runtime instance executes. - // + // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic + // conventions. It represents the name of the single function that this runtime + // instance executes. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-function", "myazurefunctionapp/some-function-name" // Note: This is the name of the function as configured/deployed on the FaaS // platform and is usually different from the name of the callback // function (which may be stored in the // [`code.namespace`/`code.function`] // span attributes). - // + // // For some cloud providers, the above definition is ambiguous. The following // definition of function name MUST be used for this attribute // (and consequently the span name) for the listed cloud providers/products: - // - // - **Azure:** The full name `/`, i.e., function app name + // + // - **Azure:** The full name `/`, i.e., function app name // followed by a forward slash followed by the function name (this form // can also be seen in the resource JSON for the function). // This means that a span attribute MUST be used, as an Azure function // app can host multiple functions that would usually share // a TracerProvider (see also the `cloud.resource_id` attribute). + // + // // [`code.namespace`/`code.function`]: /docs/general/attributes.md#source-code-attributes FaaSNameKey = attribute.Key("faas.name") - // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic conventions. It represents a string containing the function invocation time in the [ISO 8601] format expressed in [UTC]. - // + // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic + // conventions. It represents a string containing the function invocation time + // in the [ISO 8601] format expressed in [UTC]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 2020-01-23T13:47:06Z - // + // // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html // [UTC]: https://www.w3.org/TR/NOTE-datetime FaaSTimeKey = attribute.Key("faas.time") - // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic conventions. It represents the type of the trigger which caused this function invocation. - // + // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic + // conventions. It represents the type of the trigger which caused this function + // invocation. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: FaaSTriggerKey = attribute.Key("faas.trigger") - // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic conventions. It represents the immutable version of the function being executed. - // + // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic + // conventions. It represents the immutable version of the function being + // executed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "26", "pinkfroid-00002" // Note: Depending on the cloud provider and platform, use: - // + // // - **AWS Lambda:** The [function version] // (an integer represented as a decimal string). // - **Google Cloud Run (Services):** The [revision] @@ -3076,81 +3914,114 @@ const ( // - **Google Cloud Functions:** The value of the // [`K_REVISION` environment variable]. // - **Azure Functions:** Not applicable. Do not set this attribute. + // + // // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html // [revision]: https://cloud.google.com/run/docs/managing/revisions // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically FaaSVersionKey = attribute.Key("faas.version") ) -// FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart" semantic conventions. It represents a boolean that is true if the serverless function is executed for the first time (aka cold-start). +// FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart" +// semantic conventions. It represents a boolean that is true if the serverless +// function is executed for the first time (aka cold-start). func FaaSColdstart(val bool) attribute.KeyValue { return FaaSColdstartKey.Bool(val) } -// FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic conventions. It represents a string containing the schedule period as [Cron Expression]. -// +// FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic +// conventions. It represents a string containing the schedule period as +// [Cron Expression]. +// // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm func FaaSCron(val string) attribute.KeyValue { return FaaSCronKey.String(val) } -// FaaSDocumentCollection returns an attribute KeyValue conforming to the "faas.document.collection" semantic conventions. It represents the name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. +// FaaSDocumentCollection returns an attribute KeyValue conforming to the +// "faas.document.collection" semantic conventions. It represents the name of the +// source on which the triggering operation was performed. For example, in Cloud +// Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database +// name. func FaaSDocumentCollection(val string) attribute.KeyValue { return FaaSDocumentCollectionKey.String(val) } -// FaaSDocumentName returns an attribute KeyValue conforming to the "faas.document.name" semantic conventions. It represents the document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. +// FaaSDocumentName returns an attribute KeyValue conforming to the +// "faas.document.name" semantic conventions. It represents the document +// name/table subjected to the operation. For example, in Cloud Storage or S3 is +// the name of the file, and in Cosmos DB the table name. func FaaSDocumentName(val string) attribute.KeyValue { return FaaSDocumentNameKey.String(val) } -// FaaSDocumentTime returns an attribute KeyValue conforming to the "faas.document.time" semantic conventions. It represents a string containing the time when the data was accessed in the [ISO 8601] format expressed in [UTC]. -// +// FaaSDocumentTime returns an attribute KeyValue conforming to the +// "faas.document.time" semantic conventions. It represents a string containing +// the time when the data was accessed in the [ISO 8601] format expressed in +// [UTC]. +// // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html // [UTC]: https://www.w3.org/TR/NOTE-datetime func FaaSDocumentTime(val string) attribute.KeyValue { return FaaSDocumentTimeKey.String(val) } -// FaaSInstance returns an attribute KeyValue conforming to the "faas.instance" semantic conventions. It represents the execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. +// FaaSInstance returns an attribute KeyValue conforming to the "faas.instance" +// semantic conventions. It represents the execution environment ID as a string, +// that will be potentially reused for other invocations to the same +// function/function version. func FaaSInstance(val string) attribute.KeyValue { return FaaSInstanceKey.String(val) } -// FaaSInvocationID returns an attribute KeyValue conforming to the "faas.invocation_id" semantic conventions. It represents the invocation ID of the current function invocation. +// FaaSInvocationID returns an attribute KeyValue conforming to the +// "faas.invocation_id" semantic conventions. It represents the invocation ID of +// the current function invocation. func FaaSInvocationID(val string) attribute.KeyValue { return FaaSInvocationIDKey.String(val) } -// FaaSInvokedName returns an attribute KeyValue conforming to the "faas.invoked_name" semantic conventions. It represents the name of the invoked function. +// FaaSInvokedName returns an attribute KeyValue conforming to the +// "faas.invoked_name" semantic conventions. It represents the name of the +// invoked function. func FaaSInvokedName(val string) attribute.KeyValue { return FaaSInvokedNameKey.String(val) } -// FaaSInvokedRegion returns an attribute KeyValue conforming to the "faas.invoked_region" semantic conventions. It represents the cloud region of the invoked function. +// FaaSInvokedRegion returns an attribute KeyValue conforming to the +// "faas.invoked_region" semantic conventions. It represents the cloud region of +// the invoked function. func FaaSInvokedRegion(val string) attribute.KeyValue { return FaaSInvokedRegionKey.String(val) } -// FaaSMaxMemory returns an attribute KeyValue conforming to the "faas.max_memory" semantic conventions. It represents the amount of memory available to the serverless function converted to Bytes. +// FaaSMaxMemory returns an attribute KeyValue conforming to the +// "faas.max_memory" semantic conventions. It represents the amount of memory +// available to the serverless function converted to Bytes. func FaaSMaxMemory(val int) attribute.KeyValue { return FaaSMaxMemoryKey.Int(val) } -// FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic conventions. It represents the name of the single function that this runtime instance executes. +// FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic +// conventions. It represents the name of the single function that this runtime +// instance executes. func FaaSName(val string) attribute.KeyValue { return FaaSNameKey.String(val) } -// FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic conventions. It represents a string containing the function invocation time in the [ISO 8601] format expressed in [UTC]. -// +// FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic +// conventions. It represents a string containing the function invocation time in +// the [ISO 8601] format expressed in [UTC]. +// // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html // [UTC]: https://www.w3.org/TR/NOTE-datetime func FaaSTime(val string) attribute.KeyValue { return FaaSTimeKey.String(val) } -// FaaSVersion returns an attribute KeyValue conforming to the "faas.version" semantic conventions. It represents the immutable version of the function being executed. +// FaaSVersion returns an attribute KeyValue conforming to the "faas.version" +// semantic conventions. It represents the immutable version of the function +// being executed. func FaaSVersion(val string) attribute.KeyValue { return FaaSVersionKey.String(val) } @@ -3158,457 +4029,587 @@ func FaaSVersion(val string) attribute.KeyValue { // Enum values for faas.document.operation var ( // When a new object is created. - // Stability: experimental + // Stability: development FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert") // When an object is modified. - // Stability: experimental + // Stability: development FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit") // When an object is deleted. - // Stability: experimental + // Stability: development FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete") ) // Enum values for faas.invoked_provider var ( // Alibaba Cloud - // Stability: experimental + // Stability: development FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud") // Amazon Web Services - // Stability: experimental + // Stability: development FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws") // Microsoft Azure - // Stability: experimental + // Stability: development FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure") // Google Cloud Platform - // Stability: experimental + // Stability: development FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp") // Tencent Cloud - // Stability: experimental + // Stability: development FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud") ) // Enum values for faas.trigger var ( - // A response to some data source operation such as a database or filesystem read/write - // Stability: experimental + // A response to some data source operation such as a database or filesystem + // read/write + // Stability: development FaaSTriggerDatasource = FaaSTriggerKey.String("datasource") // To provide an answer to an inbound HTTP request - // Stability: experimental + // Stability: development FaaSTriggerHTTP = FaaSTriggerKey.String("http") // A function is set to be executed when messages are sent to a messaging system - // Stability: experimental + // Stability: development FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub") // A function is scheduled to be executed regularly - // Stability: experimental + // Stability: development FaaSTriggerTimer = FaaSTriggerKey.String("timer") // If none of the others apply - // Stability: experimental + // Stability: development FaaSTriggerOther = FaaSTriggerKey.String("other") ) // Namespace: feature_flag const ( - // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key" semantic conventions. It represents the unique identifier of the feature flag. - // + // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key" + // semantic conventions. It represents the unique identifier of the feature + // flag. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "logo-color" FeatureFlagKeyKey = attribute.Key("feature_flag.key") - // FeatureFlagProviderNameKey is the attribute Key conforming to the "feature_flag.provider_name" semantic conventions. It represents the name of the service provider that performs the flag evaluation. - // + // FeatureFlagProviderNameKey is the attribute Key conforming to the + // "feature_flag.provider_name" semantic conventions. It represents the name of + // the service provider that performs the flag evaluation. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Flag Manager" FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name") - // FeatureFlagVariantKey is the attribute Key conforming to the "feature_flag.variant" semantic conventions. It represents the sHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. - // + // FeatureFlagVariantKey is the attribute Key conforming to the + // "feature_flag.variant" semantic conventions. It represents the sHOULD be a + // semantic identifier for a value. If one is unavailable, a stringified version + // of the value can be used. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "red", "true", "on" - // Note: A semantic identifier, commonly referred to as a variant, provides a means + // Note: A semantic identifier, commonly referred to as a variant, provides a + // means // for referring to a value without including the value itself. This can // provide additional context for understanding the meaning behind a value. // For example, the variant `red` maybe be used for the value `#c05543`. - // + // // A stringified version of the value can be used in situations where a // semantic identifier is unavailable. String representation of the value // should be determined by the implementer. FeatureFlagVariantKey = attribute.Key("feature_flag.variant") ) -// FeatureFlagKey returns an attribute KeyValue conforming to the "feature_flag.key" semantic conventions. It represents the unique identifier of the feature flag. +// FeatureFlagKey returns an attribute KeyValue conforming to the +// "feature_flag.key" semantic conventions. It represents the unique identifier +// of the feature flag. func FeatureFlagKey(val string) attribute.KeyValue { return FeatureFlagKeyKey.String(val) } -// FeatureFlagProviderName returns an attribute KeyValue conforming to the "feature_flag.provider_name" semantic conventions. It represents the name of the service provider that performs the flag evaluation. +// FeatureFlagProviderName returns an attribute KeyValue conforming to the +// "feature_flag.provider_name" semantic conventions. It represents the name of +// the service provider that performs the flag evaluation. func FeatureFlagProviderName(val string) attribute.KeyValue { return FeatureFlagProviderNameKey.String(val) } -// FeatureFlagVariant returns an attribute KeyValue conforming to the "feature_flag.variant" semantic conventions. It represents the sHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. +// FeatureFlagVariant returns an attribute KeyValue conforming to the +// "feature_flag.variant" semantic conventions. It represents the sHOULD be a +// semantic identifier for a value. If one is unavailable, a stringified version +// of the value can be used. func FeatureFlagVariant(val string) attribute.KeyValue { return FeatureFlagVariantKey.String(val) } // Namespace: file const ( - // FileAccessedKey is the attribute Key conforming to the "file.accessed" semantic conventions. It represents the time when the file was last accessed, in ISO 8601 format. - // + // FileAccessedKey is the attribute Key conforming to the "file.accessed" + // semantic conventions. It represents the time when the file was last accessed, + // in ISO 8601 format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T12:00:00Z" - // Note: This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + // Note: This attribute might not be supported by some file systems — NFS, + // FAT32, in embedded OS, etc. FileAccessedKey = attribute.Key("file.accessed") - // FileAttributesKey is the attribute Key conforming to the "file.attributes" semantic conventions. It represents the array of file attributes. - // + // FileAttributesKey is the attribute Key conforming to the "file.attributes" + // semantic conventions. It represents the array of file attributes. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "readonly", "hidden" - // Note: Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this attribute: `archive`, `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, `write`. + // Note: Attributes names depend on the OS or file system. Here’s a + // non-exhaustive list of values expected for this attribute: `archive`, + // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, + // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, + // `write`. FileAttributesKey = attribute.Key("file.attributes") - // FileChangedKey is the attribute Key conforming to the "file.changed" semantic conventions. It represents the time when the file attributes or metadata was last changed, in ISO 8601 format. - // + // FileChangedKey is the attribute Key conforming to the "file.changed" semantic + // conventions. It represents the time when the file attributes or metadata was + // last changed, in ISO 8601 format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T12:00:00Z" - // Note: `file.changed` captures the time when any of the file's properties or attributes (including the content) are changed, while `file.modified` captures the timestamp when the file content is modified. + // Note: `file.changed` captures the time when any of the file's properties or + // attributes (including the content) are changed, while `file.modified` + // captures the timestamp when the file content is modified. FileChangedKey = attribute.Key("file.changed") - // FileCreatedKey is the attribute Key conforming to the "file.created" semantic conventions. It represents the time when the file was created, in ISO 8601 format. - // + // FileCreatedKey is the attribute Key conforming to the "file.created" semantic + // conventions. It represents the time when the file was created, in ISO 8601 + // format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T12:00:00Z" - // Note: This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + // Note: This attribute might not be supported by some file systems — NFS, + // FAT32, in embedded OS, etc. FileCreatedKey = attribute.Key("file.created") - // FileDirectoryKey is the attribute Key conforming to the "file.directory" semantic conventions. It represents the directory where the file is located. It should include the drive letter, when appropriate. - // + // FileDirectoryKey is the attribute Key conforming to the "file.directory" + // semantic conventions. It represents the directory where the file is located. + // It should include the drive letter, when appropriate. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/home/user", "C:\Program Files\MyApp" FileDirectoryKey = attribute.Key("file.directory") - // FileExtensionKey is the attribute Key conforming to the "file.extension" semantic conventions. It represents the file extension, excluding the leading dot. - // + // FileExtensionKey is the attribute Key conforming to the "file.extension" + // semantic conventions. It represents the file extension, excluding the leading + // dot. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "png", "gz" - // Note: When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). + // Note: When the file name has multiple extensions (example.tar.gz), only the + // last one should be captured ("gz", not "tar.gz"). FileExtensionKey = attribute.Key("file.extension") - // FileForkNameKey is the attribute Key conforming to the "file.fork_name" semantic conventions. It represents the name of the fork. A fork is additional data associated with a filesystem object. - // + // FileForkNameKey is the attribute Key conforming to the "file.fork_name" + // semantic conventions. It represents the name of the fork. A fork is + // additional data associated with a filesystem object. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Zone.Identifer" - // Note: On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at least one fork for the data portion, and additional forks may exist. - // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet. An ADS is typically of the form: C:\path\to\filename.extension:some_fork_name, and some_fork_name is the value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension` should populate `file.extension`. The full path, `file.path`, will include the fork name. + // Note: On Linux, a resource fork is used to store additional data with a + // filesystem object. A file always has at least one fork for the data portion, + // and additional forks may exist. + // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default + // data stream for a file is just called $DATA. Zone.Identifier is commonly used + // by Windows to track contents downloaded from the Internet. An ADS is + // typically of the form: C:\path\to\filename.extension:some_fork_name, and + // some_fork_name is the value that should populate `fork_name`. + // `filename.extension` should populate `file.name`, and `extension` should + // populate `file.extension`. The full path, `file.path`, will include the fork + // name. FileForkNameKey = attribute.Key("file.fork_name") - // FileGroupIDKey is the attribute Key conforming to the "file.group.id" semantic conventions. It represents the primary Group ID (GID) of the file. - // + // FileGroupIDKey is the attribute Key conforming to the "file.group.id" + // semantic conventions. It represents the primary Group ID (GID) of the file. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1000" FileGroupIDKey = attribute.Key("file.group.id") - // FileGroupNameKey is the attribute Key conforming to the "file.group.name" semantic conventions. It represents the primary group name of the file. - // + // FileGroupNameKey is the attribute Key conforming to the "file.group.name" + // semantic conventions. It represents the primary group name of the file. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "users" FileGroupNameKey = attribute.Key("file.group.name") - // FileInodeKey is the attribute Key conforming to the "file.inode" semantic conventions. It represents the inode representing the file in the filesystem. - // + // FileInodeKey is the attribute Key conforming to the "file.inode" semantic + // conventions. It represents the inode representing the file in the filesystem. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "256383" FileInodeKey = attribute.Key("file.inode") - // FileModeKey is the attribute Key conforming to the "file.mode" semantic conventions. It represents the mode of the file in octal representation. - // + // FileModeKey is the attribute Key conforming to the "file.mode" semantic + // conventions. It represents the mode of the file in octal representation. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0640" FileModeKey = attribute.Key("file.mode") - // FileModifiedKey is the attribute Key conforming to the "file.modified" semantic conventions. It represents the time when the file content was last modified, in ISO 8601 format. - // + // FileModifiedKey is the attribute Key conforming to the "file.modified" + // semantic conventions. It represents the time when the file content was last + // modified, in ISO 8601 format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T12:00:00Z" FileModifiedKey = attribute.Key("file.modified") - // FileNameKey is the attribute Key conforming to the "file.name" semantic conventions. It represents the name of the file including the extension, without the directory. - // + // FileNameKey is the attribute Key conforming to the "file.name" semantic + // conventions. It represents the name of the file including the extension, + // without the directory. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "example.png" FileNameKey = attribute.Key("file.name") - // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id" semantic conventions. It represents the user ID (UID) or security identifier (SID) of the file owner. - // + // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id" + // semantic conventions. It represents the user ID (UID) or security identifier + // (SID) of the file owner. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1000" FileOwnerIDKey = attribute.Key("file.owner.id") - // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name" semantic conventions. It represents the username of the file owner. - // + // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name" + // semantic conventions. It represents the username of the file owner. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "root" FileOwnerNameKey = attribute.Key("file.owner.name") - // FilePathKey is the attribute Key conforming to the "file.path" semantic conventions. It represents the full path to the file, including the file name. It should include the drive letter, when appropriate. - // + // FilePathKey is the attribute Key conforming to the "file.path" semantic + // conventions. It represents the full path to the file, including the file + // name. It should include the drive letter, when appropriate. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe" FilePathKey = attribute.Key("file.path") - // FileSizeKey is the attribute Key conforming to the "file.size" semantic conventions. It represents the file size in bytes. - // + // FileSizeKey is the attribute Key conforming to the "file.size" semantic + // conventions. It represents the file size in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: FileSizeKey = attribute.Key("file.size") - // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the "file.symbolic_link.target_path" semantic conventions. It represents the path to the target of a symbolic link. - // + // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the + // "file.symbolic_link.target_path" semantic conventions. It represents the path + // to the target of a symbolic link. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/usr/bin/python3" // Note: This attribute is only applicable to symbolic links. FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path") ) -// FileAccessed returns an attribute KeyValue conforming to the "file.accessed" semantic conventions. It represents the time when the file was last accessed, in ISO 8601 format. +// FileAccessed returns an attribute KeyValue conforming to the "file.accessed" +// semantic conventions. It represents the time when the file was last accessed, +// in ISO 8601 format. func FileAccessed(val string) attribute.KeyValue { return FileAccessedKey.String(val) } -// FileAttributes returns an attribute KeyValue conforming to the "file.attributes" semantic conventions. It represents the array of file attributes. +// FileAttributes returns an attribute KeyValue conforming to the +// "file.attributes" semantic conventions. It represents the array of file +// attributes. func FileAttributes(val ...string) attribute.KeyValue { return FileAttributesKey.StringSlice(val) } -// FileChanged returns an attribute KeyValue conforming to the "file.changed" semantic conventions. It represents the time when the file attributes or metadata was last changed, in ISO 8601 format. +// FileChanged returns an attribute KeyValue conforming to the "file.changed" +// semantic conventions. It represents the time when the file attributes or +// metadata was last changed, in ISO 8601 format. func FileChanged(val string) attribute.KeyValue { return FileChangedKey.String(val) } -// FileCreated returns an attribute KeyValue conforming to the "file.created" semantic conventions. It represents the time when the file was created, in ISO 8601 format. +// FileCreated returns an attribute KeyValue conforming to the "file.created" +// semantic conventions. It represents the time when the file was created, in ISO +// 8601 format. func FileCreated(val string) attribute.KeyValue { return FileCreatedKey.String(val) } -// FileDirectory returns an attribute KeyValue conforming to the "file.directory" semantic conventions. It represents the directory where the file is located. It should include the drive letter, when appropriate. +// FileDirectory returns an attribute KeyValue conforming to the "file.directory" +// semantic conventions. It represents the directory where the file is located. +// It should include the drive letter, when appropriate. func FileDirectory(val string) attribute.KeyValue { return FileDirectoryKey.String(val) } -// FileExtension returns an attribute KeyValue conforming to the "file.extension" semantic conventions. It represents the file extension, excluding the leading dot. +// FileExtension returns an attribute KeyValue conforming to the "file.extension" +// semantic conventions. It represents the file extension, excluding the leading +// dot. func FileExtension(val string) attribute.KeyValue { return FileExtensionKey.String(val) } -// FileForkName returns an attribute KeyValue conforming to the "file.fork_name" semantic conventions. It represents the name of the fork. A fork is additional data associated with a filesystem object. +// FileForkName returns an attribute KeyValue conforming to the "file.fork_name" +// semantic conventions. It represents the name of the fork. A fork is additional +// data associated with a filesystem object. func FileForkName(val string) attribute.KeyValue { return FileForkNameKey.String(val) } -// FileGroupID returns an attribute KeyValue conforming to the "file.group.id" semantic conventions. It represents the primary Group ID (GID) of the file. +// FileGroupID returns an attribute KeyValue conforming to the "file.group.id" +// semantic conventions. It represents the primary Group ID (GID) of the file. func FileGroupID(val string) attribute.KeyValue { return FileGroupIDKey.String(val) } -// FileGroupName returns an attribute KeyValue conforming to the "file.group.name" semantic conventions. It represents the primary group name of the file. +// FileGroupName returns an attribute KeyValue conforming to the +// "file.group.name" semantic conventions. It represents the primary group name +// of the file. func FileGroupName(val string) attribute.KeyValue { return FileGroupNameKey.String(val) } -// FileInode returns an attribute KeyValue conforming to the "file.inode" semantic conventions. It represents the inode representing the file in the filesystem. +// FileInode returns an attribute KeyValue conforming to the "file.inode" +// semantic conventions. It represents the inode representing the file in the +// filesystem. func FileInode(val string) attribute.KeyValue { return FileInodeKey.String(val) } -// FileMode returns an attribute KeyValue conforming to the "file.mode" semantic conventions. It represents the mode of the file in octal representation. +// FileMode returns an attribute KeyValue conforming to the "file.mode" semantic +// conventions. It represents the mode of the file in octal representation. func FileMode(val string) attribute.KeyValue { return FileModeKey.String(val) } -// FileModified returns an attribute KeyValue conforming to the "file.modified" semantic conventions. It represents the time when the file content was last modified, in ISO 8601 format. +// FileModified returns an attribute KeyValue conforming to the "file.modified" +// semantic conventions. It represents the time when the file content was last +// modified, in ISO 8601 format. func FileModified(val string) attribute.KeyValue { return FileModifiedKey.String(val) } -// FileName returns an attribute KeyValue conforming to the "file.name" semantic conventions. It represents the name of the file including the extension, without the directory. +// FileName returns an attribute KeyValue conforming to the "file.name" semantic +// conventions. It represents the name of the file including the extension, +// without the directory. func FileName(val string) attribute.KeyValue { return FileNameKey.String(val) } -// FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id" semantic conventions. It represents the user ID (UID) or security identifier (SID) of the file owner. +// FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id" +// semantic conventions. It represents the user ID (UID) or security identifier +// (SID) of the file owner. func FileOwnerID(val string) attribute.KeyValue { return FileOwnerIDKey.String(val) } -// FileOwnerName returns an attribute KeyValue conforming to the "file.owner.name" semantic conventions. It represents the username of the file owner. +// FileOwnerName returns an attribute KeyValue conforming to the +// "file.owner.name" semantic conventions. It represents the username of the file +// owner. func FileOwnerName(val string) attribute.KeyValue { return FileOwnerNameKey.String(val) } -// FilePath returns an attribute KeyValue conforming to the "file.path" semantic conventions. It represents the full path to the file, including the file name. It should include the drive letter, when appropriate. +// FilePath returns an attribute KeyValue conforming to the "file.path" semantic +// conventions. It represents the full path to the file, including the file name. +// It should include the drive letter, when appropriate. func FilePath(val string) attribute.KeyValue { return FilePathKey.String(val) } -// FileSize returns an attribute KeyValue conforming to the "file.size" semantic conventions. It represents the file size in bytes. +// FileSize returns an attribute KeyValue conforming to the "file.size" semantic +// conventions. It represents the file size in bytes. func FileSize(val int) attribute.KeyValue { return FileSizeKey.Int(val) } -// FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the "file.symbolic_link.target_path" semantic conventions. It represents the path to the target of a symbolic link. +// FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the +// "file.symbolic_link.target_path" semantic conventions. It represents the path +// to the target of a symbolic link. func FileSymbolicLinkTargetPath(val string) attribute.KeyValue { return FileSymbolicLinkTargetPathKey.String(val) } // Namespace: gcp const ( - // GCPClientServiceKey is the attribute Key conforming to the "gcp.client.service" semantic conventions. It represents the identifies the Google Cloud service for which the official client library is intended. - // + // GCPClientServiceKey is the attribute Key conforming to the + // "gcp.client.service" semantic conventions. It represents the identifies the + // Google Cloud service for which the official client library is intended. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "appengine", "run", "firestore", "alloydb", "spanner" - // Note: Intended to be a stable identifier for Google Cloud client libraries that is uniform across implementation languages. The value should be derived from the canonical service domain for the service; for example, 'foo.googleapis.com' should result in a value of 'foo'. + // Note: Intended to be a stable identifier for Google Cloud client libraries + // that is uniform across implementation languages. The value should be derived + // from the canonical service domain for the service; for example, + // 'foo.googleapis.com' should result in a value of 'foo'. GCPClientServiceKey = attribute.Key("gcp.client.service") - // GCPCloudRunJobExecutionKey is the attribute Key conforming to the "gcp.cloud_run.job.execution" semantic conventions. It represents the name of the Cloud Run [execution] being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`] environment variable. - // + // GCPCloudRunJobExecutionKey is the attribute Key conforming to the + // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of + // the Cloud Run [execution] being run for the Job, as set by the + // [`CLOUD_RUN_EXECUTION`] environment variable. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "job-name-xxxx", "sample-job-mdw84" - // + // // [execution]: https://cloud.google.com/run/docs/managing/job-executions // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution") - // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the "gcp.cloud_run.job.task_index" semantic conventions. It represents the index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] environment variable. - // + // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the + // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index + // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] + // environment variable. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0, 1 - // + // // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index") - // GCPGceInstanceHostnameKey is the attribute Key conforming to the "gcp.gce.instance.hostname" semantic conventions. It represents the hostname of a GCE instance. This is the full value of the default or [custom hostname]. - // + // GCPGceInstanceHostnameKey is the attribute Key conforming to the + // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname + // of a GCE instance. This is the full value of the default or [custom hostname] + // . + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "my-host1234.example.com", "sample-vm.us-west1-b.c.my-project.internal" - // + // Stability: Development + // + // Examples: "my-host1234.example.com", + // "sample-vm.us-west1-b.c.my-project.internal" + // // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm GCPGceInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname") - // GCPGceInstanceNameKey is the attribute Key conforming to the "gcp.gce.instance.name" semantic conventions. It represents the instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name]. - // + // GCPGceInstanceNameKey is the attribute Key conforming to the + // "gcp.gce.instance.name" semantic conventions. It represents the instance name + // of a GCE instance. This is the value provided by `host.name`, the visible + // name of the instance in the Cloud Console UI, and the prefix for the default + // hostname of the instance as defined by the [default internal DNS name]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "instance-1", "my-vm-name" - // + // // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names GCPGceInstanceNameKey = attribute.Key("gcp.gce.instance.name") ) -// GCPClientService returns an attribute KeyValue conforming to the "gcp.client.service" semantic conventions. It represents the identifies the Google Cloud service for which the official client library is intended. +// GCPClientService returns an attribute KeyValue conforming to the +// "gcp.client.service" semantic conventions. It represents the identifies the +// Google Cloud service for which the official client library is intended. func GCPClientService(val string) attribute.KeyValue { return GCPClientServiceKey.String(val) } -// GCPCloudRunJobExecution returns an attribute KeyValue conforming to the "gcp.cloud_run.job.execution" semantic conventions. It represents the name of the Cloud Run [execution] being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`] environment variable. -// +// GCPCloudRunJobExecution returns an attribute KeyValue conforming to the +// "gcp.cloud_run.job.execution" semantic conventions. It represents the name of +// the Cloud Run [execution] being run for the Job, as set by the +// [`CLOUD_RUN_EXECUTION`] environment variable. +// // [execution]: https://cloud.google.com/run/docs/managing/job-executions // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars func GCPCloudRunJobExecution(val string) attribute.KeyValue { return GCPCloudRunJobExecutionKey.String(val) } -// GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the "gcp.cloud_run.job.task_index" semantic conventions. It represents the index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] environment variable. -// +// GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the +// "gcp.cloud_run.job.task_index" semantic conventions. It represents the index +// for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`] +// environment variable. +// // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue { return GCPCloudRunJobTaskIndexKey.Int(val) } -// GCPGceInstanceHostname returns an attribute KeyValue conforming to the "gcp.gce.instance.hostname" semantic conventions. It represents the hostname of a GCE instance. This is the full value of the default or [custom hostname]. -// +// GCPGceInstanceHostname returns an attribute KeyValue conforming to the +// "gcp.gce.instance.hostname" semantic conventions. It represents the hostname +// of a GCE instance. This is the full value of the default or [custom hostname] +// . +// // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm func GCPGceInstanceHostname(val string) attribute.KeyValue { return GCPGceInstanceHostnameKey.String(val) } -// GCPGceInstanceName returns an attribute KeyValue conforming to the "gcp.gce.instance.name" semantic conventions. It represents the instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name]. -// +// GCPGceInstanceName returns an attribute KeyValue conforming to the +// "gcp.gce.instance.name" semantic conventions. It represents the instance name +// of a GCE instance. This is the value provided by `host.name`, the visible name +// of the instance in the Cloud Console UI, and the prefix for the default +// hostname of the instance as defined by the [default internal DNS name]. +// // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names func GCPGceInstanceName(val string) attribute.KeyValue { return GCPGceInstanceNameKey.String(val) @@ -3616,268 +4617,346 @@ func GCPGceInstanceName(val string) attribute.KeyValue { // Namespace: gen_ai const ( - // GenAIOpenaiRequestResponseFormatKey is the attribute Key conforming to the "gen_ai.openai.request.response_format" semantic conventions. It represents the response format that is requested. - // + // GenAIOpenaiRequestResponseFormatKey is the attribute Key conforming to the + // "gen_ai.openai.request.response_format" semantic conventions. It represents + // the response format that is requested. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "json" GenAIOpenaiRequestResponseFormatKey = attribute.Key("gen_ai.openai.request.response_format") - // GenAIOpenaiRequestSeedKey is the attribute Key conforming to the "gen_ai.openai.request.seed" semantic conventions. It represents the requests with same seed value more likely to return same result. - // + // GenAIOpenaiRequestSeedKey is the attribute Key conforming to the + // "gen_ai.openai.request.seed" semantic conventions. It represents the requests + // with same seed value more likely to return same result. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 100 GenAIOpenaiRequestSeedKey = attribute.Key("gen_ai.openai.request.seed") - // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the "gen_ai.openai.request.service_tier" semantic conventions. It represents the service tier requested. May be a specific tier, detault, or auto. - // + // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the + // "gen_ai.openai.request.service_tier" semantic conventions. It represents the + // service tier requested. May be a specific tier, detault, or auto. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "auto", "default" GenAIOpenaiRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier") - // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the "gen_ai.openai.response.service_tier" semantic conventions. It represents the service tier used for the response. - // + // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the + // "gen_ai.openai.response.service_tier" semantic conventions. It represents the + // service tier used for the response. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "scale", "detault" GenAIOpenaiResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier") - // GenAIOperationNameKey is the attribute Key conforming to the "gen_ai.operation.name" semantic conventions. It represents the name of the operation being performed. - // + // GenAIOperationNameKey is the attribute Key conforming to the + // "gen_ai.operation.name" semantic conventions. It represents the name of the + // operation being performed. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: If one of the predefined values applies, but specific system uses a different name it's RECOMMENDED to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries SHOULD use applicable predefined value. + // Note: If one of the predefined values applies, but specific system uses a + // different name it's RECOMMENDED to document it in the semantic conventions + // for specific GenAI system and use system-specific name in the + // instrumentation. If a different name is not documented, instrumentation + // libraries SHOULD use applicable predefined value. GenAIOperationNameKey = attribute.Key("gen_ai.operation.name") - // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the "gen_ai.request.frequency_penalty" semantic conventions. It represents the frequency penalty setting for the GenAI request. - // + // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the + // "gen_ai.request.frequency_penalty" semantic conventions. It represents the + // frequency penalty setting for the GenAI request. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0.1 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty") - // GenAIRequestMaxTokensKey is the attribute Key conforming to the "gen_ai.request.max_tokens" semantic conventions. It represents the maximum number of tokens the model generates for a request. - // + // GenAIRequestMaxTokensKey is the attribute Key conforming to the + // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum + // number of tokens the model generates for a request. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 100 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens") - // GenAIRequestModelKey is the attribute Key conforming to the "gen_ai.request.model" semantic conventions. It represents the name of the GenAI model a request is being made to. - // + // GenAIRequestModelKey is the attribute Key conforming to the + // "gen_ai.request.model" semantic conventions. It represents the name of the + // GenAI model a request is being made to. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: gpt-4 GenAIRequestModelKey = attribute.Key("gen_ai.request.model") - // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the "gen_ai.request.presence_penalty" semantic conventions. It represents the presence penalty setting for the GenAI request. - // + // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the + // "gen_ai.request.presence_penalty" semantic conventions. It represents the + // presence penalty setting for the GenAI request. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0.1 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty") - // GenAIRequestStopSequencesKey is the attribute Key conforming to the "gen_ai.request.stop_sequences" semantic conventions. It represents the list of sequences that the model will use to stop generating further tokens. - // + // GenAIRequestStopSequencesKey is the attribute Key conforming to the + // "gen_ai.request.stop_sequences" semantic conventions. It represents the list + // of sequences that the model will use to stop generating further tokens. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "forest", "lived" GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences") - // GenAIRequestTemperatureKey is the attribute Key conforming to the "gen_ai.request.temperature" semantic conventions. It represents the temperature setting for the GenAI request. - // + // GenAIRequestTemperatureKey is the attribute Key conforming to the + // "gen_ai.request.temperature" semantic conventions. It represents the + // temperature setting for the GenAI request. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0.0 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature") - // GenAIRequestTopKKey is the attribute Key conforming to the "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling setting for the GenAI request. - // + // GenAIRequestTopKKey is the attribute Key conforming to the + // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling + // setting for the GenAI request. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1.0 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k") - // GenAIRequestTopPKey is the attribute Key conforming to the "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling setting for the GenAI request. - // + // GenAIRequestTopPKey is the attribute Key conforming to the + // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling + // setting for the GenAI request. + // // Type: double // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1.0 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p") - // GenAIResponseFinishReasonsKey is the attribute Key conforming to the "gen_ai.response.finish_reasons" semantic conventions. It represents the array of reasons the model stopped generating tokens, corresponding to each generation received. - // + // GenAIResponseFinishReasonsKey is the attribute Key conforming to the + // "gen_ai.response.finish_reasons" semantic conventions. It represents the + // array of reasons the model stopped generating tokens, corresponding to each + // generation received. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "stop"], ["stop", "length" GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons") - // GenAIResponseIDKey is the attribute Key conforming to the "gen_ai.response.id" semantic conventions. It represents the unique identifier for the completion. - // + // GenAIResponseIDKey is the attribute Key conforming to the + // "gen_ai.response.id" semantic conventions. It represents the unique + // identifier for the completion. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "chatcmpl-123" GenAIResponseIDKey = attribute.Key("gen_ai.response.id") - // GenAIResponseModelKey is the attribute Key conforming to the "gen_ai.response.model" semantic conventions. It represents the name of the model that generated the response. - // + // GenAIResponseModelKey is the attribute Key conforming to the + // "gen_ai.response.model" semantic conventions. It represents the name of the + // model that generated the response. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "gpt-4-0613" GenAIResponseModelKey = attribute.Key("gen_ai.response.model") - // GenAISystemKey is the attribute Key conforming to the "gen_ai.system" semantic conventions. It represents the Generative AI product as identified by the client or server instrumentation. - // + // GenAISystemKey is the attribute Key conforming to the "gen_ai.system" + // semantic conventions. It represents the Generative AI product as identified + // by the client or server instrumentation. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: openai - // Note: The `gen_ai.system` describes a family of GenAI models with specific model identified + // Note: The `gen_ai.system` describes a family of GenAI models with specific + // model identified // by `gen_ai.request.model` and `gen_ai.response.model` attributes. - // + // // The actual GenAI product may differ from the one identified by the client. - // For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` + // For example, when using OpenAI client libraries to communicate with Mistral, + // the `gen_ai.system` // is set to `openai` based on the instrumentation's best knowledge. - // + // // For custom model, a custom friendly name SHOULD be used. - // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`. + // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER` + // . GenAISystemKey = attribute.Key("gen_ai.system") - // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type" semantic conventions. It represents the type of token being counted. - // + // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type" + // semantic conventions. It represents the type of token being counted. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "input", "output" GenAITokenTypeKey = attribute.Key("gen_ai.token.type") - // GenAIUsageInputTokensKey is the attribute Key conforming to the "gen_ai.usage.input_tokens" semantic conventions. It represents the number of tokens used in the GenAI input (prompt). - // + // GenAIUsageInputTokensKey is the attribute Key conforming to the + // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of + // tokens used in the GenAI input (prompt). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 100 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens") - // GenAIUsageOutputTokensKey is the attribute Key conforming to the "gen_ai.usage.output_tokens" semantic conventions. It represents the number of tokens used in the GenAI response (completion). - // + // GenAIUsageOutputTokensKey is the attribute Key conforming to the + // "gen_ai.usage.output_tokens" semantic conventions. It represents the number + // of tokens used in the GenAI response (completion). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 180 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens") ) -// GenAIOpenaiRequestSeed returns an attribute KeyValue conforming to the "gen_ai.openai.request.seed" semantic conventions. It represents the requests with same seed value more likely to return same result. +// GenAIOpenaiRequestSeed returns an attribute KeyValue conforming to the +// "gen_ai.openai.request.seed" semantic conventions. It represents the requests +// with same seed value more likely to return same result. func GenAIOpenaiRequestSeed(val int) attribute.KeyValue { return GenAIOpenaiRequestSeedKey.Int(val) } -// GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the "gen_ai.openai.response.service_tier" semantic conventions. It represents the service tier used for the response. +// GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the +// "gen_ai.openai.response.service_tier" semantic conventions. It represents the +// service tier used for the response. func GenAIOpenaiResponseServiceTier(val string) attribute.KeyValue { return GenAIOpenaiResponseServiceTierKey.String(val) } -// GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the "gen_ai.request.frequency_penalty" semantic conventions. It represents the frequency penalty setting for the GenAI request. +// GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the +// "gen_ai.request.frequency_penalty" semantic conventions. It represents the +// frequency penalty setting for the GenAI request. func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue { return GenAIRequestFrequencyPenaltyKey.Float64(val) } -// GenAIRequestMaxTokens returns an attribute KeyValue conforming to the "gen_ai.request.max_tokens" semantic conventions. It represents the maximum number of tokens the model generates for a request. +// GenAIRequestMaxTokens returns an attribute KeyValue conforming to the +// "gen_ai.request.max_tokens" semantic conventions. It represents the maximum +// number of tokens the model generates for a request. func GenAIRequestMaxTokens(val int) attribute.KeyValue { return GenAIRequestMaxTokensKey.Int(val) } -// GenAIRequestModel returns an attribute KeyValue conforming to the "gen_ai.request.model" semantic conventions. It represents the name of the GenAI model a request is being made to. +// GenAIRequestModel returns an attribute KeyValue conforming to the +// "gen_ai.request.model" semantic conventions. It represents the name of the +// GenAI model a request is being made to. func GenAIRequestModel(val string) attribute.KeyValue { return GenAIRequestModelKey.String(val) } -// GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the "gen_ai.request.presence_penalty" semantic conventions. It represents the presence penalty setting for the GenAI request. +// GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the +// "gen_ai.request.presence_penalty" semantic conventions. It represents the +// presence penalty setting for the GenAI request. func GenAIRequestPresencePenalty(val float64) attribute.KeyValue { return GenAIRequestPresencePenaltyKey.Float64(val) } -// GenAIRequestStopSequences returns an attribute KeyValue conforming to the "gen_ai.request.stop_sequences" semantic conventions. It represents the list of sequences that the model will use to stop generating further tokens. +// GenAIRequestStopSequences returns an attribute KeyValue conforming to the +// "gen_ai.request.stop_sequences" semantic conventions. It represents the list +// of sequences that the model will use to stop generating further tokens. func GenAIRequestStopSequences(val ...string) attribute.KeyValue { return GenAIRequestStopSequencesKey.StringSlice(val) } -// GenAIRequestTemperature returns an attribute KeyValue conforming to the "gen_ai.request.temperature" semantic conventions. It represents the temperature setting for the GenAI request. +// GenAIRequestTemperature returns an attribute KeyValue conforming to the +// "gen_ai.request.temperature" semantic conventions. It represents the +// temperature setting for the GenAI request. func GenAIRequestTemperature(val float64) attribute.KeyValue { return GenAIRequestTemperatureKey.Float64(val) } -// GenAIRequestTopK returns an attribute KeyValue conforming to the "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling setting for the GenAI request. +// GenAIRequestTopK returns an attribute KeyValue conforming to the +// "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling +// setting for the GenAI request. func GenAIRequestTopK(val float64) attribute.KeyValue { return GenAIRequestTopKKey.Float64(val) } -// GenAIRequestTopP returns an attribute KeyValue conforming to the "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling setting for the GenAI request. +// GenAIRequestTopP returns an attribute KeyValue conforming to the +// "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling +// setting for the GenAI request. func GenAIRequestTopP(val float64) attribute.KeyValue { return GenAIRequestTopPKey.Float64(val) } -// GenAIResponseFinishReasons returns an attribute KeyValue conforming to the "gen_ai.response.finish_reasons" semantic conventions. It represents the array of reasons the model stopped generating tokens, corresponding to each generation received. +// GenAIResponseFinishReasons returns an attribute KeyValue conforming to the +// "gen_ai.response.finish_reasons" semantic conventions. It represents the array +// of reasons the model stopped generating tokens, corresponding to each +// generation received. func GenAIResponseFinishReasons(val ...string) attribute.KeyValue { return GenAIResponseFinishReasonsKey.StringSlice(val) } -// GenAIResponseID returns an attribute KeyValue conforming to the "gen_ai.response.id" semantic conventions. It represents the unique identifier for the completion. +// GenAIResponseID returns an attribute KeyValue conforming to the +// "gen_ai.response.id" semantic conventions. It represents the unique identifier +// for the completion. func GenAIResponseID(val string) attribute.KeyValue { return GenAIResponseIDKey.String(val) } -// GenAIResponseModel returns an attribute KeyValue conforming to the "gen_ai.response.model" semantic conventions. It represents the name of the model that generated the response. +// GenAIResponseModel returns an attribute KeyValue conforming to the +// "gen_ai.response.model" semantic conventions. It represents the name of the +// model that generated the response. func GenAIResponseModel(val string) attribute.KeyValue { return GenAIResponseModelKey.String(val) } -// GenAIUsageInputTokens returns an attribute KeyValue conforming to the "gen_ai.usage.input_tokens" semantic conventions. It represents the number of tokens used in the GenAI input (prompt). +// GenAIUsageInputTokens returns an attribute KeyValue conforming to the +// "gen_ai.usage.input_tokens" semantic conventions. It represents the number of +// tokens used in the GenAI input (prompt). func GenAIUsageInputTokens(val int) attribute.KeyValue { return GenAIUsageInputTokensKey.Int(val) } -// GenAIUsageOutputTokens returns an attribute KeyValue conforming to the "gen_ai.usage.output_tokens" semantic conventions. It represents the number of tokens used in the GenAI response (completion). +// GenAIUsageOutputTokens returns an attribute KeyValue conforming to the +// "gen_ai.usage.output_tokens" semantic conventions. It represents the number of +// tokens used in the GenAI response (completion). func GenAIUsageOutputTokens(val int) attribute.KeyValue { return GenAIUsageOutputTokensKey.Int(val) } @@ -3885,36 +4964,36 @@ func GenAIUsageOutputTokens(val int) attribute.KeyValue { // Enum values for gen_ai.openai.request.response_format var ( // Text response format - // Stability: experimental + // Stability: development GenAIOpenaiRequestResponseFormatText = GenAIOpenaiRequestResponseFormatKey.String("text") // JSON object response format - // Stability: experimental + // Stability: development GenAIOpenaiRequestResponseFormatJSONObject = GenAIOpenaiRequestResponseFormatKey.String("json_object") // JSON schema response format - // Stability: experimental + // Stability: development GenAIOpenaiRequestResponseFormatJSONSchema = GenAIOpenaiRequestResponseFormatKey.String("json_schema") ) // Enum values for gen_ai.openai.request.service_tier var ( // The system will utilize scale tier credits until they are exhausted. - // Stability: experimental + // Stability: development GenAIOpenaiRequestServiceTierAuto = GenAIOpenaiRequestServiceTierKey.String("auto") // The system will utilize the default scale tier. - // Stability: experimental + // Stability: development GenAIOpenaiRequestServiceTierDefault = GenAIOpenaiRequestServiceTierKey.String("default") ) // Enum values for gen_ai.operation.name var ( // Chat completion operation such as [OpenAI Chat API] - // Stability: experimental - // + // Stability: development + // // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat GenAIOperationNameChat = GenAIOperationNameKey.String("chat") // Text completions operation such as [OpenAI Completions API (Legacy)] - // Stability: experimental - // + // Stability: development + // // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion") ) @@ -3922,88 +5001,100 @@ var ( // Enum values for gen_ai.system var ( // OpenAI - // Stability: experimental + // Stability: development GenAISystemOpenai = GenAISystemKey.String("openai") // Vertex AI - // Stability: experimental + // Stability: development GenAISystemVertexAI = GenAISystemKey.String("vertex_ai") // Anthropic - // Stability: experimental + // Stability: development GenAISystemAnthropic = GenAISystemKey.String("anthropic") // Cohere - // Stability: experimental + // Stability: development GenAISystemCohere = GenAISystemKey.String("cohere") ) // Enum values for gen_ai.token.type var ( // Input tokens (prompt, input, etc.) - // Stability: experimental + // Stability: development GenAITokenTypeInput = GenAITokenTypeKey.String("input") // Output tokens (completion, response, etc.) - // Stability: experimental + // Stability: development GenAITokenTypeCompletion = GenAITokenTypeKey.String("output") ) // Namespace: go const ( - // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type" semantic conventions. It represents the type of memory. - // + // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type" + // semantic conventions. It represents the type of memory. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "other", "stack" GoMemoryTypeKey = attribute.Key("go.memory.type") ) // Enum values for go.memory.type var ( - // Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. - // Stability: experimental + // Memory allocated from the heap that is reserved for stack space, whether or + // not it is currently in-use. + // Stability: development GoMemoryTypeStack = GoMemoryTypeKey.String("stack") - // Memory used by the Go runtime, excluding other categories of memory usage described in this enumeration. - // Stability: experimental + // Memory used by the Go runtime, excluding other categories of memory usage + // described in this enumeration. + // Stability: development GoMemoryTypeOther = GoMemoryTypeKey.String("other") ) // Namespace: graphql const ( - // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document" semantic conventions. It represents the GraphQL document being executed. - // + // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document" + // semantic conventions. It represents the GraphQL document being executed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: query findBookById { bookById(id: ?) { name } } // Note: The value may be sanitized to exclude sensitive information. GraphqlDocumentKey = attribute.Key("graphql.document") - // GraphqlOperationNameKey is the attribute Key conforming to the "graphql.operation.name" semantic conventions. It represents the name of the operation being executed. - // + // GraphqlOperationNameKey is the attribute Key conforming to the + // "graphql.operation.name" semantic conventions. It represents the name of the + // operation being executed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: findBookById GraphqlOperationNameKey = attribute.Key("graphql.operation.name") - // GraphqlOperationTypeKey is the attribute Key conforming to the "graphql.operation.type" semantic conventions. It represents the type of the operation being executed. - // + // GraphqlOperationTypeKey is the attribute Key conforming to the + // "graphql.operation.type" semantic conventions. It represents the type of the + // operation being executed. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "query", "mutation", "subscription" GraphqlOperationTypeKey = attribute.Key("graphql.operation.type") ) -// GraphqlDocument returns an attribute KeyValue conforming to the "graphql.document" semantic conventions. It represents the GraphQL document being executed. +// GraphqlDocument returns an attribute KeyValue conforming to the +// "graphql.document" semantic conventions. It represents the GraphQL document +// being executed. func GraphqlDocument(val string) attribute.KeyValue { return GraphqlDocumentKey.String(val) } -// GraphqlOperationName returns an attribute KeyValue conforming to the "graphql.operation.name" semantic conventions. It represents the name of the operation being executed. +// GraphqlOperationName returns an attribute KeyValue conforming to the +// "graphql.operation.name" semantic conventions. It represents the name of the +// operation being executed. func GraphqlOperationName(val string) attribute.KeyValue { return GraphqlOperationNameKey.String(val) } @@ -4011,278 +5102,358 @@ func GraphqlOperationName(val string) attribute.KeyValue { // Enum values for graphql.operation.type var ( // GraphQL query - // Stability: experimental + // Stability: development GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query") // GraphQL mutation - // Stability: experimental + // Stability: development GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation") // GraphQL subscription - // Stability: experimental + // Stability: development GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription") ) // Namespace: heroku const ( - // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id" semantic conventions. It represents the unique identifier for the application. - // + // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id" + // semantic conventions. It represents the unique identifier for the + // application. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da" HerokuAppIDKey = attribute.Key("heroku.app.id") - // HerokuReleaseCommitKey is the attribute Key conforming to the "heroku.release.commit" semantic conventions. It represents the commit hash for the current release. - // + // HerokuReleaseCommitKey is the attribute Key conforming to the + // "heroku.release.commit" semantic conventions. It represents the commit hash + // for the current release. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "e6134959463efd8966b20e75b913cafe3f5ec" HerokuReleaseCommitKey = attribute.Key("heroku.release.commit") - // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the "heroku.release.creation_timestamp" semantic conventions. It represents the time and date the release was created. - // + // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the + // "heroku.release.creation_timestamp" semantic conventions. It represents the + // time and date the release was created. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2022-10-23T18:00:42Z" HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp") ) -// HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id" semantic conventions. It represents the unique identifier for the application. +// HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id" +// semantic conventions. It represents the unique identifier for the application. func HerokuAppID(val string) attribute.KeyValue { return HerokuAppIDKey.String(val) } -// HerokuReleaseCommit returns an attribute KeyValue conforming to the "heroku.release.commit" semantic conventions. It represents the commit hash for the current release. +// HerokuReleaseCommit returns an attribute KeyValue conforming to the +// "heroku.release.commit" semantic conventions. It represents the commit hash +// for the current release. func HerokuReleaseCommit(val string) attribute.KeyValue { return HerokuReleaseCommitKey.String(val) } -// HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the "heroku.release.creation_timestamp" semantic conventions. It represents the time and date the release was created. +// HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the +// "heroku.release.creation_timestamp" semantic conventions. It represents the +// time and date the release was created. func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue { return HerokuReleaseCreationTimestampKey.String(val) } // Namespace: host const ( - // HostArchKey is the attribute Key conforming to the "host.arch" semantic conventions. It represents the CPU architecture the host system is running on. - // + // HostArchKey is the attribute Key conforming to the "host.arch" semantic + // conventions. It represents the CPU architecture the host system is running + // on. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: HostArchKey = attribute.Key("host.arch") - // HostCPUCacheL2SizeKey is the attribute Key conforming to the "host.cpu.cache.l2.size" semantic conventions. It represents the amount of level 2 memory cache available to the processor (in Bytes). - // + // HostCPUCacheL2SizeKey is the attribute Key conforming to the + // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of + // level 2 memory cache available to the processor (in Bytes). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 12288000 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size") - // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family" semantic conventions. It represents the family or generation of the CPU. - // + // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family" + // semantic conventions. It represents the family or generation of the CPU. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "6", "PA-RISC 1.1e" HostCPUFamilyKey = attribute.Key("host.cpu.family") - // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id" semantic conventions. It represents the model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. - // + // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id" + // semantic conventions. It represents the model identifier. It provides more + // granular information about the CPU, distinguishing it from other CPUs within + // the same family. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "6", "9000/778/B180L" HostCPUModelIDKey = attribute.Key("host.cpu.model.id") - // HostCPUModelNameKey is the attribute Key conforming to the "host.cpu.model.name" semantic conventions. It represents the model designation of the processor. - // + // HostCPUModelNameKey is the attribute Key conforming to the + // "host.cpu.model.name" semantic conventions. It represents the model + // designation of the processor. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz" HostCPUModelNameKey = attribute.Key("host.cpu.model.name") - // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping" semantic conventions. It represents the stepping or core revisions. - // + // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping" + // semantic conventions. It represents the stepping or core revisions. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1", "r1p1" HostCPUSteppingKey = attribute.Key("host.cpu.stepping") - // HostCPUVendorIDKey is the attribute Key conforming to the "host.cpu.vendor.id" semantic conventions. It represents the processor manufacturer identifier. A maximum 12-character string. - // + // HostCPUVendorIDKey is the attribute Key conforming to the + // "host.cpu.vendor.id" semantic conventions. It represents the processor + // manufacturer identifier. A maximum 12-character string. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "GenuineIntel" - // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX registers. Writing these to memory in this order results in a 12-character string. - // + // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX + // registers. Writing these to memory in this order results in a 12-character + // string. + // // [CPUID]: https://wiki.osdev.org/CPUID HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id") - // HostIDKey is the attribute Key conforming to the "host.id" semantic conventions. It represents the unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. - // + // HostIDKey is the attribute Key conforming to the "host.id" semantic + // conventions. It represents the unique host ID. For Cloud, this must be the + // instance_id assigned by the cloud provider. For non-containerized systems, + // this should be the `machine-id`. See the table below for the sources to use + // to determine the `machine-id` based on operating system. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "fdbf79e8af94cb7f9e8df36789187052" HostIDKey = attribute.Key("host.id") - // HostImageIDKey is the attribute Key conforming to the "host.image.id" semantic conventions. It represents the vM image ID or host OS image ID. For Cloud, this value is from the provider. - // + // HostImageIDKey is the attribute Key conforming to the "host.image.id" + // semantic conventions. It represents the vM image ID or host OS image ID. For + // Cloud, this value is from the provider. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "ami-07b06b442921831e5" HostImageIDKey = attribute.Key("host.image.id") - // HostImageNameKey is the attribute Key conforming to the "host.image.name" semantic conventions. It represents the name of the VM image or OS install the host was instantiated from. - // + // HostImageNameKey is the attribute Key conforming to the "host.image.name" + // semantic conventions. It represents the name of the VM image or OS install + // the host was instantiated from. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905" HostImageNameKey = attribute.Key("host.image.name") - // HostImageVersionKey is the attribute Key conforming to the "host.image.version" semantic conventions. It represents the version string of the VM image or host OS as defined in [Version Attributes]. - // + // HostImageVersionKey is the attribute Key conforming to the + // "host.image.version" semantic conventions. It represents the version string + // of the VM image or host OS as defined in [Version Attributes]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0.1" - // + // // [Version Attributes]: /docs/resource/README.md#version-attributes HostImageVersionKey = attribute.Key("host.image.version") - // HostIPKey is the attribute Key conforming to the "host.ip" semantic conventions. It represents the available IP addresses of the host, excluding loopback interfaces. - // + // HostIPKey is the attribute Key conforming to the "host.ip" semantic + // conventions. It represents the available IP addresses of the host, excluding + // loopback interfaces. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e" - // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses MUST be specified in the [RFC 5952] format. - // + // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 + // addresses MUST be specified in the [RFC 5952] format. + // // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html HostIPKey = attribute.Key("host.ip") - // HostMacKey is the attribute Key conforming to the "host.mac" semantic conventions. It represents the available MAC addresses of the host, excluding loopback interfaces. - // + // HostMacKey is the attribute Key conforming to the "host.mac" semantic + // conventions. It represents the available MAC addresses of the host, excluding + // loopback interfaces. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F" - // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as hyphen-separated octets in uppercase hexadecimal form from most to least significant. - // + // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as + // hyphen-separated octets in uppercase hexadecimal form from most to least + // significant. + // // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf HostMacKey = attribute.Key("host.mac") - // HostNameKey is the attribute Key conforming to the "host.name" semantic conventions. It represents the name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. - // + // HostNameKey is the attribute Key conforming to the "host.name" semantic + // conventions. It represents the name of the host. On Unix systems, it may + // contain what the hostname command returns, or the fully qualified hostname, + // or another name specified by the user. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry-test" HostNameKey = attribute.Key("host.name") - // HostTypeKey is the attribute Key conforming to the "host.type" semantic conventions. It represents the type of host. For Cloud, this must be the machine type. - // + // HostTypeKey is the attribute Key conforming to the "host.type" semantic + // conventions. It represents the type of host. For Cloud, this must be the + // machine type. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "n1-standard-1" HostTypeKey = attribute.Key("host.type") ) -// HostCPUCacheL2Size returns an attribute KeyValue conforming to the "host.cpu.cache.l2.size" semantic conventions. It represents the amount of level 2 memory cache available to the processor (in Bytes). +// HostCPUCacheL2Size returns an attribute KeyValue conforming to the +// "host.cpu.cache.l2.size" semantic conventions. It represents the amount of +// level 2 memory cache available to the processor (in Bytes). func HostCPUCacheL2Size(val int) attribute.KeyValue { return HostCPUCacheL2SizeKey.Int(val) } -// HostCPUFamily returns an attribute KeyValue conforming to the "host.cpu.family" semantic conventions. It represents the family or generation of the CPU. +// HostCPUFamily returns an attribute KeyValue conforming to the +// "host.cpu.family" semantic conventions. It represents the family or generation +// of the CPU. func HostCPUFamily(val string) attribute.KeyValue { return HostCPUFamilyKey.String(val) } -// HostCPUModelID returns an attribute KeyValue conforming to the "host.cpu.model.id" semantic conventions. It represents the model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. +// HostCPUModelID returns an attribute KeyValue conforming to the +// "host.cpu.model.id" semantic conventions. It represents the model identifier. +// It provides more granular information about the CPU, distinguishing it from +// other CPUs within the same family. func HostCPUModelID(val string) attribute.KeyValue { return HostCPUModelIDKey.String(val) } -// HostCPUModelName returns an attribute KeyValue conforming to the "host.cpu.model.name" semantic conventions. It represents the model designation of the processor. +// HostCPUModelName returns an attribute KeyValue conforming to the +// "host.cpu.model.name" semantic conventions. It represents the model +// designation of the processor. func HostCPUModelName(val string) attribute.KeyValue { return HostCPUModelNameKey.String(val) } -// HostCPUStepping returns an attribute KeyValue conforming to the "host.cpu.stepping" semantic conventions. It represents the stepping or core revisions. +// HostCPUStepping returns an attribute KeyValue conforming to the +// "host.cpu.stepping" semantic conventions. It represents the stepping or core +// revisions. func HostCPUStepping(val string) attribute.KeyValue { return HostCPUSteppingKey.String(val) } -// HostCPUVendorID returns an attribute KeyValue conforming to the "host.cpu.vendor.id" semantic conventions. It represents the processor manufacturer identifier. A maximum 12-character string. +// HostCPUVendorID returns an attribute KeyValue conforming to the +// "host.cpu.vendor.id" semantic conventions. It represents the processor +// manufacturer identifier. A maximum 12-character string. func HostCPUVendorID(val string) attribute.KeyValue { return HostCPUVendorIDKey.String(val) } -// HostID returns an attribute KeyValue conforming to the "host.id" semantic conventions. It represents the unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. +// HostID returns an attribute KeyValue conforming to the "host.id" semantic +// conventions. It represents the unique host ID. For Cloud, this must be the +// instance_id assigned by the cloud provider. For non-containerized systems, +// this should be the `machine-id`. See the table below for the sources to use to +// determine the `machine-id` based on operating system. func HostID(val string) attribute.KeyValue { return HostIDKey.String(val) } -// HostImageID returns an attribute KeyValue conforming to the "host.image.id" semantic conventions. It represents the vM image ID or host OS image ID. For Cloud, this value is from the provider. +// HostImageID returns an attribute KeyValue conforming to the "host.image.id" +// semantic conventions. It represents the vM image ID or host OS image ID. For +// Cloud, this value is from the provider. func HostImageID(val string) attribute.KeyValue { return HostImageIDKey.String(val) } -// HostImageName returns an attribute KeyValue conforming to the "host.image.name" semantic conventions. It represents the name of the VM image or OS install the host was instantiated from. +// HostImageName returns an attribute KeyValue conforming to the +// "host.image.name" semantic conventions. It represents the name of the VM image +// or OS install the host was instantiated from. func HostImageName(val string) attribute.KeyValue { return HostImageNameKey.String(val) } -// HostImageVersion returns an attribute KeyValue conforming to the "host.image.version" semantic conventions. It represents the version string of the VM image or host OS as defined in [Version Attributes]. -// +// HostImageVersion returns an attribute KeyValue conforming to the +// "host.image.version" semantic conventions. It represents the version string of +// the VM image or host OS as defined in [Version Attributes]. +// // [Version Attributes]: /docs/resource/README.md#version-attributes func HostImageVersion(val string) attribute.KeyValue { return HostImageVersionKey.String(val) } -// HostIP returns an attribute KeyValue conforming to the "host.ip" semantic conventions. It represents the available IP addresses of the host, excluding loopback interfaces. +// HostIP returns an attribute KeyValue conforming to the "host.ip" semantic +// conventions. It represents the available IP addresses of the host, excluding +// loopback interfaces. func HostIP(val ...string) attribute.KeyValue { return HostIPKey.StringSlice(val) } -// HostMac returns an attribute KeyValue conforming to the "host.mac" semantic conventions. It represents the available MAC addresses of the host, excluding loopback interfaces. +// HostMac returns an attribute KeyValue conforming to the "host.mac" semantic +// conventions. It represents the available MAC addresses of the host, excluding +// loopback interfaces. func HostMac(val ...string) attribute.KeyValue { return HostMacKey.StringSlice(val) } -// HostName returns an attribute KeyValue conforming to the "host.name" semantic conventions. It represents the name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. +// HostName returns an attribute KeyValue conforming to the "host.name" semantic +// conventions. It represents the name of the host. On Unix systems, it may +// contain what the hostname command returns, or the fully qualified hostname, or +// another name specified by the user. func HostName(val string) attribute.KeyValue { return HostNameKey.String(val) } -// HostType returns an attribute KeyValue conforming to the "host.type" semantic conventions. It represents the type of host. For Cloud, this must be the machine type. +// HostType returns an attribute KeyValue conforming to the "host.type" semantic +// conventions. It represents the type of host. For Cloud, this must be the +// machine type. func HostType(val string) attribute.KeyValue { return HostTypeKey.String(val) } @@ -4290,185 +5461,255 @@ func HostType(val string) attribute.KeyValue { // Enum values for host.arch var ( // AMD64 - // Stability: experimental + // Stability: development HostArchAMD64 = HostArchKey.String("amd64") // ARM32 - // Stability: experimental + // Stability: development HostArchARM32 = HostArchKey.String("arm32") // ARM64 - // Stability: experimental + // Stability: development HostArchARM64 = HostArchKey.String("arm64") // Itanium - // Stability: experimental + // Stability: development HostArchIA64 = HostArchKey.String("ia64") // 32-bit PowerPC - // Stability: experimental + // Stability: development HostArchPPC32 = HostArchKey.String("ppc32") // 64-bit PowerPC - // Stability: experimental + // Stability: development HostArchPPC64 = HostArchKey.String("ppc64") // IBM z/Architecture - // Stability: experimental + // Stability: development HostArchS390x = HostArchKey.String("s390x") // 32-bit x86 - // Stability: experimental + // Stability: development HostArchX86 = HostArchKey.String("x86") ) // Namespace: http const ( - // HTTPConnectionStateKey is the attribute Key conforming to the "http.connection.state" semantic conventions. It represents the state of the HTTP connection in the HTTP connection pool. - // + // HTTPConnectionStateKey is the attribute Key conforming to the + // "http.connection.state" semantic conventions. It represents the state of the + // HTTP connection in the HTTP connection pool. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "active", "idle" HTTPConnectionStateKey = attribute.Key("http.connection.state") - // HTTPRequestBodySizeKey is the attribute Key conforming to the "http.request.body.size" semantic conventions. It represents the size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. - // + // HTTPRequestBodySizeKey is the attribute Key conforming to the + // "http.request.body.size" semantic conventions. It represents the size of the + // request payload body in bytes. This is the number of bytes transferred + // excluding headers and is often, but not always, present as the + // [Content-Length] header. For requests using transport encoding, this should + // be the compressed size. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length HTTPRequestBodySizeKey = attribute.Key("http.request.body.size") - // HTTPRequestMethodKey is the attribute Key conforming to the "http.request.method" semantic conventions. It represents the hTTP request method. - // + // HTTPRequestMethodKey is the attribute Key conforming to the + // "http.request.method" semantic conventions. It represents the hTTP request + // method. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "GET", "POST", "HEAD" // Note: HTTP request method value SHOULD be "known" to the instrumentation. - // By default, this convention defines "known" methods as the ones listed in [RFC9110] + // By default, this convention defines "known" methods as the ones listed in + // [RFC9110] // and the PATCH method defined in [RFC5789]. - // - // If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. - // - // If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override - // the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named - // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods - // (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). - // - // HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. - // Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. - // Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value. - // + // + // If the HTTP request method is not known to instrumentation, it MUST set the + // `http.request.method` attribute to `_OTHER`. + // + // If the HTTP instrumentation could end up converting valid HTTP request + // methods to `_OTHER`, then it MUST provide a way to override + // the list of known HTTP methods. If this override is done via environment + // variable, then the environment variable MUST be named + // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of + // case-sensitive known HTTP methods + // (this list MUST be a full override of the default known method, it is not a + // list of known methods in addition to the defaults). + // + // HTTP method names are case-sensitive and `http.request.method` attribute + // value MUST match a known HTTP method name exactly. + // Instrumentations for specific web frameworks that consider HTTP methods to be + // case insensitive, SHOULD populate a canonical equivalent. + // Tracing instrumentations that do so, MUST also set + // `http.request.method_original` to the original value. + // // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html HTTPRequestMethodKey = attribute.Key("http.request.method") - // HTTPRequestMethodOriginalKey is the attribute Key conforming to the "http.request.method_original" semantic conventions. It represents the original HTTP method sent by the client in the request line. - // + // HTTPRequestMethodOriginalKey is the attribute Key conforming to the + // "http.request.method_original" semantic conventions. It represents the + // original HTTP method sent by the client in the request line. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "GeT", "ACL", "foo" HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original") - // HTTPRequestResendCountKey is the attribute Key conforming to the "http.request.resend_count" semantic conventions. It represents the ordinal number of request resending attempt (for any reason, including redirects). - // + // HTTPRequestResendCountKey is the attribute Key conforming to the + // "http.request.resend_count" semantic conventions. It represents the ordinal + // number of request resending attempt (for any reason, including redirects). + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // - // Note: The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). + // + // Note: The resend count SHOULD be updated each time an HTTP request gets + // resent by the client, regardless of what was the cause of the resending (e.g. + // redirection, authorization failure, 503 Server Unavailable, network issues, + // or any other). HTTPRequestResendCountKey = attribute.Key("http.request.resend_count") - // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size" semantic conventions. It represents the total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. - // + // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size" + // semantic conventions. It represents the total size of the request in bytes. + // This should be the total number of bytes sent over the wire, including the + // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request + // body if any. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development HTTPRequestSizeKey = attribute.Key("http.request.size") - // HTTPResponseBodySizeKey is the attribute Key conforming to the "http.response.body.size" semantic conventions. It represents the size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. - // + // HTTPResponseBodySizeKey is the attribute Key conforming to the + // "http.response.body.size" semantic conventions. It represents the size of the + // response payload body in bytes. This is the number of bytes transferred + // excluding headers and is often, but not always, present as the + // [Content-Length] header. For requests using transport encoding, this should + // be the compressed size. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length HTTPResponseBodySizeKey = attribute.Key("http.response.body.size") - // HTTPResponseSizeKey is the attribute Key conforming to the "http.response.size" semantic conventions. It represents the total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. - // + // HTTPResponseSizeKey is the attribute Key conforming to the + // "http.response.size" semantic conventions. It represents the total size of + // the response in bytes. This should be the total number of bytes sent over the + // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), + // headers, and response body and trailers if any. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development HTTPResponseSizeKey = attribute.Key("http.response.size") - // HTTPResponseStatusCodeKey is the attribute Key conforming to the "http.response.status_code" semantic conventions. It represents the [HTTP response status code]. - // + // HTTPResponseStatusCodeKey is the attribute Key conforming to the + // "http.response.status_code" semantic conventions. It represents the + // [HTTP response status code]. + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: 200 - // + // // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code") - // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic conventions. It represents the matched route, that is, the path template in the format used by the respective server framework. - // + // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic + // conventions. It represents the matched route, that is, the path template in + // the format used by the respective server framework. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "/users/:userID?", "{controller}/{action}/{id?}" - // Note: MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. + // Note: MUST NOT be populated when this is not supported by the HTTP server + // framework as the route attribute should have low-cardinality and the URI path + // can NOT substitute it. // SHOULD include the [application root] if there is one. - // + // // [application root]: /docs/http/http-spans.md#http-server-definitions HTTPRouteKey = attribute.Key("http.route") ) -// HTTPRequestBodySize returns an attribute KeyValue conforming to the "http.request.body.size" semantic conventions. It represents the size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. -// +// HTTPRequestBodySize returns an attribute KeyValue conforming to the +// "http.request.body.size" semantic conventions. It represents the size of the +// request payload body in bytes. This is the number of bytes transferred +// excluding headers and is often, but not always, present as the +// [Content-Length] header. For requests using transport encoding, this should be +// the compressed size. +// // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length func HTTPRequestBodySize(val int) attribute.KeyValue { return HTTPRequestBodySizeKey.Int(val) } -// HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the "http.request.method_original" semantic conventions. It represents the original HTTP method sent by the client in the request line. +// HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the +// "http.request.method_original" semantic conventions. It represents the +// original HTTP method sent by the client in the request line. func HTTPRequestMethodOriginal(val string) attribute.KeyValue { return HTTPRequestMethodOriginalKey.String(val) } -// HTTPRequestResendCount returns an attribute KeyValue conforming to the "http.request.resend_count" semantic conventions. It represents the ordinal number of request resending attempt (for any reason, including redirects). +// HTTPRequestResendCount returns an attribute KeyValue conforming to the +// "http.request.resend_count" semantic conventions. It represents the ordinal +// number of request resending attempt (for any reason, including redirects). func HTTPRequestResendCount(val int) attribute.KeyValue { return HTTPRequestResendCountKey.Int(val) } -// HTTPRequestSize returns an attribute KeyValue conforming to the "http.request.size" semantic conventions. It represents the total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. +// HTTPRequestSize returns an attribute KeyValue conforming to the +// "http.request.size" semantic conventions. It represents the total size of the +// request in bytes. This should be the total number of bytes sent over the wire, +// including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, +// and request body if any. func HTTPRequestSize(val int) attribute.KeyValue { return HTTPRequestSizeKey.Int(val) } -// HTTPResponseBodySize returns an attribute KeyValue conforming to the "http.response.body.size" semantic conventions. It represents the size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length] header. For requests using transport encoding, this should be the compressed size. -// +// HTTPResponseBodySize returns an attribute KeyValue conforming to the +// "http.response.body.size" semantic conventions. It represents the size of the +// response payload body in bytes. This is the number of bytes transferred +// excluding headers and is often, but not always, present as the +// [Content-Length] header. For requests using transport encoding, this should be +// the compressed size. +// // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length func HTTPResponseBodySize(val int) attribute.KeyValue { return HTTPResponseBodySizeKey.Int(val) } -// HTTPResponseSize returns an attribute KeyValue conforming to the "http.response.size" semantic conventions. It represents the total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. +// HTTPResponseSize returns an attribute KeyValue conforming to the +// "http.response.size" semantic conventions. It represents the total size of the +// response in bytes. This should be the total number of bytes sent over the +// wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), +// headers, and response body and trailers if any. func HTTPResponseSize(val int) attribute.KeyValue { return HTTPResponseSizeKey.Int(val) } -// HTTPResponseStatusCode returns an attribute KeyValue conforming to the "http.response.status_code" semantic conventions. It represents the [HTTP response status code]. -// +// HTTPResponseStatusCode returns an attribute KeyValue conforming to the +// "http.response.status_code" semantic conventions. It represents the +// [HTTP response status code]. +// // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6 func HTTPResponseStatusCode(val int) attribute.KeyValue { return HTTPResponseStatusCodeKey.Int(val) } -// HTTPRoute returns an attribute KeyValue conforming to the "http.route" semantic conventions. It represents the matched route, that is, the path template in the format used by the respective server framework. +// HTTPRoute returns an attribute KeyValue conforming to the "http.route" +// semantic conventions. It represents the matched route, that is, the path +// template in the format used by the respective server framework. func HTTPRoute(val string) attribute.KeyValue { return HTTPRouteKey.String(val) } @@ -4476,10 +5717,10 @@ func HTTPRoute(val string) attribute.KeyValue { // Enum values for http.connection.state var ( // active state. - // Stability: experimental + // Stability: development HTTPConnectionStateActive = HTTPConnectionStateKey.String("active") // idle state. - // Stability: experimental + // Stability: development HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle") ) @@ -4519,64 +5760,81 @@ var ( // Namespace: hw const ( - // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions. It represents an identifier for the hardware component, unique within the monitored host. - // + // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions. + // It represents an identifier for the hardware component, unique within the + // monitored host. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "win32battery_battery_testsysa33_1" HwIDKey = attribute.Key("hw.id") - // HwNameKey is the attribute Key conforming to the "hw.name" semantic conventions. It represents an easily-recognizable name for the hardware component. - // + // HwNameKey is the attribute Key conforming to the "hw.name" semantic + // conventions. It represents an easily-recognizable name for the hardware + // component. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "eth0" HwNameKey = attribute.Key("hw.name") - // HwParentKey is the attribute Key conforming to the "hw.parent" semantic conventions. It represents the unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller). - // + // HwParentKey is the attribute Key conforming to the "hw.parent" semantic + // conventions. It represents the unique identifier of the parent component + // (typically the `hw.id` attribute of the enclosure, or disk controller). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "dellStorage_perc_0" HwParentKey = attribute.Key("hw.parent") - // HwStateKey is the attribute Key conforming to the "hw.state" semantic conventions. It represents the current state of the component. - // + // HwStateKey is the attribute Key conforming to the "hw.state" semantic + // conventions. It represents the current state of the component. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: HwStateKey = attribute.Key("hw.state") - // HwTypeKey is the attribute Key conforming to the "hw.type" semantic conventions. It represents the type of the component. - // + // HwTypeKey is the attribute Key conforming to the "hw.type" semantic + // conventions. It represents the type of the component. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: Describes the category of the hardware component for which `hw.state` is being reported. For example, `hw.type=temperature` along with `hw.state=degraded` would indicate that the temperature of the hardware component has been reported as `degraded`. + // Note: Describes the category of the hardware component for which `hw.state` + // is being reported. For example, `hw.type=temperature` along with + // `hw.state=degraded` would indicate that the temperature of the hardware + // component has been reported as `degraded`. HwTypeKey = attribute.Key("hw.type") ) -// HwID returns an attribute KeyValue conforming to the "hw.id" semantic conventions. It represents an identifier for the hardware component, unique within the monitored host. +// HwID returns an attribute KeyValue conforming to the "hw.id" semantic +// conventions. It represents an identifier for the hardware component, unique +// within the monitored host. func HwID(val string) attribute.KeyValue { return HwIDKey.String(val) } -// HwName returns an attribute KeyValue conforming to the "hw.name" semantic conventions. It represents an easily-recognizable name for the hardware component. +// HwName returns an attribute KeyValue conforming to the "hw.name" semantic +// conventions. It represents an easily-recognizable name for the hardware +// component. func HwName(val string) attribute.KeyValue { return HwNameKey.String(val) } -// HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic conventions. It represents the unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller). +// HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic +// conventions. It represents the unique identifier of the parent component +// (typically the `hw.id` attribute of the enclosure, or disk controller). func HwParent(val string) attribute.KeyValue { return HwParentKey.String(val) } @@ -4584,86 +5842,89 @@ func HwParent(val string) attribute.KeyValue { // Enum values for hw.state var ( // Ok - // Stability: experimental + // Stability: development HwStateOk = HwStateKey.String("ok") // Degraded - // Stability: experimental + // Stability: development HwStateDegraded = HwStateKey.String("degraded") // Failed - // Stability: experimental + // Stability: development HwStateFailed = HwStateKey.String("failed") ) // Enum values for hw.type var ( // Battery - // Stability: experimental + // Stability: development HwTypeBattery = HwTypeKey.String("battery") // CPU - // Stability: experimental + // Stability: development HwTypeCPU = HwTypeKey.String("cpu") // Disk controller - // Stability: experimental + // Stability: development HwTypeDiskController = HwTypeKey.String("disk_controller") // Enclosure - // Stability: experimental + // Stability: development HwTypeEnclosure = HwTypeKey.String("enclosure") // Fan - // Stability: experimental + // Stability: development HwTypeFan = HwTypeKey.String("fan") // GPU - // Stability: experimental + // Stability: development HwTypeGpu = HwTypeKey.String("gpu") // Logical disk - // Stability: experimental + // Stability: development HwTypeLogicalDisk = HwTypeKey.String("logical_disk") // Memory - // Stability: experimental + // Stability: development HwTypeMemory = HwTypeKey.String("memory") // Network - // Stability: experimental + // Stability: development HwTypeNetwork = HwTypeKey.String("network") // Physical disk - // Stability: experimental + // Stability: development HwTypePhysicalDisk = HwTypeKey.String("physical_disk") // Power supply - // Stability: experimental + // Stability: development HwTypePowerSupply = HwTypeKey.String("power_supply") // Tape drive - // Stability: experimental + // Stability: development HwTypeTapeDrive = HwTypeKey.String("tape_drive") // Temperature - // Stability: experimental + // Stability: development HwTypeTemperature = HwTypeKey.String("temperature") // Voltage - // Stability: experimental + // Stability: development HwTypeVoltage = HwTypeKey.String("voltage") ) // Namespace: k8s const ( - // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name" semantic conventions. It represents the name of the cluster. - // + // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name" + // semantic conventions. It represents the name of the cluster. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry-cluster" K8SClusterNameKey = attribute.Key("k8s.cluster.name") - // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. - // + // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid" + // semantic conventions. It represents a pseudo-ID for the cluster, set to the + // UID of the `kube-system` namespace. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d" // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever // added, we will recommend collecting the `k8s.cluster.uid` through the // official APIs. In the meantime, we are able to use the `uid` of the // `kube-system` namespace as a proxy for cluster ID. Read on for the // rationale. - // + // // Every object created in a K8s cluster is assigned a distinct UID. The // `kube-system` namespace is used by Kubernetes itself and will exist // for the lifetime of the cluster. Using the `uid` of the `kube-system` @@ -4672,328 +5933,404 @@ const ( // UUIDs as standardized by // [ISO/IEC 9834-8 and ITU-T X.667]. // Which states: - // + // // > If generated according to one of the mechanisms defined in Rec. // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be // > different from all other UUIDs generated before 3603 A.D., or is // > extremely likely to be different (depending on the mechanism chosen). - // + // // Therefore, UIDs between clusters should be extremely unlikely to // conflict. - // + // // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html K8SClusterUIDKey = attribute.Key("k8s.cluster.uid") - // K8SContainerNameKey is the attribute Key conforming to the "k8s.container.name" semantic conventions. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). - // + // K8SContainerNameKey is the attribute Key conforming to the + // "k8s.container.name" semantic conventions. It represents the name of the + // Container from Pod specification, must be unique within a Pod. Container + // runtime usually uses different globally unique name (`container.name`). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "redis" K8SContainerNameKey = attribute.Key("k8s.container.name") - // K8SContainerRestartCountKey is the attribute Key conforming to the "k8s.container.restart_count" semantic conventions. It represents the number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. - // + // K8SContainerRestartCountKey is the attribute Key conforming to the + // "k8s.container.restart_count" semantic conventions. It represents the number + // of times the container was restarted. This attribute can be used to identify + // a particular container (running or stopped) within a container spec. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count") - // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to the "k8s.container.status.last_terminated_reason" semantic conventions. It represents the last terminated reason of the Container. - // + // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to + // the "k8s.container.status.last_terminated_reason" semantic conventions. It + // represents the last terminated reason of the Container. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Evicted", "Error" K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason") - // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name" semantic conventions. It represents the name of the CronJob. - // + // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name" + // semantic conventions. It represents the name of the CronJob. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SCronJobNameKey = attribute.Key("k8s.cronjob.name") - // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. - // + // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid" + // semantic conventions. It represents the UID of the CronJob. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid") - // K8SDaemonSetNameKey is the attribute Key conforming to the "k8s.daemonset.name" semantic conventions. It represents the name of the DaemonSet. - // + // K8SDaemonSetNameKey is the attribute Key conforming to the + // "k8s.daemonset.name" semantic conventions. It represents the name of the + // DaemonSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name") - // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid" semantic conventions. It represents the UID of the DaemonSet. - // + // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid" + // semantic conventions. It represents the UID of the DaemonSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid") - // K8SDeploymentNameKey is the attribute Key conforming to the "k8s.deployment.name" semantic conventions. It represents the name of the Deployment. - // + // K8SDeploymentNameKey is the attribute Key conforming to the + // "k8s.deployment.name" semantic conventions. It represents the name of the + // Deployment. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SDeploymentNameKey = attribute.Key("k8s.deployment.name") - // K8SDeploymentUIDKey is the attribute Key conforming to the "k8s.deployment.uid" semantic conventions. It represents the UID of the Deployment. - // + // K8SDeploymentUIDKey is the attribute Key conforming to the + // "k8s.deployment.uid" semantic conventions. It represents the UID of the + // Deployment. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid") - // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic conventions. It represents the name of the Job. - // + // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic + // conventions. It represents the name of the Job. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SJobNameKey = attribute.Key("k8s.job.name") - // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic conventions. It represents the UID of the Job. - // + // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic + // conventions. It represents the UID of the Job. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SJobUIDKey = attribute.Key("k8s.job.uid") - // K8SNamespaceNameKey is the attribute Key conforming to the "k8s.namespace.name" semantic conventions. It represents the name of the namespace that the pod is running in. - // + // K8SNamespaceNameKey is the attribute Key conforming to the + // "k8s.namespace.name" semantic conventions. It represents the name of the + // namespace that the pod is running in. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "default" K8SNamespaceNameKey = attribute.Key("k8s.namespace.name") - // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name" semantic conventions. It represents the name of the Node. - // + // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name" + // semantic conventions. It represents the name of the Node. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "node-1" K8SNodeNameKey = attribute.Key("k8s.node.name") - // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic conventions. It represents the UID of the Node. - // + // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic + // conventions. It represents the UID of the Node. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2" K8SNodeUIDKey = attribute.Key("k8s.node.uid") - // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic conventions. It represents the name of the Pod. - // + // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic + // conventions. It represents the name of the Pod. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry-pod-autoconf" K8SPodNameKey = attribute.Key("k8s.pod.name") - // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic conventions. It represents the UID of the Pod. - // + // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic + // conventions. It represents the UID of the Pod. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SPodUIDKey = attribute.Key("k8s.pod.uid") - // K8SReplicaSetNameKey is the attribute Key conforming to the "k8s.replicaset.name" semantic conventions. It represents the name of the ReplicaSet. - // + // K8SReplicaSetNameKey is the attribute Key conforming to the + // "k8s.replicaset.name" semantic conventions. It represents the name of the + // ReplicaSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name") - // K8SReplicaSetUIDKey is the attribute Key conforming to the "k8s.replicaset.uid" semantic conventions. It represents the UID of the ReplicaSet. - // + // K8SReplicaSetUIDKey is the attribute Key conforming to the + // "k8s.replicaset.uid" semantic conventions. It represents the UID of the + // ReplicaSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid") - // K8SStatefulSetNameKey is the attribute Key conforming to the "k8s.statefulset.name" semantic conventions. It represents the name of the StatefulSet. - // + // K8SStatefulSetNameKey is the attribute Key conforming to the + // "k8s.statefulset.name" semantic conventions. It represents the name of the + // StatefulSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "opentelemetry" K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name") - // K8SStatefulSetUIDKey is the attribute Key conforming to the "k8s.statefulset.uid" semantic conventions. It represents the UID of the StatefulSet. - // + // K8SStatefulSetUIDKey is the attribute Key conforming to the + // "k8s.statefulset.uid" semantic conventions. It represents the UID of the + // StatefulSet. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff" K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid") - // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name" semantic conventions. It represents the name of the K8s volume. - // + // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name" + // semantic conventions. It represents the name of the K8s volume. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "volume0" K8SVolumeNameKey = attribute.Key("k8s.volume.name") - // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type" semantic conventions. It represents the type of the K8s volume. - // + // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type" + // semantic conventions. It represents the type of the K8s volume. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "emptyDir", "persistentVolumeClaim" K8SVolumeTypeKey = attribute.Key("k8s.volume.type") ) -// K8SClusterName returns an attribute KeyValue conforming to the "k8s.cluster.name" semantic conventions. It represents the name of the cluster. +// K8SClusterName returns an attribute KeyValue conforming to the +// "k8s.cluster.name" semantic conventions. It represents the name of the +// cluster. func K8SClusterName(val string) attribute.KeyValue { return K8SClusterNameKey.String(val) } -// K8SClusterUID returns an attribute KeyValue conforming to the "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. +// K8SClusterUID returns an attribute KeyValue conforming to the +// "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the +// cluster, set to the UID of the `kube-system` namespace. func K8SClusterUID(val string) attribute.KeyValue { return K8SClusterUIDKey.String(val) } -// K8SContainerName returns an attribute KeyValue conforming to the "k8s.container.name" semantic conventions. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). +// K8SContainerName returns an attribute KeyValue conforming to the +// "k8s.container.name" semantic conventions. It represents the name of the +// Container from Pod specification, must be unique within a Pod. Container +// runtime usually uses different globally unique name (`container.name`). func K8SContainerName(val string) attribute.KeyValue { return K8SContainerNameKey.String(val) } -// K8SContainerRestartCount returns an attribute KeyValue conforming to the "k8s.container.restart_count" semantic conventions. It represents the number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. +// K8SContainerRestartCount returns an attribute KeyValue conforming to the +// "k8s.container.restart_count" semantic conventions. It represents the number +// of times the container was restarted. This attribute can be used to identify a +// particular container (running or stopped) within a container spec. func K8SContainerRestartCount(val int) attribute.KeyValue { return K8SContainerRestartCountKey.Int(val) } -// K8SContainerStatusLastTerminatedReason returns an attribute KeyValue conforming to the "k8s.container.status.last_terminated_reason" semantic conventions. It represents the last terminated reason of the Container. +// K8SContainerStatusLastTerminatedReason returns an attribute KeyValue +// conforming to the "k8s.container.status.last_terminated_reason" semantic +// conventions. It represents the last terminated reason of the Container. func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue { return K8SContainerStatusLastTerminatedReasonKey.String(val) } -// K8SCronJobName returns an attribute KeyValue conforming to the "k8s.cronjob.name" semantic conventions. It represents the name of the CronJob. +// K8SCronJobName returns an attribute KeyValue conforming to the +// "k8s.cronjob.name" semantic conventions. It represents the name of the +// CronJob. func K8SCronJobName(val string) attribute.KeyValue { return K8SCronJobNameKey.String(val) } -// K8SCronJobUID returns an attribute KeyValue conforming to the "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. +// K8SCronJobUID returns an attribute KeyValue conforming to the +// "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob. func K8SCronJobUID(val string) attribute.KeyValue { return K8SCronJobUIDKey.String(val) } -// K8SDaemonSetName returns an attribute KeyValue conforming to the "k8s.daemonset.name" semantic conventions. It represents the name of the DaemonSet. +// K8SDaemonSetName returns an attribute KeyValue conforming to the +// "k8s.daemonset.name" semantic conventions. It represents the name of the +// DaemonSet. func K8SDaemonSetName(val string) attribute.KeyValue { return K8SDaemonSetNameKey.String(val) } -// K8SDaemonSetUID returns an attribute KeyValue conforming to the "k8s.daemonset.uid" semantic conventions. It represents the UID of the DaemonSet. +// K8SDaemonSetUID returns an attribute KeyValue conforming to the +// "k8s.daemonset.uid" semantic conventions. It represents the UID of the +// DaemonSet. func K8SDaemonSetUID(val string) attribute.KeyValue { return K8SDaemonSetUIDKey.String(val) } -// K8SDeploymentName returns an attribute KeyValue conforming to the "k8s.deployment.name" semantic conventions. It represents the name of the Deployment. +// K8SDeploymentName returns an attribute KeyValue conforming to the +// "k8s.deployment.name" semantic conventions. It represents the name of the +// Deployment. func K8SDeploymentName(val string) attribute.KeyValue { return K8SDeploymentNameKey.String(val) } -// K8SDeploymentUID returns an attribute KeyValue conforming to the "k8s.deployment.uid" semantic conventions. It represents the UID of the Deployment. +// K8SDeploymentUID returns an attribute KeyValue conforming to the +// "k8s.deployment.uid" semantic conventions. It represents the UID of the +// Deployment. func K8SDeploymentUID(val string) attribute.KeyValue { return K8SDeploymentUIDKey.String(val) } -// K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name" semantic conventions. It represents the name of the Job. +// K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name" +// semantic conventions. It represents the name of the Job. func K8SJobName(val string) attribute.KeyValue { return K8SJobNameKey.String(val) } -// K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid" semantic conventions. It represents the UID of the Job. +// K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid" +// semantic conventions. It represents the UID of the Job. func K8SJobUID(val string) attribute.KeyValue { return K8SJobUIDKey.String(val) } -// K8SNamespaceName returns an attribute KeyValue conforming to the "k8s.namespace.name" semantic conventions. It represents the name of the namespace that the pod is running in. +// K8SNamespaceName returns an attribute KeyValue conforming to the +// "k8s.namespace.name" semantic conventions. It represents the name of the +// namespace that the pod is running in. func K8SNamespaceName(val string) attribute.KeyValue { return K8SNamespaceNameKey.String(val) } -// K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name" semantic conventions. It represents the name of the Node. +// K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name" +// semantic conventions. It represents the name of the Node. func K8SNodeName(val string) attribute.KeyValue { return K8SNodeNameKey.String(val) } -// K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid" semantic conventions. It represents the UID of the Node. +// K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid" +// semantic conventions. It represents the UID of the Node. func K8SNodeUID(val string) attribute.KeyValue { return K8SNodeUIDKey.String(val) } -// K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name" semantic conventions. It represents the name of the Pod. +// K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name" +// semantic conventions. It represents the name of the Pod. func K8SPodName(val string) attribute.KeyValue { return K8SPodNameKey.String(val) } -// K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid" semantic conventions. It represents the UID of the Pod. +// K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid" +// semantic conventions. It represents the UID of the Pod. func K8SPodUID(val string) attribute.KeyValue { return K8SPodUIDKey.String(val) } -// K8SReplicaSetName returns an attribute KeyValue conforming to the "k8s.replicaset.name" semantic conventions. It represents the name of the ReplicaSet. +// K8SReplicaSetName returns an attribute KeyValue conforming to the +// "k8s.replicaset.name" semantic conventions. It represents the name of the +// ReplicaSet. func K8SReplicaSetName(val string) attribute.KeyValue { return K8SReplicaSetNameKey.String(val) } -// K8SReplicaSetUID returns an attribute KeyValue conforming to the "k8s.replicaset.uid" semantic conventions. It represents the UID of the ReplicaSet. +// K8SReplicaSetUID returns an attribute KeyValue conforming to the +// "k8s.replicaset.uid" semantic conventions. It represents the UID of the +// ReplicaSet. func K8SReplicaSetUID(val string) attribute.KeyValue { return K8SReplicaSetUIDKey.String(val) } -// K8SStatefulSetName returns an attribute KeyValue conforming to the "k8s.statefulset.name" semantic conventions. It represents the name of the StatefulSet. +// K8SStatefulSetName returns an attribute KeyValue conforming to the +// "k8s.statefulset.name" semantic conventions. It represents the name of the +// StatefulSet. func K8SStatefulSetName(val string) attribute.KeyValue { return K8SStatefulSetNameKey.String(val) } -// K8SStatefulSetUID returns an attribute KeyValue conforming to the "k8s.statefulset.uid" semantic conventions. It represents the UID of the StatefulSet. +// K8SStatefulSetUID returns an attribute KeyValue conforming to the +// "k8s.statefulset.uid" semantic conventions. It represents the UID of the +// StatefulSet. func K8SStatefulSetUID(val string) attribute.KeyValue { return K8SStatefulSetUIDKey.String(val) } -// K8SVolumeName returns an attribute KeyValue conforming to the "k8s.volume.name" semantic conventions. It represents the name of the K8s volume. +// K8SVolumeName returns an attribute KeyValue conforming to the +// "k8s.volume.name" semantic conventions. It represents the name of the K8s +// volume. func K8SVolumeName(val string) attribute.KeyValue { return K8SVolumeNameKey.String(val) } @@ -5001,45 +6338,47 @@ func K8SVolumeName(val string) attribute.KeyValue { // Enum values for k8s.volume.type var ( // A [persistentVolumeClaim] volume - // Stability: experimental - // + // Stability: development + // // [persistentVolumeClaim]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim") // A [configMap] volume - // Stability: experimental - // + // Stability: development + // // [configMap]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap") // A [downwardAPI] volume - // Stability: experimental - // + // Stability: development + // // [downwardAPI]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI") // An [emptyDir] volume - // Stability: experimental - // + // Stability: development + // // [emptyDir]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir") // A [secret] volume - // Stability: experimental - // + // Stability: development + // // [secret]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#secret K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret") // A [local] volume - // Stability: experimental - // + // Stability: development + // // [local]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#local K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local") ) // Namespace: linux const ( - // LinuxMemorySlabStateKey is the attribute Key conforming to the "linux.memory.slab.state" semantic conventions. It represents the Linux Slab memory state. - // + // LinuxMemorySlabStateKey is the attribute Key conforming to the + // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab + // memory state. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "reclaimable", "unreclaimable" LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state") ) @@ -5047,110 +6386,138 @@ const ( // Enum values for linux.memory.slab.state var ( // reclaimable - // Stability: experimental + // Stability: development LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable") // unreclaimable - // Stability: experimental + // Stability: development LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable") ) // Namespace: log const ( - // LogFileNameKey is the attribute Key conforming to the "log.file.name" semantic conventions. It represents the basename of the file. - // + // LogFileNameKey is the attribute Key conforming to the "log.file.name" + // semantic conventions. It represents the basename of the file. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "audit.log" LogFileNameKey = attribute.Key("log.file.name") - // LogFileNameResolvedKey is the attribute Key conforming to the "log.file.name_resolved" semantic conventions. It represents the basename of the file, with symlinks resolved. - // + // LogFileNameResolvedKey is the attribute Key conforming to the + // "log.file.name_resolved" semantic conventions. It represents the basename of + // the file, with symlinks resolved. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "uuid.log" LogFileNameResolvedKey = attribute.Key("log.file.name_resolved") - // LogFilePathKey is the attribute Key conforming to the "log.file.path" semantic conventions. It represents the full path to the file. - // + // LogFilePathKey is the attribute Key conforming to the "log.file.path" + // semantic conventions. It represents the full path to the file. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/var/log/mysql/audit.log" LogFilePathKey = attribute.Key("log.file.path") - // LogFilePathResolvedKey is the attribute Key conforming to the "log.file.path_resolved" semantic conventions. It represents the full path to the file, with symlinks resolved. - // + // LogFilePathResolvedKey is the attribute Key conforming to the + // "log.file.path_resolved" semantic conventions. It represents the full path to + // the file, with symlinks resolved. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/var/lib/docker/uuid.log" LogFilePathResolvedKey = attribute.Key("log.file.path_resolved") - // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic conventions. It represents the stream associated with the log. See below for a list of well-known values. - // + // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic + // conventions. It represents the stream associated with the log. See below for + // a list of well-known values. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: LogIostreamKey = attribute.Key("log.iostream") - // LogRecordOriginalKey is the attribute Key conforming to the "log.record.original" semantic conventions. It represents the complete original Log Record. - // + // LogRecordOriginalKey is the attribute Key conforming to the + // "log.record.original" semantic conventions. It represents the complete + // original Log Record. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - Something happened", "[INFO] 8/3/24 12:34:56 Something happened" - // Note: This value MAY be added when processing a Log Record which was originally transmitted as a string or equivalent data type AND the Body field of the Log Record does not contain the same value. (e.g. a syslog or a log record read from a file.) + // Stability: Development + // + // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - + // Something happened", "[INFO] 8/3/24 12:34:56 Something happened" + // Note: This value MAY be added when processing a Log Record which was + // originally transmitted as a string or equivalent data type AND the Body field + // of the Log Record does not contain the same value. (e.g. a syslog or a log + // record read from a file.) LogRecordOriginalKey = attribute.Key("log.record.original") - // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid" semantic conventions. It represents a unique identifier for the Log Record. - // + // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid" + // semantic conventions. It represents a unique identifier for the Log Record. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV" - // Note: If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records MUST have different values. - // The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)], but other identifiers (e.g. UUID) may be used as needed. - // + // Note: If an id is provided, other log records with the same id will be + // considered duplicates and can be removed safely. This means, that two + // distinguishable log records MUST have different values. + // The id MAY be an + // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other + // identifiers (e.g. UUID) may be used as needed. + // // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec LogRecordUIDKey = attribute.Key("log.record.uid") ) -// LogFileName returns an attribute KeyValue conforming to the "log.file.name" semantic conventions. It represents the basename of the file. +// LogFileName returns an attribute KeyValue conforming to the "log.file.name" +// semantic conventions. It represents the basename of the file. func LogFileName(val string) attribute.KeyValue { return LogFileNameKey.String(val) } -// LogFileNameResolved returns an attribute KeyValue conforming to the "log.file.name_resolved" semantic conventions. It represents the basename of the file, with symlinks resolved. +// LogFileNameResolved returns an attribute KeyValue conforming to the +// "log.file.name_resolved" semantic conventions. It represents the basename of +// the file, with symlinks resolved. func LogFileNameResolved(val string) attribute.KeyValue { return LogFileNameResolvedKey.String(val) } -// LogFilePath returns an attribute KeyValue conforming to the "log.file.path" semantic conventions. It represents the full path to the file. +// LogFilePath returns an attribute KeyValue conforming to the "log.file.path" +// semantic conventions. It represents the full path to the file. func LogFilePath(val string) attribute.KeyValue { return LogFilePathKey.String(val) } -// LogFilePathResolved returns an attribute KeyValue conforming to the "log.file.path_resolved" semantic conventions. It represents the full path to the file, with symlinks resolved. +// LogFilePathResolved returns an attribute KeyValue conforming to the +// "log.file.path_resolved" semantic conventions. It represents the full path to +// the file, with symlinks resolved. func LogFilePathResolved(val string) attribute.KeyValue { return LogFilePathResolvedKey.String(val) } -// LogRecordOriginal returns an attribute KeyValue conforming to the "log.record.original" semantic conventions. It represents the complete original Log Record. +// LogRecordOriginal returns an attribute KeyValue conforming to the +// "log.record.original" semantic conventions. It represents the complete +// original Log Record. func LogRecordOriginal(val string) attribute.KeyValue { return LogRecordOriginalKey.String(val) } -// LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid" semantic conventions. It represents a unique identifier for the Log Record. +// LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid" +// semantic conventions. It represents a unique identifier for the Log Record. func LogRecordUID(val string) attribute.KeyValue { return LogRecordUIDKey.String(val) } @@ -5158,525 +6525,725 @@ func LogRecordUID(val string) attribute.KeyValue { // Enum values for log.iostream var ( // Logs from stdout stream - // Stability: experimental + // Stability: development LogIostreamStdout = LogIostreamKey.String("stdout") // Events from stderr stream - // Stability: experimental + // Stability: development LogIostreamStderr = LogIostreamKey.String("stderr") ) // Namespace: messaging const ( - // MessagingBatchMessageCountKey is the attribute Key conforming to the "messaging.batch.message_count" semantic conventions. It represents the number of messages sent, received, or processed in the scope of the batching operation. - // + // MessagingBatchMessageCountKey is the attribute Key conforming to the + // "messaging.batch.message_count" semantic conventions. It represents the + // number of messages sent, received, or processed in the scope of the batching + // operation. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 0, 1, 2 - // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs. + // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on + // spans that operate with a single message. When a messaging client library + // supports both batch and single-message API for the same operation, + // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs + // and SHOULD NOT use it for single-message APIs. MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count") - // MessagingClientIDKey is the attribute Key conforming to the "messaging.client.id" semantic conventions. It represents a unique identifier for the client that consumes or produces a message. - // + // MessagingClientIDKey is the attribute Key conforming to the + // "messaging.client.id" semantic conventions. It represents a unique identifier + // for the client that consumes or produces a message. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "client-5", "myhost@8742@s8083jm" MessagingClientIDKey = attribute.Key("messaging.client.id") - // MessagingConsumerGroupNameKey is the attribute Key conforming to the "messaging.consumer.group.name" semantic conventions. It represents the name of the consumer group with which a consumer is associated. - // + // MessagingConsumerGroupNameKey is the attribute Key conforming to the + // "messaging.consumer.group.name" semantic conventions. It represents the name + // of the consumer group with which a consumer is associated. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-group", "indexer" - // Note: Semantic conventions for individual messaging systems SHOULD document whether `messaging.consumer.group.name` is applicable and what it means in the context of that system. + // Note: Semantic conventions for individual messaging systems SHOULD document + // whether `messaging.consumer.group.name` is applicable and what it means in + // the context of that system. MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name") - // MessagingDestinationAnonymousKey is the attribute Key conforming to the "messaging.destination.anonymous" semantic conventions. It represents a boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). - // + // MessagingDestinationAnonymousKey is the attribute Key conforming to the + // "messaging.destination.anonymous" semantic conventions. It represents a + // boolean that is true if the message destination is anonymous (could be + // unnamed or have auto-generated name). + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous") - // MessagingDestinationNameKey is the attribute Key conforming to the "messaging.destination.name" semantic conventions. It represents the message destination name. - // + // MessagingDestinationNameKey is the attribute Key conforming to the + // "messaging.destination.name" semantic conventions. It represents the message + // destination name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "MyQueue", "MyTopic" - // Note: Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If - // the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker. + // Note: Destination name SHOULD uniquely identify a specific queue, topic or + // other entity within the broker. If + // the broker doesn't have such notion, the destination name SHOULD uniquely + // identify the broker. MessagingDestinationNameKey = attribute.Key("messaging.destination.name") - // MessagingDestinationPartitionIDKey is the attribute Key conforming to the "messaging.destination.partition.id" semantic conventions. It represents the identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. - // + // MessagingDestinationPartitionIDKey is the attribute Key conforming to the + // "messaging.destination.partition.id" semantic conventions. It represents the + // identifier of the partition messages are sent to or received from, unique + // within the `messaging.destination.name`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id") - // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to the "messaging.destination.subscription.name" semantic conventions. It represents the name of the destination subscription from which a message is consumed. - // + // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to + // the "messaging.destination.subscription.name" semantic conventions. It + // represents the name of the destination subscription from which a message is + // consumed. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "subscription-a" - // Note: Semantic conventions for individual messaging systems SHOULD document whether `messaging.destination.subscription.name` is applicable and what it means in the context of that system. + // Note: Semantic conventions for individual messaging systems SHOULD document + // whether `messaging.destination.subscription.name` is applicable and what it + // means in the context of that system. MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name") - // MessagingDestinationTemplateKey is the attribute Key conforming to the "messaging.destination.template" semantic conventions. It represents the low cardinality representation of the messaging destination name. - // + // MessagingDestinationTemplateKey is the attribute Key conforming to the + // "messaging.destination.template" semantic conventions. It represents the low + // cardinality representation of the messaging destination name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/customers/{customerId}" - // Note: Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation. + // Note: Destination names could be constructed from templates. An example would + // be a destination name involving a user name or product id. Although the + // destination name in this case is of high cardinality, the underlying template + // is of low cardinality and can be effectively used for grouping and + // aggregation. MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template") - // MessagingDestinationTemporaryKey is the attribute Key conforming to the "messaging.destination.temporary" semantic conventions. It represents a boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. - // + // MessagingDestinationTemporaryKey is the attribute Key conforming to the + // "messaging.destination.temporary" semantic conventions. It represents a + // boolean that is true if the message destination is temporary and might not + // exist anymore after messages are processed. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary") - // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. - // + // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to + // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It + // represents the UTC epoch seconds at which the message has been accepted and + // stored in the entity. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingEventhubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time") - // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It represents the ack deadline in seconds set for the modify ack deadline request. - // + // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to + // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It + // represents the ack deadline in seconds set for the modify ack deadline + // request. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingGCPPubsubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline") - // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the ack id for a given message. - // + // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the + // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the + // ack id for a given message. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: ack_id MessagingGCPPubsubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id") - // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. It represents the delivery attempt for a given message. - // + // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming + // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. + // It represents the delivery attempt for a given message. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingGCPPubsubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt") - // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It represents the ordering key for a given message. If the attribute is not present, the message does not have an ordering key. - // + // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to + // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It + // represents the ordering key for a given message. If the attribute is not + // present, the message does not have an ordering key. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: ordering_key MessagingGCPPubsubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key") - // MessagingKafkaMessageKeyKey is the attribute Key conforming to the "messaging.kafka.message.key" semantic conventions. It represents the message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. - // + // MessagingKafkaMessageKeyKey is the attribute Key conforming to the + // "messaging.kafka.message.key" semantic conventions. It represents the message + // keys in Kafka are used for grouping alike messages to ensure they're + // processed on the same partition. They differ from `messaging.message.id` in + // that they're not unique. If the key is `null`, the attribute MUST NOT be set. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: myKey - // Note: If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. + // Note: If the key type is not string, it's string representation has to be + // supplied for the attribute. If the key has no unambiguous, canonical string + // form, don't include its value. MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key") - // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the "messaging.kafka.message.tombstone" semantic conventions. It represents a boolean that is true if the message is a tombstone. - // + // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the + // "messaging.kafka.message.tombstone" semantic conventions. It represents a + // boolean that is true if the message is a tombstone. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone") - // MessagingKafkaOffsetKey is the attribute Key conforming to the "messaging.kafka.offset" semantic conventions. It represents the offset of a record in the corresponding Kafka partition. - // + // MessagingKafkaOffsetKey is the attribute Key conforming to the + // "messaging.kafka.offset" semantic conventions. It represents the offset of a + // record in the corresponding Kafka partition. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset") - // MessagingMessageBodySizeKey is the attribute Key conforming to the "messaging.message.body.size" semantic conventions. It represents the size of the message body in bytes. - // + // MessagingMessageBodySizeKey is the attribute Key conforming to the + // "messaging.message.body.size" semantic conventions. It represents the size of + // the message body in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // - // Note: This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed + // Stability: Development + // + // Note: This can refer to both the compressed or uncompressed body size. If + // both sizes are known, the uncompressed // body size should be used. MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size") - // MessagingMessageConversationIDKey is the attribute Key conforming to the "messaging.message.conversation_id" semantic conventions. It represents the conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". - // + // MessagingMessageConversationIDKey is the attribute Key conforming to the + // "messaging.message.conversation_id" semantic conventions. It represents the + // conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MyConversationId MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id") - // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the "messaging.message.envelope.size" semantic conventions. It represents the size of the message body and metadata in bytes. - // + // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the + // "messaging.message.envelope.size" semantic conventions. It represents the + // size of the message body and metadata in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // - // Note: This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed + // Stability: Development + // + // Note: This can refer to both the compressed or uncompressed size. If both + // sizes are known, the uncompressed // size should be used. MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size") - // MessagingMessageIDKey is the attribute Key conforming to the "messaging.message.id" semantic conventions. It represents a value used by the messaging system as an identifier for the message, represented as a string. - // + // MessagingMessageIDKey is the attribute Key conforming to the + // "messaging.message.id" semantic conventions. It represents a value used by + // the messaging system as an identifier for the message, represented as a + // string. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 452a7c7c7c7048c2f887f61572b18fc2 MessagingMessageIDKey = attribute.Key("messaging.message.id") - // MessagingOperationNameKey is the attribute Key conforming to the "messaging.operation.name" semantic conventions. It represents the system-specific name of the messaging operation. - // + // MessagingOperationNameKey is the attribute Key conforming to the + // "messaging.operation.name" semantic conventions. It represents the + // system-specific name of the messaging operation. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "ack", "nack", "send" MessagingOperationNameKey = attribute.Key("messaging.operation.name") - // MessagingOperationTypeKey is the attribute Key conforming to the "messaging.operation.type" semantic conventions. It represents a string identifying the type of the messaging operation. - // + // MessagingOperationTypeKey is the attribute Key conforming to the + // "messaging.operation.type" semantic conventions. It represents a string + // identifying the type of the messaging operation. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: // Note: If a custom value is used, it MUST be of low cardinality. MessagingOperationTypeKey = attribute.Key("messaging.operation.type") - // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to the "messaging.rabbitmq.destination.routing_key" semantic conventions. It represents the rabbitMQ message routing key. - // + // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to + // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It + // represents the rabbitMQ message routing key. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: myKey MessagingRabbitmqDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key") - // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents the rabbitMQ message delivery tag. - // + // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the + // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents + // the rabbitMQ message delivery tag. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingRabbitmqMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag") - // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the "messaging.rocketmq.consumption_model" semantic conventions. It represents the model of message consumption. This only applies to consumer spans. - // + // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the + // "messaging.rocketmq.consumption_model" semantic conventions. It represents + // the model of message consumption. This only applies to consumer spans. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model") - // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to the "messaging.rocketmq.message.delay_time_level" semantic conventions. It represents the delay time level for delay message, which determines the message delay time. - // + // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to + // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It + // represents the delay time level for delay message, which determines the + // message delay time. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingRocketmqMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level") - // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. It represents the timestamp in milliseconds that the delay message is expected to be delivered to consumer. - // + // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming + // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. + // It represents the timestamp in milliseconds that the delay message is + // expected to be delivered to consumer. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingRocketmqMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp") - // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the "messaging.rocketmq.message.group" semantic conventions. It represents the it is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. - // + // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the + // "messaging.rocketmq.message.group" semantic conventions. It represents the it + // is essential for FIFO message. Messages that belong to the same message group + // are always processed one by one within the same consumer group. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: myMessageGroup MessagingRocketmqMessageGroupKey = attribute.Key("messaging.rocketmq.message.group") - // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the "messaging.rocketmq.message.keys" semantic conventions. It represents the key(s) of message, another way to mark message besides message id. - // + // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the + // "messaging.rocketmq.message.keys" semantic conventions. It represents the + // key(s) of message, another way to mark message besides message id. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "keyA", "keyB" MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys") - // MessagingRocketmqMessageTagKey is the attribute Key conforming to the "messaging.rocketmq.message.tag" semantic conventions. It represents the secondary classifier of message besides topic. - // + // MessagingRocketmqMessageTagKey is the attribute Key conforming to the + // "messaging.rocketmq.message.tag" semantic conventions. It represents the + // secondary classifier of message besides topic. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: tagA MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message.tag") - // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the "messaging.rocketmq.message.type" semantic conventions. It represents the type of message. - // + // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the + // "messaging.rocketmq.message.type" semantic conventions. It represents the + // type of message. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message.type") - // MessagingRocketmqNamespaceKey is the attribute Key conforming to the "messaging.rocketmq.namespace" semantic conventions. It represents the namespace of RocketMQ resources, resources in different namespaces are individual. - // + // MessagingRocketmqNamespaceKey is the attribute Key conforming to the + // "messaging.rocketmq.namespace" semantic conventions. It represents the + // namespace of RocketMQ resources, resources in different namespaces are + // individual. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: myNamespace MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace") - // MessagingServicebusDispositionStatusKey is the attribute Key conforming to the "messaging.servicebus.disposition_status" semantic conventions. It represents the describes the [settlement type]. - // + // MessagingServicebusDispositionStatusKey is the attribute Key conforming to + // the "messaging.servicebus.disposition_status" semantic conventions. It + // represents the describes the [settlement type]. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock MessagingServicebusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status") - // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to the "messaging.servicebus.message.delivery_count" semantic conventions. It represents the number of deliveries that have been attempted for this message. - // + // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to + // the "messaging.servicebus.message.delivery_count" semantic conventions. It + // represents the number of deliveries that have been attempted for this + // message. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingServicebusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count") - // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to the "messaging.servicebus.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. - // + // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to + // the "messaging.servicebus.message.enqueued_time" semantic conventions. It + // represents the UTC epoch seconds at which the message has been accepted and + // stored in the entity. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development MessagingServicebusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time") - // MessagingSystemKey is the attribute Key conforming to the "messaging.system" semantic conventions. It represents the messaging system as identified by the client instrumentation. - // + // MessagingSystemKey is the attribute Key conforming to the "messaging.system" + // semantic conventions. It represents the messaging system as identified by the + // client instrumentation. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge. + // Note: The actual messaging system may differ from the one known by the + // client. For example, when using Kafka client libraries to communicate with + // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the + // instrumentation's best knowledge. MessagingSystemKey = attribute.Key("messaging.system") ) -// MessagingBatchMessageCount returns an attribute KeyValue conforming to the "messaging.batch.message_count" semantic conventions. It represents the number of messages sent, received, or processed in the scope of the batching operation. +// MessagingBatchMessageCount returns an attribute KeyValue conforming to the +// "messaging.batch.message_count" semantic conventions. It represents the number +// of messages sent, received, or processed in the scope of the batching +// operation. func MessagingBatchMessageCount(val int) attribute.KeyValue { return MessagingBatchMessageCountKey.Int(val) } -// MessagingClientID returns an attribute KeyValue conforming to the "messaging.client.id" semantic conventions. It represents a unique identifier for the client that consumes or produces a message. +// MessagingClientID returns an attribute KeyValue conforming to the +// "messaging.client.id" semantic conventions. It represents a unique identifier +// for the client that consumes or produces a message. func MessagingClientID(val string) attribute.KeyValue { return MessagingClientIDKey.String(val) } -// MessagingConsumerGroupName returns an attribute KeyValue conforming to the "messaging.consumer.group.name" semantic conventions. It represents the name of the consumer group with which a consumer is associated. +// MessagingConsumerGroupName returns an attribute KeyValue conforming to the +// "messaging.consumer.group.name" semantic conventions. It represents the name +// of the consumer group with which a consumer is associated. func MessagingConsumerGroupName(val string) attribute.KeyValue { return MessagingConsumerGroupNameKey.String(val) } -// MessagingDestinationAnonymous returns an attribute KeyValue conforming to the "messaging.destination.anonymous" semantic conventions. It represents a boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). +// MessagingDestinationAnonymous returns an attribute KeyValue conforming to the +// "messaging.destination.anonymous" semantic conventions. It represents a +// boolean that is true if the message destination is anonymous (could be unnamed +// or have auto-generated name). func MessagingDestinationAnonymous(val bool) attribute.KeyValue { return MessagingDestinationAnonymousKey.Bool(val) } -// MessagingDestinationName returns an attribute KeyValue conforming to the "messaging.destination.name" semantic conventions. It represents the message destination name. +// MessagingDestinationName returns an attribute KeyValue conforming to the +// "messaging.destination.name" semantic conventions. It represents the message +// destination name. func MessagingDestinationName(val string) attribute.KeyValue { return MessagingDestinationNameKey.String(val) } -// MessagingDestinationPartitionID returns an attribute KeyValue conforming to the "messaging.destination.partition.id" semantic conventions. It represents the identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. +// MessagingDestinationPartitionID returns an attribute KeyValue conforming to +// the "messaging.destination.partition.id" semantic conventions. It represents +// the identifier of the partition messages are sent to or received from, unique +// within the `messaging.destination.name`. func MessagingDestinationPartitionID(val string) attribute.KeyValue { return MessagingDestinationPartitionIDKey.String(val) } -// MessagingDestinationSubscriptionName returns an attribute KeyValue conforming to the "messaging.destination.subscription.name" semantic conventions. It represents the name of the destination subscription from which a message is consumed. +// MessagingDestinationSubscriptionName returns an attribute KeyValue conforming +// to the "messaging.destination.subscription.name" semantic conventions. It +// represents the name of the destination subscription from which a message is +// consumed. func MessagingDestinationSubscriptionName(val string) attribute.KeyValue { return MessagingDestinationSubscriptionNameKey.String(val) } -// MessagingDestinationTemplate returns an attribute KeyValue conforming to the "messaging.destination.template" semantic conventions. It represents the low cardinality representation of the messaging destination name. +// MessagingDestinationTemplate returns an attribute KeyValue conforming to the +// "messaging.destination.template" semantic conventions. It represents the low +// cardinality representation of the messaging destination name. func MessagingDestinationTemplate(val string) attribute.KeyValue { return MessagingDestinationTemplateKey.String(val) } -// MessagingDestinationTemporary returns an attribute KeyValue conforming to the "messaging.destination.temporary" semantic conventions. It represents a boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. +// MessagingDestinationTemporary returns an attribute KeyValue conforming to the +// "messaging.destination.temporary" semantic conventions. It represents a +// boolean that is true if the message destination is temporary and might not +// exist anymore after messages are processed. func MessagingDestinationTemporary(val bool) attribute.KeyValue { return MessagingDestinationTemporaryKey.Bool(val) } -// MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. +// MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming +// to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It +// represents the UTC epoch seconds at which the message has been accepted and +// stored in the entity. func MessagingEventhubsMessageEnqueuedTime(val int) attribute.KeyValue { return MessagingEventhubsMessageEnqueuedTimeKey.Int(val) } -// MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It represents the ack deadline in seconds set for the modify ack deadline request. +// MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming +// to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It +// represents the ack deadline in seconds set for the modify ack deadline +// request. func MessagingGCPPubsubMessageAckDeadline(val int) attribute.KeyValue { return MessagingGCPPubsubMessageAckDeadlineKey.Int(val) } -// MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the ack id for a given message. +// MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the +// "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the +// ack id for a given message. func MessagingGCPPubsubMessageAckID(val string) attribute.KeyValue { return MessagingGCPPubsubMessageAckIDKey.String(val) } -// MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions. It represents the delivery attempt for a given message. +// MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue +// conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic +// conventions. It represents the delivery attempt for a given message. func MessagingGCPPubsubMessageDeliveryAttempt(val int) attribute.KeyValue { return MessagingGCPPubsubMessageDeliveryAttemptKey.Int(val) } -// MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It represents the ordering key for a given message. If the attribute is not present, the message does not have an ordering key. +// MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming +// to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It +// represents the ordering key for a given message. If the attribute is not +// present, the message does not have an ordering key. func MessagingGCPPubsubMessageOrderingKey(val string) attribute.KeyValue { return MessagingGCPPubsubMessageOrderingKeyKey.String(val) } -// MessagingKafkaMessageKey returns an attribute KeyValue conforming to the "messaging.kafka.message.key" semantic conventions. It represents the message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. +// MessagingKafkaMessageKey returns an attribute KeyValue conforming to the +// "messaging.kafka.message.key" semantic conventions. It represents the message +// keys in Kafka are used for grouping alike messages to ensure they're processed +// on the same partition. They differ from `messaging.message.id` in that they're +// not unique. If the key is `null`, the attribute MUST NOT be set. func MessagingKafkaMessageKey(val string) attribute.KeyValue { return MessagingKafkaMessageKeyKey.String(val) } -// MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the "messaging.kafka.message.tombstone" semantic conventions. It represents a boolean that is true if the message is a tombstone. +// MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the +// "messaging.kafka.message.tombstone" semantic conventions. It represents a +// boolean that is true if the message is a tombstone. func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue { return MessagingKafkaMessageTombstoneKey.Bool(val) } -// MessagingKafkaOffset returns an attribute KeyValue conforming to the "messaging.kafka.offset" semantic conventions. It represents the offset of a record in the corresponding Kafka partition. +// MessagingKafkaOffset returns an attribute KeyValue conforming to the +// "messaging.kafka.offset" semantic conventions. It represents the offset of a +// record in the corresponding Kafka partition. func MessagingKafkaOffset(val int) attribute.KeyValue { return MessagingKafkaOffsetKey.Int(val) } -// MessagingMessageBodySize returns an attribute KeyValue conforming to the "messaging.message.body.size" semantic conventions. It represents the size of the message body in bytes. +// MessagingMessageBodySize returns an attribute KeyValue conforming to the +// "messaging.message.body.size" semantic conventions. It represents the size of +// the message body in bytes. func MessagingMessageBodySize(val int) attribute.KeyValue { return MessagingMessageBodySizeKey.Int(val) } -// MessagingMessageConversationID returns an attribute KeyValue conforming to the "messaging.message.conversation_id" semantic conventions. It represents the conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". +// MessagingMessageConversationID returns an attribute KeyValue conforming to the +// "messaging.message.conversation_id" semantic conventions. It represents the +// conversation ID identifying the conversation to which the message belongs, +// represented as a string. Sometimes called "Correlation ID". func MessagingMessageConversationID(val string) attribute.KeyValue { return MessagingMessageConversationIDKey.String(val) } -// MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the "messaging.message.envelope.size" semantic conventions. It represents the size of the message body and metadata in bytes. +// MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the +// "messaging.message.envelope.size" semantic conventions. It represents the size +// of the message body and metadata in bytes. func MessagingMessageEnvelopeSize(val int) attribute.KeyValue { return MessagingMessageEnvelopeSizeKey.Int(val) } -// MessagingMessageID returns an attribute KeyValue conforming to the "messaging.message.id" semantic conventions. It represents a value used by the messaging system as an identifier for the message, represented as a string. +// MessagingMessageID returns an attribute KeyValue conforming to the +// "messaging.message.id" semantic conventions. It represents a value used by the +// messaging system as an identifier for the message, represented as a string. func MessagingMessageID(val string) attribute.KeyValue { return MessagingMessageIDKey.String(val) } -// MessagingOperationName returns an attribute KeyValue conforming to the "messaging.operation.name" semantic conventions. It represents the system-specific name of the messaging operation. +// MessagingOperationName returns an attribute KeyValue conforming to the +// "messaging.operation.name" semantic conventions. It represents the +// system-specific name of the messaging operation. func MessagingOperationName(val string) attribute.KeyValue { return MessagingOperationNameKey.String(val) } -// MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue conforming to the "messaging.rabbitmq.destination.routing_key" semantic conventions. It represents the rabbitMQ message routing key. +// MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue +// conforming to the "messaging.rabbitmq.destination.routing_key" semantic +// conventions. It represents the rabbitMQ message routing key. func MessagingRabbitmqDestinationRoutingKey(val string) attribute.KeyValue { return MessagingRabbitmqDestinationRoutingKeyKey.String(val) } -// MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents the rabbitMQ message delivery tag. +// MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming +// to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It +// represents the rabbitMQ message delivery tag. func MessagingRabbitmqMessageDeliveryTag(val int) attribute.KeyValue { return MessagingRabbitmqMessageDeliveryTagKey.Int(val) } -// MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue conforming to the "messaging.rocketmq.message.delay_time_level" semantic conventions. It represents the delay time level for delay message, which determines the message delay time. +// MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue +// conforming to the "messaging.rocketmq.message.delay_time_level" semantic +// conventions. It represents the delay time level for delay message, which +// determines the message delay time. func MessagingRocketmqMessageDelayTimeLevel(val int) attribute.KeyValue { return MessagingRocketmqMessageDelayTimeLevelKey.Int(val) } -// MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions. It represents the timestamp in milliseconds that the delay message is expected to be delivered to consumer. +// MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue +// conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic +// conventions. It represents the timestamp in milliseconds that the delay +// message is expected to be delivered to consumer. func MessagingRocketmqMessageDeliveryTimestamp(val int) attribute.KeyValue { return MessagingRocketmqMessageDeliveryTimestampKey.Int(val) } -// MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the "messaging.rocketmq.message.group" semantic conventions. It represents the it is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. +// MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the +// "messaging.rocketmq.message.group" semantic conventions. It represents the it +// is essential for FIFO message. Messages that belong to the same message group +// are always processed one by one within the same consumer group. func MessagingRocketmqMessageGroup(val string) attribute.KeyValue { return MessagingRocketmqMessageGroupKey.String(val) } -// MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the "messaging.rocketmq.message.keys" semantic conventions. It represents the key(s) of message, another way to mark message besides message id. +// MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the +// "messaging.rocketmq.message.keys" semantic conventions. It represents the +// key(s) of message, another way to mark message besides message id. func MessagingRocketmqMessageKeys(val ...string) attribute.KeyValue { return MessagingRocketmqMessageKeysKey.StringSlice(val) } -// MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the "messaging.rocketmq.message.tag" semantic conventions. It represents the secondary classifier of message besides topic. +// MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the +// "messaging.rocketmq.message.tag" semantic conventions. It represents the +// secondary classifier of message besides topic. func MessagingRocketmqMessageTag(val string) attribute.KeyValue { return MessagingRocketmqMessageTagKey.String(val) } -// MessagingRocketmqNamespace returns an attribute KeyValue conforming to the "messaging.rocketmq.namespace" semantic conventions. It represents the namespace of RocketMQ resources, resources in different namespaces are individual. +// MessagingRocketmqNamespace returns an attribute KeyValue conforming to the +// "messaging.rocketmq.namespace" semantic conventions. It represents the +// namespace of RocketMQ resources, resources in different namespaces are +// individual. func MessagingRocketmqNamespace(val string) attribute.KeyValue { return MessagingRocketmqNamespaceKey.String(val) } -// MessagingServicebusMessageDeliveryCount returns an attribute KeyValue conforming to the "messaging.servicebus.message.delivery_count" semantic conventions. It represents the number of deliveries that have been attempted for this message. +// MessagingServicebusMessageDeliveryCount returns an attribute KeyValue +// conforming to the "messaging.servicebus.message.delivery_count" semantic +// conventions. It represents the number of deliveries that have been attempted +// for this message. func MessagingServicebusMessageDeliveryCount(val int) attribute.KeyValue { return MessagingServicebusMessageDeliveryCountKey.Int(val) } -// MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue conforming to the "messaging.servicebus.message.enqueued_time" semantic conventions. It represents the UTC epoch seconds at which the message has been accepted and stored in the entity. +// MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue +// conforming to the "messaging.servicebus.message.enqueued_time" semantic +// conventions. It represents the UTC epoch seconds at which the message has been +// accepted and stored in the entity. func MessagingServicebusMessageEnqueuedTime(val int) attribute.KeyValue { return MessagingServicebusMessageEnqueuedTimeKey.Int(val) } // Enum values for messaging.operation.type var ( - // A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch sending scenarios. - // - // Stability: experimental + // A message is created. "Create" spans always refer to a single message and are + // used to provide a unique creation context for messages in batch sending + // scenarios. + // + // Stability: development MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create") - // One or more messages are provided for sending to an intermediary. If a single message is sent, the context of the "Send" span can be used as the creation context and no "Create" span needs to be created. - // - // Stability: experimental + // One or more messages are provided for sending to an intermediary. If a single + // message is sent, the context of the "Send" span can be used as the creation + // context and no "Create" span needs to be created. + // + // Stability: development MessagingOperationTypeSend = MessagingOperationTypeKey.String("send") - // One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. - // - // Stability: experimental + // One or more messages are requested by a consumer. This operation refers to + // pull-based scenarios, where consumers explicitly call methods of messaging + // SDKs to receive messages. + // + // Stability: development MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive") // One or more messages are processed by a consumer. - // - // Stability: experimental + // + // Stability: development MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process") // One or more messages are settled. - // - // Stability: experimental + // + // Stability: development MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle") // Deprecated: Replaced by `process`. MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver") @@ -5687,285 +7254,338 @@ var ( // Enum values for messaging.rocketmq.consumption_model var ( // Clustering consumption model - // Stability: experimental + // Stability: development MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering") // Broadcasting consumption model - // Stability: experimental + // Stability: development MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting") ) // Enum values for messaging.rocketmq.message.type var ( // Normal message - // Stability: experimental + // Stability: development MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal") // FIFO message - // Stability: experimental + // Stability: development MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo") // Delay message - // Stability: experimental + // Stability: development MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay") // Transaction message - // Stability: experimental + // Stability: development MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction") ) // Enum values for messaging.servicebus.disposition_status var ( // Message is completed - // Stability: experimental + // Stability: development MessagingServicebusDispositionStatusComplete = MessagingServicebusDispositionStatusKey.String("complete") // Message is abandoned - // Stability: experimental + // Stability: development MessagingServicebusDispositionStatusAbandon = MessagingServicebusDispositionStatusKey.String("abandon") // Message is sent to dead letter queue - // Stability: experimental + // Stability: development MessagingServicebusDispositionStatusDeadLetter = MessagingServicebusDispositionStatusKey.String("dead_letter") // Message is deferred - // Stability: experimental + // Stability: development MessagingServicebusDispositionStatusDefer = MessagingServicebusDispositionStatusKey.String("defer") ) // Enum values for messaging.system var ( // Apache ActiveMQ - // Stability: experimental + // Stability: development MessagingSystemActivemq = MessagingSystemKey.String("activemq") // Amazon Simple Queue Service (SQS) - // Stability: experimental + // Stability: development MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs") // Azure Event Grid - // Stability: experimental + // Stability: development MessagingSystemEventgrid = MessagingSystemKey.String("eventgrid") // Azure Event Hubs - // Stability: experimental + // Stability: development MessagingSystemEventhubs = MessagingSystemKey.String("eventhubs") // Azure Service Bus - // Stability: experimental + // Stability: development MessagingSystemServicebus = MessagingSystemKey.String("servicebus") // Google Cloud Pub/Sub - // Stability: experimental + // Stability: development MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub") // Java Message Service - // Stability: experimental + // Stability: development MessagingSystemJms = MessagingSystemKey.String("jms") // Apache Kafka - // Stability: experimental + // Stability: development MessagingSystemKafka = MessagingSystemKey.String("kafka") // RabbitMQ - // Stability: experimental + // Stability: development MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq") // Apache RocketMQ - // Stability: experimental + // Stability: development MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq") // Apache Pulsar - // Stability: experimental + // Stability: development MessagingSystemPulsar = MessagingSystemKey.String("pulsar") ) // Namespace: network const ( - // NetworkCarrierIccKey is the attribute Key conforming to the "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. - // + // NetworkCarrierIccKey is the attribute Key conforming to the + // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 + // alpha-2 2-character country code associated with the mobile carrier network. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: DE NetworkCarrierIccKey = attribute.Key("network.carrier.icc") - // NetworkCarrierMccKey is the attribute Key conforming to the "network.carrier.mcc" semantic conventions. It represents the mobile carrier country code. - // + // NetworkCarrierMccKey is the attribute Key conforming to the + // "network.carrier.mcc" semantic conventions. It represents the mobile carrier + // country code. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 310 NetworkCarrierMccKey = attribute.Key("network.carrier.mcc") - // NetworkCarrierMncKey is the attribute Key conforming to the "network.carrier.mnc" semantic conventions. It represents the mobile carrier network code. - // + // NetworkCarrierMncKey is the attribute Key conforming to the + // "network.carrier.mnc" semantic conventions. It represents the mobile carrier + // network code. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 001 NetworkCarrierMncKey = attribute.Key("network.carrier.mnc") - // NetworkCarrierNameKey is the attribute Key conforming to the "network.carrier.name" semantic conventions. It represents the name of the mobile carrier. - // + // NetworkCarrierNameKey is the attribute Key conforming to the + // "network.carrier.name" semantic conventions. It represents the name of the + // mobile carrier. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: sprint NetworkCarrierNameKey = attribute.Key("network.carrier.name") - // NetworkConnectionSubtypeKey is the attribute Key conforming to the "network.connection.subtype" semantic conventions. It represents the this describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. - // + // NetworkConnectionSubtypeKey is the attribute Key conforming to the + // "network.connection.subtype" semantic conventions. It represents the this + // describes more details regarding the connection.type. It may be the type of + // cell technology connection, but it could be used for describing details about + // a wifi connection. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: LTE NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype") - // NetworkConnectionTypeKey is the attribute Key conforming to the "network.connection.type" semantic conventions. It represents the internet connection type. - // + // NetworkConnectionTypeKey is the attribute Key conforming to the + // "network.connection.type" semantic conventions. It represents the internet + // connection type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: wifi NetworkConnectionTypeKey = attribute.Key("network.connection.type") - // NetworkIoDirectionKey is the attribute Key conforming to the "network.io.direction" semantic conventions. It represents the network IO operation direction. - // + // NetworkIoDirectionKey is the attribute Key conforming to the + // "network.io.direction" semantic conventions. It represents the network IO + // operation direction. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "transmit" NetworkIoDirectionKey = attribute.Key("network.io.direction") - // NetworkLocalAddressKey is the attribute Key conforming to the "network.local.address" semantic conventions. It represents the local address of the network connection - IP address or Unix domain socket name. - // + // NetworkLocalAddressKey is the attribute Key conforming to the + // "network.local.address" semantic conventions. It represents the local address + // of the network connection - IP address or Unix domain socket name. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "10.1.2.80", "/tmp/my.sock" NetworkLocalAddressKey = attribute.Key("network.local.address") - // NetworkLocalPortKey is the attribute Key conforming to the "network.local.port" semantic conventions. It represents the local port number of the network connection. - // + // NetworkLocalPortKey is the attribute Key conforming to the + // "network.local.port" semantic conventions. It represents the local port + // number of the network connection. + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: 65123 NetworkLocalPortKey = attribute.Key("network.local.port") - // NetworkPeerAddressKey is the attribute Key conforming to the "network.peer.address" semantic conventions. It represents the peer address of the network connection - IP address or Unix domain socket name. - // + // NetworkPeerAddressKey is the attribute Key conforming to the + // "network.peer.address" semantic conventions. It represents the peer address + // of the network connection - IP address or Unix domain socket name. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "10.1.2.80", "/tmp/my.sock" NetworkPeerAddressKey = attribute.Key("network.peer.address") - // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port" semantic conventions. It represents the peer port number of the network connection. - // + // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port" + // semantic conventions. It represents the peer port number of the network + // connection. + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: 65123 NetworkPeerPortKey = attribute.Key("network.peer.port") - // NetworkProtocolNameKey is the attribute Key conforming to the "network.protocol.name" semantic conventions. It represents the [OSI application layer] or non-OSI equivalent. - // + // NetworkProtocolNameKey is the attribute Key conforming to the + // "network.protocol.name" semantic conventions. It represents the + // [OSI application layer] or non-OSI equivalent. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "amqp", "http", "mqtt" // Note: The value SHOULD be normalized to lowercase. - // + // // [OSI application layer]: https://osi-model.com/application-layer/ NetworkProtocolNameKey = attribute.Key("network.protocol.name") - // NetworkProtocolVersionKey is the attribute Key conforming to the "network.protocol.version" semantic conventions. It represents the actual version of the protocol used for network communication. - // + // NetworkProtocolVersionKey is the attribute Key conforming to the + // "network.protocol.version" semantic conventions. It represents the actual + // version of the protocol used for network communication. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "1.1", "2" - // Note: If protocol version is subject to negotiation (for example using [ALPN]), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set. - // + // Note: If protocol version is subject to negotiation (for example using [ALPN] + // ), this attribute SHOULD be set to the negotiated version. If the actual + // protocol version is not known, this attribute SHOULD NOT be set. + // // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html NetworkProtocolVersionKey = attribute.Key("network.protocol.version") - // NetworkTransportKey is the attribute Key conforming to the "network.transport" semantic conventions. It represents the [OSI transport layer] or [inter-process communication method]. - // + // NetworkTransportKey is the attribute Key conforming to the + // "network.transport" semantic conventions. It represents the + // [OSI transport layer] or [inter-process communication method]. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "tcp", "udp" // Note: The value SHOULD be normalized to lowercase. - // + // // Consider always setting the transport when setting a port number, since // a port number is ambiguous without knowing the transport. For example // different processes could be listening on TCP port 12345 and UDP port 12345. - // + // // [OSI transport layer]: https://osi-model.com/transport-layer/ // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication NetworkTransportKey = attribute.Key("network.transport") - // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic conventions. It represents the [OSI network layer] or non-OSI equivalent. - // + // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic + // conventions. It represents the [OSI network layer] or non-OSI equivalent. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "ipv4", "ipv6" // Note: The value SHOULD be normalized to lowercase. - // + // // [OSI network layer]: https://osi-model.com/network-layer/ NetworkTypeKey = attribute.Key("network.type") ) -// NetworkCarrierIcc returns an attribute KeyValue conforming to the "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. +// NetworkCarrierIcc returns an attribute KeyValue conforming to the +// "network.carrier.icc" semantic conventions. It represents the ISO 3166-1 +// alpha-2 2-character country code associated with the mobile carrier network. func NetworkCarrierIcc(val string) attribute.KeyValue { return NetworkCarrierIccKey.String(val) } -// NetworkCarrierMcc returns an attribute KeyValue conforming to the "network.carrier.mcc" semantic conventions. It represents the mobile carrier country code. +// NetworkCarrierMcc returns an attribute KeyValue conforming to the +// "network.carrier.mcc" semantic conventions. It represents the mobile carrier +// country code. func NetworkCarrierMcc(val string) attribute.KeyValue { return NetworkCarrierMccKey.String(val) } -// NetworkCarrierMnc returns an attribute KeyValue conforming to the "network.carrier.mnc" semantic conventions. It represents the mobile carrier network code. +// NetworkCarrierMnc returns an attribute KeyValue conforming to the +// "network.carrier.mnc" semantic conventions. It represents the mobile carrier +// network code. func NetworkCarrierMnc(val string) attribute.KeyValue { return NetworkCarrierMncKey.String(val) } -// NetworkCarrierName returns an attribute KeyValue conforming to the "network.carrier.name" semantic conventions. It represents the name of the mobile carrier. +// NetworkCarrierName returns an attribute KeyValue conforming to the +// "network.carrier.name" semantic conventions. It represents the name of the +// mobile carrier. func NetworkCarrierName(val string) attribute.KeyValue { return NetworkCarrierNameKey.String(val) } -// NetworkLocalAddress returns an attribute KeyValue conforming to the "network.local.address" semantic conventions. It represents the local address of the network connection - IP address or Unix domain socket name. +// NetworkLocalAddress returns an attribute KeyValue conforming to the +// "network.local.address" semantic conventions. It represents the local address +// of the network connection - IP address or Unix domain socket name. func NetworkLocalAddress(val string) attribute.KeyValue { return NetworkLocalAddressKey.String(val) } -// NetworkLocalPort returns an attribute KeyValue conforming to the "network.local.port" semantic conventions. It represents the local port number of the network connection. +// NetworkLocalPort returns an attribute KeyValue conforming to the +// "network.local.port" semantic conventions. It represents the local port number +// of the network connection. func NetworkLocalPort(val int) attribute.KeyValue { return NetworkLocalPortKey.Int(val) } -// NetworkPeerAddress returns an attribute KeyValue conforming to the "network.peer.address" semantic conventions. It represents the peer address of the network connection - IP address or Unix domain socket name. +// NetworkPeerAddress returns an attribute KeyValue conforming to the +// "network.peer.address" semantic conventions. It represents the peer address of +// the network connection - IP address or Unix domain socket name. func NetworkPeerAddress(val string) attribute.KeyValue { return NetworkPeerAddressKey.String(val) } -// NetworkPeerPort returns an attribute KeyValue conforming to the "network.peer.port" semantic conventions. It represents the peer port number of the network connection. +// NetworkPeerPort returns an attribute KeyValue conforming to the +// "network.peer.port" semantic conventions. It represents the peer port number +// of the network connection. func NetworkPeerPort(val int) attribute.KeyValue { return NetworkPeerPortKey.Int(val) } -// NetworkProtocolName returns an attribute KeyValue conforming to the "network.protocol.name" semantic conventions. It represents the [OSI application layer] or non-OSI equivalent. -// +// NetworkProtocolName returns an attribute KeyValue conforming to the +// "network.protocol.name" semantic conventions. It represents the +// [OSI application layer] or non-OSI equivalent. +// // [OSI application layer]: https://osi-model.com/application-layer/ func NetworkProtocolName(val string) attribute.KeyValue { return NetworkProtocolNameKey.String(val) } -// NetworkProtocolVersion returns an attribute KeyValue conforming to the "network.protocol.version" semantic conventions. It represents the actual version of the protocol used for network communication. +// NetworkProtocolVersion returns an attribute KeyValue conforming to the +// "network.protocol.version" semantic conventions. It represents the actual +// version of the protocol used for network communication. func NetworkProtocolVersion(val string) attribute.KeyValue { return NetworkProtocolVersionKey.String(val) } @@ -5973,96 +7593,96 @@ func NetworkProtocolVersion(val string) attribute.KeyValue { // Enum values for network.connection.subtype var ( // GPRS - // Stability: experimental + // Stability: development NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs") // EDGE - // Stability: experimental + // Stability: development NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge") // UMTS - // Stability: experimental + // Stability: development NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts") // CDMA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma") // EVDO Rel. 0 - // Stability: experimental + // Stability: development NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0") // EVDO Rev. A - // Stability: experimental + // Stability: development NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a") // CDMA2000 1XRTT - // Stability: experimental + // Stability: development NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt") // HSDPA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa") // HSUPA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa") // HSPA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa") // IDEN - // Stability: experimental + // Stability: development NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden") // EVDO Rev. B - // Stability: experimental + // Stability: development NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b") // LTE - // Stability: experimental + // Stability: development NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte") // EHRPD - // Stability: experimental + // Stability: development NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd") // HSPAP - // Stability: experimental + // Stability: development NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap") // GSM - // Stability: experimental + // Stability: development NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm") // TD-SCDMA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma") // IWLAN - // Stability: experimental + // Stability: development NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan") // 5G NR (New Radio) - // Stability: experimental + // Stability: development NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr") // 5G NRNSA (New Radio Non-Standalone) - // Stability: experimental + // Stability: development NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa") // LTE CA - // Stability: experimental + // Stability: development NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca") ) // Enum values for network.connection.type var ( // wifi - // Stability: experimental + // Stability: development NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi") // wired - // Stability: experimental + // Stability: development NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired") // cell - // Stability: experimental + // Stability: development NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell") // unavailable - // Stability: experimental + // Stability: development NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable") // unknown - // Stability: experimental + // Stability: development NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown") ) // Enum values for network.io.direction var ( // transmit - // Stability: experimental + // Stability: development NetworkIoDirectionTransmit = NetworkIoDirectionKey.String("transmit") // receive - // Stability: experimental + // Stability: development NetworkIoDirectionReceive = NetworkIoDirectionKey.String("receive") ) @@ -6081,7 +7701,7 @@ var ( // Stability: stable NetworkTransportUnix = NetworkTransportKey.String("unix") // QUIC - // Stability: experimental + // Stability: development NetworkTransportQUIC = NetworkTransportKey.String("quic") ) @@ -6097,35 +7717,45 @@ var ( // Namespace: oci const ( - // OciManifestDigestKey is the attribute Key conforming to the "oci.manifest.digest" semantic conventions. It represents the digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. - // + // OciManifestDigestKey is the attribute Key conforming to the + // "oci.manifest.digest" semantic conventions. It represents the digest of the + // OCI image manifest. For container images specifically is the digest by which + // the container image is known. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4" - // Note: Follows [OCI Image Manifest Specification], and specifically the [Digest property]. + // Stability: Development + // + // Examples: + // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4" + // Note: Follows [OCI Image Manifest Specification], and specifically the + // [Digest property]. // An example can be found in [Example Image Manifest]. - // + // // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests // [Example Image Manifest]: https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest OciManifestDigestKey = attribute.Key("oci.manifest.digest") ) -// OciManifestDigest returns an attribute KeyValue conforming to the "oci.manifest.digest" semantic conventions. It represents the digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. +// OciManifestDigest returns an attribute KeyValue conforming to the +// "oci.manifest.digest" semantic conventions. It represents the digest of the +// OCI image manifest. For container images specifically is the digest by which +// the container image is known. func OciManifestDigest(val string) attribute.KeyValue { return OciManifestDigestKey.String(val) } // Namespace: opentracing const ( - // OpentracingRefTypeKey is the attribute Key conforming to the "opentracing.ref_type" semantic conventions. It represents the parent-child Reference type. - // + // OpentracingRefTypeKey is the attribute Key conforming to the + // "opentracing.ref_type" semantic conventions. It represents the parent-child + // Reference type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: // Note: The causal relationship between a child Span and a parent Span. OpentracingRefTypeKey = attribute.Key("opentracing.ref_type") @@ -6134,80 +7764,97 @@ const ( // Enum values for opentracing.ref_type var ( // The parent Span depends on the child Span in some capacity - // Stability: experimental + // Stability: development OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of") // The parent Span doesn't depend in any way on the result of the child Span - // Stability: experimental + // Stability: development OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from") ) // Namespace: os const ( - // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic conventions. It represents the unique identifier for a particular build or compilation of the operating system. - // + // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic + // conventions. It represents the unique identifier for a particular build or + // compilation of the operating system. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "TQ3C.230805.001.B2", "20E247", "22621" OSBuildIDKey = attribute.Key("os.build_id") - // OSDescriptionKey is the attribute Key conforming to the "os.description" semantic conventions. It represents the human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. - // + // OSDescriptionKey is the attribute Key conforming to the "os.description" + // semantic conventions. It represents the human readable (not intended to be + // parsed) OS version information, like e.g. reported by `ver` or + // `lsb_release -a` commands. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS" OSDescriptionKey = attribute.Key("os.description") - // OSNameKey is the attribute Key conforming to the "os.name" semantic conventions. It represents the human readable operating system name. - // + // OSNameKey is the attribute Key conforming to the "os.name" semantic + // conventions. It represents the human readable operating system name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "iOS", "Android", "Ubuntu" OSNameKey = attribute.Key("os.name") - // OSTypeKey is the attribute Key conforming to the "os.type" semantic conventions. It represents the operating system type. - // + // OSTypeKey is the attribute Key conforming to the "os.type" semantic + // conventions. It represents the operating system type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: OSTypeKey = attribute.Key("os.type") - // OSVersionKey is the attribute Key conforming to the "os.version" semantic conventions. It represents the version string of the operating system as defined in [Version Attributes]. - // + // OSVersionKey is the attribute Key conforming to the "os.version" semantic + // conventions. It represents the version string of the operating system as + // defined in [Version Attributes]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "14.2.1", "18.04.1" - // + // // [Version Attributes]: /docs/resource/README.md#version-attributes OSVersionKey = attribute.Key("os.version") ) -// OSBuildID returns an attribute KeyValue conforming to the "os.build_id" semantic conventions. It represents the unique identifier for a particular build or compilation of the operating system. +// OSBuildID returns an attribute KeyValue conforming to the "os.build_id" +// semantic conventions. It represents the unique identifier for a particular +// build or compilation of the operating system. func OSBuildID(val string) attribute.KeyValue { return OSBuildIDKey.String(val) } -// OSDescription returns an attribute KeyValue conforming to the "os.description" semantic conventions. It represents the human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. +// OSDescription returns an attribute KeyValue conforming to the "os.description" +// semantic conventions. It represents the human readable (not intended to be +// parsed) OS version information, like e.g. reported by `ver` or +// `lsb_release -a` commands. func OSDescription(val string) attribute.KeyValue { return OSDescriptionKey.String(val) } -// OSName returns an attribute KeyValue conforming to the "os.name" semantic conventions. It represents the human readable operating system name. +// OSName returns an attribute KeyValue conforming to the "os.name" semantic +// conventions. It represents the human readable operating system name. func OSName(val string) attribute.KeyValue { return OSNameKey.String(val) } -// OSVersion returns an attribute KeyValue conforming to the "os.version" semantic conventions. It represents the version string of the operating system as defined in [Version Attributes]. -// +// OSVersion returns an attribute KeyValue conforming to the "os.version" +// semantic conventions. It represents the version string of the operating system +// as defined in [Version Attributes]. +// // [Version Attributes]: /docs/resource/README.md#version-attributes func OSVersion(val string) attribute.KeyValue { return OSVersionKey.String(val) @@ -6216,97 +7863,112 @@ func OSVersion(val string) attribute.KeyValue { // Enum values for os.type var ( // Microsoft Windows - // Stability: experimental + // Stability: development OSTypeWindows = OSTypeKey.String("windows") // Linux - // Stability: experimental + // Stability: development OSTypeLinux = OSTypeKey.String("linux") // Apple Darwin - // Stability: experimental + // Stability: development OSTypeDarwin = OSTypeKey.String("darwin") // FreeBSD - // Stability: experimental + // Stability: development OSTypeFreeBSD = OSTypeKey.String("freebsd") // NetBSD - // Stability: experimental + // Stability: development OSTypeNetBSD = OSTypeKey.String("netbsd") // OpenBSD - // Stability: experimental + // Stability: development OSTypeOpenBSD = OSTypeKey.String("openbsd") // DragonFly BSD - // Stability: experimental + // Stability: development OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd") // HP-UX (Hewlett Packard Unix) - // Stability: experimental + // Stability: development OSTypeHPUX = OSTypeKey.String("hpux") // AIX (Advanced Interactive eXecutive) - // Stability: experimental + // Stability: development OSTypeAIX = OSTypeKey.String("aix") // SunOS, Oracle Solaris - // Stability: experimental + // Stability: development OSTypeSolaris = OSTypeKey.String("solaris") // IBM z/OS - // Stability: experimental + // Stability: development OSTypeZOS = OSTypeKey.String("z_os") ) // Namespace: otel const ( - // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name" semantic conventions. It represents the name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). - // + // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name" + // semantic conventions. It represents the name of the instrumentation scope - ( + // `InstrumentationScope.Name` in OTLP). + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "io.opentelemetry.contrib.mongodb" OTelScopeNameKey = attribute.Key("otel.scope.name") - // OTelScopeVersionKey is the attribute Key conforming to the "otel.scope.version" semantic conventions. It represents the version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). - // + // OTelScopeVersionKey is the attribute Key conforming to the + // "otel.scope.version" semantic conventions. It represents the version of the + // instrumentation scope - (`InstrumentationScope.Version` in OTLP). + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "1.0.0" OTelScopeVersionKey = attribute.Key("otel.scope.version") - // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code" semantic conventions. It represents the name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. - // + // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code" + // semantic conventions. It represents the name of the code, either "OK" or + // "ERROR". MUST NOT be set if the status code is UNSET. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: OTelStatusCodeKey = attribute.Key("otel.status_code") - // OTelStatusDescriptionKey is the attribute Key conforming to the "otel.status_description" semantic conventions. It represents the description of the Status if it has a value, otherwise not set. - // + // OTelStatusDescriptionKey is the attribute Key conforming to the + // "otel.status_description" semantic conventions. It represents the description + // of the Status if it has a value, otherwise not set. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "resource not found" OTelStatusDescriptionKey = attribute.Key("otel.status_description") ) -// OTelScopeName returns an attribute KeyValue conforming to the "otel.scope.name" semantic conventions. It represents the name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). +// OTelScopeName returns an attribute KeyValue conforming to the +// "otel.scope.name" semantic conventions. It represents the name of the +// instrumentation scope - (`InstrumentationScope.Name` in OTLP). func OTelScopeName(val string) attribute.KeyValue { return OTelScopeNameKey.String(val) } -// OTelScopeVersion returns an attribute KeyValue conforming to the "otel.scope.version" semantic conventions. It represents the version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). +// OTelScopeVersion returns an attribute KeyValue conforming to the +// "otel.scope.version" semantic conventions. It represents the version of the +// instrumentation scope - (`InstrumentationScope.Version` in OTLP). func OTelScopeVersion(val string) attribute.KeyValue { return OTelScopeVersionKey.String(val) } -// OTelStatusDescription returns an attribute KeyValue conforming to the "otel.status_description" semantic conventions. It represents the description of the Status if it has a value, otherwise not set. +// OTelStatusDescription returns an attribute KeyValue conforming to the +// "otel.status_description" semantic conventions. It represents the description +// of the Status if it has a value, otherwise not set. func OTelStatusDescription(val string) attribute.KeyValue { return OTelStatusDescriptionKey.String(val) } // Enum values for otel.status_code var ( - // The operation has been validated by an Application developer or Operator to have completed successfully. + // The operation has been validated by an Application developer or Operator to + // have completed successfully. // Stability: stable OTelStatusCodeOk = OTelStatusCodeKey.String("OK") // The operation contains an error. @@ -6316,20 +7978,26 @@ var ( // Namespace: peer const ( - // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic conventions. It represents the [`service.name`] of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. - // + // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic + // conventions. It represents the [`service.name`] of the remote service. SHOULD + // be equal to the actual `service.name` resource attribute of the remote + // service if any. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: AuthTokenCache - // + // // [`service.name`]: /docs/resource/README.md#service PeerServiceKey = attribute.Key("peer.service") ) -// PeerService returns an attribute KeyValue conforming to the "peer.service" semantic conventions. It represents the [`service.name`] of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. -// +// PeerService returns an attribute KeyValue conforming to the "peer.service" +// semantic conventions. It represents the [`service.name`] of the remote +// service. SHOULD be equal to the actual `service.name` resource attribute of +// the remote service if any. +// // [`service.name`]: /docs/resource/README.md#service func PeerService(val string) attribute.KeyValue { return PeerServiceKey.String(val) @@ -6337,444 +8005,604 @@ func PeerService(val string) attribute.KeyValue { // Namespace: process const ( - // ProcessArgsCountKey is the attribute Key conforming to the "process.args_count" semantic conventions. It represents the length of the process.command_args array. - // + // ProcessArgsCountKey is the attribute Key conforming to the + // "process.args_count" semantic conventions. It represents the length of the + // process.command_args array. + // // Type: int // RequirementLevel: {"Recommended": "If `Process.Command_Args` Is Populated."} - // Stability: Experimental - // + // Stability: Development + // // Examples: 4 - // Note: This field can be useful for querying or performing bucket analysis on how many arguments were provided to start a process. More arguments may be an indication of suspicious activity. + // Note: This field can be useful for querying or performing bucket analysis on + // how many arguments were provided to start a process. More arguments may be an + // indication of suspicious activity. ProcessArgsCountKey = attribute.Key("process.args_count") - // ProcessCommandKey is the attribute Key conforming to the "process.command" semantic conventions. It represents the command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. - // + // ProcessCommandKey is the attribute Key conforming to the "process.command" + // semantic conventions. It represents the command used to launch the process + // (i.e. the command name). On Linux based systems, can be set to the zeroth + // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter + // extracted from `GetCommandLineW`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "cmd/otelcol" ProcessCommandKey = attribute.Key("process.command") - // ProcessCommandArgsKey is the attribute Key conforming to the "process.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. - // + // ProcessCommandArgsKey is the attribute Key conforming to the + // "process.command_args" semantic conventions. It represents the all the + // command arguments (including the command/executable itself) as received by + // the process. On Linux-based systems (and some other Unixoid systems + // supporting procfs), can be set according to the list of null-delimited + // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this + // would be the full argv vector passed to `main`. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "cmd/otecol", "--config=config.yaml" ProcessCommandArgsKey = attribute.Key("process.command_args") - // ProcessCommandLineKey is the attribute Key conforming to the "process.command_line" semantic conventions. It represents the full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. - // + // ProcessCommandLineKey is the attribute Key conforming to the + // "process.command_line" semantic conventions. It represents the full command + // used to launch the process as a single string representing the full command. + // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if + // you have to assemble it just for monitoring; use `process.command_args` + // instead. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "C:\cmd\otecol --config="my directory\config.yaml"" ProcessCommandLineKey = attribute.Key("process.command_line") - // ProcessContextSwitchTypeKey is the attribute Key conforming to the "process.context_switch_type" semantic conventions. It represents the specifies whether the context switches for this data point were voluntary or involuntary. - // + // ProcessContextSwitchTypeKey is the attribute Key conforming to the + // "process.context_switch_type" semantic conventions. It represents the + // specifies whether the context switches for this data point were voluntary or + // involuntary. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type") - // ProcessCreationTimeKey is the attribute Key conforming to the "process.creation.time" semantic conventions. It represents the date and time the process was created, in ISO 8601 format. - // + // ProcessCreationTimeKey is the attribute Key conforming to the + // "process.creation.time" semantic conventions. It represents the date and time + // the process was created, in ISO 8601 format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2023-11-21T09:25:34.853Z" ProcessCreationTimeKey = attribute.Key("process.creation.time") - // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the "process.executable.build_id.gnu" semantic conventions. It represents the GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). - // + // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the + // "process.executable.build_id.gnu" semantic conventions. It represents the GNU + // build ID as found in the `.note.gnu.build-id` ELF section (hex string). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "c89b11207f6479603b0d49bf291c092c2b719293" ProcessExecutableBuildIDGnuKey = attribute.Key("process.executable.build_id.gnu") - // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the "process.executable.build_id.go" semantic conventions. It represents the Go build ID as retrieved by `go tool buildid `. - // + // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the + // "process.executable.build_id.go" semantic conventions. It represents the Go + // build ID as retrieved by `go tool buildid `. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY" + // Stability: Development + // + // Examples: + // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY" ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go") - // ProcessExecutableBuildIDProfilingKey is the attribute Key conforming to the "process.executable.build_id.profiling" semantic conventions. It represents the profiling specific build ID for executables. See the OTel specification for Profiles for more information. - // + // ProcessExecutableBuildIDProfilingKey is the attribute Key conforming to the + // "process.executable.build_id.profiling" semantic conventions. It represents + // the profiling specific build ID for executables. See the OTel specification + // for Profiles for more information. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "600DCAFE4A110000F2BF38C493F5FB92" ProcessExecutableBuildIDProfilingKey = attribute.Key("process.executable.build_id.profiling") - // ProcessExecutableNameKey is the attribute Key conforming to the "process.executable.name" semantic conventions. It represents the name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. - // + // ProcessExecutableNameKey is the attribute Key conforming to the + // "process.executable.name" semantic conventions. It represents the name of the + // process executable. On Linux based systems, can be set to the `Name` in + // `proc/[pid]/status`. On Windows, can be set to the base name of + // `GetProcessImageFileNameW`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "otelcol" ProcessExecutableNameKey = attribute.Key("process.executable.name") - // ProcessExecutablePathKey is the attribute Key conforming to the "process.executable.path" semantic conventions. It represents the full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. - // + // ProcessExecutablePathKey is the attribute Key conforming to the + // "process.executable.path" semantic conventions. It represents the full path + // to the process executable. On Linux based systems, can be set to the target + // of `proc/[pid]/exe`. On Windows, can be set to the result of + // `GetProcessImageFileNameW`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/usr/bin/cmd/otelcol" ProcessExecutablePathKey = attribute.Key("process.executable.path") - // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code" semantic conventions. It represents the exit code of the process. - // + // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code" + // semantic conventions. It represents the exit code of the process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 127 ProcessExitCodeKey = attribute.Key("process.exit.code") - // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time" semantic conventions. It represents the date and time the process exited, in ISO 8601 format. - // + // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time" + // semantic conventions. It represents the date and time the process exited, in + // ISO 8601 format. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2023-11-21T09:26:12.315Z" ProcessExitTimeKey = attribute.Key("process.exit.time") - // ProcessGroupLeaderPIDKey is the attribute Key conforming to the "process.group_leader.pid" semantic conventions. It represents the PID of the process's group leader. This is also the process group ID (PGID) of the process. - // + // ProcessGroupLeaderPIDKey is the attribute Key conforming to the + // "process.group_leader.pid" semantic conventions. It represents the PID of the + // process's group leader. This is also the process group ID (PGID) of the + // process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 23 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid") - // ProcessInteractiveKey is the attribute Key conforming to the "process.interactive" semantic conventions. It represents the whether the process is connected to an interactive shell. - // + // ProcessInteractiveKey is the attribute Key conforming to the + // "process.interactive" semantic conventions. It represents the whether the + // process is connected to an interactive shell. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: ProcessInteractiveKey = attribute.Key("process.interactive") - // ProcessOwnerKey is the attribute Key conforming to the "process.owner" semantic conventions. It represents the username of the user that owns the process. - // + // ProcessOwnerKey is the attribute Key conforming to the "process.owner" + // semantic conventions. It represents the username of the user that owns the + // process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "root" ProcessOwnerKey = attribute.Key("process.owner") - // ProcessPagingFaultTypeKey is the attribute Key conforming to the "process.paging.fault_type" semantic conventions. It represents the type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. - // + // ProcessPagingFaultTypeKey is the attribute Key conforming to the + // "process.paging.fault_type" semantic conventions. It represents the type of + // page fault for this data point. Type `major` is for major/hard page faults, + // and `minor` is for minor/soft page faults. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type") - // ProcessParentPIDKey is the attribute Key conforming to the "process.parent_pid" semantic conventions. It represents the parent Process identifier (PPID). - // + // ProcessParentPIDKey is the attribute Key conforming to the + // "process.parent_pid" semantic conventions. It represents the parent Process + // identifier (PPID). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 111 ProcessParentPIDKey = attribute.Key("process.parent_pid") - // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic conventions. It represents the process identifier (PID). - // + // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic + // conventions. It represents the process identifier (PID). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1234 ProcessPIDKey = attribute.Key("process.pid") - // ProcessRealUserIDKey is the attribute Key conforming to the "process.real_user.id" semantic conventions. It represents the real user ID (RUID) of the process. - // + // ProcessRealUserIDKey is the attribute Key conforming to the + // "process.real_user.id" semantic conventions. It represents the real user ID + // (RUID) of the process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1000 ProcessRealUserIDKey = attribute.Key("process.real_user.id") - // ProcessRealUserNameKey is the attribute Key conforming to the "process.real_user.name" semantic conventions. It represents the username of the real user of the process. - // + // ProcessRealUserNameKey is the attribute Key conforming to the + // "process.real_user.name" semantic conventions. It represents the username of + // the real user of the process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "operator" ProcessRealUserNameKey = attribute.Key("process.real_user.name") - // ProcessRuntimeDescriptionKey is the attribute Key conforming to the "process.runtime.description" semantic conventions. It represents an additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. - // + // ProcessRuntimeDescriptionKey is the attribute Key conforming to the + // "process.runtime.description" semantic conventions. It represents an + // additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description") - // ProcessRuntimeNameKey is the attribute Key conforming to the "process.runtime.name" semantic conventions. It represents the name of the runtime of this process. - // + // ProcessRuntimeNameKey is the attribute Key conforming to the + // "process.runtime.name" semantic conventions. It represents the name of the + // runtime of this process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "OpenJDK Runtime Environment" ProcessRuntimeNameKey = attribute.Key("process.runtime.name") - // ProcessRuntimeVersionKey is the attribute Key conforming to the "process.runtime.version" semantic conventions. It represents the version of the runtime of this process, as returned by the runtime without modification. - // + // ProcessRuntimeVersionKey is the attribute Key conforming to the + // "process.runtime.version" semantic conventions. It represents the version of + // the runtime of this process, as returned by the runtime without modification. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 14.0.2 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version") - // ProcessSavedUserIDKey is the attribute Key conforming to the "process.saved_user.id" semantic conventions. It represents the saved user ID (SUID) of the process. - // + // ProcessSavedUserIDKey is the attribute Key conforming to the + // "process.saved_user.id" semantic conventions. It represents the saved user ID + // (SUID) of the process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1002 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id") - // ProcessSavedUserNameKey is the attribute Key conforming to the "process.saved_user.name" semantic conventions. It represents the username of the saved user. - // + // ProcessSavedUserNameKey is the attribute Key conforming to the + // "process.saved_user.name" semantic conventions. It represents the username of + // the saved user. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "operator" ProcessSavedUserNameKey = attribute.Key("process.saved_user.name") - // ProcessSessionLeaderPIDKey is the attribute Key conforming to the "process.session_leader.pid" semantic conventions. It represents the PID of the process's session leader. This is also the session ID (SID) of the process. - // + // ProcessSessionLeaderPIDKey is the attribute Key conforming to the + // "process.session_leader.pid" semantic conventions. It represents the PID of + // the process's session leader. This is also the session ID (SID) of the + // process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 14 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid") - // ProcessTitleKey is the attribute Key conforming to the "process.title" semantic conventions. It represents the process title (proctitle). - // + // ProcessTitleKey is the attribute Key conforming to the "process.title" + // semantic conventions. It represents the process title (proctitle). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "cat /etc/hostname", "xfce4-session", "bash" - // Note: In many Unix-like systems, process title (proctitle), is the string that represents the name or command line of a running process, displayed by system monitoring tools like ps, top, and htop. + // Note: In many Unix-like systems, process title (proctitle), is the string + // that represents the name or command line of a running process, displayed by + // system monitoring tools like ps, top, and htop. ProcessTitleKey = attribute.Key("process.title") - // ProcessUserIDKey is the attribute Key conforming to the "process.user.id" semantic conventions. It represents the effective user ID (EUID) of the process. - // + // ProcessUserIDKey is the attribute Key conforming to the "process.user.id" + // semantic conventions. It represents the effective user ID (EUID) of the + // process. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1001 ProcessUserIDKey = attribute.Key("process.user.id") - // ProcessUserNameKey is the attribute Key conforming to the "process.user.name" semantic conventions. It represents the username of the effective user of the process. - // + // ProcessUserNameKey is the attribute Key conforming to the "process.user.name" + // semantic conventions. It represents the username of the effective user of the + // process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "root" ProcessUserNameKey = attribute.Key("process.user.name") - // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic conventions. It represents the virtual process identifier. - // + // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic + // conventions. It represents the virtual process identifier. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 12 - // Note: The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within. + // Note: The process ID within a PID namespace. This is not necessarily unique + // across all processes on the host but it is unique within the process + // namespace that the process exists within. ProcessVpidKey = attribute.Key("process.vpid") - // ProcessWorkingDirectoryKey is the attribute Key conforming to the "process.working_directory" semantic conventions. It represents the working directory of the process. - // + // ProcessWorkingDirectoryKey is the attribute Key conforming to the + // "process.working_directory" semantic conventions. It represents the working + // directory of the process. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/root" ProcessWorkingDirectoryKey = attribute.Key("process.working_directory") ) -// ProcessArgsCount returns an attribute KeyValue conforming to the "process.args_count" semantic conventions. It represents the length of the process.command_args array. +// ProcessArgsCount returns an attribute KeyValue conforming to the +// "process.args_count" semantic conventions. It represents the length of the +// process.command_args array. func ProcessArgsCount(val int) attribute.KeyValue { return ProcessArgsCountKey.Int(val) } -// ProcessCommand returns an attribute KeyValue conforming to the "process.command" semantic conventions. It represents the command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. +// ProcessCommand returns an attribute KeyValue conforming to the +// "process.command" semantic conventions. It represents the command used to +// launch the process (i.e. the command name). On Linux based systems, can be set +// to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the +// first parameter extracted from `GetCommandLineW`. func ProcessCommand(val string) attribute.KeyValue { return ProcessCommandKey.String(val) } -// ProcessCommandArgs returns an attribute KeyValue conforming to the "process.command_args" semantic conventions. It represents the all the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. +// ProcessCommandArgs returns an attribute KeyValue conforming to the +// "process.command_args" semantic conventions. It represents the all the command +// arguments (including the command/executable itself) as received by the +// process. On Linux-based systems (and some other Unixoid systems supporting +// procfs), can be set according to the list of null-delimited strings extracted +// from `proc/[pid]/cmdline`. For libc-based executables, this would be the full +// argv vector passed to `main`. func ProcessCommandArgs(val ...string) attribute.KeyValue { return ProcessCommandArgsKey.StringSlice(val) } -// ProcessCommandLine returns an attribute KeyValue conforming to the "process.command_line" semantic conventions. It represents the full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. +// ProcessCommandLine returns an attribute KeyValue conforming to the +// "process.command_line" semantic conventions. It represents the full command +// used to launch the process as a single string representing the full command. +// On Windows, can be set to the result of `GetCommandLineW`. Do not set this if +// you have to assemble it just for monitoring; use `process.command_args` +// instead. func ProcessCommandLine(val string) attribute.KeyValue { return ProcessCommandLineKey.String(val) } -// ProcessCreationTime returns an attribute KeyValue conforming to the "process.creation.time" semantic conventions. It represents the date and time the process was created, in ISO 8601 format. +// ProcessCreationTime returns an attribute KeyValue conforming to the +// "process.creation.time" semantic conventions. It represents the date and time +// the process was created, in ISO 8601 format. func ProcessCreationTime(val string) attribute.KeyValue { return ProcessCreationTimeKey.String(val) } -// ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the "process.executable.build_id.gnu" semantic conventions. It represents the GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). +// ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the +// "process.executable.build_id.gnu" semantic conventions. It represents the GNU +// build ID as found in the `.note.gnu.build-id` ELF section (hex string). func ProcessExecutableBuildIDGnu(val string) attribute.KeyValue { return ProcessExecutableBuildIDGnuKey.String(val) } -// ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the "process.executable.build_id.go" semantic conventions. It represents the Go build ID as retrieved by `go tool buildid `. +// ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the +// "process.executable.build_id.go" semantic conventions. It represents the Go +// build ID as retrieved by `go tool buildid `. func ProcessExecutableBuildIDGo(val string) attribute.KeyValue { return ProcessExecutableBuildIDGoKey.String(val) } -// ProcessExecutableBuildIDProfiling returns an attribute KeyValue conforming to the "process.executable.build_id.profiling" semantic conventions. It represents the profiling specific build ID for executables. See the OTel specification for Profiles for more information. +// ProcessExecutableBuildIDProfiling returns an attribute KeyValue conforming to +// the "process.executable.build_id.profiling" semantic conventions. It +// represents the profiling specific build ID for executables. See the OTel +// specification for Profiles for more information. func ProcessExecutableBuildIDProfiling(val string) attribute.KeyValue { return ProcessExecutableBuildIDProfilingKey.String(val) } -// ProcessExecutableName returns an attribute KeyValue conforming to the "process.executable.name" semantic conventions. It represents the name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. +// ProcessExecutableName returns an attribute KeyValue conforming to the +// "process.executable.name" semantic conventions. It represents the name of the +// process executable. On Linux based systems, can be set to the `Name` in +// `proc/[pid]/status`. On Windows, can be set to the base name of +// `GetProcessImageFileNameW`. func ProcessExecutableName(val string) attribute.KeyValue { return ProcessExecutableNameKey.String(val) } -// ProcessExecutablePath returns an attribute KeyValue conforming to the "process.executable.path" semantic conventions. It represents the full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. +// ProcessExecutablePath returns an attribute KeyValue conforming to the +// "process.executable.path" semantic conventions. It represents the full path to +// the process executable. On Linux based systems, can be set to the target of +// `proc/[pid]/exe`. On Windows, can be set to the result of +// `GetProcessImageFileNameW`. func ProcessExecutablePath(val string) attribute.KeyValue { return ProcessExecutablePathKey.String(val) } -// ProcessExitCode returns an attribute KeyValue conforming to the "process.exit.code" semantic conventions. It represents the exit code of the process. +// ProcessExitCode returns an attribute KeyValue conforming to the +// "process.exit.code" semantic conventions. It represents the exit code of the +// process. func ProcessExitCode(val int) attribute.KeyValue { return ProcessExitCodeKey.Int(val) } -// ProcessExitTime returns an attribute KeyValue conforming to the "process.exit.time" semantic conventions. It represents the date and time the process exited, in ISO 8601 format. +// ProcessExitTime returns an attribute KeyValue conforming to the +// "process.exit.time" semantic conventions. It represents the date and time the +// process exited, in ISO 8601 format. func ProcessExitTime(val string) attribute.KeyValue { return ProcessExitTimeKey.String(val) } -// ProcessGroupLeaderPID returns an attribute KeyValue conforming to the "process.group_leader.pid" semantic conventions. It represents the PID of the process's group leader. This is also the process group ID (PGID) of the process. +// ProcessGroupLeaderPID returns an attribute KeyValue conforming to the +// "process.group_leader.pid" semantic conventions. It represents the PID of the +// process's group leader. This is also the process group ID (PGID) of the +// process. func ProcessGroupLeaderPID(val int) attribute.KeyValue { return ProcessGroupLeaderPIDKey.Int(val) } -// ProcessInteractive returns an attribute KeyValue conforming to the "process.interactive" semantic conventions. It represents the whether the process is connected to an interactive shell. +// ProcessInteractive returns an attribute KeyValue conforming to the +// "process.interactive" semantic conventions. It represents the whether the +// process is connected to an interactive shell. func ProcessInteractive(val bool) attribute.KeyValue { return ProcessInteractiveKey.Bool(val) } -// ProcessOwner returns an attribute KeyValue conforming to the "process.owner" semantic conventions. It represents the username of the user that owns the process. +// ProcessOwner returns an attribute KeyValue conforming to the "process.owner" +// semantic conventions. It represents the username of the user that owns the +// process. func ProcessOwner(val string) attribute.KeyValue { return ProcessOwnerKey.String(val) } -// ProcessParentPID returns an attribute KeyValue conforming to the "process.parent_pid" semantic conventions. It represents the parent Process identifier (PPID). +// ProcessParentPID returns an attribute KeyValue conforming to the +// "process.parent_pid" semantic conventions. It represents the parent Process +// identifier (PPID). func ProcessParentPID(val int) attribute.KeyValue { return ProcessParentPIDKey.Int(val) } -// ProcessPID returns an attribute KeyValue conforming to the "process.pid" semantic conventions. It represents the process identifier (PID). +// ProcessPID returns an attribute KeyValue conforming to the "process.pid" +// semantic conventions. It represents the process identifier (PID). func ProcessPID(val int) attribute.KeyValue { return ProcessPIDKey.Int(val) } -// ProcessRealUserID returns an attribute KeyValue conforming to the "process.real_user.id" semantic conventions. It represents the real user ID (RUID) of the process. +// ProcessRealUserID returns an attribute KeyValue conforming to the +// "process.real_user.id" semantic conventions. It represents the real user ID +// (RUID) of the process. func ProcessRealUserID(val int) attribute.KeyValue { return ProcessRealUserIDKey.Int(val) } -// ProcessRealUserName returns an attribute KeyValue conforming to the "process.real_user.name" semantic conventions. It represents the username of the real user of the process. +// ProcessRealUserName returns an attribute KeyValue conforming to the +// "process.real_user.name" semantic conventions. It represents the username of +// the real user of the process. func ProcessRealUserName(val string) attribute.KeyValue { return ProcessRealUserNameKey.String(val) } -// ProcessRuntimeDescription returns an attribute KeyValue conforming to the "process.runtime.description" semantic conventions. It represents an additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. +// ProcessRuntimeDescription returns an attribute KeyValue conforming to the +// "process.runtime.description" semantic conventions. It represents an +// additional description about the runtime of the process, for example a +// specific vendor customization of the runtime environment. func ProcessRuntimeDescription(val string) attribute.KeyValue { return ProcessRuntimeDescriptionKey.String(val) } -// ProcessRuntimeName returns an attribute KeyValue conforming to the "process.runtime.name" semantic conventions. It represents the name of the runtime of this process. +// ProcessRuntimeName returns an attribute KeyValue conforming to the +// "process.runtime.name" semantic conventions. It represents the name of the +// runtime of this process. func ProcessRuntimeName(val string) attribute.KeyValue { return ProcessRuntimeNameKey.String(val) } -// ProcessRuntimeVersion returns an attribute KeyValue conforming to the "process.runtime.version" semantic conventions. It represents the version of the runtime of this process, as returned by the runtime without modification. +// ProcessRuntimeVersion returns an attribute KeyValue conforming to the +// "process.runtime.version" semantic conventions. It represents the version of +// the runtime of this process, as returned by the runtime without modification. func ProcessRuntimeVersion(val string) attribute.KeyValue { return ProcessRuntimeVersionKey.String(val) } -// ProcessSavedUserID returns an attribute KeyValue conforming to the "process.saved_user.id" semantic conventions. It represents the saved user ID (SUID) of the process. +// ProcessSavedUserID returns an attribute KeyValue conforming to the +// "process.saved_user.id" semantic conventions. It represents the saved user ID +// (SUID) of the process. func ProcessSavedUserID(val int) attribute.KeyValue { return ProcessSavedUserIDKey.Int(val) } -// ProcessSavedUserName returns an attribute KeyValue conforming to the "process.saved_user.name" semantic conventions. It represents the username of the saved user. +// ProcessSavedUserName returns an attribute KeyValue conforming to the +// "process.saved_user.name" semantic conventions. It represents the username of +// the saved user. func ProcessSavedUserName(val string) attribute.KeyValue { return ProcessSavedUserNameKey.String(val) } -// ProcessSessionLeaderPID returns an attribute KeyValue conforming to the "process.session_leader.pid" semantic conventions. It represents the PID of the process's session leader. This is also the session ID (SID) of the process. +// ProcessSessionLeaderPID returns an attribute KeyValue conforming to the +// "process.session_leader.pid" semantic conventions. It represents the PID of +// the process's session leader. This is also the session ID (SID) of the +// process. func ProcessSessionLeaderPID(val int) attribute.KeyValue { return ProcessSessionLeaderPIDKey.Int(val) } -// ProcessTitle returns an attribute KeyValue conforming to the "process.title" semantic conventions. It represents the process title (proctitle). +// ProcessTitle returns an attribute KeyValue conforming to the "process.title" +// semantic conventions. It represents the process title (proctitle). func ProcessTitle(val string) attribute.KeyValue { return ProcessTitleKey.String(val) } -// ProcessUserID returns an attribute KeyValue conforming to the "process.user.id" semantic conventions. It represents the effective user ID (EUID) of the process. +// ProcessUserID returns an attribute KeyValue conforming to the +// "process.user.id" semantic conventions. It represents the effective user ID +// (EUID) of the process. func ProcessUserID(val int) attribute.KeyValue { return ProcessUserIDKey.Int(val) } -// ProcessUserName returns an attribute KeyValue conforming to the "process.user.name" semantic conventions. It represents the username of the effective user of the process. +// ProcessUserName returns an attribute KeyValue conforming to the +// "process.user.name" semantic conventions. It represents the username of the +// effective user of the process. func ProcessUserName(val string) attribute.KeyValue { return ProcessUserNameKey.String(val) } -// ProcessVpid returns an attribute KeyValue conforming to the "process.vpid" semantic conventions. It represents the virtual process identifier. +// ProcessVpid returns an attribute KeyValue conforming to the "process.vpid" +// semantic conventions. It represents the virtual process identifier. func ProcessVpid(val int) attribute.KeyValue { return ProcessVpidKey.Int(val) } -// ProcessWorkingDirectory returns an attribute KeyValue conforming to the "process.working_directory" semantic conventions. It represents the working directory of the process. +// ProcessWorkingDirectory returns an attribute KeyValue conforming to the +// "process.working_directory" semantic conventions. It represents the working +// directory of the process. func ProcessWorkingDirectory(val string) attribute.KeyValue { return ProcessWorkingDirectoryKey.String(val) } @@ -6782,31 +8610,33 @@ func ProcessWorkingDirectory(val string) attribute.KeyValue { // Enum values for process.context_switch_type var ( // voluntary - // Stability: experimental + // Stability: development ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary") // involuntary - // Stability: experimental + // Stability: development ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary") ) // Enum values for process.paging.fault_type var ( // major - // Stability: experimental + // Stability: development ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major") // minor - // Stability: experimental + // Stability: development ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor") ) // Namespace: profile const ( - // ProfileFrameTypeKey is the attribute Key conforming to the "profile.frame.type" semantic conventions. It represents the describes the interpreter or compiler of a single frame. - // + // ProfileFrameTypeKey is the attribute Key conforming to the + // "profile.frame.type" semantic conventions. It represents the describes the + // interpreter or compiler of a single frame. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "cpython" ProfileFrameTypeKey = attribute.Key("profile.frame.type") ) @@ -6814,232 +8644,295 @@ const ( // Enum values for profile.frame.type var ( // [.NET] - // - // Stability: experimental - // + // + // Stability: development + // // [.NET]: https://wikipedia.org/wiki/.NET ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet") // [JVM] - // - // Stability: experimental - // + // + // Stability: development + // // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm") // [Kernel] - // - // Stability: experimental - // + // + // Stability: development + // // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system) ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel") // [C], [C++], [Go], [Rust] - // - // Stability: experimental - // + // + // Stability: development + // // [C]: https://wikipedia.org/wiki/C_(programming_language) // [C++]: https://wikipedia.org/wiki/C%2B%2B // [Go]: https://wikipedia.org/wiki/Go_(programming_language) // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language) ProfileFrameTypeNative = ProfileFrameTypeKey.String("native") // [Perl] - // - // Stability: experimental - // + // + // Stability: development + // // [Perl]: https://wikipedia.org/wiki/Perl ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl") // [PHP] - // - // Stability: experimental - // + // + // Stability: development + // // [PHP]: https://wikipedia.org/wiki/PHP ProfileFrameTypePHP = ProfileFrameTypeKey.String("php") // [Python] - // - // Stability: experimental - // + // + // Stability: development + // // [Python]: https://wikipedia.org/wiki/Python_(programming_language) ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython") // [Ruby] - // - // Stability: experimental - // + // + // Stability: development + // // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language) ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby") // [V8JS] - // - // Stability: experimental - // + // + // Stability: development + // // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine) ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js") ) // Namespace: rpc const ( - // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the "rpc.connect_rpc.error_code" semantic conventions. It represents the [error codes] of the Connect request. Error codes are always string values. - // + // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the + // "rpc.connect_rpc.error_code" semantic conventions. It represents the + // [error codes] of the Connect request. Error codes are always string values. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [error codes]: https://connect.build/docs/protocol/#error-codes RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code") - // RPCGRPCStatusCodeKey is the attribute Key conforming to the "rpc.grpc.status_code" semantic conventions. It represents the [numeric status code] of the gRPC request. - // + // RPCGRPCStatusCodeKey is the attribute Key conforming to the + // "rpc.grpc.status_code" semantic conventions. It represents the + // [numeric status code] of the gRPC request. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code") - // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` property of response if it is an error response. - // + // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the + // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` + // property of response if it is an error response. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: -32700, 100 RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code") - // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the "rpc.jsonrpc.error_message" semantic conventions. It represents the `error.message` property of response if it is an error response. - // + // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the + // "rpc.jsonrpc.error_message" semantic conventions. It represents the + // `error.message` property of response if it is an error response. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Parse error", "User already exists" RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message") - // RPCJsonrpcRequestIDKey is the attribute Key conforming to the "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. - // + // RPCJsonrpcRequestIDKey is the attribute Key conforming to the + // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` + // property of request or response. Since protocol allows id to be int, string, + // `null` or missing (for notifications), value is expected to be cast to string + // for simplicity. Use empty string in case of `null` value. Omit entirely if + // this is a notification. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "10", "request-7", "" RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id") - // RPCJsonrpcVersionKey is the attribute Key conforming to the "rpc.jsonrpc.version" semantic conventions. It represents the protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. - // + // RPCJsonrpcVersionKey is the attribute Key conforming to the + // "rpc.jsonrpc.version" semantic conventions. It represents the protocol + // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 + // doesn't specify this, the value can be omitted. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2.0", "1.0" RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version") - // RPCMessageCompressedSizeKey is the attribute Key conforming to the "rpc.message.compressed_size" semantic conventions. It represents the compressed size of the message in bytes. - // + // RPCMessageCompressedSizeKey is the attribute Key conforming to the + // "rpc.message.compressed_size" semantic conventions. It represents the + // compressed size of the message in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size") - // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id" semantic conventions. It represents the mUST be calculated as two different counters starting from `1` one for sent messages and one for received message. - // + // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id" + // semantic conventions. It represents the mUST be calculated as two different + // counters starting from `1` one for sent messages and one for received + // message. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // Note: This way we guarantee that the values will be consistent between different implementations. + // Note: This way we guarantee that the values will be consistent between + // different implementations. RPCMessageIDKey = attribute.Key("rpc.message.id") - // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type" semantic conventions. It represents the whether this is a received or sent message. - // + // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type" + // semantic conventions. It represents the whether this is a received or sent + // message. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: RPCMessageTypeKey = attribute.Key("rpc.message.type") - // RPCMessageUncompressedSizeKey is the attribute Key conforming to the "rpc.message.uncompressed_size" semantic conventions. It represents the uncompressed size of the message in bytes. - // + // RPCMessageUncompressedSizeKey is the attribute Key conforming to the + // "rpc.message.uncompressed_size" semantic conventions. It represents the + // uncompressed size of the message in bytes. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size") - // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic conventions. It represents the name of the (logical) method being called, must be equal to the $method part in the span name. - // + // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic + // conventions. It represents the name of the (logical) method being called, + // must be equal to the $method part in the span name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: exampleMethod - // Note: This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). + // Note: This is the logical name of the method from the RPC interface + // perspective, which can be different from the name of any implementing + // method/function. The `code.function` attribute may be used to store the + // latter (e.g., method actually executing the call on the server side, RPC + // client stub method on the client side). RPCMethodKey = attribute.Key("rpc.method") - // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic conventions. It represents the full (logical) name of the service being called, including its package name, if applicable. - // + // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic + // conventions. It represents the full (logical) name of the service being + // called, including its package name, if applicable. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: myservice.EchoService - // Note: This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). + // Note: This is the logical name of the service from the RPC interface + // perspective, which can be different from the name of any implementing class. + // The `code.namespace` attribute may be used to store the latter (despite the + // attribute name, it may include a class name; e.g., class with method actually + // executing the call on the server side, RPC client stub class on the client + // side). RPCServiceKey = attribute.Key("rpc.service") - // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic conventions. It represents a string identifying the remoting system. See below for a list of well-known identifiers. - // + // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic + // conventions. It represents a string identifying the remoting system. See + // below for a list of well-known identifiers. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: RPCSystemKey = attribute.Key("rpc.system") ) -// RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` property of response if it is an error response. +// RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the +// "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code` +// property of response if it is an error response. func RPCJsonrpcErrorCode(val int) attribute.KeyValue { return RPCJsonrpcErrorCodeKey.Int(val) } -// RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the "rpc.jsonrpc.error_message" semantic conventions. It represents the `error.message` property of response if it is an error response. +// RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the +// "rpc.jsonrpc.error_message" semantic conventions. It represents the +// `error.message` property of response if it is an error response. func RPCJsonrpcErrorMessage(val string) attribute.KeyValue { return RPCJsonrpcErrorMessageKey.String(val) } -// RPCJsonrpcRequestID returns an attribute KeyValue conforming to the "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. +// RPCJsonrpcRequestID returns an attribute KeyValue conforming to the +// "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property +// of request or response. Since protocol allows id to be int, string, `null` or +// missing (for notifications), value is expected to be cast to string for +// simplicity. Use empty string in case of `null` value. Omit entirely if this is +// a notification. func RPCJsonrpcRequestID(val string) attribute.KeyValue { return RPCJsonrpcRequestIDKey.String(val) } -// RPCJsonrpcVersion returns an attribute KeyValue conforming to the "rpc.jsonrpc.version" semantic conventions. It represents the protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. +// RPCJsonrpcVersion returns an attribute KeyValue conforming to the +// "rpc.jsonrpc.version" semantic conventions. It represents the protocol version +// as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't +// specify this, the value can be omitted. func RPCJsonrpcVersion(val string) attribute.KeyValue { return RPCJsonrpcVersionKey.String(val) } -// RPCMessageCompressedSize returns an attribute KeyValue conforming to the "rpc.message.compressed_size" semantic conventions. It represents the compressed size of the message in bytes. +// RPCMessageCompressedSize returns an attribute KeyValue conforming to the +// "rpc.message.compressed_size" semantic conventions. It represents the +// compressed size of the message in bytes. func RPCMessageCompressedSize(val int) attribute.KeyValue { return RPCMessageCompressedSizeKey.Int(val) } -// RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id" semantic conventions. It represents the mUST be calculated as two different counters starting from `1` one for sent messages and one for received message. +// RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id" +// semantic conventions. It represents the mUST be calculated as two different +// counters starting from `1` one for sent messages and one for received message. func RPCMessageID(val int) attribute.KeyValue { return RPCMessageIDKey.Int(val) } -// RPCMessageUncompressedSize returns an attribute KeyValue conforming to the "rpc.message.uncompressed_size" semantic conventions. It represents the uncompressed size of the message in bytes. +// RPCMessageUncompressedSize returns an attribute KeyValue conforming to the +// "rpc.message.uncompressed_size" semantic conventions. It represents the +// uncompressed size of the message in bytes. func RPCMessageUncompressedSize(val int) attribute.KeyValue { return RPCMessageUncompressedSizeKey.Int(val) } -// RPCMethod returns an attribute KeyValue conforming to the "rpc.method" semantic conventions. It represents the name of the (logical) method being called, must be equal to the $method part in the span name. +// RPCMethod returns an attribute KeyValue conforming to the "rpc.method" +// semantic conventions. It represents the name of the (logical) method being +// called, must be equal to the $method part in the span name. func RPCMethod(val string) attribute.KeyValue { return RPCMethodKey.String(val) } -// RPCService returns an attribute KeyValue conforming to the "rpc.service" semantic conventions. It represents the full (logical) name of the service being called, including its package name, if applicable. +// RPCService returns an attribute KeyValue conforming to the "rpc.service" +// semantic conventions. It represents the full (logical) name of the service +// being called, including its package name, if applicable. func RPCService(val string) attribute.KeyValue { return RPCServiceKey.String(val) } @@ -7047,315 +8940,377 @@ func RPCService(val string) attribute.KeyValue { // Enum values for rpc.connect_rpc.error_code var ( // cancelled - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled") // unknown - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown") // invalid_argument - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument") // deadline_exceeded - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded") // not_found - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found") // already_exists - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists") // permission_denied - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied") // resource_exhausted - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted") // failed_precondition - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition") // aborted - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted") // out_of_range - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range") // unimplemented - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented") // internal - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal") // unavailable - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable") // data_loss - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss") // unauthenticated - // Stability: experimental + // Stability: development RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated") ) // Enum values for rpc.grpc.status_code var ( // OK - // Stability: experimental + // Stability: development RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0) // CANCELLED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1) // UNKNOWN - // Stability: experimental + // Stability: development RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2) // INVALID_ARGUMENT - // Stability: experimental + // Stability: development RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3) // DEADLINE_EXCEEDED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4) // NOT_FOUND - // Stability: experimental + // Stability: development RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5) // ALREADY_EXISTS - // Stability: experimental + // Stability: development RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6) // PERMISSION_DENIED - // Stability: experimental + // Stability: development RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7) // RESOURCE_EXHAUSTED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8) // FAILED_PRECONDITION - // Stability: experimental + // Stability: development RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9) // ABORTED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10) // OUT_OF_RANGE - // Stability: experimental + // Stability: development RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11) // UNIMPLEMENTED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12) // INTERNAL - // Stability: experimental + // Stability: development RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13) // UNAVAILABLE - // Stability: experimental + // Stability: development RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14) // DATA_LOSS - // Stability: experimental + // Stability: development RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15) // UNAUTHENTICATED - // Stability: experimental + // Stability: development RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16) ) // Enum values for rpc.message.type var ( // sent - // Stability: experimental + // Stability: development RPCMessageTypeSent = RPCMessageTypeKey.String("SENT") // received - // Stability: experimental + // Stability: development RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED") ) // Enum values for rpc.system var ( // gRPC - // Stability: experimental + // Stability: development RPCSystemGRPC = RPCSystemKey.String("grpc") // Java RMI - // Stability: experimental + // Stability: development RPCSystemJavaRmi = RPCSystemKey.String("java_rmi") // .NET WCF - // Stability: experimental + // Stability: development RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf") // Apache Dubbo - // Stability: experimental + // Stability: development RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo") // Connect RPC - // Stability: experimental + // Stability: development RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc") ) // Namespace: server const ( - // ServerAddressKey is the attribute Key conforming to the "server.address" semantic conventions. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. - // + // ServerAddressKey is the attribute Key conforming to the "server.address" + // semantic conventions. It represents the server domain name if available + // without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "example.com", "10.1.2.80", "/tmp/my.sock" - // Note: When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the client side, and when communicating through an + // intermediary, `server.address` SHOULD represent the server address behind any + // intermediaries, for example proxies, if it's available. ServerAddressKey = attribute.Key("server.address") - // ServerPortKey is the attribute Key conforming to the "server.port" semantic conventions. It represents the server port number. - // + // ServerPortKey is the attribute Key conforming to the "server.port" semantic + // conventions. It represents the server port number. + // // Type: int // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: 80, 8080, 443 - // Note: When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the client side, and when communicating through an + // intermediary, `server.port` SHOULD represent the server port behind any + // intermediaries, for example proxies, if it's available. ServerPortKey = attribute.Key("server.port") ) -// ServerAddress returns an attribute KeyValue conforming to the "server.address" semantic conventions. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +// ServerAddress returns an attribute KeyValue conforming to the "server.address" +// semantic conventions. It represents the server domain name if available +// without reverse DNS lookup; otherwise, IP address or Unix domain socket name. func ServerAddress(val string) attribute.KeyValue { return ServerAddressKey.String(val) } -// ServerPort returns an attribute KeyValue conforming to the "server.port" semantic conventions. It represents the server port number. +// ServerPort returns an attribute KeyValue conforming to the "server.port" +// semantic conventions. It represents the server port number. func ServerPort(val int) attribute.KeyValue { return ServerPortKey.Int(val) } // Namespace: service const ( - // ServiceInstanceIDKey is the attribute Key conforming to the "service.instance.id" semantic conventions. It represents the string ID of the service instance. - // + // ServiceInstanceIDKey is the attribute Key conforming to the + // "service.instance.id" semantic conventions. It represents the string ID of + // the service instance. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "627cc493-f310-47de-96bd-71410b7dec09" - // Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words - // `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to - // distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + // Note: MUST be unique for each instance of the same + // `service.namespace,service.name` pair (in other words + // `service.namespace,service.name,service.instance.id` triplet MUST be globally + // unique). The ID helps to + // distinguish instances of the same service that exist at the same time (e.g. + // instances of a horizontally scaled // service). - // - // Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC - // 4122] UUID, but are free to use an inherent unique ID as the source of - // this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and - // SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. - // - // UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + // + // Implementations, such as SDKs, are recommended to generate a random Version 1 + // or Version 4 [RFC + // 4122] UUID, but are free to use an inherent unique ID as + // the source of + // this value if stability is desirable. In that case, the ID SHOULD be used as + // source of a UUID Version 5 and + // SHOULD use the following UUID as the namespace: + // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + // + // UUIDs are typically recommended, as only an opaque value for the purposes of + // identifying a service instance is // needed. Similar to what can be seen in the man page for the // [`/etc/machine-id`] file, the underlying - // data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + // data, such as pod name and namespace should be treated as confidential, being + // the user's choice to expose it // or not via another resource attribute. - // - // For applications running behind an application server (like unicorn), we do not recommend using one identifier - // for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + // + // For applications running behind an application server (like unicorn), we do + // not recommend using one identifier + // for all processes participating in the application. Instead, it's recommended + // each division (e.g. a worker // thread in unicorn) to have its own instance.id. - // - // It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the - // service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will - // likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. - // However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance - // for that telemetry. This is typically the case for scraping receivers, as they know the target address and + // + // It's not recommended for a Collector to set `service.instance.id` if it can't + // unambiguously determine the + // service instance that is generating that telemetry. For instance, creating an + // UUID based on `pod.name` will + // likely be wrong, as the Collector might not know from which container within + // that pod the telemetry originated. + // However, Collectors can set the `service.instance.id` if they can + // unambiguously determine the service instance + // for that telemetry. This is typically the case for scraping receivers, as + // they know the target address and // port. - // + // // [RFC // 4122]: https://www.ietf.org/rfc/rfc4122.txt // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/machine-id.html ServiceInstanceIDKey = attribute.Key("service.instance.id") - // ServiceNameKey is the attribute Key conforming to the "service.name" semantic conventions. It represents the logical name of the service. - // + // ServiceNameKey is the attribute Key conforming to the "service.name" semantic + // conventions. It represents the logical name of the service. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "shoppingcart" - // Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`], e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`. - // + // Note: MUST be the same for all instances of horizontally scaled services. If + // the value was not specified, SDKs MUST fallback to `unknown_service:` + // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`. + // If `process.executable.name` is not available, the value MUST be set to + // `unknown_service`. + // // [`process.executable.name`]: process.md ServiceNameKey = attribute.Key("service.name") - // ServiceNamespaceKey is the attribute Key conforming to the "service.namespace" semantic conventions. It represents a namespace for `service.name`. - // + // ServiceNamespaceKey is the attribute Key conforming to the + // "service.namespace" semantic conventions. It represents a namespace for + // `service.name`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Shop" - // Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + // Note: A string value having a meaning that helps to distinguish a group of + // services, for example the team name that owns a group of services. + // `service.name` is expected to be unique within the same namespace. If + // `service.namespace` is not specified in the Resource then `service.name` is + // expected to be unique for all services that have no explicit namespace + // defined (so the empty/unspecified namespace is simply one more valid + // namespace). Zero-length namespace string is assumed equal to unspecified + // namespace. ServiceNamespaceKey = attribute.Key("service.namespace") - // ServiceVersionKey is the attribute Key conforming to the "service.version" semantic conventions. It represents the version string of the service API or implementation. The format is not defined by these conventions. - // + // ServiceVersionKey is the attribute Key conforming to the "service.version" + // semantic conventions. It represents the version string of the service API or + // implementation. The format is not defined by these conventions. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "2.0.0", "a01dbef8a" ServiceVersionKey = attribute.Key("service.version") ) -// ServiceInstanceID returns an attribute KeyValue conforming to the "service.instance.id" semantic conventions. It represents the string ID of the service instance. +// ServiceInstanceID returns an attribute KeyValue conforming to the +// "service.instance.id" semantic conventions. It represents the string ID of the +// service instance. func ServiceInstanceID(val string) attribute.KeyValue { return ServiceInstanceIDKey.String(val) } -// ServiceName returns an attribute KeyValue conforming to the "service.name" semantic conventions. It represents the logical name of the service. +// ServiceName returns an attribute KeyValue conforming to the "service.name" +// semantic conventions. It represents the logical name of the service. func ServiceName(val string) attribute.KeyValue { return ServiceNameKey.String(val) } -// ServiceNamespace returns an attribute KeyValue conforming to the "service.namespace" semantic conventions. It represents a namespace for `service.name`. +// ServiceNamespace returns an attribute KeyValue conforming to the +// "service.namespace" semantic conventions. It represents a namespace for +// `service.name`. func ServiceNamespace(val string) attribute.KeyValue { return ServiceNamespaceKey.String(val) } -// ServiceVersion returns an attribute KeyValue conforming to the "service.version" semantic conventions. It represents the version string of the service API or implementation. The format is not defined by these conventions. +// ServiceVersion returns an attribute KeyValue conforming to the +// "service.version" semantic conventions. It represents the version string of +// the service API or implementation. The format is not defined by these +// conventions. func ServiceVersion(val string) attribute.KeyValue { return ServiceVersionKey.String(val) } // Namespace: session const ( - // SessionIDKey is the attribute Key conforming to the "session.id" semantic conventions. It represents a unique id to identify a session. - // + // SessionIDKey is the attribute Key conforming to the "session.id" semantic + // conventions. It represents a unique id to identify a session. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 00112233-4455-6677-8899-aabbccddeeff SessionIDKey = attribute.Key("session.id") - // SessionPreviousIDKey is the attribute Key conforming to the "session.previous_id" semantic conventions. It represents the previous `session.id` for this user, when known. - // + // SessionPreviousIDKey is the attribute Key conforming to the + // "session.previous_id" semantic conventions. It represents the previous + // `session.id` for this user, when known. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 00112233-4455-6677-8899-aabbccddeeff SessionPreviousIDKey = attribute.Key("session.previous_id") ) -// SessionID returns an attribute KeyValue conforming to the "session.id" semantic conventions. It represents a unique id to identify a session. +// SessionID returns an attribute KeyValue conforming to the "session.id" +// semantic conventions. It represents a unique id to identify a session. func SessionID(val string) attribute.KeyValue { return SessionIDKey.String(val) } -// SessionPreviousID returns an attribute KeyValue conforming to the "session.previous_id" semantic conventions. It represents the previous `session.id` for this user, when known. +// SessionPreviousID returns an attribute KeyValue conforming to the +// "session.previous_id" semantic conventions. It represents the previous +// `session.id` for this user, when known. func SessionPreviousID(val string) attribute.KeyValue { return SessionPreviousIDKey.String(val) } // Namespace: signalr const ( - // SignalrConnectionStatusKey is the attribute Key conforming to the "signalr.connection.status" semantic conventions. It represents the signalR HTTP connection closure status. - // + // SignalrConnectionStatusKey is the attribute Key conforming to the + // "signalr.connection.status" semantic conventions. It represents the signalR + // HTTP connection closure status. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "app_shutdown", "timeout" SignalrConnectionStatusKey = attribute.Key("signalr.connection.status") - // SignalrTransportKey is the attribute Key conforming to the "signalr.transport" semantic conventions. It represents the [SignalR transport type]. - // + // SignalrTransportKey is the attribute Key conforming to the + // "signalr.transport" semantic conventions. It represents the + // [SignalR transport type]. + // // Type: Enum // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "web_sockets", "long_polling" - // + // // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md SignalrTransportKey = attribute.Key("signalr.transport") ) @@ -7388,165 +9343,204 @@ var ( // Namespace: source const ( - // SourceAddressKey is the attribute Key conforming to the "source.address" semantic conventions. It represents the source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. - // + // SourceAddressKey is the attribute Key conforming to the "source.address" + // semantic conventions. It represents the source address - domain name if + // available without reverse DNS lookup; otherwise, IP address or Unix domain + // socket name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock" - // Note: When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent the source address behind any intermediaries, for example proxies, if it's available. + // Note: When observed from the destination side, and when communicating through + // an intermediary, `source.address` SHOULD represent the source address behind + // any intermediaries, for example proxies, if it's available. SourceAddressKey = attribute.Key("source.address") - // SourcePortKey is the attribute Key conforming to the "source.port" semantic conventions. It represents the source port number. - // + // SourcePortKey is the attribute Key conforming to the "source.port" semantic + // conventions. It represents the source port number. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 3389, 2888 SourcePortKey = attribute.Key("source.port") ) -// SourceAddress returns an attribute KeyValue conforming to the "source.address" semantic conventions. It represents the source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +// SourceAddress returns an attribute KeyValue conforming to the "source.address" +// semantic conventions. It represents the source address - domain name if +// available without reverse DNS lookup; otherwise, IP address or Unix domain +// socket name. func SourceAddress(val string) attribute.KeyValue { return SourceAddressKey.String(val) } -// SourcePort returns an attribute KeyValue conforming to the "source.port" semantic conventions. It represents the source port number. +// SourcePort returns an attribute KeyValue conforming to the "source.port" +// semantic conventions. It represents the source port number. func SourcePort(val int) attribute.KeyValue { return SourcePortKey.Int(val) } // Namespace: system const ( - // SystemCPULogicalNumberKey is the attribute Key conforming to the "system.cpu.logical_number" semantic conventions. It represents the logical CPU number [0..n-1]. - // + // SystemCPULogicalNumberKey is the attribute Key conforming to the + // "system.cpu.logical_number" semantic conventions. It represents the logical + // CPU number [0..n-1]. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 1 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number") - // SystemDeviceKey is the attribute Key conforming to the "system.device" semantic conventions. It represents the device identifier. - // + // SystemDeviceKey is the attribute Key conforming to the "system.device" + // semantic conventions. It represents the device identifier. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "(identifier)" SystemDeviceKey = attribute.Key("system.device") - // SystemFilesystemModeKey is the attribute Key conforming to the "system.filesystem.mode" semantic conventions. It represents the filesystem mode. - // + // SystemFilesystemModeKey is the attribute Key conforming to the + // "system.filesystem.mode" semantic conventions. It represents the filesystem + // mode. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "rw, ro" SystemFilesystemModeKey = attribute.Key("system.filesystem.mode") - // SystemFilesystemMountpointKey is the attribute Key conforming to the "system.filesystem.mountpoint" semantic conventions. It represents the filesystem mount path. - // + // SystemFilesystemMountpointKey is the attribute Key conforming to the + // "system.filesystem.mountpoint" semantic conventions. It represents the + // filesystem mount path. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/mnt/data" SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint") - // SystemFilesystemStateKey is the attribute Key conforming to the "system.filesystem.state" semantic conventions. It represents the filesystem state. - // + // SystemFilesystemStateKey is the attribute Key conforming to the + // "system.filesystem.state" semantic conventions. It represents the filesystem + // state. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "used" SystemFilesystemStateKey = attribute.Key("system.filesystem.state") - // SystemFilesystemTypeKey is the attribute Key conforming to the "system.filesystem.type" semantic conventions. It represents the filesystem type. - // + // SystemFilesystemTypeKey is the attribute Key conforming to the + // "system.filesystem.type" semantic conventions. It represents the filesystem + // type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "ext4" SystemFilesystemTypeKey = attribute.Key("system.filesystem.type") - // SystemMemoryStateKey is the attribute Key conforming to the "system.memory.state" semantic conventions. It represents the memory state. - // + // SystemMemoryStateKey is the attribute Key conforming to the + // "system.memory.state" semantic conventions. It represents the memory state. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "free", "cached" SystemMemoryStateKey = attribute.Key("system.memory.state") - // SystemNetworkStateKey is the attribute Key conforming to the "system.network.state" semantic conventions. It represents a stateless protocol MUST NOT set this attribute. - // + // SystemNetworkStateKey is the attribute Key conforming to the + // "system.network.state" semantic conventions. It represents a stateless + // protocol MUST NOT set this attribute. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "close_wait" SystemNetworkStateKey = attribute.Key("system.network.state") - // SystemPagingDirectionKey is the attribute Key conforming to the "system.paging.direction" semantic conventions. It represents the paging access direction. - // + // SystemPagingDirectionKey is the attribute Key conforming to the + // "system.paging.direction" semantic conventions. It represents the paging + // access direction. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "in" SystemPagingDirectionKey = attribute.Key("system.paging.direction") - // SystemPagingStateKey is the attribute Key conforming to the "system.paging.state" semantic conventions. It represents the memory paging state. - // + // SystemPagingStateKey is the attribute Key conforming to the + // "system.paging.state" semantic conventions. It represents the memory paging + // state. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "free" SystemPagingStateKey = attribute.Key("system.paging.state") - // SystemPagingTypeKey is the attribute Key conforming to the "system.paging.type" semantic conventions. It represents the memory paging type. - // + // SystemPagingTypeKey is the attribute Key conforming to the + // "system.paging.type" semantic conventions. It represents the memory paging + // type. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "minor" SystemPagingTypeKey = attribute.Key("system.paging.type") - // SystemProcessStatusKey is the attribute Key conforming to the "system.process.status" semantic conventions. It represents the process state, e.g., [Linux Process State Codes]. - // + // SystemProcessStatusKey is the attribute Key conforming to the + // "system.process.status" semantic conventions. It represents the process + // state, e.g., [Linux Process State Codes]. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "running" - // + // // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES SystemProcessStatusKey = attribute.Key("system.process.status") ) -// SystemCPULogicalNumber returns an attribute KeyValue conforming to the "system.cpu.logical_number" semantic conventions. It represents the logical CPU number [0..n-1]. +// SystemCPULogicalNumber returns an attribute KeyValue conforming to the +// "system.cpu.logical_number" semantic conventions. It represents the logical +// CPU number [0..n-1]. func SystemCPULogicalNumber(val int) attribute.KeyValue { return SystemCPULogicalNumberKey.Int(val) } -// SystemDevice returns an attribute KeyValue conforming to the "system.device" semantic conventions. It represents the device identifier. +// SystemDevice returns an attribute KeyValue conforming to the "system.device" +// semantic conventions. It represents the device identifier. func SystemDevice(val string) attribute.KeyValue { return SystemDeviceKey.String(val) } -// SystemFilesystemMode returns an attribute KeyValue conforming to the "system.filesystem.mode" semantic conventions. It represents the filesystem mode. +// SystemFilesystemMode returns an attribute KeyValue conforming to the +// "system.filesystem.mode" semantic conventions. It represents the filesystem +// mode. func SystemFilesystemMode(val string) attribute.KeyValue { return SystemFilesystemModeKey.String(val) } -// SystemFilesystemMountpoint returns an attribute KeyValue conforming to the "system.filesystem.mountpoint" semantic conventions. It represents the filesystem mount path. +// SystemFilesystemMountpoint returns an attribute KeyValue conforming to the +// "system.filesystem.mountpoint" semantic conventions. It represents the +// filesystem mount path. func SystemFilesystemMountpoint(val string) attribute.KeyValue { return SystemFilesystemMountpointKey.String(val) } @@ -7554,214 +9548,239 @@ func SystemFilesystemMountpoint(val string) attribute.KeyValue { // Enum values for system.filesystem.state var ( // used - // Stability: experimental + // Stability: development SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used") // free - // Stability: experimental + // Stability: development SystemFilesystemStateFree = SystemFilesystemStateKey.String("free") // reserved - // Stability: experimental + // Stability: development SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved") ) // Enum values for system.filesystem.type var ( // fat32 - // Stability: experimental + // Stability: development SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32") // exfat - // Stability: experimental + // Stability: development SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat") // ntfs - // Stability: experimental + // Stability: development SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs") // refs - // Stability: experimental + // Stability: development SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs") // hfsplus - // Stability: experimental + // Stability: development SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus") // ext4 - // Stability: experimental + // Stability: development SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4") ) // Enum values for system.memory.state var ( // used - // Stability: experimental + // Stability: development SystemMemoryStateUsed = SystemMemoryStateKey.String("used") // free - // Stability: experimental + // Stability: development SystemMemoryStateFree = SystemMemoryStateKey.String("free") - // Deprecated: Removed, report shared memory usage with `metric.system.memory.shared` metric. + // Deprecated: Removed, report shared memory usage with + // `metric.system.memory.shared` metric. SystemMemoryStateShared = SystemMemoryStateKey.String("shared") // buffers - // Stability: experimental + // Stability: development SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers") // cached - // Stability: experimental + // Stability: development SystemMemoryStateCached = SystemMemoryStateKey.String("cached") ) // Enum values for system.network.state var ( // close - // Stability: experimental + // Stability: development SystemNetworkStateClose = SystemNetworkStateKey.String("close") // close_wait - // Stability: experimental + // Stability: development SystemNetworkStateCloseWait = SystemNetworkStateKey.String("close_wait") // closing - // Stability: experimental + // Stability: development SystemNetworkStateClosing = SystemNetworkStateKey.String("closing") // delete - // Stability: experimental + // Stability: development SystemNetworkStateDelete = SystemNetworkStateKey.String("delete") // established - // Stability: experimental + // Stability: development SystemNetworkStateEstablished = SystemNetworkStateKey.String("established") // fin_wait_1 - // Stability: experimental + // Stability: development SystemNetworkStateFinWait1 = SystemNetworkStateKey.String("fin_wait_1") // fin_wait_2 - // Stability: experimental + // Stability: development SystemNetworkStateFinWait2 = SystemNetworkStateKey.String("fin_wait_2") // last_ack - // Stability: experimental + // Stability: development SystemNetworkStateLastAck = SystemNetworkStateKey.String("last_ack") // listen - // Stability: experimental + // Stability: development SystemNetworkStateListen = SystemNetworkStateKey.String("listen") // syn_recv - // Stability: experimental + // Stability: development SystemNetworkStateSynRecv = SystemNetworkStateKey.String("syn_recv") // syn_sent - // Stability: experimental + // Stability: development SystemNetworkStateSynSent = SystemNetworkStateKey.String("syn_sent") // time_wait - // Stability: experimental + // Stability: development SystemNetworkStateTimeWait = SystemNetworkStateKey.String("time_wait") ) // Enum values for system.paging.direction var ( // in - // Stability: experimental + // Stability: development SystemPagingDirectionIn = SystemPagingDirectionKey.String("in") // out - // Stability: experimental + // Stability: development SystemPagingDirectionOut = SystemPagingDirectionKey.String("out") ) // Enum values for system.paging.state var ( // used - // Stability: experimental + // Stability: development SystemPagingStateUsed = SystemPagingStateKey.String("used") // free - // Stability: experimental + // Stability: development SystemPagingStateFree = SystemPagingStateKey.String("free") ) // Enum values for system.paging.type var ( // major - // Stability: experimental + // Stability: development SystemPagingTypeMajor = SystemPagingTypeKey.String("major") // minor - // Stability: experimental + // Stability: development SystemPagingTypeMinor = SystemPagingTypeKey.String("minor") ) // Enum values for system.process.status var ( // running - // Stability: experimental + // Stability: development SystemProcessStatusRunning = SystemProcessStatusKey.String("running") // sleeping - // Stability: experimental + // Stability: development SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping") // stopped - // Stability: experimental + // Stability: development SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped") // defunct - // Stability: experimental + // Stability: development SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct") ) // Namespace: telemetry const ( - // TelemetryDistroNameKey is the attribute Key conforming to the "telemetry.distro.name" semantic conventions. It represents the name of the auto instrumentation agent or distribution, if used. - // + // TelemetryDistroNameKey is the attribute Key conforming to the + // "telemetry.distro.name" semantic conventions. It represents the name of the + // auto instrumentation agent or distribution, if used. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "parts-unlimited-java" - // Note: Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to - // a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. + // Note: Official auto instrumentation agents and distributions SHOULD set the + // `telemetry.distro.name` attribute to + // a string starting with `opentelemetry-`, e.g. + // `opentelemetry-java-instrumentation`. TelemetryDistroNameKey = attribute.Key("telemetry.distro.name") - // TelemetryDistroVersionKey is the attribute Key conforming to the "telemetry.distro.version" semantic conventions. It represents the version string of the auto instrumentation agent or distribution, if used. - // + // TelemetryDistroVersionKey is the attribute Key conforming to the + // "telemetry.distro.version" semantic conventions. It represents the version + // string of the auto instrumentation agent or distribution, if used. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1.2.3" TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version") - // TelemetrySDKLanguageKey is the attribute Key conforming to the "telemetry.sdk.language" semantic conventions. It represents the language of the telemetry SDK. - // + // TelemetrySDKLanguageKey is the attribute Key conforming to the + // "telemetry.sdk.language" semantic conventions. It represents the language of + // the telemetry SDK. + // // Type: Enum // RequirementLevel: Required // Stability: Stable - // + // // Examples: TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language") - // TelemetrySDKNameKey is the attribute Key conforming to the "telemetry.sdk.name" semantic conventions. It represents the name of the telemetry SDK as defined above. - // + // TelemetrySDKNameKey is the attribute Key conforming to the + // "telemetry.sdk.name" semantic conventions. It represents the name of the + // telemetry SDK as defined above. + // // Type: string // RequirementLevel: Required // Stability: Stable - // + // // Examples: "opentelemetry" - // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. - // If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the - // `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point + // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to + // `opentelemetry`. + // If another SDK, like a fork or a vendor-provided implementation, is used, + // this SDK MUST set the + // `telemetry.sdk.name` attribute to the fully-qualified class or module name of + // this SDK's main entry point // or another suitable identifier depending on the language. // The identifier `opentelemetry` is reserved and MUST NOT be used in this case. - // All custom identifiers SHOULD be stable across different versions of an implementation. + // All custom identifiers SHOULD be stable across different versions of an + // implementation. TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name") - // TelemetrySDKVersionKey is the attribute Key conforming to the "telemetry.sdk.version" semantic conventions. It represents the version string of the telemetry SDK. - // + // TelemetrySDKVersionKey is the attribute Key conforming to the + // "telemetry.sdk.version" semantic conventions. It represents the version + // string of the telemetry SDK. + // // Type: string // RequirementLevel: Required // Stability: Stable - // + // // Examples: "1.2.3" TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version") ) -// TelemetryDistroName returns an attribute KeyValue conforming to the "telemetry.distro.name" semantic conventions. It represents the name of the auto instrumentation agent or distribution, if used. +// TelemetryDistroName returns an attribute KeyValue conforming to the +// "telemetry.distro.name" semantic conventions. It represents the name of the +// auto instrumentation agent or distribution, if used. func TelemetryDistroName(val string) attribute.KeyValue { return TelemetryDistroNameKey.String(val) } -// TelemetryDistroVersion returns an attribute KeyValue conforming to the "telemetry.distro.version" semantic conventions. It represents the version string of the auto instrumentation agent or distribution, if used. +// TelemetryDistroVersion returns an attribute KeyValue conforming to the +// "telemetry.distro.version" semantic conventions. It represents the version +// string of the auto instrumentation agent or distribution, if used. func TelemetryDistroVersion(val string) attribute.KeyValue { return TelemetryDistroVersionKey.String(val) } -// TelemetrySDKName returns an attribute KeyValue conforming to the "telemetry.sdk.name" semantic conventions. It represents the name of the telemetry SDK as defined above. +// TelemetrySDKName returns an attribute KeyValue conforming to the +// "telemetry.sdk.name" semantic conventions. It represents the name of the +// telemetry SDK as defined above. func TelemetrySDKName(val string) attribute.KeyValue { return TelemetrySDKNameKey.String(val) } -// TelemetrySDKVersion returns an attribute KeyValue conforming to the "telemetry.sdk.version" semantic conventions. It represents the version string of the telemetry SDK. +// TelemetrySDKVersion returns an attribute KeyValue conforming to the +// "telemetry.sdk.version" semantic conventions. It represents the version string +// of the telemetry SDK. func TelemetrySDKVersion(val string) attribute.KeyValue { return TelemetrySDKVersionKey.String(val) } @@ -7808,56 +9827,70 @@ var ( // Namespace: test const ( - // TestCaseNameKey is the attribute Key conforming to the "test.case.name" semantic conventions. It represents the fully qualified human readable name of the [test case]. - // + // TestCaseNameKey is the attribute Key conforming to the "test.case.name" + // semantic conventions. It represents the fully qualified human readable name + // of the [test case]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1", "ExampleTestCase1_test1" - // + // Stability: Development + // + // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1", + // "ExampleTestCase1_test1" + // // [test case]: https://en.wikipedia.org/wiki/Test_case TestCaseNameKey = attribute.Key("test.case.name") - // TestCaseResultStatusKey is the attribute Key conforming to the "test.case.result.status" semantic conventions. It represents the status of the actual test case result from test execution. - // + // TestCaseResultStatusKey is the attribute Key conforming to the + // "test.case.result.status" semantic conventions. It represents the status of + // the actual test case result from test execution. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "pass", "fail" TestCaseResultStatusKey = attribute.Key("test.case.result.status") - // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name" semantic conventions. It represents the human readable name of a [test suite]. - // + // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name" + // semantic conventions. It represents the human readable name of a [test suite] + // . + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "TestSuite1" - // + // // [test suite]: https://en.wikipedia.org/wiki/Test_suite TestSuiteNameKey = attribute.Key("test.suite.name") - // TestSuiteRunStatusKey is the attribute Key conforming to the "test.suite.run.status" semantic conventions. It represents the status of the test suite run. - // + // TestSuiteRunStatusKey is the attribute Key conforming to the + // "test.suite.run.status" semantic conventions. It represents the status of the + // test suite run. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "success", "failure", "skipped", "aborted", "timed_out", "in_progress" + // Stability: Development + // + // Examples: "success", "failure", "skipped", "aborted", "timed_out", + // "in_progress" TestSuiteRunStatusKey = attribute.Key("test.suite.run.status") ) -// TestCaseName returns an attribute KeyValue conforming to the "test.case.name" semantic conventions. It represents the fully qualified human readable name of the [test case]. -// +// TestCaseName returns an attribute KeyValue conforming to the "test.case.name" +// semantic conventions. It represents the fully qualified human readable name of +// the [test case]. +// // [test case]: https://en.wikipedia.org/wiki/Test_case func TestCaseName(val string) attribute.KeyValue { return TestCaseNameKey.String(val) } -// TestSuiteName returns an attribute KeyValue conforming to the "test.suite.name" semantic conventions. It represents the human readable name of a [test suite]. -// +// TestSuiteName returns an attribute KeyValue conforming to the +// "test.suite.name" semantic conventions. It represents the human readable name +// of a [test suite]. +// // [test suite]: https://en.wikipedia.org/wiki/Test_suite func TestSuiteName(val string) attribute.KeyValue { return TestSuiteNameKey.String(val) @@ -7866,474 +9899,638 @@ func TestSuiteName(val string) attribute.KeyValue { // Enum values for test.case.result.status var ( // pass - // Stability: experimental + // Stability: development TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass") // fail - // Stability: experimental + // Stability: development TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail") ) // Enum values for test.suite.run.status var ( // success - // Stability: experimental + // Stability: development TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success") // failure - // Stability: experimental + // Stability: development TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure") // skipped - // Stability: experimental + // Stability: development TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped") // aborted - // Stability: experimental + // Stability: development TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted") // timed_out - // Stability: experimental + // Stability: development TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out") // in_progress - // Stability: experimental + // Stability: development TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress") ) // Namespace: thread const ( - // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic conventions. It represents the current "managed" thread ID (as opposed to OS thread ID). - // + // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic + // conventions. It represents the current "managed" thread ID (as opposed to OS + // thread ID). + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental + // Stability: Development ThreadIDKey = attribute.Key("thread.id") - // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic conventions. It represents the current thread name. - // + // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic + // conventions. It represents the current thread name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: main ThreadNameKey = attribute.Key("thread.name") ) -// ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic conventions. It represents the current "managed" thread ID (as opposed to OS thread ID). +// ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic +// conventions. It represents the current "managed" thread ID (as opposed to OS +// thread ID). func ThreadID(val int) attribute.KeyValue { return ThreadIDKey.Int(val) } -// ThreadName returns an attribute KeyValue conforming to the "thread.name" semantic conventions. It represents the current thread name. +// ThreadName returns an attribute KeyValue conforming to the "thread.name" +// semantic conventions. It represents the current thread name. func ThreadName(val string) attribute.KeyValue { return ThreadNameKey.String(val) } // Namespace: tls const ( - // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic conventions. It represents the string indicating the [cipher] used during the current connection. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" - // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions` of the [registered TLS Cipher Suits]. - // + // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic + // conventions. It represents the string indicating the [cipher] used during the + // current connection. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Development + // + // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions` + // of the [registered TLS Cipher Suits]. + // // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4 TLSCipherKey = attribute.Key("tls.cipher") - // TLSClientCertificateKey is the attribute Key conforming to the "tls.client.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. - // + // TLSClientCertificateKey is the attribute Key conforming to the + // "tls.client.certificate" semantic conventions. It represents the pEM-encoded + // stand-alone certificate offered by the client. This is usually + // mutually-exclusive of `client.certificate_chain` since this value also exists + // in that list. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "MII..." TLSClientCertificateKey = attribute.Key("tls.client.certificate") - // TLSClientCertificateChainKey is the attribute Key conforming to the "tls.client.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. - // + // TLSClientCertificateChainKey is the attribute Key conforming to the + // "tls.client.certificate_chain" semantic conventions. It represents the array + // of PEM-encoded certificates that make up the certificate chain offered by the + // client. This is usually mutually-exclusive of `client.certificate` since that + // value should be the first certificate in the chain. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "MII...", "MI..." TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain") - // TLSClientHashMd5Key is the attribute Key conforming to the "tls.client.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSClientHashMd5Key is the attribute Key conforming to the + // "tls.client.hash.md5" semantic conventions. It represents the certificate + // fingerprint using the MD5 digest of DER-encoded version of certificate + // offered by the client. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5") - // TLSClientHashSha1Key is the attribute Key conforming to the "tls.client.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSClientHashSha1Key is the attribute Key conforming to the + // "tls.client.hash.sha1" semantic conventions. It represents the certificate + // fingerprint using the SHA1 digest of DER-encoded version of certificate + // offered by the client. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1") - // TLSClientHashSha256Key is the attribute Key conforming to the "tls.client.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSClientHashSha256Key is the attribute Key conforming to the + // "tls.client.hash.sha256" semantic conventions. It represents the certificate + // fingerprint using the SHA256 digest of DER-encoded version of certificate + // offered by the client. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256") - // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. - // + // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer" + // semantic conventions. It represents the distinguished name of [subject] of + // the issuer of the x.509 certificate presented by the client. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" - // + // // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 TLSClientIssuerKey = attribute.Key("tls.client.issuer") - // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3" semantic conventions. It represents a hash that identifies clients based on how they perform an SSL/TLS handshake. - // + // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3" + // semantic conventions. It represents a hash that identifies clients based on + // how they perform an SSL/TLS handshake. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "d4e5b18d6b55c71272893221c96ba240" TLSClientJa3Key = attribute.Key("tls.client.ja3") - // TLSClientNotAfterKey is the attribute Key conforming to the "tls.client.not_after" semantic conventions. It represents the date/Time indicating when client certificate is no longer considered valid. - // + // TLSClientNotAfterKey is the attribute Key conforming to the + // "tls.client.not_after" semantic conventions. It represents the date/Time + // indicating when client certificate is no longer considered valid. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T00:00:00.000Z" TLSClientNotAfterKey = attribute.Key("tls.client.not_after") - // TLSClientNotBeforeKey is the attribute Key conforming to the "tls.client.not_before" semantic conventions. It represents the date/Time indicating when client certificate is first considered valid. - // + // TLSClientNotBeforeKey is the attribute Key conforming to the + // "tls.client.not_before" semantic conventions. It represents the date/Time + // indicating when client certificate is first considered valid. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1970-01-01T00:00:00.000Z" TLSClientNotBeforeKey = attribute.Key("tls.client.not_before") - // TLSClientSubjectKey is the attribute Key conforming to the "tls.client.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the client. - // + // TLSClientSubjectKey is the attribute Key conforming to the + // "tls.client.subject" semantic conventions. It represents the distinguished + // name of subject of the x.509 certificate presented by the client. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com" TLSClientSubjectKey = attribute.Key("tls.client.subject") - // TLSClientSupportedCiphersKey is the attribute Key conforming to the "tls.client.supported_ciphers" semantic conventions. It represents the array of ciphers offered by the client during the client hello. - // + // TLSClientSupportedCiphersKey is the attribute Key conforming to the + // "tls.client.supported_ciphers" semantic conventions. It represents the array + // of ciphers offered by the client during the client hello. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + // Stability: Development + // + // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers") - // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic conventions. It represents the string indicating the curve used for the given cipher, when applicable. - // + // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic + // conventions. It represents the string indicating the curve used for the given + // cipher, when applicable. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "secp256r1" TLSCurveKey = attribute.Key("tls.curve") - // TLSEstablishedKey is the attribute Key conforming to the "tls.established" semantic conventions. It represents the boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. - // + // TLSEstablishedKey is the attribute Key conforming to the "tls.established" + // semantic conventions. It represents the boolean flag indicating if the TLS + // negotiation was successful and transitioned to an encrypted tunnel. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: true TLSEstablishedKey = attribute.Key("tls.established") - // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol" semantic conventions. It represents the string indicating the protocol being tunneled. Per the values in the [IANA registry], this string should be lower case. - // + // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol" + // semantic conventions. It represents the string indicating the protocol being + // tunneled. Per the values in the [IANA registry], this string should be lower + // case. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "http/1.1" - // + // // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids TLSNextProtocolKey = attribute.Key("tls.next_protocol") - // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name" semantic conventions. It represents the normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version]. - // + // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name" + // semantic conventions. It represents the normalized lowercase protocol name + // parsed from original string of the negotiated [SSL/TLS protocol version]. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: - // + // // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES TLSProtocolNameKey = attribute.Key("tls.protocol.name") - // TLSProtocolVersionKey is the attribute Key conforming to the "tls.protocol.version" semantic conventions. It represents the numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version]. - // + // TLSProtocolVersionKey is the attribute Key conforming to the + // "tls.protocol.version" semantic conventions. It represents the numeric part + // of the version parsed from the original string of the negotiated + // [SSL/TLS protocol version]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1.2", "3" - // + // // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES TLSProtocolVersionKey = attribute.Key("tls.protocol.version") - // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic conventions. It represents the boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. - // + // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic + // conventions. It represents the boolean flag indicating if this TLS connection + // was resumed from an existing TLS negotiation. + // // Type: boolean // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: true TLSResumedKey = attribute.Key("tls.resumed") - // TLSServerCertificateKey is the attribute Key conforming to the "tls.server.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. - // + // TLSServerCertificateKey is the attribute Key conforming to the + // "tls.server.certificate" semantic conventions. It represents the pEM-encoded + // stand-alone certificate offered by the server. This is usually + // mutually-exclusive of `server.certificate_chain` since this value also exists + // in that list. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "MII..." TLSServerCertificateKey = attribute.Key("tls.server.certificate") - // TLSServerCertificateChainKey is the attribute Key conforming to the "tls.server.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. - // + // TLSServerCertificateChainKey is the attribute Key conforming to the + // "tls.server.certificate_chain" semantic conventions. It represents the array + // of PEM-encoded certificates that make up the certificate chain offered by the + // server. This is usually mutually-exclusive of `server.certificate` since that + // value should be the first certificate in the chain. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "MII...", "MI..." TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain") - // TLSServerHashMd5Key is the attribute Key conforming to the "tls.server.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSServerHashMd5Key is the attribute Key conforming to the + // "tls.server.hash.md5" semantic conventions. It represents the certificate + // fingerprint using the MD5 digest of DER-encoded version of certificate + // offered by the server. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC" TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5") - // TLSServerHashSha1Key is the attribute Key conforming to the "tls.server.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSServerHashSha1Key is the attribute Key conforming to the + // "tls.server.hash.sha1" semantic conventions. It represents the certificate + // fingerprint using the SHA1 digest of DER-encoded version of certificate + // offered by the server. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A" TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1") - // TLSServerHashSha256Key is the attribute Key conforming to the "tls.server.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - // + // TLSServerHashSha256Key is the attribute Key conforming to the + // "tls.server.hash.sha256" semantic conventions. It represents the certificate + // fingerprint using the SHA256 digest of DER-encoded version of certificate + // offered by the server. For consistency with other hash values, this value + // should be formatted as an uppercase hash. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0" TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256") - // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. - // + // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer" + // semantic conventions. It represents the distinguished name of [subject] of + // the issuer of the x.509 certificate presented by the client. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com" - // + // // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 TLSServerIssuerKey = attribute.Key("tls.server.issuer") - // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s" semantic conventions. It represents a hash that identifies servers based on how they perform an SSL/TLS handshake. - // + // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s" + // semantic conventions. It represents a hash that identifies servers based on + // how they perform an SSL/TLS handshake. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "d4e5b18d6b55c71272893221c96ba240" TLSServerJa3sKey = attribute.Key("tls.server.ja3s") - // TLSServerNotAfterKey is the attribute Key conforming to the "tls.server.not_after" semantic conventions. It represents the date/Time indicating when server certificate is no longer considered valid. - // + // TLSServerNotAfterKey is the attribute Key conforming to the + // "tls.server.not_after" semantic conventions. It represents the date/Time + // indicating when server certificate is no longer considered valid. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "2021-01-01T00:00:00.000Z" TLSServerNotAfterKey = attribute.Key("tls.server.not_after") - // TLSServerNotBeforeKey is the attribute Key conforming to the "tls.server.not_before" semantic conventions. It represents the date/Time indicating when server certificate is first considered valid. - // + // TLSServerNotBeforeKey is the attribute Key conforming to the + // "tls.server.not_before" semantic conventions. It represents the date/Time + // indicating when server certificate is first considered valid. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "1970-01-01T00:00:00.000Z" TLSServerNotBeforeKey = attribute.Key("tls.server.not_before") - // TLSServerSubjectKey is the attribute Key conforming to the "tls.server.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the server. - // + // TLSServerSubjectKey is the attribute Key conforming to the + // "tls.server.subject" semantic conventions. It represents the distinguished + // name of subject of the x.509 certificate presented by the server. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com" TLSServerSubjectKey = attribute.Key("tls.server.subject") ) -// TLSCipher returns an attribute KeyValue conforming to the "tls.cipher" semantic conventions. It represents the string indicating the [cipher] used during the current connection. -// +// TLSCipher returns an attribute KeyValue conforming to the "tls.cipher" +// semantic conventions. It represents the string indicating the [cipher] used +// during the current connection. +// // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5 func TLSCipher(val string) attribute.KeyValue { return TLSCipherKey.String(val) } -// TLSClientCertificate returns an attribute KeyValue conforming to the "tls.client.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. +// TLSClientCertificate returns an attribute KeyValue conforming to the +// "tls.client.certificate" semantic conventions. It represents the pEM-encoded +// stand-alone certificate offered by the client. This is usually +// mutually-exclusive of `client.certificate_chain` since this value also exists +// in that list. func TLSClientCertificate(val string) attribute.KeyValue { return TLSClientCertificateKey.String(val) } -// TLSClientCertificateChain returns an attribute KeyValue conforming to the "tls.client.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. +// TLSClientCertificateChain returns an attribute KeyValue conforming to the +// "tls.client.certificate_chain" semantic conventions. It represents the array +// of PEM-encoded certificates that make up the certificate chain offered by the +// client. This is usually mutually-exclusive of `client.certificate` since that +// value should be the first certificate in the chain. func TLSClientCertificateChain(val ...string) attribute.KeyValue { return TLSClientCertificateChainKey.StringSlice(val) } -// TLSClientHashMd5 returns an attribute KeyValue conforming to the "tls.client.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSClientHashMd5 returns an attribute KeyValue conforming to the +// "tls.client.hash.md5" semantic conventions. It represents the certificate +// fingerprint using the MD5 digest of DER-encoded version of certificate offered +// by the client. For consistency with other hash values, this value should be +// formatted as an uppercase hash. func TLSClientHashMd5(val string) attribute.KeyValue { return TLSClientHashMd5Key.String(val) } -// TLSClientHashSha1 returns an attribute KeyValue conforming to the "tls.client.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSClientHashSha1 returns an attribute KeyValue conforming to the +// "tls.client.hash.sha1" semantic conventions. It represents the certificate +// fingerprint using the SHA1 digest of DER-encoded version of certificate +// offered by the client. For consistency with other hash values, this value +// should be formatted as an uppercase hash. func TLSClientHashSha1(val string) attribute.KeyValue { return TLSClientHashSha1Key.String(val) } -// TLSClientHashSha256 returns an attribute KeyValue conforming to the "tls.client.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSClientHashSha256 returns an attribute KeyValue conforming to the +// "tls.client.hash.sha256" semantic conventions. It represents the certificate +// fingerprint using the SHA256 digest of DER-encoded version of certificate +// offered by the client. For consistency with other hash values, this value +// should be formatted as an uppercase hash. func TLSClientHashSha256(val string) attribute.KeyValue { return TLSClientHashSha256Key.String(val) } -// TLSClientIssuer returns an attribute KeyValue conforming to the "tls.client.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. -// +// TLSClientIssuer returns an attribute KeyValue conforming to the +// "tls.client.issuer" semantic conventions. It represents the distinguished name +// of [subject] of the issuer of the x.509 certificate presented by the client. +// // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 func TLSClientIssuer(val string) attribute.KeyValue { return TLSClientIssuerKey.String(val) } -// TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3" semantic conventions. It represents a hash that identifies clients based on how they perform an SSL/TLS handshake. +// TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3" +// semantic conventions. It represents a hash that identifies clients based on +// how they perform an SSL/TLS handshake. func TLSClientJa3(val string) attribute.KeyValue { return TLSClientJa3Key.String(val) } -// TLSClientNotAfter returns an attribute KeyValue conforming to the "tls.client.not_after" semantic conventions. It represents the date/Time indicating when client certificate is no longer considered valid. +// TLSClientNotAfter returns an attribute KeyValue conforming to the +// "tls.client.not_after" semantic conventions. It represents the date/Time +// indicating when client certificate is no longer considered valid. func TLSClientNotAfter(val string) attribute.KeyValue { return TLSClientNotAfterKey.String(val) } -// TLSClientNotBefore returns an attribute KeyValue conforming to the "tls.client.not_before" semantic conventions. It represents the date/Time indicating when client certificate is first considered valid. +// TLSClientNotBefore returns an attribute KeyValue conforming to the +// "tls.client.not_before" semantic conventions. It represents the date/Time +// indicating when client certificate is first considered valid. func TLSClientNotBefore(val string) attribute.KeyValue { return TLSClientNotBeforeKey.String(val) } -// TLSClientSubject returns an attribute KeyValue conforming to the "tls.client.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the client. +// TLSClientSubject returns an attribute KeyValue conforming to the +// "tls.client.subject" semantic conventions. It represents the distinguished +// name of subject of the x.509 certificate presented by the client. func TLSClientSubject(val string) attribute.KeyValue { return TLSClientSubjectKey.String(val) } -// TLSClientSupportedCiphers returns an attribute KeyValue conforming to the "tls.client.supported_ciphers" semantic conventions. It represents the array of ciphers offered by the client during the client hello. +// TLSClientSupportedCiphers returns an attribute KeyValue conforming to the +// "tls.client.supported_ciphers" semantic conventions. It represents the array +// of ciphers offered by the client during the client hello. func TLSClientSupportedCiphers(val ...string) attribute.KeyValue { return TLSClientSupportedCiphersKey.StringSlice(val) } -// TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic conventions. It represents the string indicating the curve used for the given cipher, when applicable. +// TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic +// conventions. It represents the string indicating the curve used for the given +// cipher, when applicable. func TLSCurve(val string) attribute.KeyValue { return TLSCurveKey.String(val) } -// TLSEstablished returns an attribute KeyValue conforming to the "tls.established" semantic conventions. It represents the boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. +// TLSEstablished returns an attribute KeyValue conforming to the +// "tls.established" semantic conventions. It represents the boolean flag +// indicating if the TLS negotiation was successful and transitioned to an +// encrypted tunnel. func TLSEstablished(val bool) attribute.KeyValue { return TLSEstablishedKey.Bool(val) } -// TLSNextProtocol returns an attribute KeyValue conforming to the "tls.next_protocol" semantic conventions. It represents the string indicating the protocol being tunneled. Per the values in the [IANA registry], this string should be lower case. -// +// TLSNextProtocol returns an attribute KeyValue conforming to the +// "tls.next_protocol" semantic conventions. It represents the string indicating +// the protocol being tunneled. Per the values in the [IANA registry], this +// string should be lower case. +// // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids func TLSNextProtocol(val string) attribute.KeyValue { return TLSNextProtocolKey.String(val) } -// TLSProtocolVersion returns an attribute KeyValue conforming to the "tls.protocol.version" semantic conventions. It represents the numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version]. -// +// TLSProtocolVersion returns an attribute KeyValue conforming to the +// "tls.protocol.version" semantic conventions. It represents the numeric part of +// the version parsed from the original string of the negotiated +// [SSL/TLS protocol version]. +// // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES func TLSProtocolVersion(val string) attribute.KeyValue { return TLSProtocolVersionKey.String(val) } -// TLSResumed returns an attribute KeyValue conforming to the "tls.resumed" semantic conventions. It represents the boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. +// TLSResumed returns an attribute KeyValue conforming to the "tls.resumed" +// semantic conventions. It represents the boolean flag indicating if this TLS +// connection was resumed from an existing TLS negotiation. func TLSResumed(val bool) attribute.KeyValue { return TLSResumedKey.Bool(val) } -// TLSServerCertificate returns an attribute KeyValue conforming to the "tls.server.certificate" semantic conventions. It represents the pEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. +// TLSServerCertificate returns an attribute KeyValue conforming to the +// "tls.server.certificate" semantic conventions. It represents the pEM-encoded +// stand-alone certificate offered by the server. This is usually +// mutually-exclusive of `server.certificate_chain` since this value also exists +// in that list. func TLSServerCertificate(val string) attribute.KeyValue { return TLSServerCertificateKey.String(val) } -// TLSServerCertificateChain returns an attribute KeyValue conforming to the "tls.server.certificate_chain" semantic conventions. It represents the array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. +// TLSServerCertificateChain returns an attribute KeyValue conforming to the +// "tls.server.certificate_chain" semantic conventions. It represents the array +// of PEM-encoded certificates that make up the certificate chain offered by the +// server. This is usually mutually-exclusive of `server.certificate` since that +// value should be the first certificate in the chain. func TLSServerCertificateChain(val ...string) attribute.KeyValue { return TLSServerCertificateChainKey.StringSlice(val) } -// TLSServerHashMd5 returns an attribute KeyValue conforming to the "tls.server.hash.md5" semantic conventions. It represents the certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSServerHashMd5 returns an attribute KeyValue conforming to the +// "tls.server.hash.md5" semantic conventions. It represents the certificate +// fingerprint using the MD5 digest of DER-encoded version of certificate offered +// by the server. For consistency with other hash values, this value should be +// formatted as an uppercase hash. func TLSServerHashMd5(val string) attribute.KeyValue { return TLSServerHashMd5Key.String(val) } -// TLSServerHashSha1 returns an attribute KeyValue conforming to the "tls.server.hash.sha1" semantic conventions. It represents the certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSServerHashSha1 returns an attribute KeyValue conforming to the +// "tls.server.hash.sha1" semantic conventions. It represents the certificate +// fingerprint using the SHA1 digest of DER-encoded version of certificate +// offered by the server. For consistency with other hash values, this value +// should be formatted as an uppercase hash. func TLSServerHashSha1(val string) attribute.KeyValue { return TLSServerHashSha1Key.String(val) } -// TLSServerHashSha256 returns an attribute KeyValue conforming to the "tls.server.hash.sha256" semantic conventions. It represents the certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +// TLSServerHashSha256 returns an attribute KeyValue conforming to the +// "tls.server.hash.sha256" semantic conventions. It represents the certificate +// fingerprint using the SHA256 digest of DER-encoded version of certificate +// offered by the server. For consistency with other hash values, this value +// should be formatted as an uppercase hash. func TLSServerHashSha256(val string) attribute.KeyValue { return TLSServerHashSha256Key.String(val) } -// TLSServerIssuer returns an attribute KeyValue conforming to the "tls.server.issuer" semantic conventions. It represents the distinguished name of [subject] of the issuer of the x.509 certificate presented by the client. -// +// TLSServerIssuer returns an attribute KeyValue conforming to the +// "tls.server.issuer" semantic conventions. It represents the distinguished name +// of [subject] of the issuer of the x.509 certificate presented by the client. +// // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 func TLSServerIssuer(val string) attribute.KeyValue { return TLSServerIssuerKey.String(val) } -// TLSServerJa3s returns an attribute KeyValue conforming to the "tls.server.ja3s" semantic conventions. It represents a hash that identifies servers based on how they perform an SSL/TLS handshake. +// TLSServerJa3s returns an attribute KeyValue conforming to the +// "tls.server.ja3s" semantic conventions. It represents a hash that identifies +// servers based on how they perform an SSL/TLS handshake. func TLSServerJa3s(val string) attribute.KeyValue { return TLSServerJa3sKey.String(val) } -// TLSServerNotAfter returns an attribute KeyValue conforming to the "tls.server.not_after" semantic conventions. It represents the date/Time indicating when server certificate is no longer considered valid. +// TLSServerNotAfter returns an attribute KeyValue conforming to the +// "tls.server.not_after" semantic conventions. It represents the date/Time +// indicating when server certificate is no longer considered valid. func TLSServerNotAfter(val string) attribute.KeyValue { return TLSServerNotAfterKey.String(val) } -// TLSServerNotBefore returns an attribute KeyValue conforming to the "tls.server.not_before" semantic conventions. It represents the date/Time indicating when server certificate is first considered valid. +// TLSServerNotBefore returns an attribute KeyValue conforming to the +// "tls.server.not_before" semantic conventions. It represents the date/Time +// indicating when server certificate is first considered valid. func TLSServerNotBefore(val string) attribute.KeyValue { return TLSServerNotBeforeKey.String(val) } -// TLSServerSubject returns an attribute KeyValue conforming to the "tls.server.subject" semantic conventions. It represents the distinguished name of subject of the x.509 certificate presented by the server. +// TLSServerSubject returns an attribute KeyValue conforming to the +// "tls.server.subject" semantic conventions. It represents the distinguished +// name of subject of the x.509 certificate presented by the server. func TLSServerSubject(val string) attribute.KeyValue { return TLSServerSubjectKey.String(val) } @@ -8341,421 +10538,552 @@ func TLSServerSubject(val string) attribute.KeyValue { // Enum values for tls.protocol.name var ( // ssl - // Stability: experimental + // Stability: development TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl") // tls - // Stability: experimental + // Stability: development TLSProtocolNameTLS = TLSProtocolNameKey.String("tls") ) // Namespace: url const ( - // URLDomainKey is the attribute Key conforming to the "url.domain" semantic conventions. It represents the domain extracted from the `url.full`, such as "opentelemetry.io". - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2", "[1080:0:0:0:8:800:200C:417A]" - // Note: In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. - // + // URLDomainKey is the attribute Key conforming to the "url.domain" semantic + // conventions. It represents the domain extracted from the `url.full`, such as + // "opentelemetry.io". + // + // Type: string + // RequirementLevel: Recommended + // Stability: Development + // + // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2", + // "[1080:0:0:0:8:800:200C:417A]" + // Note: In some cases a URL may refer to an IP and/or port directly, without a + // domain name. In this case, the IP address would go to the domain field. If + // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[` + // and `]` characters should also be captured in the domain field. + // // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2 URLDomainKey = attribute.Key("url.domain") - // URLExtensionKey is the attribute Key conforming to the "url.extension" semantic conventions. It represents the file extension extracted from the `url.full`, excluding the leading dot. - // + // URLExtensionKey is the attribute Key conforming to the "url.extension" + // semantic conventions. It represents the file extension extracted from the + // `url.full`, excluding the leading dot. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "png", "gz" - // Note: The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. + // Note: The file extension is only set if it exists, as not every url has a + // file extension. When the file name has multiple extensions `example.tar.gz`, + // only the last one should be captured `gz`, not `tar.gz`. URLExtensionKey = attribute.Key("url.extension") - // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic conventions. It represents the [URI fragment] component. - // + // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic + // conventions. It represents the [URI fragment] component. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "SemConv" - // + // // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 URLFragmentKey = attribute.Key("url.fragment") - // URLFullKey is the attribute Key conforming to the "url.full" semantic conventions. It represents the absolute URL describing a network resource according to [RFC3986]. - // + // URLFullKey is the attribute Key conforming to the "url.full" semantic + // conventions. It represents the absolute URL describing a network resource + // according to [RFC3986]. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost" - // Note: For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. - // `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. - // `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it. - // + // Note: For network calls, URL usually has + // `scheme://host[:port][path][?query][#fragment]` format, where the fragment is + // not transmitted over HTTP, but if it is known, it SHOULD be included + // nevertheless. + // `url.full` MUST NOT contain credentials passed via URL in form of + // `https://username:password@www.example.com/`. In such case username and + // password SHOULD be redacted and attribute's value SHOULD be + // `https://REDACTED:REDACTED@www.example.com/`. + // `url.full` SHOULD capture the absolute URL when it is available (or can be + // reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed + // when instrumentations can identify it. + // // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 URLFullKey = attribute.Key("url.full") - // URLOriginalKey is the attribute Key conforming to the "url.original" semantic conventions. It represents the unmodified original URL as seen in the event source. - // - // Type: string - // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "search?q=OpenTelemetry" - // Note: In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. - // `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same. + // URLOriginalKey is the attribute Key conforming to the "url.original" semantic + // conventions. It represents the unmodified original URL as seen in the event + // source. + // + // Type: string + // RequirementLevel: Recommended + // Stability: Development + // + // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", + // "search?q=OpenTelemetry" + // Note: In network monitoring, the observed URL may be a full URL, whereas in + // access logs, the URL is often just represented as a path. This field is meant + // to represent the URL as it was observed, complete or not. + // `url.original` might contain credentials passed via URL in form of + // `https://username:password@www.example.com/`. In such case password and + // username SHOULD NOT be redacted and attribute's value SHOULD remain the same. URLOriginalKey = attribute.Key("url.original") - // URLPathKey is the attribute Key conforming to the "url.path" semantic conventions. It represents the [URI path] component. - // + // URLPathKey is the attribute Key conforming to the "url.path" semantic + // conventions. It represents the [URI path] component. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "/search" - // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it. - // + // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when + // instrumentations can identify it. + // // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 URLPathKey = attribute.Key("url.path") - // URLPortKey is the attribute Key conforming to the "url.port" semantic conventions. It represents the port extracted from the `url.full`. - // + // URLPortKey is the attribute Key conforming to the "url.port" semantic + // conventions. It represents the port extracted from the `url.full`. + // // Type: int // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: 443 URLPortKey = attribute.Key("url.port") - // URLQueryKey is the attribute Key conforming to the "url.query" semantic conventions. It represents the [URI query] component. - // + // URLQueryKey is the attribute Key conforming to the "url.query" semantic + // conventions. It represents the [URI query] component. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "q=OpenTelemetry" - // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it. - // + // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when + // instrumentations can identify it. + // // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 URLQueryKey = attribute.Key("url.query") - // URLRegisteredDomainKey is the attribute Key conforming to the "url.registered_domain" semantic conventions. It represents the highest registered url domain, stripped of the subdomain. - // + // URLRegisteredDomainKey is the attribute Key conforming to the + // "url.registered_domain" semantic conventions. It represents the highest + // registered url domain, stripped of the subdomain. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "example.com", "foo.co.uk" - // Note: This value can be determined precisely with the [public suffix list]. For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. - // + // Note: This value can be determined precisely with the [public suffix list]. + // For example, the registered domain for `foo.example.com` is `example.com`. + // Trying to approximate this by simply taking the last two labels will not work + // well for TLDs such as `co.uk`. + // // [public suffix list]: http://publicsuffix.org URLRegisteredDomainKey = attribute.Key("url.registered_domain") - // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic conventions. It represents the [URI scheme] component identifying the used protocol. - // + // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic + // conventions. It represents the [URI scheme] component identifying the used + // protocol. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // + // // Examples: "https", "ftp", "telnet" - // + // // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 URLSchemeKey = attribute.Key("url.scheme") - // URLSubdomainKey is the attribute Key conforming to the "url.subdomain" semantic conventions. It represents the subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. - // + // URLSubdomainKey is the attribute Key conforming to the "url.subdomain" + // semantic conventions. It represents the subdomain portion of a fully + // qualified domain name includes all of the names except the host name under + // the registered_domain. In a partially qualified domain, or if the + // qualification level of the full name cannot be determined, subdomain contains + // all of the names below the registered domain. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "east", "sub2.sub1" - // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. + // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the + // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the + // subdomain field should contain `sub2.sub1`, with no trailing period. URLSubdomainKey = attribute.Key("url.subdomain") - // URLTemplateKey is the attribute Key conforming to the "url.template" semantic conventions. It represents the low-cardinality template of an [absolute path reference]. - // + // URLTemplateKey is the attribute Key conforming to the "url.template" semantic + // conventions. It represents the low-cardinality template of an + // [absolute path reference]. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "/users/{id}", "/users/:id", "/users?id={id}" - // + // // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 URLTemplateKey = attribute.Key("url.template") - // URLTopLevelDomainKey is the attribute Key conforming to the "url.top_level_domain" semantic conventions. It represents the effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. - // + // URLTopLevelDomainKey is the attribute Key conforming to the + // "url.top_level_domain" semantic conventions. It represents the effective top + // level domain (eTLD), also known as the domain suffix, is the last part of the + // domain name. For example, the top level domain for example.com is `com`. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "com", "co.uk" // Note: This value can be determined precisely with the [public suffix list]. - // + // // [public suffix list]: http://publicsuffix.org URLTopLevelDomainKey = attribute.Key("url.top_level_domain") ) -// URLDomain returns an attribute KeyValue conforming to the "url.domain" semantic conventions. It represents the domain extracted from the `url.full`, such as "opentelemetry.io". +// URLDomain returns an attribute KeyValue conforming to the "url.domain" +// semantic conventions. It represents the domain extracted from the `url.full`, +// such as "opentelemetry.io". func URLDomain(val string) attribute.KeyValue { return URLDomainKey.String(val) } -// URLExtension returns an attribute KeyValue conforming to the "url.extension" semantic conventions. It represents the file extension extracted from the `url.full`, excluding the leading dot. +// URLExtension returns an attribute KeyValue conforming to the "url.extension" +// semantic conventions. It represents the file extension extracted from the +// `url.full`, excluding the leading dot. func URLExtension(val string) attribute.KeyValue { return URLExtensionKey.String(val) } -// URLFragment returns an attribute KeyValue conforming to the "url.fragment" semantic conventions. It represents the [URI fragment] component. -// +// URLFragment returns an attribute KeyValue conforming to the "url.fragment" +// semantic conventions. It represents the [URI fragment] component. +// // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5 func URLFragment(val string) attribute.KeyValue { return URLFragmentKey.String(val) } -// URLFull returns an attribute KeyValue conforming to the "url.full" semantic conventions. It represents the absolute URL describing a network resource according to [RFC3986]. -// +// URLFull returns an attribute KeyValue conforming to the "url.full" semantic +// conventions. It represents the absolute URL describing a network resource +// according to [RFC3986]. +// // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986 func URLFull(val string) attribute.KeyValue { return URLFullKey.String(val) } -// URLOriginal returns an attribute KeyValue conforming to the "url.original" semantic conventions. It represents the unmodified original URL as seen in the event source. +// URLOriginal returns an attribute KeyValue conforming to the "url.original" +// semantic conventions. It represents the unmodified original URL as seen in the +// event source. func URLOriginal(val string) attribute.KeyValue { return URLOriginalKey.String(val) } -// URLPath returns an attribute KeyValue conforming to the "url.path" semantic conventions. It represents the [URI path] component. -// +// URLPath returns an attribute KeyValue conforming to the "url.path" semantic +// conventions. It represents the [URI path] component. +// // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 func URLPath(val string) attribute.KeyValue { return URLPathKey.String(val) } -// URLPort returns an attribute KeyValue conforming to the "url.port" semantic conventions. It represents the port extracted from the `url.full`. +// URLPort returns an attribute KeyValue conforming to the "url.port" semantic +// conventions. It represents the port extracted from the `url.full`. func URLPort(val int) attribute.KeyValue { return URLPortKey.Int(val) } -// URLQuery returns an attribute KeyValue conforming to the "url.query" semantic conventions. It represents the [URI query] component. -// +// URLQuery returns an attribute KeyValue conforming to the "url.query" semantic +// conventions. It represents the [URI query] component. +// // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4 func URLQuery(val string) attribute.KeyValue { return URLQueryKey.String(val) } -// URLRegisteredDomain returns an attribute KeyValue conforming to the "url.registered_domain" semantic conventions. It represents the highest registered url domain, stripped of the subdomain. +// URLRegisteredDomain returns an attribute KeyValue conforming to the +// "url.registered_domain" semantic conventions. It represents the highest +// registered url domain, stripped of the subdomain. func URLRegisteredDomain(val string) attribute.KeyValue { return URLRegisteredDomainKey.String(val) } -// URLScheme returns an attribute KeyValue conforming to the "url.scheme" semantic conventions. It represents the [URI scheme] component identifying the used protocol. -// +// URLScheme returns an attribute KeyValue conforming to the "url.scheme" +// semantic conventions. It represents the [URI scheme] component identifying the +// used protocol. +// // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1 func URLScheme(val string) attribute.KeyValue { return URLSchemeKey.String(val) } -// URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain" semantic conventions. It represents the subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. +// URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain" +// semantic conventions. It represents the subdomain portion of a fully qualified +// domain name includes all of the names except the host name under the +// registered_domain. In a partially qualified domain, or if the qualification +// level of the full name cannot be determined, subdomain contains all of the +// names below the registered domain. func URLSubdomain(val string) attribute.KeyValue { return URLSubdomainKey.String(val) } -// URLTemplate returns an attribute KeyValue conforming to the "url.template" semantic conventions. It represents the low-cardinality template of an [absolute path reference]. -// +// URLTemplate returns an attribute KeyValue conforming to the "url.template" +// semantic conventions. It represents the low-cardinality template of an +// [absolute path reference]. +// // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2 func URLTemplate(val string) attribute.KeyValue { return URLTemplateKey.String(val) } -// URLTopLevelDomain returns an attribute KeyValue conforming to the "url.top_level_domain" semantic conventions. It represents the effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. +// URLTopLevelDomain returns an attribute KeyValue conforming to the +// "url.top_level_domain" semantic conventions. It represents the effective top +// level domain (eTLD), also known as the domain suffix, is the last part of the +// domain name. For example, the top level domain for example.com is `com`. func URLTopLevelDomain(val string) attribute.KeyValue { return URLTopLevelDomainKey.String(val) } // Namespace: user const ( - // UserEmailKey is the attribute Key conforming to the "user.email" semantic conventions. It represents the user email address. - // + // UserEmailKey is the attribute Key conforming to the "user.email" semantic + // conventions. It represents the user email address. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "a.einstein@example.com" UserEmailKey = attribute.Key("user.email") - // UserFullNameKey is the attribute Key conforming to the "user.full_name" semantic conventions. It represents the user's full name. - // + // UserFullNameKey is the attribute Key conforming to the "user.full_name" + // semantic conventions. It represents the user's full name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Albert Einstein" UserFullNameKey = attribute.Key("user.full_name") - // UserHashKey is the attribute Key conforming to the "user.hash" semantic conventions. It represents the unique user hash to correlate information for a user in anonymized form. - // + // UserHashKey is the attribute Key conforming to the "user.hash" semantic + // conventions. It represents the unique user hash to correlate information for + // a user in anonymized form. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa" - // Note: Useful if `user.id` or `user.name` contain confidential information and cannot be used. + // Note: Useful if `user.id` or `user.name` contain confidential information and + // cannot be used. UserHashKey = attribute.Key("user.hash") - // UserIDKey is the attribute Key conforming to the "user.id" semantic conventions. It represents the unique identifier of the user. - // + // UserIDKey is the attribute Key conforming to the "user.id" semantic + // conventions. It represents the unique identifier of the user. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000" UserIDKey = attribute.Key("user.id") - // UserNameKey is the attribute Key conforming to the "user.name" semantic conventions. It represents the short name or login/username of the user. - // + // UserNameKey is the attribute Key conforming to the "user.name" semantic + // conventions. It represents the short name or login/username of the user. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "a.einstein" UserNameKey = attribute.Key("user.name") - // UserRolesKey is the attribute Key conforming to the "user.roles" semantic conventions. It represents the array of user roles at the time of the event. - // + // UserRolesKey is the attribute Key conforming to the "user.roles" semantic + // conventions. It represents the array of user roles at the time of the event. + // // Type: string[] // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "admin", "reporting_user" UserRolesKey = attribute.Key("user.roles") ) -// UserEmail returns an attribute KeyValue conforming to the "user.email" semantic conventions. It represents the user email address. +// UserEmail returns an attribute KeyValue conforming to the "user.email" +// semantic conventions. It represents the user email address. func UserEmail(val string) attribute.KeyValue { return UserEmailKey.String(val) } -// UserFullName returns an attribute KeyValue conforming to the "user.full_name" semantic conventions. It represents the user's full name. +// UserFullName returns an attribute KeyValue conforming to the "user.full_name" +// semantic conventions. It represents the user's full name. func UserFullName(val string) attribute.KeyValue { return UserFullNameKey.String(val) } -// UserHash returns an attribute KeyValue conforming to the "user.hash" semantic conventions. It represents the unique user hash to correlate information for a user in anonymized form. +// UserHash returns an attribute KeyValue conforming to the "user.hash" semantic +// conventions. It represents the unique user hash to correlate information for a +// user in anonymized form. func UserHash(val string) attribute.KeyValue { return UserHashKey.String(val) } -// UserID returns an attribute KeyValue conforming to the "user.id" semantic conventions. It represents the unique identifier of the user. +// UserID returns an attribute KeyValue conforming to the "user.id" semantic +// conventions. It represents the unique identifier of the user. func UserID(val string) attribute.KeyValue { return UserIDKey.String(val) } -// UserName returns an attribute KeyValue conforming to the "user.name" semantic conventions. It represents the short name or login/username of the user. +// UserName returns an attribute KeyValue conforming to the "user.name" semantic +// conventions. It represents the short name or login/username of the user. func UserName(val string) attribute.KeyValue { return UserNameKey.String(val) } -// UserRoles returns an attribute KeyValue conforming to the "user.roles" semantic conventions. It represents the array of user roles at the time of the event. +// UserRoles returns an attribute KeyValue conforming to the "user.roles" +// semantic conventions. It represents the array of user roles at the time of the +// event. func UserRoles(val ...string) attribute.KeyValue { return UserRolesKey.StringSlice(val) } // Namespace: user_agent const ( - // UserAgentNameKey is the attribute Key conforming to the "user_agent.name" semantic conventions. It represents the name of the user-agent extracted from original. Usually refers to the browser's name. - // + // UserAgentNameKey is the attribute Key conforming to the "user_agent.name" + // semantic conventions. It represents the name of the user-agent extracted from + // original. Usually refers to the browser's name. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "Safari", "YourApp" - // Note: [Example] of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version` - // + // Note: [Example] of extracting browser's name from original string. In the + // case of using a user-agent for non-browser products, such as microservices + // with multiple names/versions inside the `user_agent.original`, the most + // significant name SHOULD be selected. In such a scenario it should align with + // `user_agent.version` + // // [Example]: https://www.whatsmyua.info UserAgentNameKey = attribute.Key("user_agent.name") - // UserAgentOriginalKey is the attribute Key conforming to the "user_agent.original" semantic conventions. It represents the value of the [HTTP User-Agent] header sent by the client. - // + // UserAgentOriginalKey is the attribute Key conforming to the + // "user_agent.original" semantic conventions. It represents the value of the + // [HTTP User-Agent] header sent by the client. + // // Type: string // RequirementLevel: Recommended // Stability: Stable - // - // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0 grpc-java-okhttp/1.27.2" - // + // + // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU + // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) + // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0 + // grpc-java-okhttp/1.27.2" + // // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent UserAgentOriginalKey = attribute.Key("user_agent.original") - // UserAgentVersionKey is the attribute Key conforming to the "user_agent.version" semantic conventions. It represents the version of the user-agent extracted from original. Usually refers to the browser's version. - // + // UserAgentVersionKey is the attribute Key conforming to the + // "user_agent.version" semantic conventions. It represents the version of the + // user-agent extracted from original. Usually refers to the browser's version. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "14.1.2", "1.0.0" - // Note: [Example] of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name` - // + // Note: [Example] of extracting browser's version from original string. In the + // case of using a user-agent for non-browser products, such as microservices + // with multiple names/versions inside the `user_agent.original`, the most + // significant version SHOULD be selected. In such a scenario it should align + // with `user_agent.name` + // // [Example]: https://www.whatsmyua.info UserAgentVersionKey = attribute.Key("user_agent.version") ) -// UserAgentName returns an attribute KeyValue conforming to the "user_agent.name" semantic conventions. It represents the name of the user-agent extracted from original. Usually refers to the browser's name. +// UserAgentName returns an attribute KeyValue conforming to the +// "user_agent.name" semantic conventions. It represents the name of the +// user-agent extracted from original. Usually refers to the browser's name. func UserAgentName(val string) attribute.KeyValue { return UserAgentNameKey.String(val) } -// UserAgentOriginal returns an attribute KeyValue conforming to the "user_agent.original" semantic conventions. It represents the value of the [HTTP User-Agent] header sent by the client. -// +// UserAgentOriginal returns an attribute KeyValue conforming to the +// "user_agent.original" semantic conventions. It represents the value of the +// [HTTP User-Agent] header sent by the client. +// // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent func UserAgentOriginal(val string) attribute.KeyValue { return UserAgentOriginalKey.String(val) } -// UserAgentVersion returns an attribute KeyValue conforming to the "user_agent.version" semantic conventions. It represents the version of the user-agent extracted from original. Usually refers to the browser's version. +// UserAgentVersion returns an attribute KeyValue conforming to the +// "user_agent.version" semantic conventions. It represents the version of the +// user-agent extracted from original. Usually refers to the browser's version. func UserAgentVersion(val string) attribute.KeyValue { return UserAgentVersionKey.String(val) } // Namespace: vcs const ( - // VCSRepositoryChangeIDKey is the attribute Key conforming to the "vcs.repository.change.id" semantic conventions. It represents the ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. - // + // VCSRepositoryChangeIDKey is the attribute Key conforming to the + // "vcs.repository.change.id" semantic conventions. It represents the ID of the + // change (pull request/merge request) if applicable. This is usually a unique + // (within repository) identifier generated by the VCS system. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "123" VCSRepositoryChangeIDKey = attribute.Key("vcs.repository.change.id") - // VCSRepositoryChangeTitleKey is the attribute Key conforming to the "vcs.repository.change.title" semantic conventions. It represents the human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. - // + // VCSRepositoryChangeTitleKey is the attribute Key conforming to the + // "vcs.repository.change.title" semantic conventions. It represents the human + // readable title of the change (pull request/merge request). This title is + // often a brief summary of the change and may get merged in to a ref as the + // commit summary. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update dependency" + // Stability: Development + // + // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update + // dependency" VCSRepositoryChangeTitleKey = attribute.Key("vcs.repository.change.title") - // VCSRepositoryRefNameKey is the attribute Key conforming to the "vcs.repository.ref.name" semantic conventions. It represents the name of the [reference] such as **branch** or **tag** in the repository. - // + // VCSRepositoryRefNameKey is the attribute Key conforming to the + // "vcs.repository.ref.name" semantic conventions. It represents the name of the + // [reference] such as **branch** or **tag** in the repository. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "my-feature-branch", "tag-1-test" - // + // // [reference]: https://git-scm.com/docs/gitglossary#def_ref VCSRepositoryRefNameKey = attribute.Key("vcs.repository.ref.name") - // VCSRepositoryRefRevisionKey is the attribute Key conforming to the "vcs.repository.ref.revision" semantic conventions. It represents the revision, literally [revised version], The revision most often refers to a commit object in Git, or a revision number in SVN. - // + // VCSRepositoryRefRevisionKey is the attribute Key conforming to the + // "vcs.repository.ref.revision" semantic conventions. It represents the + // revision, literally [revised version], The revision most often refers to a + // commit object in Git, or a revision number in SVN. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", "main", "123", "HEAD" + // Stability: Development + // + // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", + // "main", "123", "HEAD" // Note: The revision can be a full [hash value (see glossary)], // of the recorded change to a ref within a repository pointing to a // commit [commit] object. It does @@ -8765,62 +11093,84 @@ const ( // it is identical to the `ref.name`, it SHOULD still be included. It is // up to the implementer to decide which value to set as the revision // based on the VCS system and situational context. - // + // // [revised version]: https://www.merriam-webster.com/dictionary/revision // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf // [commit]: https://git-scm.com/docs/git-commit // [revision number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html VCSRepositoryRefRevisionKey = attribute.Key("vcs.repository.ref.revision") - // VCSRepositoryRefTypeKey is the attribute Key conforming to the "vcs.repository.ref.type" semantic conventions. It represents the type of the [reference] in the repository. - // + // VCSRepositoryRefTypeKey is the attribute Key conforming to the + // "vcs.repository.ref.type" semantic conventions. It represents the type of the + // [reference] in the repository. + // // Type: Enum // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "branch", "tag" - // + // // [reference]: https://git-scm.com/docs/gitglossary#def_ref VCSRepositoryRefTypeKey = attribute.Key("vcs.repository.ref.type") - // VCSRepositoryURLFullKey is the attribute Key conforming to the "vcs.repository.url.full" semantic conventions. It represents the [URL] of the repository providing the complete address in order to locate and identify the repository. - // + // VCSRepositoryURLFullKey is the attribute Key conforming to the + // "vcs.repository.url.full" semantic conventions. It represents the [URL] of + // the repository providing the complete address in order to locate and identify + // the repository. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "https://github.com/opentelemetry/open-telemetry-collector-contrib", "https://gitlab.com/my-org/my-project/my-projects-project/repo" - // + // Stability: Development + // + // Examples: + // "https://github.com/opentelemetry/open-telemetry-collector-contrib", + // "https://gitlab.com/my-org/my-project/my-projects-project/repo" + // // [URL]: https://en.wikipedia.org/wiki/URL VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full") ) -// VCSRepositoryChangeID returns an attribute KeyValue conforming to the "vcs.repository.change.id" semantic conventions. It represents the ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. +// VCSRepositoryChangeID returns an attribute KeyValue conforming to the +// "vcs.repository.change.id" semantic conventions. It represents the ID of the +// change (pull request/merge request) if applicable. This is usually a unique +// (within repository) identifier generated by the VCS system. func VCSRepositoryChangeID(val string) attribute.KeyValue { return VCSRepositoryChangeIDKey.String(val) } -// VCSRepositoryChangeTitle returns an attribute KeyValue conforming to the "vcs.repository.change.title" semantic conventions. It represents the human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. +// VCSRepositoryChangeTitle returns an attribute KeyValue conforming to the +// "vcs.repository.change.title" semantic conventions. It represents the human +// readable title of the change (pull request/merge request). This title is often +// a brief summary of the change and may get merged in to a ref as the commit +// summary. func VCSRepositoryChangeTitle(val string) attribute.KeyValue { return VCSRepositoryChangeTitleKey.String(val) } -// VCSRepositoryRefName returns an attribute KeyValue conforming to the "vcs.repository.ref.name" semantic conventions. It represents the name of the [reference] such as **branch** or **tag** in the repository. -// +// VCSRepositoryRefName returns an attribute KeyValue conforming to the +// "vcs.repository.ref.name" semantic conventions. It represents the name of the +// [reference] such as **branch** or **tag** in the repository. +// // [reference]: https://git-scm.com/docs/gitglossary#def_ref func VCSRepositoryRefName(val string) attribute.KeyValue { return VCSRepositoryRefNameKey.String(val) } -// VCSRepositoryRefRevision returns an attribute KeyValue conforming to the "vcs.repository.ref.revision" semantic conventions. It represents the revision, literally [revised version], The revision most often refers to a commit object in Git, or a revision number in SVN. -// +// VCSRepositoryRefRevision returns an attribute KeyValue conforming to the +// "vcs.repository.ref.revision" semantic conventions. It represents the +// revision, literally [revised version], The revision most often refers to a +// commit object in Git, or a revision number in SVN. +// // [revised version]: https://www.merriam-webster.com/dictionary/revision func VCSRepositoryRefRevision(val string) attribute.KeyValue { return VCSRepositoryRefRevisionKey.String(val) } -// VCSRepositoryURLFull returns an attribute KeyValue conforming to the "vcs.repository.url.full" semantic conventions. It represents the [URL] of the repository providing the complete address in order to locate and identify the repository. -// +// VCSRepositoryURLFull returns an attribute KeyValue conforming to the +// "vcs.repository.url.full" semantic conventions. It represents the [URL] of the +// repository providing the complete address in order to locate and identify the +// repository. +// // [URL]: https://en.wikipedia.org/wiki/URL func VCSRepositoryURLFull(val string) attribute.KeyValue { return VCSRepositoryURLFullKey.String(val) @@ -8829,58 +11179,70 @@ func VCSRepositoryURLFull(val string) attribute.KeyValue { // Enum values for vcs.repository.ref.type var ( // [branch] - // Stability: experimental - // + // Stability: development + // // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch VCSRepositoryRefTypeBranch = VCSRepositoryRefTypeKey.String("branch") // [tag] - // Stability: experimental - // + // Stability: development + // // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag VCSRepositoryRefTypeTag = VCSRepositoryRefTypeKey.String("tag") ) // Namespace: webengine const ( - // WebEngineDescriptionKey is the attribute Key conforming to the "webengine.description" semantic conventions. It represents the additional description of the web engine (e.g. detailed version and edition information). - // + // WebEngineDescriptionKey is the attribute Key conforming to the + // "webengine.description" semantic conventions. It represents the additional + // description of the web engine (e.g. detailed version and edition + // information). + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // - // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final" + // Stability: Development + // + // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - + // 2.2.2.Final" WebEngineDescriptionKey = attribute.Key("webengine.description") - // WebEngineNameKey is the attribute Key conforming to the "webengine.name" semantic conventions. It represents the name of the web engine. - // + // WebEngineNameKey is the attribute Key conforming to the "webengine.name" + // semantic conventions. It represents the name of the web engine. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "WildFly" WebEngineNameKey = attribute.Key("webengine.name") - // WebEngineVersionKey is the attribute Key conforming to the "webengine.version" semantic conventions. It represents the version of the web engine. - // + // WebEngineVersionKey is the attribute Key conforming to the + // "webengine.version" semantic conventions. It represents the version of the + // web engine. + // // Type: string // RequirementLevel: Recommended - // Stability: Experimental - // + // Stability: Development + // // Examples: "21.0.0" WebEngineVersionKey = attribute.Key("webengine.version") ) -// WebEngineDescription returns an attribute KeyValue conforming to the "webengine.description" semantic conventions. It represents the additional description of the web engine (e.g. detailed version and edition information). +// WebEngineDescription returns an attribute KeyValue conforming to the +// "webengine.description" semantic conventions. It represents the additional +// description of the web engine (e.g. detailed version and edition information). func WebEngineDescription(val string) attribute.KeyValue { return WebEngineDescriptionKey.String(val) } -// WebEngineName returns an attribute KeyValue conforming to the "webengine.name" semantic conventions. It represents the name of the web engine. +// WebEngineName returns an attribute KeyValue conforming to the "webengine.name" +// semantic conventions. It represents the name of the web engine. func WebEngineName(val string) attribute.KeyValue { return WebEngineNameKey.String(val) } -// WebEngineVersion returns an attribute KeyValue conforming to the "webengine.version" semantic conventions. It represents the version of the web engine. +// WebEngineVersion returns an attribute KeyValue conforming to the +// "webengine.version" semantic conventions. It represents the version of the web +// engine. func WebEngineVersion(val string) attribute.KeyValue { return WebEngineVersionKey.String(val) } \ No newline at end of file diff --git a/semconv/v1.28.0/metric.go b/semconv/v1.28.0/metric.go index ab89a2dbd45..512d4090fce 100644 --- a/semconv/v1.28.0/metric.go +++ b/semconv/v1.28.0/metric.go @@ -6,998 +6,1252 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0" const ( - // ContainerCPUTime is the metric conforming to the "container.cpu.time" semantic conventions. It represents the total CPU time consumed. + // ContainerCPUTime is the metric conforming to the "container.cpu.time" + // semantic conventions. It represents the total CPU time consumed. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development ContainerCPUTimeName = "container.cpu.time" ContainerCPUTimeUnit = "s" ContainerCPUTimeDescription = "Total CPU time consumed" - // ContainerCPUUsage is the metric conforming to the "container.cpu.usage" semantic conventions. It represents the container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // ContainerCPUUsage is the metric conforming to the "container.cpu.usage" + // semantic conventions. It represents the container's CPU usage, measured in + // cpus. Range from 0 to the number of allocatable CPUs. // Instrument: gauge // Unit: {cpu} - // Stability: experimental + // Stability: development ContainerCPUUsageName = "container.cpu.usage" ContainerCPUUsageUnit = "{cpu}" ContainerCPUUsageDescription = "Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" - // ContainerDiskIo is the metric conforming to the "container.disk.io" semantic conventions. It represents the disk bytes for the container. + // ContainerDiskIo is the metric conforming to the "container.disk.io" semantic + // conventions. It represents the disk bytes for the container. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development ContainerDiskIoName = "container.disk.io" ContainerDiskIoUnit = "By" ContainerDiskIoDescription = "Disk bytes for the container." - // ContainerMemoryUsage is the metric conforming to the "container.memory.usage" semantic conventions. It represents the memory usage of the container. + // ContainerMemoryUsage is the metric conforming to the + // "container.memory.usage" semantic conventions. It represents the memory + // usage of the container. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development ContainerMemoryUsageName = "container.memory.usage" ContainerMemoryUsageUnit = "By" ContainerMemoryUsageDescription = "Memory usage of the container." - // ContainerNetworkIo is the metric conforming to the "container.network.io" semantic conventions. It represents the network bytes for the container. + // ContainerNetworkIo is the metric conforming to the "container.network.io" + // semantic conventions. It represents the network bytes for the container. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development ContainerNetworkIoName = "container.network.io" ContainerNetworkIoUnit = "By" ContainerNetworkIoDescription = "Network bytes for the container." - // DBClientConnectionCount is the metric conforming to the "db.client.connection.count" semantic conventions. It represents the number of connections that are currently in state described by the `state` attribute. + // DBClientConnectionCount is the metric conforming to the + // "db.client.connection.count" semantic conventions. It represents the number + // of connections that are currently in state described by the `state` + // attribute. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development DBClientConnectionCountName = "db.client.connection.count" DBClientConnectionCountUnit = "{connection}" DBClientConnectionCountDescription = "The number of connections that are currently in state described by the `state` attribute" - // DBClientConnectionCreateTime is the metric conforming to the "db.client.connection.create_time" semantic conventions. It represents the time it took to create a new connection. + // DBClientConnectionCreateTime is the metric conforming to the + // "db.client.connection.create_time" semantic conventions. It represents the + // time it took to create a new connection. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development DBClientConnectionCreateTimeName = "db.client.connection.create_time" DBClientConnectionCreateTimeUnit = "s" DBClientConnectionCreateTimeDescription = "The time it took to create a new connection" - // DBClientConnectionIdleMax is the metric conforming to the "db.client.connection.idle.max" semantic conventions. It represents the maximum number of idle open connections allowed. + // DBClientConnectionIdleMax is the metric conforming to the + // "db.client.connection.idle.max" semantic conventions. It represents the + // maximum number of idle open connections allowed. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development DBClientConnectionIdleMaxName = "db.client.connection.idle.max" DBClientConnectionIdleMaxUnit = "{connection}" DBClientConnectionIdleMaxDescription = "The maximum number of idle open connections allowed" - // DBClientConnectionIdleMin is the metric conforming to the "db.client.connection.idle.min" semantic conventions. It represents the minimum number of idle open connections allowed. + // DBClientConnectionIdleMin is the metric conforming to the + // "db.client.connection.idle.min" semantic conventions. It represents the + // minimum number of idle open connections allowed. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development DBClientConnectionIdleMinName = "db.client.connection.idle.min" DBClientConnectionIdleMinUnit = "{connection}" DBClientConnectionIdleMinDescription = "The minimum number of idle open connections allowed" - // DBClientConnectionMax is the metric conforming to the "db.client.connection.max" semantic conventions. It represents the maximum number of open connections allowed. + // DBClientConnectionMax is the metric conforming to the + // "db.client.connection.max" semantic conventions. It represents the maximum + // number of open connections allowed. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development DBClientConnectionMaxName = "db.client.connection.max" DBClientConnectionMaxUnit = "{connection}" DBClientConnectionMaxDescription = "The maximum number of open connections allowed" - // DBClientConnectionPendingRequests is the metric conforming to the "db.client.connection.pending_requests" semantic conventions. It represents the number of current pending requests for an open connection. + // DBClientConnectionPendingRequests is the metric conforming to the + // "db.client.connection.pending_requests" semantic conventions. It represents + // the number of current pending requests for an open connection. // Instrument: updowncounter // Unit: {request} - // Stability: experimental + // Stability: development DBClientConnectionPendingRequestsName = "db.client.connection.pending_requests" DBClientConnectionPendingRequestsUnit = "{request}" DBClientConnectionPendingRequestsDescription = "The number of current pending requests for an open connection" - // DBClientConnectionTimeouts is the metric conforming to the "db.client.connection.timeouts" semantic conventions. It represents the number of connection timeouts that have occurred trying to obtain a connection from the pool. + // DBClientConnectionTimeouts is the metric conforming to the + // "db.client.connection.timeouts" semantic conventions. It represents the + // number of connection timeouts that have occurred trying to obtain a + // connection from the pool. // Instrument: counter // Unit: {timeout} - // Stability: experimental + // Stability: development DBClientConnectionTimeoutsName = "db.client.connection.timeouts" DBClientConnectionTimeoutsUnit = "{timeout}" DBClientConnectionTimeoutsDescription = "The number of connection timeouts that have occurred trying to obtain a connection from the pool" - // DBClientConnectionUseTime is the metric conforming to the "db.client.connection.use_time" semantic conventions. It represents the time between borrowing a connection and returning it to the pool. + // DBClientConnectionUseTime is the metric conforming to the + // "db.client.connection.use_time" semantic conventions. It represents the time + // between borrowing a connection and returning it to the pool. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development DBClientConnectionUseTimeName = "db.client.connection.use_time" DBClientConnectionUseTimeUnit = "s" DBClientConnectionUseTimeDescription = "The time between borrowing a connection and returning it to the pool" - // DBClientConnectionWaitTime is the metric conforming to the "db.client.connection.wait_time" semantic conventions. It represents the time it took to obtain an open connection from the pool. + // DBClientConnectionWaitTime is the metric conforming to the + // "db.client.connection.wait_time" semantic conventions. It represents the + // time it took to obtain an open connection from the pool. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development DBClientConnectionWaitTimeName = "db.client.connection.wait_time" DBClientConnectionWaitTimeUnit = "s" DBClientConnectionWaitTimeDescription = "The time it took to obtain an open connection from the pool" - // DBClientConnectionsCreateTime is the metric conforming to the "db.client.connections.create_time" semantic conventions. It represents the deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. + // DBClientConnectionsCreateTime is the metric conforming to the + // "db.client.connections.create_time" semantic conventions. It represents the + // deprecated, use `db.client.connection.create_time` instead. Note: the unit + // also changed from `ms` to `s`. // Instrument: histogram // Unit: ms - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. DBClientConnectionsCreateTimeName = "db.client.connections.create_time" DBClientConnectionsCreateTimeUnit = "ms" DBClientConnectionsCreateTimeDescription = "Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`." - // DBClientConnectionsIdleMax is the metric conforming to the "db.client.connections.idle.max" semantic conventions. It represents the deprecated, use `db.client.connection.idle.max` instead. + // DBClientConnectionsIdleMax is the metric conforming to the + // "db.client.connections.idle.max" semantic conventions. It represents the + // deprecated, use `db.client.connection.idle.max` instead. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.idle.max`. DBClientConnectionsIdleMaxName = "db.client.connections.idle.max" DBClientConnectionsIdleMaxUnit = "{connection}" DBClientConnectionsIdleMaxDescription = "Deprecated, use `db.client.connection.idle.max` instead." - // DBClientConnectionsIdleMin is the metric conforming to the "db.client.connections.idle.min" semantic conventions. It represents the deprecated, use `db.client.connection.idle.min` instead. + // DBClientConnectionsIdleMin is the metric conforming to the + // "db.client.connections.idle.min" semantic conventions. It represents the + // deprecated, use `db.client.connection.idle.min` instead. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.idle.min`. DBClientConnectionsIdleMinName = "db.client.connections.idle.min" DBClientConnectionsIdleMinUnit = "{connection}" DBClientConnectionsIdleMinDescription = "Deprecated, use `db.client.connection.idle.min` instead." - // DBClientConnectionsMax is the metric conforming to the "db.client.connections.max" semantic conventions. It represents the deprecated, use `db.client.connection.max` instead. + // DBClientConnectionsMax is the metric conforming to the + // "db.client.connections.max" semantic conventions. It represents the + // deprecated, use `db.client.connection.max` instead. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.max`. DBClientConnectionsMaxName = "db.client.connections.max" DBClientConnectionsMaxUnit = "{connection}" DBClientConnectionsMaxDescription = "Deprecated, use `db.client.connection.max` instead." - // DBClientConnectionsPendingRequests is the metric conforming to the "db.client.connections.pending_requests" semantic conventions. It represents the deprecated, use `db.client.connection.pending_requests` instead. + // DBClientConnectionsPendingRequests is the metric conforming to the + // "db.client.connections.pending_requests" semantic conventions. It represents + // the deprecated, use `db.client.connection.pending_requests` instead. // Instrument: updowncounter // Unit: {request} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.pending_requests`. DBClientConnectionsPendingRequestsName = "db.client.connections.pending_requests" DBClientConnectionsPendingRequestsUnit = "{request}" DBClientConnectionsPendingRequestsDescription = "Deprecated, use `db.client.connection.pending_requests` instead." - // DBClientConnectionsTimeouts is the metric conforming to the "db.client.connections.timeouts" semantic conventions. It represents the deprecated, use `db.client.connection.timeouts` instead. + // DBClientConnectionsTimeouts is the metric conforming to the + // "db.client.connections.timeouts" semantic conventions. It represents the + // deprecated, use `db.client.connection.timeouts` instead. // Instrument: counter // Unit: {timeout} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.timeouts`. DBClientConnectionsTimeoutsName = "db.client.connections.timeouts" DBClientConnectionsTimeoutsUnit = "{timeout}" DBClientConnectionsTimeoutsDescription = "Deprecated, use `db.client.connection.timeouts` instead." - // DBClientConnectionsUsage is the metric conforming to the "db.client.connections.usage" semantic conventions. It represents the deprecated, use `db.client.connection.count` instead. + // DBClientConnectionsUsage is the metric conforming to the + // "db.client.connections.usage" semantic conventions. It represents the + // deprecated, use `db.client.connection.count` instead. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.count`. DBClientConnectionsUsageName = "db.client.connections.usage" DBClientConnectionsUsageUnit = "{connection}" DBClientConnectionsUsageDescription = "Deprecated, use `db.client.connection.count` instead." - // DBClientConnectionsUseTime is the metric conforming to the "db.client.connections.use_time" semantic conventions. It represents the deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. + // DBClientConnectionsUseTime is the metric conforming to the + // "db.client.connections.use_time" semantic conventions. It represents the + // deprecated, use `db.client.connection.use_time` instead. Note: the unit also + // changed from `ms` to `s`. // Instrument: histogram // Unit: ms - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. DBClientConnectionsUseTimeName = "db.client.connections.use_time" DBClientConnectionsUseTimeUnit = "ms" DBClientConnectionsUseTimeDescription = "Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`." - // DBClientConnectionsWaitTime is the metric conforming to the "db.client.connections.wait_time" semantic conventions. It represents the deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. + // DBClientConnectionsWaitTime is the metric conforming to the + // "db.client.connections.wait_time" semantic conventions. It represents the + // deprecated, use `db.client.connection.wait_time` instead. Note: the unit + // also changed from `ms` to `s`. // Instrument: histogram // Unit: ms - // Stability: experimental + // Stability: development // Deprecated: Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. DBClientConnectionsWaitTimeName = "db.client.connections.wait_time" DBClientConnectionsWaitTimeUnit = "ms" DBClientConnectionsWaitTimeDescription = "Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`." - // DBClientOperationDuration is the metric conforming to the "db.client.operation.duration" semantic conventions. It represents the duration of database client operations. + // DBClientOperationDuration is the metric conforming to the + // "db.client.operation.duration" semantic conventions. It represents the + // duration of database client operations. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development DBClientOperationDurationName = "db.client.operation.duration" DBClientOperationDurationUnit = "s" DBClientOperationDurationDescription = "Duration of database client operations." - // DNSLookupDuration is the metric conforming to the "dns.lookup.duration" semantic conventions. It represents the measures the time taken to perform a DNS lookup. + // DNSLookupDuration is the metric conforming to the "dns.lookup.duration" + // semantic conventions. It represents the measures the time taken to perform a + // DNS lookup. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development DNSLookupDurationName = "dns.lookup.duration" DNSLookupDurationUnit = "s" DNSLookupDurationDescription = "Measures the time taken to perform a DNS lookup." - // FaaSColdstarts is the metric conforming to the "faas.coldstarts" semantic conventions. It represents the number of invocation cold starts. + // FaaSColdstarts is the metric conforming to the "faas.coldstarts" semantic + // conventions. It represents the number of invocation cold starts. // Instrument: counter // Unit: {coldstart} - // Stability: experimental + // Stability: development FaaSColdstartsName = "faas.coldstarts" FaaSColdstartsUnit = "{coldstart}" FaaSColdstartsDescription = "Number of invocation cold starts" - // FaaSCPUUsage is the metric conforming to the "faas.cpu_usage" semantic conventions. It represents the distribution of CPU usage per invocation. + // FaaSCPUUsage is the metric conforming to the "faas.cpu_usage" semantic + // conventions. It represents the distribution of CPU usage per invocation. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development FaaSCPUUsageName = "faas.cpu_usage" FaaSCPUUsageUnit = "s" FaaSCPUUsageDescription = "Distribution of CPU usage per invocation" - // FaaSErrors is the metric conforming to the "faas.errors" semantic conventions. It represents the number of invocation errors. + // FaaSErrors is the metric conforming to the "faas.errors" semantic + // conventions. It represents the number of invocation errors. // Instrument: counter // Unit: {error} - // Stability: experimental + // Stability: development FaaSErrorsName = "faas.errors" FaaSErrorsUnit = "{error}" FaaSErrorsDescription = "Number of invocation errors" - // FaaSInitDuration is the metric conforming to the "faas.init_duration" semantic conventions. It represents the measures the duration of the function's initialization, such as a cold start. + // FaaSInitDuration is the metric conforming to the "faas.init_duration" + // semantic conventions. It represents the measures the duration of the + // function's initialization, such as a cold start. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development FaaSInitDurationName = "faas.init_duration" FaaSInitDurationUnit = "s" FaaSInitDurationDescription = "Measures the duration of the function's initialization, such as a cold start" - // FaaSInvocations is the metric conforming to the "faas.invocations" semantic conventions. It represents the number of successful invocations. + // FaaSInvocations is the metric conforming to the "faas.invocations" semantic + // conventions. It represents the number of successful invocations. // Instrument: counter // Unit: {invocation} - // Stability: experimental + // Stability: development FaaSInvocationsName = "faas.invocations" FaaSInvocationsUnit = "{invocation}" FaaSInvocationsDescription = "Number of successful invocations" - // FaaSInvokeDuration is the metric conforming to the "faas.invoke_duration" semantic conventions. It represents the measures the duration of the function's logic execution. + // FaaSInvokeDuration is the metric conforming to the "faas.invoke_duration" + // semantic conventions. It represents the measures the duration of the + // function's logic execution. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development FaaSInvokeDurationName = "faas.invoke_duration" FaaSInvokeDurationUnit = "s" FaaSInvokeDurationDescription = "Measures the duration of the function's logic execution" - // FaaSMemUsage is the metric conforming to the "faas.mem_usage" semantic conventions. It represents the distribution of max memory usage per invocation. + // FaaSMemUsage is the metric conforming to the "faas.mem_usage" semantic + // conventions. It represents the distribution of max memory usage per + // invocation. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development FaaSMemUsageName = "faas.mem_usage" FaaSMemUsageUnit = "By" FaaSMemUsageDescription = "Distribution of max memory usage per invocation" - // FaaSNetIo is the metric conforming to the "faas.net_io" semantic conventions. It represents the distribution of net I/O usage per invocation. + // FaaSNetIo is the metric conforming to the "faas.net_io" semantic + // conventions. It represents the distribution of net I/O usage per invocation. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development FaaSNetIoName = "faas.net_io" FaaSNetIoUnit = "By" FaaSNetIoDescription = "Distribution of net I/O usage per invocation" - // FaaSTimeouts is the metric conforming to the "faas.timeouts" semantic conventions. It represents the number of invocation timeouts. + // FaaSTimeouts is the metric conforming to the "faas.timeouts" semantic + // conventions. It represents the number of invocation timeouts. // Instrument: counter // Unit: {timeout} - // Stability: experimental + // Stability: development FaaSTimeoutsName = "faas.timeouts" FaaSTimeoutsUnit = "{timeout}" FaaSTimeoutsDescription = "Number of invocation timeouts" - // GenAIClientOperationDuration is the metric conforming to the "gen_ai.client.operation.duration" semantic conventions. It represents the genAI operation duration. + // GenAIClientOperationDuration is the metric conforming to the + // "gen_ai.client.operation.duration" semantic conventions. It represents the + // genAI operation duration. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development GenAIClientOperationDurationName = "gen_ai.client.operation.duration" GenAIClientOperationDurationUnit = "s" GenAIClientOperationDurationDescription = "GenAI operation duration" - // GenAIClientTokenUsage is the metric conforming to the "gen_ai.client.token.usage" semantic conventions. It represents the measures number of input and output tokens used. + // GenAIClientTokenUsage is the metric conforming to the + // "gen_ai.client.token.usage" semantic conventions. It represents the measures + // number of input and output tokens used. // Instrument: histogram // Unit: {token} - // Stability: experimental + // Stability: development GenAIClientTokenUsageName = "gen_ai.client.token.usage" GenAIClientTokenUsageUnit = "{token}" GenAIClientTokenUsageDescription = "Measures number of input and output tokens used" - // GenAIServerRequestDuration is the metric conforming to the "gen_ai.server.request.duration" semantic conventions. It represents the generative AI server request duration such as time-to-last byte or last output token. + // GenAIServerRequestDuration is the metric conforming to the + // "gen_ai.server.request.duration" semantic conventions. It represents the + // generative AI server request duration such as time-to-last byte or last + // output token. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development GenAIServerRequestDurationName = "gen_ai.server.request.duration" GenAIServerRequestDurationUnit = "s" GenAIServerRequestDurationDescription = "Generative AI server request duration such as time-to-last byte or last output token" - // GenAIServerTimePerOutputToken is the metric conforming to the "gen_ai.server.time_per_output_token" semantic conventions. It represents the time per output token generated after the first token for successful responses. + // GenAIServerTimePerOutputToken is the metric conforming to the + // "gen_ai.server.time_per_output_token" semantic conventions. It represents + // the time per output token generated after the first token for successful + // responses. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development GenAIServerTimePerOutputTokenName = "gen_ai.server.time_per_output_token" GenAIServerTimePerOutputTokenUnit = "s" GenAIServerTimePerOutputTokenDescription = "Time per output token generated after the first token for successful responses" - // GenAIServerTimeToFirstToken is the metric conforming to the "gen_ai.server.time_to_first_token" semantic conventions. It represents the time to generate first token for successful responses. + // GenAIServerTimeToFirstToken is the metric conforming to the + // "gen_ai.server.time_to_first_token" semantic conventions. It represents the + // time to generate first token for successful responses. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development GenAIServerTimeToFirstTokenName = "gen_ai.server.time_to_first_token" GenAIServerTimeToFirstTokenUnit = "s" GenAIServerTimeToFirstTokenDescription = "Time to generate first token for successful responses" - // GoConfigGogc is the metric conforming to the "go.config.gogc" semantic conventions. It represents the heap size target percentage configured by the user, otherwise 100. + // GoConfigGogc is the metric conforming to the "go.config.gogc" semantic + // conventions. It represents the heap size target percentage configured by the + // user, otherwise 100. // Instrument: updowncounter // Unit: % - // Stability: experimental + // Stability: development GoConfigGogcName = "go.config.gogc" GoConfigGogcUnit = "%" GoConfigGogcDescription = "Heap size target percentage configured by the user, otherwise 100." - // GoGoroutineCount is the metric conforming to the "go.goroutine.count" semantic conventions. It represents the count of live goroutines. + // GoGoroutineCount is the metric conforming to the "go.goroutine.count" + // semantic conventions. It represents the count of live goroutines. // Instrument: updowncounter // Unit: {goroutine} - // Stability: experimental + // Stability: development GoGoroutineCountName = "go.goroutine.count" GoGoroutineCountUnit = "{goroutine}" GoGoroutineCountDescription = "Count of live goroutines." - // GoMemoryAllocated is the metric conforming to the "go.memory.allocated" semantic conventions. It represents the memory allocated to the heap by the application. + // GoMemoryAllocated is the metric conforming to the "go.memory.allocated" + // semantic conventions. It represents the memory allocated to the heap by the + // application. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development GoMemoryAllocatedName = "go.memory.allocated" GoMemoryAllocatedUnit = "By" GoMemoryAllocatedDescription = "Memory allocated to the heap by the application." - // GoMemoryAllocations is the metric conforming to the "go.memory.allocations" semantic conventions. It represents the count of allocations to the heap by the application. + // GoMemoryAllocations is the metric conforming to the "go.memory.allocations" + // semantic conventions. It represents the count of allocations to the heap by + // the application. // Instrument: counter // Unit: {allocation} - // Stability: experimental + // Stability: development GoMemoryAllocationsName = "go.memory.allocations" GoMemoryAllocationsUnit = "{allocation}" GoMemoryAllocationsDescription = "Count of allocations to the heap by the application." - // GoMemoryGCGoal is the metric conforming to the "go.memory.gc.goal" semantic conventions. It represents the heap size target for the end of the GC cycle. + // GoMemoryGCGoal is the metric conforming to the "go.memory.gc.goal" semantic + // conventions. It represents the heap size target for the end of the GC cycle. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development GoMemoryGCGoalName = "go.memory.gc.goal" GoMemoryGCGoalUnit = "By" GoMemoryGCGoalDescription = "Heap size target for the end of the GC cycle." - // GoMemoryLimit is the metric conforming to the "go.memory.limit" semantic conventions. It represents the go runtime memory limit configured by the user, if a limit exists. + // GoMemoryLimit is the metric conforming to the "go.memory.limit" semantic + // conventions. It represents the go runtime memory limit configured by the + // user, if a limit exists. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development GoMemoryLimitName = "go.memory.limit" GoMemoryLimitUnit = "By" GoMemoryLimitDescription = "Go runtime memory limit configured by the user, if a limit exists." - // GoMemoryUsed is the metric conforming to the "go.memory.used" semantic conventions. It represents the memory used by the Go runtime. + // GoMemoryUsed is the metric conforming to the "go.memory.used" semantic + // conventions. It represents the memory used by the Go runtime. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development GoMemoryUsedName = "go.memory.used" GoMemoryUsedUnit = "By" GoMemoryUsedDescription = "Memory used by the Go runtime." - // GoProcessorLimit is the metric conforming to the "go.processor.limit" semantic conventions. It represents the number of OS threads that can execute user-level Go code simultaneously. + // GoProcessorLimit is the metric conforming to the "go.processor.limit" + // semantic conventions. It represents the number of OS threads that can + // execute user-level Go code simultaneously. // Instrument: updowncounter // Unit: {thread} - // Stability: experimental + // Stability: development GoProcessorLimitName = "go.processor.limit" GoProcessorLimitUnit = "{thread}" GoProcessorLimitDescription = "The number of OS threads that can execute user-level Go code simultaneously." - // GoScheduleDuration is the metric conforming to the "go.schedule.duration" semantic conventions. It represents the time goroutines have spent in the scheduler in a runnable state before actually running. + // GoScheduleDuration is the metric conforming to the "go.schedule.duration" + // semantic conventions. It represents the time goroutines have spent in the + // scheduler in a runnable state before actually running. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development GoScheduleDurationName = "go.schedule.duration" GoScheduleDurationUnit = "s" GoScheduleDurationDescription = "The time goroutines have spent in the scheduler in a runnable state before actually running." - // HTTPClientActiveRequests is the metric conforming to the "http.client.active_requests" semantic conventions. It represents the number of active HTTP requests. + // HTTPClientActiveRequests is the metric conforming to the + // "http.client.active_requests" semantic conventions. It represents the number + // of active HTTP requests. // Instrument: updowncounter // Unit: {request} - // Stability: experimental + // Stability: development HTTPClientActiveRequestsName = "http.client.active_requests" HTTPClientActiveRequestsUnit = "{request}" HTTPClientActiveRequestsDescription = "Number of active HTTP requests." - // HTTPClientConnectionDuration is the metric conforming to the "http.client.connection.duration" semantic conventions. It represents the duration of the successfully established outbound HTTP connections. + // HTTPClientConnectionDuration is the metric conforming to the + // "http.client.connection.duration" semantic conventions. It represents the + // duration of the successfully established outbound HTTP connections. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development HTTPClientConnectionDurationName = "http.client.connection.duration" HTTPClientConnectionDurationUnit = "s" HTTPClientConnectionDurationDescription = "The duration of the successfully established outbound HTTP connections." - // HTTPClientOpenConnections is the metric conforming to the "http.client.open_connections" semantic conventions. It represents the number of outbound HTTP connections that are currently active or idle on the client. + // HTTPClientOpenConnections is the metric conforming to the + // "http.client.open_connections" semantic conventions. It represents the + // number of outbound HTTP connections that are currently active or idle on the + // client. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development HTTPClientOpenConnectionsName = "http.client.open_connections" HTTPClientOpenConnectionsUnit = "{connection}" HTTPClientOpenConnectionsDescription = "Number of outbound HTTP connections that are currently active or idle on the client." - // HTTPClientRequestBodySize is the metric conforming to the "http.client.request.body.size" semantic conventions. It represents the size of HTTP client request bodies. + // HTTPClientRequestBodySize is the metric conforming to the + // "http.client.request.body.size" semantic conventions. It represents the size + // of HTTP client request bodies. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development HTTPClientRequestBodySizeName = "http.client.request.body.size" HTTPClientRequestBodySizeUnit = "By" HTTPClientRequestBodySizeDescription = "Size of HTTP client request bodies." - // HTTPClientRequestDuration is the metric conforming to the "http.client.request.duration" semantic conventions. It represents the duration of HTTP client requests. + // HTTPClientRequestDuration is the metric conforming to the + // "http.client.request.duration" semantic conventions. It represents the + // duration of HTTP client requests. // Instrument: histogram // Unit: s // Stability: stable HTTPClientRequestDurationName = "http.client.request.duration" HTTPClientRequestDurationUnit = "s" HTTPClientRequestDurationDescription = "Duration of HTTP client requests." - // HTTPClientResponseBodySize is the metric conforming to the "http.client.response.body.size" semantic conventions. It represents the size of HTTP client response bodies. + // HTTPClientResponseBodySize is the metric conforming to the + // "http.client.response.body.size" semantic conventions. It represents the + // size of HTTP client response bodies. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development HTTPClientResponseBodySizeName = "http.client.response.body.size" HTTPClientResponseBodySizeUnit = "By" HTTPClientResponseBodySizeDescription = "Size of HTTP client response bodies." - // HTTPServerActiveRequests is the metric conforming to the "http.server.active_requests" semantic conventions. It represents the number of active HTTP server requests. + // HTTPServerActiveRequests is the metric conforming to the + // "http.server.active_requests" semantic conventions. It represents the number + // of active HTTP server requests. // Instrument: updowncounter // Unit: {request} - // Stability: experimental + // Stability: development HTTPServerActiveRequestsName = "http.server.active_requests" HTTPServerActiveRequestsUnit = "{request}" HTTPServerActiveRequestsDescription = "Number of active HTTP server requests." - // HTTPServerRequestBodySize is the metric conforming to the "http.server.request.body.size" semantic conventions. It represents the size of HTTP server request bodies. + // HTTPServerRequestBodySize is the metric conforming to the + // "http.server.request.body.size" semantic conventions. It represents the size + // of HTTP server request bodies. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development HTTPServerRequestBodySizeName = "http.server.request.body.size" HTTPServerRequestBodySizeUnit = "By" HTTPServerRequestBodySizeDescription = "Size of HTTP server request bodies." - // HTTPServerRequestDuration is the metric conforming to the "http.server.request.duration" semantic conventions. It represents the duration of HTTP server requests. + // HTTPServerRequestDuration is the metric conforming to the + // "http.server.request.duration" semantic conventions. It represents the + // duration of HTTP server requests. // Instrument: histogram // Unit: s // Stability: stable HTTPServerRequestDurationName = "http.server.request.duration" HTTPServerRequestDurationUnit = "s" HTTPServerRequestDurationDescription = "Duration of HTTP server requests." - // HTTPServerResponseBodySize is the metric conforming to the "http.server.response.body.size" semantic conventions. It represents the size of HTTP server response bodies. + // HTTPServerResponseBodySize is the metric conforming to the + // "http.server.response.body.size" semantic conventions. It represents the + // size of HTTP server response bodies. // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development HTTPServerResponseBodySizeName = "http.server.response.body.size" HTTPServerResponseBodySizeUnit = "By" HTTPServerResponseBodySizeDescription = "Size of HTTP server response bodies." - // HwEnergy is the metric conforming to the "hw.energy" semantic conventions. It represents the energy consumed by the component. + // HwEnergy is the metric conforming to the "hw.energy" semantic conventions. + // It represents the energy consumed by the component. // Instrument: counter // Unit: J - // Stability: experimental + // Stability: development HwEnergyName = "hw.energy" HwEnergyUnit = "J" HwEnergyDescription = "Energy consumed by the component" - // HwErrors is the metric conforming to the "hw.errors" semantic conventions. It represents the number of errors encountered by the component. + // HwErrors is the metric conforming to the "hw.errors" semantic conventions. + // It represents the number of errors encountered by the component. // Instrument: counter // Unit: {error} - // Stability: experimental + // Stability: development HwErrorsName = "hw.errors" HwErrorsUnit = "{error}" HwErrorsDescription = "Number of errors encountered by the component" - // HwPower is the metric conforming to the "hw.power" semantic conventions. It represents the instantaneous power consumed by the component. + // HwPower is the metric conforming to the "hw.power" semantic conventions. It + // represents the instantaneous power consumed by the component. // Instrument: gauge // Unit: W - // Stability: experimental + // Stability: development HwPowerName = "hw.power" HwPowerUnit = "W" HwPowerDescription = "Instantaneous power consumed by the component" - // HwStatus is the metric conforming to the "hw.status" semantic conventions. It represents the operational status: `1` (true) or `0` (false) for each of the possible states. + // HwStatus is the metric conforming to the "hw.status" semantic conventions. + // It represents the operational status: `1` (true) or `0` (false) for each of + // the possible states. // Instrument: updowncounter // Unit: 1 - // Stability: experimental + // Stability: development HwStatusName = "hw.status" HwStatusUnit = "1" HwStatusDescription = "Operational status: `1` (true) or `0` (false) for each of the possible states" - // K8SNodeCPUTime is the metric conforming to the "k8s.node.cpu.time" semantic conventions. It represents the total CPU time consumed. + // K8SNodeCPUTime is the metric conforming to the "k8s.node.cpu.time" semantic + // conventions. It represents the total CPU time consumed. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development K8SNodeCPUTimeName = "k8s.node.cpu.time" K8SNodeCPUTimeUnit = "s" K8SNodeCPUTimeDescription = "Total CPU time consumed" - // K8SNodeCPUUsage is the metric conforming to the "k8s.node.cpu.usage" semantic conventions. It represents the node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // K8SNodeCPUUsage is the metric conforming to the "k8s.node.cpu.usage" + // semantic conventions. It represents the node's CPU usage, measured in cpus. + // Range from 0 to the number of allocatable CPUs. // Instrument: gauge // Unit: {cpu} - // Stability: experimental + // Stability: development K8SNodeCPUUsageName = "k8s.node.cpu.usage" K8SNodeCPUUsageUnit = "{cpu}" K8SNodeCPUUsageDescription = "Node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" - // K8SNodeMemoryUsage is the metric conforming to the "k8s.node.memory.usage" semantic conventions. It represents the memory usage of the Node. + // K8SNodeMemoryUsage is the metric conforming to the "k8s.node.memory.usage" + // semantic conventions. It represents the memory usage of the Node. // Instrument: gauge // Unit: By - // Stability: experimental + // Stability: development K8SNodeMemoryUsageName = "k8s.node.memory.usage" K8SNodeMemoryUsageUnit = "By" K8SNodeMemoryUsageDescription = "Memory usage of the Node" - // K8SPodCPUTime is the metric conforming to the "k8s.pod.cpu.time" semantic conventions. It represents the total CPU time consumed. + // K8SPodCPUTime is the metric conforming to the "k8s.pod.cpu.time" semantic + // conventions. It represents the total CPU time consumed. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development K8SPodCPUTimeName = "k8s.pod.cpu.time" K8SPodCPUTimeUnit = "s" K8SPodCPUTimeDescription = "Total CPU time consumed" - // K8SPodCPUUsage is the metric conforming to the "k8s.pod.cpu.usage" semantic conventions. It represents the pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. + // K8SPodCPUUsage is the metric conforming to the "k8s.pod.cpu.usage" semantic + // conventions. It represents the pod's CPU usage, measured in cpus. Range from + // 0 to the number of allocatable CPUs. // Instrument: gauge // Unit: {cpu} - // Stability: experimental + // Stability: development K8SPodCPUUsageName = "k8s.pod.cpu.usage" K8SPodCPUUsageUnit = "{cpu}" K8SPodCPUUsageDescription = "Pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs" - // K8SPodMemoryUsage is the metric conforming to the "k8s.pod.memory.usage" semantic conventions. It represents the memory usage of the Pod. + // K8SPodMemoryUsage is the metric conforming to the "k8s.pod.memory.usage" + // semantic conventions. It represents the memory usage of the Pod. // Instrument: gauge // Unit: By - // Stability: experimental + // Stability: development K8SPodMemoryUsageName = "k8s.pod.memory.usage" K8SPodMemoryUsageUnit = "By" K8SPodMemoryUsageDescription = "Memory usage of the Pod" - // KestrelActiveConnections is the metric conforming to the "kestrel.active_connections" semantic conventions. It represents the number of connections that are currently active on the server. + // KestrelActiveConnections is the metric conforming to the + // "kestrel.active_connections" semantic conventions. It represents the number + // of connections that are currently active on the server. // Instrument: updowncounter // Unit: {connection} // Stability: stable KestrelActiveConnectionsName = "kestrel.active_connections" KestrelActiveConnectionsUnit = "{connection}" KestrelActiveConnectionsDescription = "Number of connections that are currently active on the server." - // KestrelActiveTLSHandshakes is the metric conforming to the "kestrel.active_tls_handshakes" semantic conventions. It represents the number of TLS handshakes that are currently in progress on the server. + // KestrelActiveTLSHandshakes is the metric conforming to the + // "kestrel.active_tls_handshakes" semantic conventions. It represents the + // number of TLS handshakes that are currently in progress on the server. // Instrument: updowncounter // Unit: {handshake} // Stability: stable KestrelActiveTLSHandshakesName = "kestrel.active_tls_handshakes" KestrelActiveTLSHandshakesUnit = "{handshake}" KestrelActiveTLSHandshakesDescription = "Number of TLS handshakes that are currently in progress on the server." - // KestrelConnectionDuration is the metric conforming to the "kestrel.connection.duration" semantic conventions. It represents the duration of connections on the server. + // KestrelConnectionDuration is the metric conforming to the + // "kestrel.connection.duration" semantic conventions. It represents the + // duration of connections on the server. // Instrument: histogram // Unit: s // Stability: stable KestrelConnectionDurationName = "kestrel.connection.duration" KestrelConnectionDurationUnit = "s" KestrelConnectionDurationDescription = "The duration of connections on the server." - // KestrelQueuedConnections is the metric conforming to the "kestrel.queued_connections" semantic conventions. It represents the number of connections that are currently queued and are waiting to start. + // KestrelQueuedConnections is the metric conforming to the + // "kestrel.queued_connections" semantic conventions. It represents the number + // of connections that are currently queued and are waiting to start. // Instrument: updowncounter // Unit: {connection} // Stability: stable KestrelQueuedConnectionsName = "kestrel.queued_connections" KestrelQueuedConnectionsUnit = "{connection}" KestrelQueuedConnectionsDescription = "Number of connections that are currently queued and are waiting to start." - // KestrelQueuedRequests is the metric conforming to the "kestrel.queued_requests" semantic conventions. It represents the number of HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are currently queued and are waiting to start. + // KestrelQueuedRequests is the metric conforming to the + // "kestrel.queued_requests" semantic conventions. It represents the number of + // HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are + // currently queued and are waiting to start. // Instrument: updowncounter // Unit: {request} // Stability: stable KestrelQueuedRequestsName = "kestrel.queued_requests" KestrelQueuedRequestsUnit = "{request}" KestrelQueuedRequestsDescription = "Number of HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are currently queued and are waiting to start." - // KestrelRejectedConnections is the metric conforming to the "kestrel.rejected_connections" semantic conventions. It represents the number of connections rejected by the server. + // KestrelRejectedConnections is the metric conforming to the + // "kestrel.rejected_connections" semantic conventions. It represents the + // number of connections rejected by the server. // Instrument: counter // Unit: {connection} // Stability: stable KestrelRejectedConnectionsName = "kestrel.rejected_connections" KestrelRejectedConnectionsUnit = "{connection}" KestrelRejectedConnectionsDescription = "Number of connections rejected by the server." - // KestrelTLSHandshakeDuration is the metric conforming to the "kestrel.tls_handshake.duration" semantic conventions. It represents the duration of TLS handshakes on the server. + // KestrelTLSHandshakeDuration is the metric conforming to the + // "kestrel.tls_handshake.duration" semantic conventions. It represents the + // duration of TLS handshakes on the server. // Instrument: histogram // Unit: s // Stability: stable KestrelTLSHandshakeDurationName = "kestrel.tls_handshake.duration" KestrelTLSHandshakeDurationUnit = "s" KestrelTLSHandshakeDurationDescription = "The duration of TLS handshakes on the server." - // KestrelUpgradedConnections is the metric conforming to the "kestrel.upgraded_connections" semantic conventions. It represents the number of connections that are currently upgraded (WebSockets). . + // KestrelUpgradedConnections is the metric conforming to the + // "kestrel.upgraded_connections" semantic conventions. It represents the + // number of connections that are currently upgraded (WebSockets). . // Instrument: updowncounter // Unit: {connection} // Stability: stable KestrelUpgradedConnectionsName = "kestrel.upgraded_connections" KestrelUpgradedConnectionsUnit = "{connection}" KestrelUpgradedConnectionsDescription = "Number of connections that are currently upgraded (WebSockets). ." - // MessagingClientConsumedMessages is the metric conforming to the "messaging.client.consumed.messages" semantic conventions. It represents the number of messages that were delivered to the application. + // MessagingClientConsumedMessages is the metric conforming to the + // "messaging.client.consumed.messages" semantic conventions. It represents the + // number of messages that were delivered to the application. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development MessagingClientConsumedMessagesName = "messaging.client.consumed.messages" MessagingClientConsumedMessagesUnit = "{message}" MessagingClientConsumedMessagesDescription = "Number of messages that were delivered to the application." - // MessagingClientOperationDuration is the metric conforming to the "messaging.client.operation.duration" semantic conventions. It represents the duration of messaging operation initiated by a producer or consumer client. + // MessagingClientOperationDuration is the metric conforming to the + // "messaging.client.operation.duration" semantic conventions. It represents + // the duration of messaging operation initiated by a producer or consumer + // client. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development MessagingClientOperationDurationName = "messaging.client.operation.duration" MessagingClientOperationDurationUnit = "s" MessagingClientOperationDurationDescription = "Duration of messaging operation initiated by a producer or consumer client." - // MessagingClientPublishedMessages is the metric conforming to the "messaging.client.published.messages" semantic conventions. It represents the deprecated. Use `messaging.client.sent.messages` instead. + // MessagingClientPublishedMessages is the metric conforming to the + // "messaging.client.published.messages" semantic conventions. It represents + // the deprecated. Use `messaging.client.sent.messages` instead. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.sent.messages`. MessagingClientPublishedMessagesName = "messaging.client.published.messages" MessagingClientPublishedMessagesUnit = "{message}" MessagingClientPublishedMessagesDescription = "Deprecated. Use `messaging.client.sent.messages` instead." - // MessagingClientSentMessages is the metric conforming to the "messaging.client.sent.messages" semantic conventions. It represents the number of messages producer attempted to send to the broker. + // MessagingClientSentMessages is the metric conforming to the + // "messaging.client.sent.messages" semantic conventions. It represents the + // number of messages producer attempted to send to the broker. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development MessagingClientSentMessagesName = "messaging.client.sent.messages" MessagingClientSentMessagesUnit = "{message}" MessagingClientSentMessagesDescription = "Number of messages producer attempted to send to the broker." - // MessagingProcessDuration is the metric conforming to the "messaging.process.duration" semantic conventions. It represents the duration of processing operation. + // MessagingProcessDuration is the metric conforming to the + // "messaging.process.duration" semantic conventions. It represents the + // duration of processing operation. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development MessagingProcessDurationName = "messaging.process.duration" MessagingProcessDurationUnit = "s" MessagingProcessDurationDescription = "Duration of processing operation." - // MessagingProcessMessages is the metric conforming to the "messaging.process.messages" semantic conventions. It represents the deprecated. Use `messaging.client.consumed.messages` instead. + // MessagingProcessMessages is the metric conforming to the + // "messaging.process.messages" semantic conventions. It represents the + // deprecated. Use `messaging.client.consumed.messages` instead. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.consumed.messages`. MessagingProcessMessagesName = "messaging.process.messages" MessagingProcessMessagesUnit = "{message}" MessagingProcessMessagesDescription = "Deprecated. Use `messaging.client.consumed.messages` instead." - // MessagingPublishDuration is the metric conforming to the "messaging.publish.duration" semantic conventions. It represents the deprecated. Use `messaging.client.operation.duration` instead. + // MessagingPublishDuration is the metric conforming to the + // "messaging.publish.duration" semantic conventions. It represents the + // deprecated. Use `messaging.client.operation.duration` instead. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.operation.duration`. MessagingPublishDurationName = "messaging.publish.duration" MessagingPublishDurationUnit = "s" MessagingPublishDurationDescription = "Deprecated. Use `messaging.client.operation.duration` instead." - // MessagingPublishMessages is the metric conforming to the "messaging.publish.messages" semantic conventions. It represents the deprecated. Use `messaging.client.produced.messages` instead. + // MessagingPublishMessages is the metric conforming to the + // "messaging.publish.messages" semantic conventions. It represents the + // deprecated. Use `messaging.client.produced.messages` instead. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.produced.messages`. MessagingPublishMessagesName = "messaging.publish.messages" MessagingPublishMessagesUnit = "{message}" MessagingPublishMessagesDescription = "Deprecated. Use `messaging.client.produced.messages` instead." - // MessagingReceiveDuration is the metric conforming to the "messaging.receive.duration" semantic conventions. It represents the deprecated. Use `messaging.client.operation.duration` instead. + // MessagingReceiveDuration is the metric conforming to the + // "messaging.receive.duration" semantic conventions. It represents the + // deprecated. Use `messaging.client.operation.duration` instead. // Instrument: histogram // Unit: s - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.operation.duration`. MessagingReceiveDurationName = "messaging.receive.duration" MessagingReceiveDurationUnit = "s" MessagingReceiveDurationDescription = "Deprecated. Use `messaging.client.operation.duration` instead." - // MessagingReceiveMessages is the metric conforming to the "messaging.receive.messages" semantic conventions. It represents the deprecated. Use `messaging.client.consumed.messages` instead. + // MessagingReceiveMessages is the metric conforming to the + // "messaging.receive.messages" semantic conventions. It represents the + // deprecated. Use `messaging.client.consumed.messages` instead. // Instrument: counter // Unit: {message} - // Stability: experimental + // Stability: development // Deprecated: Replaced by `messaging.client.consumed.messages`. MessagingReceiveMessagesName = "messaging.receive.messages" MessagingReceiveMessagesUnit = "{message}" MessagingReceiveMessagesDescription = "Deprecated. Use `messaging.client.consumed.messages` instead." - // ProcessContextSwitches is the metric conforming to the "process.context_switches" semantic conventions. It represents the number of times the process has been context switched. + // ProcessContextSwitches is the metric conforming to the + // "process.context_switches" semantic conventions. It represents the number of + // times the process has been context switched. // Instrument: counter // Unit: {count} - // Stability: experimental + // Stability: development ProcessContextSwitchesName = "process.context_switches" ProcessContextSwitchesUnit = "{count}" ProcessContextSwitchesDescription = "Number of times the process has been context switched." - // ProcessCPUTime is the metric conforming to the "process.cpu.time" semantic conventions. It represents the total CPU seconds broken down by different states. + // ProcessCPUTime is the metric conforming to the "process.cpu.time" semantic + // conventions. It represents the total CPU seconds broken down by different + // states. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development ProcessCPUTimeName = "process.cpu.time" ProcessCPUTimeUnit = "s" ProcessCPUTimeDescription = "Total CPU seconds broken down by different states." - // ProcessCPUUtilization is the metric conforming to the "process.cpu.utilization" semantic conventions. It represents the difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. + // ProcessCPUUtilization is the metric conforming to the + // "process.cpu.utilization" semantic conventions. It represents the difference + // in process.cpu.time since the last measurement, divided by the elapsed time + // and number of CPUs available to the process. // Instrument: gauge // Unit: 1 - // Stability: experimental + // Stability: development ProcessCPUUtilizationName = "process.cpu.utilization" ProcessCPUUtilizationUnit = "1" ProcessCPUUtilizationDescription = "Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process." - // ProcessDiskIo is the metric conforming to the "process.disk.io" semantic conventions. It represents the disk bytes transferred. + // ProcessDiskIo is the metric conforming to the "process.disk.io" semantic + // conventions. It represents the disk bytes transferred. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development ProcessDiskIoName = "process.disk.io" ProcessDiskIoUnit = "By" ProcessDiskIoDescription = "Disk bytes transferred." - // ProcessMemoryUsage is the metric conforming to the "process.memory.usage" semantic conventions. It represents the amount of physical memory in use. + // ProcessMemoryUsage is the metric conforming to the "process.memory.usage" + // semantic conventions. It represents the amount of physical memory in use. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development ProcessMemoryUsageName = "process.memory.usage" ProcessMemoryUsageUnit = "By" ProcessMemoryUsageDescription = "The amount of physical memory in use." - // ProcessMemoryVirtual is the metric conforming to the "process.memory.virtual" semantic conventions. It represents the amount of committed virtual memory. + // ProcessMemoryVirtual is the metric conforming to the + // "process.memory.virtual" semantic conventions. It represents the amount of + // committed virtual memory. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development ProcessMemoryVirtualName = "process.memory.virtual" ProcessMemoryVirtualUnit = "By" ProcessMemoryVirtualDescription = "The amount of committed virtual memory." - // ProcessNetworkIo is the metric conforming to the "process.network.io" semantic conventions. It represents the network bytes transferred. + // ProcessNetworkIo is the metric conforming to the "process.network.io" + // semantic conventions. It represents the network bytes transferred. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development ProcessNetworkIoName = "process.network.io" ProcessNetworkIoUnit = "By" ProcessNetworkIoDescription = "Network bytes transferred." - // ProcessOpenFileDescriptorCount is the metric conforming to the "process.open_file_descriptor.count" semantic conventions. It represents the number of file descriptors in use by the process. + // ProcessOpenFileDescriptorCount is the metric conforming to the + // "process.open_file_descriptor.count" semantic conventions. It represents the + // number of file descriptors in use by the process. // Instrument: updowncounter // Unit: {count} - // Stability: experimental + // Stability: development ProcessOpenFileDescriptorCountName = "process.open_file_descriptor.count" ProcessOpenFileDescriptorCountUnit = "{count}" ProcessOpenFileDescriptorCountDescription = "Number of file descriptors in use by the process." - // ProcessPagingFaults is the metric conforming to the "process.paging.faults" semantic conventions. It represents the number of page faults the process has made. + // ProcessPagingFaults is the metric conforming to the "process.paging.faults" + // semantic conventions. It represents the number of page faults the process + // has made. // Instrument: counter // Unit: {fault} - // Stability: experimental + // Stability: development ProcessPagingFaultsName = "process.paging.faults" ProcessPagingFaultsUnit = "{fault}" ProcessPagingFaultsDescription = "Number of page faults the process has made." - // ProcessThreadCount is the metric conforming to the "process.thread.count" semantic conventions. It represents the process threads count. + // ProcessThreadCount is the metric conforming to the "process.thread.count" + // semantic conventions. It represents the process threads count. // Instrument: updowncounter // Unit: {thread} - // Stability: experimental + // Stability: development ProcessThreadCountName = "process.thread.count" ProcessThreadCountUnit = "{thread}" ProcessThreadCountDescription = "Process threads count." - // ProcessUptime is the metric conforming to the "process.uptime" semantic conventions. It represents the time the process has been running. + // ProcessUptime is the metric conforming to the "process.uptime" semantic + // conventions. It represents the time the process has been running. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development ProcessUptimeName = "process.uptime" ProcessUptimeUnit = "s" ProcessUptimeDescription = "The time the process has been running." - // RPCClientDuration is the metric conforming to the "rpc.client.duration" semantic conventions. It represents the measures the duration of outbound RPC. + // RPCClientDuration is the metric conforming to the "rpc.client.duration" + // semantic conventions. It represents the measures the duration of outbound + // RPC. // Instrument: histogram // Unit: ms - // Stability: experimental + // Stability: development RPCClientDurationName = "rpc.client.duration" RPCClientDurationUnit = "ms" RPCClientDurationDescription = "Measures the duration of outbound RPC." - // RPCClientRequestSize is the metric conforming to the "rpc.client.request.size" semantic conventions. It represents the measures the size of RPC request messages (uncompressed). + // RPCClientRequestSize is the metric conforming to the + // "rpc.client.request.size" semantic conventions. It represents the measures + // the size of RPC request messages (uncompressed). // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development RPCClientRequestSizeName = "rpc.client.request.size" RPCClientRequestSizeUnit = "By" RPCClientRequestSizeDescription = "Measures the size of RPC request messages (uncompressed)." - // RPCClientRequestsPerRPC is the metric conforming to the "rpc.client.requests_per_rpc" semantic conventions. It represents the measures the number of messages received per RPC. + // RPCClientRequestsPerRPC is the metric conforming to the + // "rpc.client.requests_per_rpc" semantic conventions. It represents the + // measures the number of messages received per RPC. // Instrument: histogram // Unit: {count} - // Stability: experimental + // Stability: development RPCClientRequestsPerRPCName = "rpc.client.requests_per_rpc" RPCClientRequestsPerRPCUnit = "{count}" RPCClientRequestsPerRPCDescription = "Measures the number of messages received per RPC." - // RPCClientResponseSize is the metric conforming to the "rpc.client.response.size" semantic conventions. It represents the measures the size of RPC response messages (uncompressed). + // RPCClientResponseSize is the metric conforming to the + // "rpc.client.response.size" semantic conventions. It represents the measures + // the size of RPC response messages (uncompressed). // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development RPCClientResponseSizeName = "rpc.client.response.size" RPCClientResponseSizeUnit = "By" RPCClientResponseSizeDescription = "Measures the size of RPC response messages (uncompressed)." - // RPCClientResponsesPerRPC is the metric conforming to the "rpc.client.responses_per_rpc" semantic conventions. It represents the measures the number of messages sent per RPC. + // RPCClientResponsesPerRPC is the metric conforming to the + // "rpc.client.responses_per_rpc" semantic conventions. It represents the + // measures the number of messages sent per RPC. // Instrument: histogram // Unit: {count} - // Stability: experimental + // Stability: development RPCClientResponsesPerRPCName = "rpc.client.responses_per_rpc" RPCClientResponsesPerRPCUnit = "{count}" RPCClientResponsesPerRPCDescription = "Measures the number of messages sent per RPC." - // RPCServerDuration is the metric conforming to the "rpc.server.duration" semantic conventions. It represents the measures the duration of inbound RPC. + // RPCServerDuration is the metric conforming to the "rpc.server.duration" + // semantic conventions. It represents the measures the duration of inbound + // RPC. // Instrument: histogram // Unit: ms - // Stability: experimental + // Stability: development RPCServerDurationName = "rpc.server.duration" RPCServerDurationUnit = "ms" RPCServerDurationDescription = "Measures the duration of inbound RPC." - // RPCServerRequestSize is the metric conforming to the "rpc.server.request.size" semantic conventions. It represents the measures the size of RPC request messages (uncompressed). + // RPCServerRequestSize is the metric conforming to the + // "rpc.server.request.size" semantic conventions. It represents the measures + // the size of RPC request messages (uncompressed). // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development RPCServerRequestSizeName = "rpc.server.request.size" RPCServerRequestSizeUnit = "By" RPCServerRequestSizeDescription = "Measures the size of RPC request messages (uncompressed)." - // RPCServerRequestsPerRPC is the metric conforming to the "rpc.server.requests_per_rpc" semantic conventions. It represents the measures the number of messages received per RPC. + // RPCServerRequestsPerRPC is the metric conforming to the + // "rpc.server.requests_per_rpc" semantic conventions. It represents the + // measures the number of messages received per RPC. // Instrument: histogram // Unit: {count} - // Stability: experimental + // Stability: development RPCServerRequestsPerRPCName = "rpc.server.requests_per_rpc" RPCServerRequestsPerRPCUnit = "{count}" RPCServerRequestsPerRPCDescription = "Measures the number of messages received per RPC." - // RPCServerResponseSize is the metric conforming to the "rpc.server.response.size" semantic conventions. It represents the measures the size of RPC response messages (uncompressed). + // RPCServerResponseSize is the metric conforming to the + // "rpc.server.response.size" semantic conventions. It represents the measures + // the size of RPC response messages (uncompressed). // Instrument: histogram // Unit: By - // Stability: experimental + // Stability: development RPCServerResponseSizeName = "rpc.server.response.size" RPCServerResponseSizeUnit = "By" RPCServerResponseSizeDescription = "Measures the size of RPC response messages (uncompressed)." - // RPCServerResponsesPerRPC is the metric conforming to the "rpc.server.responses_per_rpc" semantic conventions. It represents the measures the number of messages sent per RPC. + // RPCServerResponsesPerRPC is the metric conforming to the + // "rpc.server.responses_per_rpc" semantic conventions. It represents the + // measures the number of messages sent per RPC. // Instrument: histogram // Unit: {count} - // Stability: experimental + // Stability: development RPCServerResponsesPerRPCName = "rpc.server.responses_per_rpc" RPCServerResponsesPerRPCUnit = "{count}" RPCServerResponsesPerRPCDescription = "Measures the number of messages sent per RPC." - // SignalrServerActiveConnections is the metric conforming to the "signalr.server.active_connections" semantic conventions. It represents the number of connections that are currently active on the server. + // SignalrServerActiveConnections is the metric conforming to the + // "signalr.server.active_connections" semantic conventions. It represents the + // number of connections that are currently active on the server. // Instrument: updowncounter // Unit: {connection} // Stability: stable SignalrServerActiveConnectionsName = "signalr.server.active_connections" SignalrServerActiveConnectionsUnit = "{connection}" SignalrServerActiveConnectionsDescription = "Number of connections that are currently active on the server." - // SignalrServerConnectionDuration is the metric conforming to the "signalr.server.connection.duration" semantic conventions. It represents the duration of connections on the server. + // SignalrServerConnectionDuration is the metric conforming to the + // "signalr.server.connection.duration" semantic conventions. It represents the + // duration of connections on the server. // Instrument: histogram // Unit: s // Stability: stable SignalrServerConnectionDurationName = "signalr.server.connection.duration" SignalrServerConnectionDurationUnit = "s" SignalrServerConnectionDurationDescription = "The duration of connections on the server." - // SystemCPUFrequency is the metric conforming to the "system.cpu.frequency" semantic conventions. It represents the reports the current frequency of the CPU in Hz. + // SystemCPUFrequency is the metric conforming to the "system.cpu.frequency" + // semantic conventions. It represents the reports the current frequency of the + // CPU in Hz. // Instrument: gauge // Unit: {Hz} - // Stability: experimental + // Stability: development SystemCPUFrequencyName = "system.cpu.frequency" SystemCPUFrequencyUnit = "{Hz}" SystemCPUFrequencyDescription = "Reports the current frequency of the CPU in Hz" - // SystemCPULogicalCount is the metric conforming to the "system.cpu.logical.count" semantic conventions. It represents the reports the number of logical (virtual) processor cores created by the operating system to manage multitasking. + // SystemCPULogicalCount is the metric conforming to the + // "system.cpu.logical.count" semantic conventions. It represents the reports + // the number of logical (virtual) processor cores created by the operating + // system to manage multitasking. // Instrument: updowncounter // Unit: {cpu} - // Stability: experimental + // Stability: development SystemCPULogicalCountName = "system.cpu.logical.count" SystemCPULogicalCountUnit = "{cpu}" SystemCPULogicalCountDescription = "Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking" - // SystemCPUPhysicalCount is the metric conforming to the "system.cpu.physical.count" semantic conventions. It represents the reports the number of actual physical processor cores on the hardware. + // SystemCPUPhysicalCount is the metric conforming to the + // "system.cpu.physical.count" semantic conventions. It represents the reports + // the number of actual physical processor cores on the hardware. // Instrument: updowncounter // Unit: {cpu} - // Stability: experimental + // Stability: development SystemCPUPhysicalCountName = "system.cpu.physical.count" SystemCPUPhysicalCountUnit = "{cpu}" SystemCPUPhysicalCountDescription = "Reports the number of actual physical processor cores on the hardware" - // SystemCPUTime is the metric conforming to the "system.cpu.time" semantic conventions. It represents the seconds each logical CPU spent on each mode. + // SystemCPUTime is the metric conforming to the "system.cpu.time" semantic + // conventions. It represents the seconds each logical CPU spent on each mode. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development SystemCPUTimeName = "system.cpu.time" SystemCPUTimeUnit = "s" SystemCPUTimeDescription = "Seconds each logical CPU spent on each mode" - // SystemCPUUtilization is the metric conforming to the "system.cpu.utilization" semantic conventions. It represents the difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs. + // SystemCPUUtilization is the metric conforming to the + // "system.cpu.utilization" semantic conventions. It represents the difference + // in system.cpu.time since the last measurement, divided by the elapsed time + // and number of logical CPUs. // Instrument: gauge // Unit: 1 - // Stability: experimental + // Stability: development SystemCPUUtilizationName = "system.cpu.utilization" SystemCPUUtilizationUnit = "1" SystemCPUUtilizationDescription = "Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs" - // SystemDiskIo is the metric conforming to the "system.disk.io" semantic conventions. + // SystemDiskIo is the metric conforming to the "system.disk.io" semantic + // conventions. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemDiskIoName = "system.disk.io" SystemDiskIoUnit = "By" - // SystemDiskIoTime is the metric conforming to the "system.disk.io_time" semantic conventions. It represents the time disk spent activated. + // SystemDiskIoTime is the metric conforming to the "system.disk.io_time" + // semantic conventions. It represents the time disk spent activated. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development SystemDiskIoTimeName = "system.disk.io_time" SystemDiskIoTimeUnit = "s" SystemDiskIoTimeDescription = "Time disk spent activated" - // SystemDiskLimit is the metric conforming to the "system.disk.limit" semantic conventions. It represents the total storage capacity of the disk. + // SystemDiskLimit is the metric conforming to the "system.disk.limit" semantic + // conventions. It represents the total storage capacity of the disk. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemDiskLimitName = "system.disk.limit" SystemDiskLimitUnit = "By" SystemDiskLimitDescription = "The total storage capacity of the disk" - // SystemDiskMerged is the metric conforming to the "system.disk.merged" semantic conventions. + // SystemDiskMerged is the metric conforming to the "system.disk.merged" + // semantic conventions. // Instrument: counter // Unit: {operation} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemDiskMergedName = "system.disk.merged" SystemDiskMergedUnit = "{operation}" - // SystemDiskOperationTime is the metric conforming to the "system.disk.operation_time" semantic conventions. It represents the sum of the time each operation took to complete. + // SystemDiskOperationTime is the metric conforming to the + // "system.disk.operation_time" semantic conventions. It represents the sum of + // the time each operation took to complete. // Instrument: counter // Unit: s - // Stability: experimental + // Stability: development SystemDiskOperationTimeName = "system.disk.operation_time" SystemDiskOperationTimeUnit = "s" SystemDiskOperationTimeDescription = "Sum of the time each operation took to complete" - // SystemDiskOperations is the metric conforming to the "system.disk.operations" semantic conventions. + // SystemDiskOperations is the metric conforming to the + // "system.disk.operations" semantic conventions. // Instrument: counter // Unit: {operation} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemDiskOperationsName = "system.disk.operations" SystemDiskOperationsUnit = "{operation}" - // SystemFilesystemLimit is the metric conforming to the "system.filesystem.limit" semantic conventions. It represents the total storage capacity of the filesystem. + // SystemFilesystemLimit is the metric conforming to the + // "system.filesystem.limit" semantic conventions. It represents the total + // storage capacity of the filesystem. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemFilesystemLimitName = "system.filesystem.limit" SystemFilesystemLimitUnit = "By" SystemFilesystemLimitDescription = "The total storage capacity of the filesystem" - // SystemFilesystemUsage is the metric conforming to the "system.filesystem.usage" semantic conventions. It represents the reports a filesystem's space usage across different states. + // SystemFilesystemUsage is the metric conforming to the + // "system.filesystem.usage" semantic conventions. It represents the reports a + // filesystem's space usage across different states. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemFilesystemUsageName = "system.filesystem.usage" SystemFilesystemUsageUnit = "By" SystemFilesystemUsageDescription = "Reports a filesystem's space usage across different states." - // SystemFilesystemUtilization is the metric conforming to the "system.filesystem.utilization" semantic conventions. + // SystemFilesystemUtilization is the metric conforming to the + // "system.filesystem.utilization" semantic conventions. // Instrument: gauge // Unit: 1 - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemFilesystemUtilizationName = "system.filesystem.utilization" SystemFilesystemUtilizationUnit = "1" - // SystemLinuxMemoryAvailable is the metric conforming to the "system.linux.memory.available" semantic conventions. It represents an estimate of how much memory is available for starting new applications, without causing swapping. + // SystemLinuxMemoryAvailable is the metric conforming to the + // "system.linux.memory.available" semantic conventions. It represents an + // estimate of how much memory is available for starting new applications, + // without causing swapping. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemLinuxMemoryAvailableName = "system.linux.memory.available" SystemLinuxMemoryAvailableUnit = "By" SystemLinuxMemoryAvailableDescription = "An estimate of how much memory is available for starting new applications, without causing swapping" - // SystemLinuxMemorySlabUsage is the metric conforming to the "system.linux.memory.slab.usage" semantic conventions. It represents the reports the memory used by the Linux kernel for managing caches of frequently used objects. + // SystemLinuxMemorySlabUsage is the metric conforming to the + // "system.linux.memory.slab.usage" semantic conventions. It represents the + // reports the memory used by the Linux kernel for managing caches of + // frequently used objects. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemLinuxMemorySlabUsageName = "system.linux.memory.slab.usage" SystemLinuxMemorySlabUsageUnit = "By" SystemLinuxMemorySlabUsageDescription = "Reports the memory used by the Linux kernel for managing caches of frequently used objects." - // SystemMemoryLimit is the metric conforming to the "system.memory.limit" semantic conventions. It represents the total memory available in the system. + // SystemMemoryLimit is the metric conforming to the "system.memory.limit" + // semantic conventions. It represents the total memory available in the + // system. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemMemoryLimitName = "system.memory.limit" SystemMemoryLimitUnit = "By" SystemMemoryLimitDescription = "Total memory available in the system." - // SystemMemoryShared is the metric conforming to the "system.memory.shared" semantic conventions. It represents the shared memory used (mostly by tmpfs). + // SystemMemoryShared is the metric conforming to the "system.memory.shared" + // semantic conventions. It represents the shared memory used (mostly by + // tmpfs). // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemMemorySharedName = "system.memory.shared" SystemMemorySharedUnit = "By" SystemMemorySharedDescription = "Shared memory used (mostly by tmpfs)." - // SystemMemoryUsage is the metric conforming to the "system.memory.usage" semantic conventions. It represents the reports memory in use by state. + // SystemMemoryUsage is the metric conforming to the "system.memory.usage" + // semantic conventions. It represents the reports memory in use by state. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemMemoryUsageName = "system.memory.usage" SystemMemoryUsageUnit = "By" SystemMemoryUsageDescription = "Reports memory in use by state." - // SystemMemoryUtilization is the metric conforming to the "system.memory.utilization" semantic conventions. + // SystemMemoryUtilization is the metric conforming to the + // "system.memory.utilization" semantic conventions. // Instrument: gauge // Unit: 1 - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemMemoryUtilizationName = "system.memory.utilization" SystemMemoryUtilizationUnit = "1" - // SystemNetworkConnections is the metric conforming to the "system.network.connections" semantic conventions. + // SystemNetworkConnections is the metric conforming to the + // "system.network.connections" semantic conventions. // Instrument: updowncounter // Unit: {connection} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemNetworkConnectionsName = "system.network.connections" SystemNetworkConnectionsUnit = "{connection}" - // SystemNetworkDropped is the metric conforming to the "system.network.dropped" semantic conventions. It represents the count of packets that are dropped or discarded even though there was no error. + // SystemNetworkDropped is the metric conforming to the + // "system.network.dropped" semantic conventions. It represents the count of + // packets that are dropped or discarded even though there was no error. // Instrument: counter // Unit: {packet} - // Stability: experimental + // Stability: development SystemNetworkDroppedName = "system.network.dropped" SystemNetworkDroppedUnit = "{packet}" SystemNetworkDroppedDescription = "Count of packets that are dropped or discarded even though there was no error" - // SystemNetworkErrors is the metric conforming to the "system.network.errors" semantic conventions. It represents the count of network errors detected. + // SystemNetworkErrors is the metric conforming to the "system.network.errors" + // semantic conventions. It represents the count of network errors detected. // Instrument: counter // Unit: {error} - // Stability: experimental + // Stability: development SystemNetworkErrorsName = "system.network.errors" SystemNetworkErrorsUnit = "{error}" SystemNetworkErrorsDescription = "Count of network errors detected" - // SystemNetworkIo is the metric conforming to the "system.network.io" semantic conventions. + // SystemNetworkIo is the metric conforming to the "system.network.io" semantic + // conventions. // Instrument: counter // Unit: By - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemNetworkIoName = "system.network.io" SystemNetworkIoUnit = "By" - // SystemNetworkPackets is the metric conforming to the "system.network.packets" semantic conventions. + // SystemNetworkPackets is the metric conforming to the + // "system.network.packets" semantic conventions. // Instrument: counter // Unit: {packet} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemNetworkPacketsName = "system.network.packets" SystemNetworkPacketsUnit = "{packet}" - // SystemPagingFaults is the metric conforming to the "system.paging.faults" semantic conventions. + // SystemPagingFaults is the metric conforming to the "system.paging.faults" + // semantic conventions. // Instrument: counter // Unit: {fault} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemPagingFaultsName = "system.paging.faults" SystemPagingFaultsUnit = "{fault}" - // SystemPagingOperations is the metric conforming to the "system.paging.operations" semantic conventions. + // SystemPagingOperations is the metric conforming to the + // "system.paging.operations" semantic conventions. // Instrument: counter // Unit: {operation} - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemPagingOperationsName = "system.paging.operations" SystemPagingOperationsUnit = "{operation}" - // SystemPagingUsage is the metric conforming to the "system.paging.usage" semantic conventions. It represents the unix swap or windows pagefile usage. + // SystemPagingUsage is the metric conforming to the "system.paging.usage" + // semantic conventions. It represents the unix swap or windows pagefile usage. // Instrument: updowncounter // Unit: By - // Stability: experimental + // Stability: development SystemPagingUsageName = "system.paging.usage" SystemPagingUsageUnit = "By" SystemPagingUsageDescription = "Unix swap or windows pagefile usage" - // SystemPagingUtilization is the metric conforming to the "system.paging.utilization" semantic conventions. + // SystemPagingUtilization is the metric conforming to the + // "system.paging.utilization" semantic conventions. // Instrument: gauge // Unit: 1 - // Stability: experimental + // Stability: development // NOTE: The description (brief) for this metric is not defined in the semantic-conventions repository. SystemPagingUtilizationName = "system.paging.utilization" SystemPagingUtilizationUnit = "1" - // SystemProcessCount is the metric conforming to the "system.process.count" semantic conventions. It represents the total number of processes in each state. + // SystemProcessCount is the metric conforming to the "system.process.count" + // semantic conventions. It represents the total number of processes in each + // state. // Instrument: updowncounter // Unit: {process} - // Stability: experimental + // Stability: development SystemProcessCountName = "system.process.count" SystemProcessCountUnit = "{process}" SystemProcessCountDescription = "Total number of processes in each state" - // SystemProcessCreated is the metric conforming to the "system.process.created" semantic conventions. It represents the total number of processes created over uptime of the host. + // SystemProcessCreated is the metric conforming to the + // "system.process.created" semantic conventions. It represents the total + // number of processes created over uptime of the host. // Instrument: counter // Unit: {process} - // Stability: experimental + // Stability: development SystemProcessCreatedName = "system.process.created" SystemProcessCreatedUnit = "{process}" SystemProcessCreatedDescription = "Total number of processes created over uptime of the host" From 8cec9da1ed59894e05e1296186c46d2fc348b384 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 12:39:30 -0800 Subject: [PATCH 10/11] Add migration docs --- semconv/v1.28.0/MIGRATION.md | 250 +++++++++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 semconv/v1.28.0/MIGRATION.md diff --git a/semconv/v1.28.0/MIGRATION.md b/semconv/v1.28.0/MIGRATION.md new file mode 100644 index 00000000000..1ae10e5984e --- /dev/null +++ b/semconv/v1.28.0/MIGRATION.md @@ -0,0 +1,250 @@ +# Semantic Convention Changes + +The `go.opentelemetry.io/otel/semconv/v1.28.0` should be a drop-in replacement for `go.opentelemetry.io/otel/semconv/v1.27.0` with the following exceptions. + +## Dropped deprecations + +The following declarations have been deprecated in the [OpenTelemetry Semantic Conventions]. +Refer to the respective documentation in that repository for deprecation instructions for each type. + +- `AndroidStateBackground` +- `AndroidStateCreated` +- `AndroidStateForeground` +- `AndroidStateKey` +- `DBCosmosDBStatusCode` +- `DBCosmosDBStatusCodeKey` +- `GenAICompletion` +- `GenAICompletionKey` +- `GenAIPrompt` +- `GenAIPromptKey` + +### Dropping the `aspnetcore` namespace + +The following declarations have been dropped in `go.opentelemetry.io/otel/semconv/v1.28.0`. +These semantic conventions were determined to have not have use in Go applications. + +- `ASPNETCoreDiagnosticsExceptionResultAborted` +- `ASPNETCoreDiagnosticsExceptionResultHandled` +- `ASPNETCoreDiagnosticsExceptionResultKey` +- `ASPNETCoreDiagnosticsExceptionResultSkipped` +- `ASPNETCoreDiagnosticsExceptionResultUnhandled` +- `ASPNETCoreDiagnosticsHandlerType` +- `ASPNETCoreDiagnosticsHandlerTypeKey` +- `ASPNETCoreRateLimitingPolicy` +- `ASPNETCoreRateLimitingPolicyKey` +- `ASPNETCoreRateLimitingResultAcquired` +- `ASPNETCoreRateLimitingResultEndpointLimiter` +- `ASPNETCoreRateLimitingResultGlobalLimiter` +- `ASPNETCoreRateLimitingResultKey` +- `ASPNETCoreRateLimitingResultRequestCanceled` +- `ASPNETCoreRequestIsUnhandled` +- `ASPNETCoreRequestIsUnhandledKey` +- `ASPNETCoreRoutingIsFallback` +- `ASPNETCoreRoutingIsFallbackKey` +- `ASPNETCoreRoutingMatchStatusFailure` +- `ASPNETCoreRoutingMatchStatusKey` +- `ASPNETCoreRoutingMatchStatusSuccess` +- `AspnetcoreDiagnosticsExceptionsDescription` +- `AspnetcoreDiagnosticsExceptionsName` +- `AspnetcoreDiagnosticsExceptionsUnit` +- `AspnetcoreRateLimitingActiveRequestLeasesDescription` +- `AspnetcoreRateLimitingActiveRequestLeasesName` +- `AspnetcoreRateLimitingActiveRequestLeasesUnit` +- `AspnetcoreRateLimitingQueuedRequestsDescription` +- `AspnetcoreRateLimitingQueuedRequestsName` +- `AspnetcoreRateLimitingQueuedRequestsUnit` +- `AspnetcoreRateLimitingRequestLeaseDurationDescription` +- `AspnetcoreRateLimitingRequestLeaseDurationName` +- `AspnetcoreRateLimitingRequestLeaseDurationUnit` +- `AspnetcoreRateLimitingRequestTimeInQueueDescription` +- `AspnetcoreRateLimitingRequestTimeInQueueName` +- `AspnetcoreRateLimitingRequestTimeInQueueUnit` +- `AspnetcoreRateLimitingRequestsDescription` +- `AspnetcoreRateLimitingRequestsName` +- `AspnetcoreRateLimitingRequestsUnit` +- `AspnetcoreRoutingMatchAttemptsDescription` +- `AspnetcoreRoutingMatchAttemptsName` +- `AspnetcoreRoutingMatchAttemptsUnit` + +If you use any of these declarations in your Go application, please [open an issue] describing your use-case. + +### Dropping the `jvm` namespace + +The following declarations have been dropped in `go.opentelemetry.io/otel/semconv/v1.28.0`. +These semantic conventions were determined to have not have use in Go applications. + +- `JVMBufferPoolName` +- `JVMBufferPoolNameKey` +- `JVMGCAction` +- `JVMGCActionKey` +- `JVMGCName` +- `JVMGCNameKey` +- `JVMMemoryPoolName` +- `JVMMemoryPoolNameKey` +- `JVMMemoryTypeHeap` +- `JVMMemoryTypeKey` +- `JVMMemoryTypeNonHeap` +- `JVMThreadDaemon` +- `JVMThreadDaemonKey` +- `JVMThreadStateBlocked` +- `JVMThreadStateKey` +- `JVMThreadStateNew` +- `JVMThreadStateRunnable` +- `JVMThreadStateTerminated` +- `JVMThreadStateTimedWaiting` +- `JVMThreadStateWaiting` +- `JvmBufferCountDescription` +- `JvmBufferCountName` +- `JvmBufferCountUnit` +- `JvmBufferMemoryLimitDescription` +- `JvmBufferMemoryLimitName` +- `JvmBufferMemoryLimitUnit` +- `JvmBufferMemoryUsageDescription` +- `JvmBufferMemoryUsageName` +- `JvmBufferMemoryUsageUnit` +- `JvmBufferMemoryUsedDescription` +- `JvmBufferMemoryUsedName` +- `JvmBufferMemoryUsedUnit` +- `JvmCPUCountDescription` +- `JvmCPUCountName` +- `JvmCPUCountUnit` +- `JvmCPURecentUtilizationDescription` +- `JvmCPURecentUtilizationName` +- `JvmCPURecentUtilizationUnit` +- `JvmCPUTimeDescription` +- `JvmCPUTimeName` +- `JvmCPUTimeUnit` +- `JvmClassCountDescription` +- `JvmClassCountName` +- `JvmClassCountUnit` +- `JvmClassLoadedDescription` +- `JvmClassLoadedName` +- `JvmClassLoadedUnit` +- `JvmClassUnloadedDescription` +- `JvmClassUnloadedName` +- `JvmClassUnloadedUnit` +- `JvmGcDurationDescription` +- `JvmGcDurationName` +- `JvmGcDurationUnit` +- `JvmMemoryCommittedDescription` +- `JvmMemoryCommittedName` +- `JvmMemoryCommittedUnit` +- `JvmMemoryInitDescription` +- `JvmMemoryInitName` +- `JvmMemoryInitUnit` +- `JvmMemoryLimitDescription` +- `JvmMemoryLimitName` +- `JvmMemoryLimitUnit` +- `JvmMemoryUsedAfterLastGcDescription` +- `JvmMemoryUsedAfterLastGcName` +- `JvmMemoryUsedAfterLastGcUnit` +- `JvmMemoryUsedDescription` +- `JvmMemoryUsedName` +- `JvmMemoryUsedUnit` +- `JvmSystemCPULoad1mDescription` +- `JvmSystemCPULoad1mName` +- `JvmSystemCPULoad1mUnit` +- `JvmSystemCPUUtilizationDescription` +- `JvmSystemCPUUtilizationName` +- `JvmSystemCPUUtilizationUnit` +- `JvmThreadCountDescription` +- `JvmThreadCountName` +- `JvmThreadCountUnit` + +If you use any of these declarations in your Go application, please [open an issue] describing your use-case. + +### Dropping the `nodejs` namespace + +The following declarations have been dropped in `go.opentelemetry.io/otel/semconv/v1.28.0`. +These semantic conventions were determined to have not have use in Go applications. + +- `NodejsEventloopDelayMaxDescription` +- `NodejsEventloopDelayMaxName` +- `NodejsEventloopDelayMaxUnit` +- `NodejsEventloopDelayMeanDescription` +- `NodejsEventloopDelayMeanName` +- `NodejsEventloopDelayMeanUnit` +- `NodejsEventloopDelayMinDescription` +- `NodejsEventloopDelayMinName` +- `NodejsEventloopDelayMinUnit` +- `NodejsEventloopDelayP50Description` +- `NodejsEventloopDelayP50Name` +- `NodejsEventloopDelayP50Unit` +- `NodejsEventloopDelayP90Description` +- `NodejsEventloopDelayP90Name` +- `NodejsEventloopDelayP90Unit` +- `NodejsEventloopDelayP99Description` +- `NodejsEventloopDelayP99Name` +- `NodejsEventloopDelayP99Unit` +- `NodejsEventloopDelayStddevDescription` +- `NodejsEventloopDelayStddevName` +- `NodejsEventloopDelayStddevUnit` +- `NodejsEventloopUtilizationDescription` +- `NodejsEventloopUtilizationName` +- `NodejsEventloopUtilizationUnit` + +If you use any of these declarations in your Go application, please [open an issue] describing your use-case. + +### Dropping the `v8js` namespace + +The following declarations have been dropped in `go.opentelemetry.io/otel/semconv/v1.28.0`. +These semantic conventions were determined to have not have use in Go applications. + +- `V8JSGCTypeIncremental` +- `V8JSGCTypeKey` +- `V8JSGCTypeMajor` +- `V8JSGCTypeMinor` +- `V8JSGCTypeWeakcb` +- `V8JSHeapSpaceNameCodeSpace` +- `V8JSHeapSpaceNameKey` +- `V8JSHeapSpaceNameLargeObjectSpace` +- `V8JSHeapSpaceNameMapSpace` +- `V8JSHeapSpaceNameNewSpace` +- `V8JSHeapSpaceNameOldSpace` +- `V8jsGcDurationDescription` +- `V8jsGcDurationName` +- `V8jsGcDurationUnit` +- `V8jsHeapSpaceAvailableSizeDescription` +- `V8jsHeapSpaceAvailableSizeName` +- `V8jsHeapSpaceAvailableSizeUnit` +- `V8jsHeapSpacePhysicalSizeDescription` +- `V8jsHeapSpacePhysicalSizeName` +- `V8jsHeapSpacePhysicalSizeUnit` +- `V8jsMemoryHeapLimitDescription` +- `V8jsMemoryHeapLimitName` +- `V8jsMemoryHeapLimitUnit` +- `V8jsMemoryHeapUsedDescription` +- `V8jsMemoryHeapUsedName` +- `V8jsMemoryHeapUsedUnit` + +If you use any of these declarations in your Go application, please [open an issue] describing your use-case. + +### Renames + +The following renames have been introduced to better match Go and industry naming standards. +Be sure to update any use from `go.opentelemetry.io/otel/semconv/v1.27.0` with the equivalent in `go.opentelemetry.io/otel/semconv/v1.28.0`. + +| `v1.28.0` | `v1.27.0` | +| --- | --- | +| DBSystemDb2 | DBSystemDB2| +| GenAIClientOperationDurationDescription | GenAiClientOperationDurationDescription| +| GenAIClientOperationDurationName | GenAiClientOperationDurationName| +| GenAIClientOperationDurationUnit | GenAiClientOperationDurationUnit| +| GenAIClientTokenUsageDescription | GenAiClientTokenUsageDescription| +| GenAIClientTokenUsageName | GenAiClientTokenUsageName| +| GenAIClientTokenUsageUnit | GenAiClientTokenUsageUnit| +| GenAIServerRequestDurationDescription | GenAiServerRequestDurationDescription| +| GenAIServerRequestDurationName | GenAiServerRequestDurationName| +| GenAIServerRequestDurationUnit | GenAiServerRequestDurationUnit| +| GenAIServerTimePerOutputTokenDescription | GenAiServerTimePerOutputTokenDescription| +| GenAIServerTimePerOutputTokenName | GenAiServerTimePerOutputTokenName| +| GenAIServerTimePerOutputTokenUnit | GenAiServerTimePerOutputTokenUnit| +| GenAIServerTimeToFirstTokenDescription | GenAiServerTimeToFirstTokenDescription| +| GenAIServerTimeToFirstTokenName | GenAiServerTimeToFirstTokenName| +| GenAIServerTimeToFirstTokenUnit | GenAiServerTimeToFirstTokenUnit| +| GoMemoryGCGoalDescription | GoMemoryGcGoalDescription| +| GoMemoryGCGoalName | GoMemoryGcGoalName| +| GoMemoryGCGoalUnit | GoMemoryGcGoalUnit| + +[OpenTelemetry Semantic Conventions]: https://github.com/open-telemetry/semantic-conventions +[open an issue]: https://github.com/open-telemetry/opentelemetry-go/issues/new?template=Blank+issue From be57bcda751dadccc1cad39e8c40f9bac4b7c31d Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 31 Jan 2025 12:39:39 -0800 Subject: [PATCH 11/11] Add a changelog entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b012573ad3..a5ff52bc320 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`. (#6211) - Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6211) - Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/stdout/stdoutlog` (#6210) +- The `go.opentelemetry.io/otel/semconv/v1.28.0` package. + The package contains semantic conventions from the `v1.28.0` version of the OpenTelemetry Semantic Conventions. + See the [migration documentation](./semconv/v1.28.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.27.0`(#6236) ### Changed