From 8e37a85f29aa809d0faaadc8d55e2482db2df36a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 12 Apr 2022 14:49:43 -0700 Subject: [PATCH] Move semconv package from pdata to its own module - Move `model/semconv` package to a new `semconv` module - Add deprecation notices to API from `model/semconv` --- CHANGELOG.md | 1 + Makefile | 5 +- cmd/otelcorecol/go.mod | 4 +- go.mod | 4 +- model/semconv/v1.5.0/generated_resource.go | 130 ++ model/semconv/v1.5.0/generated_trace.go | 220 +++ model/semconv/v1.5.0/nonstandard.go | 8 +- model/semconv/v1.5.0/schema.go | 1 + model/semconv/v1.6.1/generated_resource.go | 133 ++ model/semconv/v1.6.1/generated_trace.go | 253 +++ model/semconv/v1.6.1/nonstandard.go | 10 +- model/semconv/v1.6.1/schema.go | 1 + model/semconv/v1.7.0/generated_resource.go | 133 ++ model/semconv/v1.7.0/generated_trace.go | 260 +++ model/semconv/v1.7.0/nonstandard.go | 10 +- model/semconv/v1.7.0/schema.go | 1 + model/semconv/v1.8.0/generated_resource.go | 141 ++ model/semconv/v1.8.0/generated_trace.go | 272 +++ model/semconv/v1.8.0/nonstandard.go | 10 +- model/semconv/v1.8.0/schema.go | 1 + model/semconv/v1.9.0/generated_resource.go | 142 ++ model/semconv/v1.9.0/generated_trace.go | 275 +++ model/semconv/v1.9.0/nonstandard.go | 10 +- model/semconv/v1.9.0/schema.go | 1 + receiver/otlpreceiver/otlp_test.go | 2 +- semconv/Makefile | 1 + {model/semconv => semconv}/README.md | 12 +- semconv/go.mod | 11 + semconv/go.sum | 11 + {model/semconv => semconv}/semconv_test.go | 0 .../internal/semconv => semconv}/template.j2 | 0 semconv/v1.5.0/generated_resource.go | 995 ++++++++++ semconv/v1.5.0/generated_trace.go | 1487 ++++++++++++++ semconv/v1.5.0/nonstandard.go | 25 + semconv/v1.5.0/schema.go | 20 + semconv/v1.6.1/generated_resource.go | 1002 ++++++++++ semconv/v1.6.1/generated_trace.go | 1598 +++++++++++++++ semconv/v1.6.1/nonstandard.go | 22 + semconv/v1.6.1/schema.go | 20 + semconv/v1.7.0/generated_resource.go | 1002 ++++++++++ semconv/v1.7.0/generated_trace.go | 1663 ++++++++++++++++ semconv/v1.7.0/nonstandard.go | 22 + semconv/v1.7.0/schema.go | 20 + semconv/v1.8.0/generated_resource.go | 1027 ++++++++++ semconv/v1.8.0/generated_trace.go | 1727 ++++++++++++++++ semconv/v1.8.0/nonstandard.go | 22 + semconv/v1.8.0/schema.go | 20 + semconv/v1.9.0/generated_resource.go | 1037 ++++++++++ semconv/v1.9.0/generated_trace.go | 1746 +++++++++++++++++ semconv/v1.9.0/nonstandard.go | 22 + semconv/v1.9.0/schema.go | 20 + service/telemetry.go | 2 +- 52 files changed, 15534 insertions(+), 28 deletions(-) create mode 100644 semconv/Makefile rename {model/semconv => semconv}/README.md (56%) create mode 100644 semconv/go.mod create mode 100644 semconv/go.sum rename {model/semconv => semconv}/semconv_test.go (100%) rename {model/internal/semconv => semconv}/template.j2 (100%) create mode 100644 semconv/v1.5.0/generated_resource.go create mode 100644 semconv/v1.5.0/generated_trace.go create mode 100644 semconv/v1.5.0/nonstandard.go create mode 100644 semconv/v1.5.0/schema.go create mode 100644 semconv/v1.6.1/generated_resource.go create mode 100644 semconv/v1.6.1/generated_trace.go create mode 100644 semconv/v1.6.1/nonstandard.go create mode 100644 semconv/v1.6.1/schema.go create mode 100644 semconv/v1.7.0/generated_resource.go create mode 100644 semconv/v1.7.0/generated_trace.go create mode 100644 semconv/v1.7.0/nonstandard.go create mode 100644 semconv/v1.7.0/schema.go create mode 100644 semconv/v1.8.0/generated_resource.go create mode 100644 semconv/v1.8.0/generated_trace.go create mode 100644 semconv/v1.8.0/nonstandard.go create mode 100644 semconv/v1.8.0/schema.go create mode 100644 semconv/v1.9.0/generated_resource.go create mode 100644 semconv/v1.9.0/generated_trace.go create mode 100644 semconv/v1.9.0/nonstandard.go create mode 100644 semconv/v1.9.0/schema.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 32c7be9bfe2b..3d158d875426 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - `model/otlpgrpc` -> `pdata/plog/plogotlp`, `pdata/pmetric/pmetricotlp`, `pdata/ptrace/ptraceotlp` - Deprecate configmapprovider package, replace with mapconverter (#5167) - Deprecate `service.MustNewConfigProvider` and `service.MustNewDefaultConfigProvider`in favor of `service.NewConfigProvider` (#4762) +- Deprecate all API in `pdata/semconv`. The package is moved to a new `semcomv` module (#5196) ### 💡 Enhancements 💡 diff --git a/Makefile b/Makefile index 77ae812bc404..5b19214fbace 100644 --- a/Makefile +++ b/Makefile @@ -297,8 +297,8 @@ gensemconv: @[ "${SPECPATH}" ] || ( echo ">> env var SPECPATH is not set"; exit 1 ) @[ "${SPECTAG}" ] || ( echo ">> env var SPECTAG is not set"; exit 1 ) @echo "Generating semantic convention constants from specification version ${SPECTAG} at ${SPECPATH}" - semconvgen -o model/semconv/${SPECTAG} -t model/internal/semconv/template.j2 -s ${SPECTAG} -i ${SPECPATH}/semantic_conventions/resource -p conventionType=resource -f generated_resource.go - semconvgen -o model/semconv/${SPECTAG} -t model/internal/semconv/template.j2 -s ${SPECTAG} -i ${SPECPATH}/semantic_conventions/trace -p conventionType=trace -f generated_trace.go + semconvgen -o semconv/${SPECTAG} -t semconv/template.j2 -s ${SPECTAG} -i ${SPECPATH}/semantic_conventions/resource -p conventionType=resource -f generated_resource.go + semconvgen -o semconv/${SPECTAG} -t semconv/template.j2 -s ${SPECTAG} -i ${SPECPATH}/semantic_conventions/trace -p conventionType=trace -f generated_trace.go # Checks that the HEAD of the contrib repo checked out in CONTRIB_PATH compiles # against the current version of this repo. @@ -307,6 +307,7 @@ check-contrib: @echo Setting contrib at $(CONTRIB_PATH) to use this core checkout @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector=$(CURDIR)" @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/pdata=$(CURDIR)/pdata" + @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/semconv=$(CURDIR)/semconv" @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/model=$(CURDIR)/model" @$(MAKE) -C $(CONTRIB_PATH) -j2 gotidy @$(MAKE) -C $(CONTRIB_PATH) test diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index 9f8bf7d8bf68..db30eba6e143 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -52,8 +52,8 @@ require ( github.com/tklauser/numcpus v0.4.0 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect go.opencensus.io v0.23.0 // indirect - go.opentelemetry.io/collector/model v0.48.0 // indirect go.opentelemetry.io/collector/pdata v0.0.0-00010101000000-000000000000 // indirect + go.opentelemetry.io/collector/semconv v0.0.0-00010101000000-000000000000 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 // indirect go.opentelemetry.io/contrib/zpages v0.31.0 // indirect @@ -77,6 +77,6 @@ require ( replace go.opentelemetry.io/collector => ../../ -replace go.opentelemetry.io/collector/model => ../../model +replace go.opentelemetry.io/collector/semconv => ../../semconv replace go.opentelemetry.io/collector/pdata => ../../pdata diff --git a/go.mod b/go.mod index 838d8f638b68..a205cf09d87c 100644 --- a/go.mod +++ b/go.mod @@ -20,8 +20,8 @@ require ( github.com/spf13/cobra v1.4.0 github.com/stretchr/testify v1.7.1 go.opencensus.io v0.23.0 - go.opentelemetry.io/collector/model v0.48.0 go.opentelemetry.io/collector/pdata v0.0.0-00010101000000-000000000000 + go.opentelemetry.io/collector/semconv v0.0.0-00010101000000-000000000000 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 go.opentelemetry.io/contrib/zpages v0.31.0 @@ -74,7 +74,7 @@ require ( gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) -replace go.opentelemetry.io/collector/model => ./model +replace go.opentelemetry.io/collector/semconv => ./semconv replace go.opentelemetry.io/collector/pdata => ./pdata diff --git a/model/semconv/v1.5.0/generated_resource.go b/model/semconv/v1.5.0/generated_resource.go index ce0a2ac26d22..864c546508bc 100644 --- a/model/semconv/v1.5.0/generated_resource.go +++ b/model/semconv/v1.5.0/generated_resource.go @@ -23,6 +23,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProvider = "cloud.provider" // The cloud account ID the resource is assigned to. // @@ -30,6 +31,7 @@ const ( // Required: No // Stability: stable // Examples: '111111111111', 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAccountID = "cloud.account.id" // The geographical region the resource is running. Refer to your provider's docs // to see the available regions, for example AWS regions, Azure regions, or Google @@ -39,6 +41,7 @@ const ( // Required: No // Stability: stable // Examples: 'us-central1', 'us-east-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudRegion = "cloud.region" // Cloud regions often have multiple, isolated locations known as zones to // increase availability. Availability zone represents the zone where the resource @@ -49,6 +52,7 @@ const ( // Stability: stable // Examples: 'us-east-1c' // Note: Availability zones are called "zones" on Google Cloud. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAvailabilityZone = "cloud.availability_zone" // The cloud platform in use. // @@ -57,48 +61,67 @@ const ( // Stability: stable // Note: The prefix of the service SHOULD match the one specified in // cloud.provider. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatform = "cloud.platform" ) const ( // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderGCP = "gcp" ) const ( // AWS Elastic Compute Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEC2 = "aws_ec2" // AWS Elastic Container Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSECS = "aws_ecs" // AWS Elastic Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEKS = "aws_eks" // AWS Lambda + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSLambda = "aws_lambda" // AWS Elastic Beanstalk + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" // Azure Virtual Machines + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureVM = "azure_vm" // Azure Container Instances + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" // Azure Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAKS = "azure_aks" // Azure Functions + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureFunctions = "azure_functions" // Azure App Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAppService = "azure_app_service" // Google Cloud Compute Engine (GCE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" // Google Cloud Run + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" // Google Cloud Kubernetes Engine (GKE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" // Google Cloud Functions (GCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" // Google Cloud App Engine (GAE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" ) @@ -111,6 +134,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSContainerARN = "aws.ecs.container.arn" // The ARN of an ECS cluster. // @@ -118,12 +142,14 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" // The launch type for an ECS task. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtype = "aws.ecs.launchtype" // The ARN of an ECS task definition. // @@ -132,6 +158,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskARN = "aws.ecs.task.arn" // The task definition family this task definition is a member of. // @@ -139,6 +166,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-family' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskFamily = "aws.ecs.task.family" // The revision for this task definition. // @@ -146,13 +174,16 @@ const ( // Required: No // Stability: stable // Examples: '8', '26' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskRevision = "aws.ecs.task.revision" ) const ( // ec2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeEC2 = "ec2" // fargate + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeFargate = "fargate" ) @@ -164,6 +195,7 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" ) @@ -178,6 +210,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupNames = "aws.log.group.names" // The Amazon Resource Name(s) (ARN) of the AWS log group(s). // @@ -186,6 +219,7 @@ const ( // Stability: stable // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' // Note: See the log group ARN format documentation. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupARNs = "aws.log.group.arns" // The name(s) of the AWS log stream(s) an application is writing to. // @@ -193,6 +227,7 @@ const ( // Required: No // Stability: stable // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamNames = "aws.log.stream.names" // The ARN(s) of the AWS log stream(s). // @@ -204,6 +239,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamARNs = "aws.log.stream.arns" ) @@ -215,6 +251,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerName = "container.name" // Container ID. Usually a UUID, as for example used to identify Docker // containers. The UUID might be abbreviated. @@ -223,6 +260,7 @@ const ( // Required: No // Stability: stable // Examples: 'a3bf90e006b2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerID = "container.id" // The container runtime managing this container. // @@ -230,6 +268,7 @@ const ( // Required: No // Stability: stable // Examples: 'docker', 'containerd', 'rkt' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerRuntime = "container.runtime" // Name of the image the container was built on. // @@ -237,6 +276,7 @@ const ( // Required: No // Stability: stable // Examples: 'gcr.io/opentelemetry/operator' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageName = "container.image.name" // Container image tag. // @@ -244,6 +284,7 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageTag = "container.image.tag" ) @@ -255,6 +296,7 @@ const ( // Required: No // Stability: stable // Examples: 'staging', 'production' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeploymentEnvironment = "deployment.environment" ) @@ -275,6 +317,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceID = "device.id" // The model identifier for the device // @@ -285,6 +328,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelIdentifier = "device.model.identifier" // The marketing name for the device model // @@ -294,6 +338,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelName = "device.model.name" ) @@ -308,6 +353,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSName = "faas.name" // The unique ID of the single function that this runtime instance executes. // @@ -331,6 +377,7 @@ const ( // part of the ARN is not available without calling another AWS API // which may be deemed too slow for a short-running lambda function. // As an alternative, consider setting faas.id as a span attribute instead. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSID = "faas.id" // The immutable version of the function being executed. // @@ -347,6 +394,7 @@ const ( // K_REVISION environment variable. //
  • Azure Functions: Not applicable. Do not set this attribute.
  • // + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSVersion = "faas.version" // The execution environment ID as a string, that will be potentially reused for // other invocations to the same function/function version. @@ -358,6 +406,7 @@ const ( // Note: + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInstance = "faas.instance" // The amount of memory available to the serverless function in MiB. // @@ -369,6 +418,7 @@ const ( // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this // information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSMaxMemory = "faas.max_memory" ) @@ -381,6 +431,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostID = "host.id" // 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 @@ -390,6 +441,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostName = "host.name" // Type of host. For Cloud, this must be the machine type. // @@ -397,12 +449,14 @@ const ( // Required: No // Stability: stable // Examples: 'n1-standard-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostType = "host.type" // The CPU architecture the host system is running on. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArch = "host.arch" // Name of the VM image or OS install the host was instantiated from. // @@ -410,6 +464,7 @@ const ( // Required: No // Stability: stable // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageName = "host.image.name" // VM image ID. For Cloud, this value is from the provider. // @@ -417,6 +472,7 @@ const ( // Required: No // Stability: stable // Examples: 'ami-07b06b442921831e5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageID = "host.image.id" // The version string of the VM image as defined in Version Attributes. // @@ -424,23 +480,31 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageVersion = "host.image.version" ) const ( // AMD64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchAMD64 = "amd64" // ARM32 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM32 = "arm32" // ARM64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM64 = "arm64" // Itanium + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchIA64 = "ia64" // 32-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC32 = "ppc32" // 64-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC64 = "ppc64" // 32-bit x86 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchX86 = "x86" ) @@ -452,6 +516,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SClusterName = "k8s.cluster.name" ) @@ -463,6 +528,7 @@ const ( // Required: No // Stability: stable // Examples: 'node-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeName = "k8s.node.name" // The UID of the Node. // @@ -470,6 +536,7 @@ const ( // Required: No // Stability: stable // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeUID = "k8s.node.uid" ) @@ -481,6 +548,7 @@ const ( // Required: No // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNamespaceName = "k8s.namespace.name" ) @@ -492,6 +560,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodUID = "k8s.pod.uid" // The name of the Pod. // @@ -499,6 +568,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-pod-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodName = "k8s.pod.name" ) @@ -510,6 +580,7 @@ const ( // Required: No // Stability: stable // Examples: 'redis' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerName = "k8s.container.name" ) @@ -521,6 +592,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetUID = "k8s.replicaset.uid" // The name of the ReplicaSet. // @@ -528,6 +600,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetName = "k8s.replicaset.name" ) @@ -539,6 +612,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentUID = "k8s.deployment.uid" // The name of the Deployment. // @@ -546,6 +620,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentName = "k8s.deployment.name" ) @@ -557,6 +632,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetUID = "k8s.statefulset.uid" // The name of the StatefulSet. // @@ -564,6 +640,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetName = "k8s.statefulset.name" ) @@ -575,6 +652,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetUID = "k8s.daemonset.uid" // The name of the DaemonSet. // @@ -582,6 +660,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetName = "k8s.daemonset.name" ) @@ -593,6 +672,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobUID = "k8s.job.uid" // The name of the Job. // @@ -600,6 +680,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobName = "k8s.job.name" ) @@ -611,6 +692,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobUID = "k8s.cronjob.uid" // The name of the CronJob. // @@ -618,6 +700,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobName = "k8s.cronjob.name" ) @@ -628,6 +711,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSType = "os.type" // Human readable (not intended to be parsed) OS version information, like e.g. // reported by ver or lsb_release -a commands. @@ -636,6 +720,7 @@ const ( // Required: No // Stability: stable // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSDescription = "os.description" // Human readable operating system name. // @@ -643,6 +728,7 @@ const ( // Required: No // Stability: stable // Examples: 'iOS', 'Android', 'Ubuntu' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSName = "os.name" // The version string of the operating system as defined in Version Attributes. // @@ -650,31 +736,43 @@ const ( // Required: No // Stability: stable // Examples: '14.2.1', '18.04.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSVersion = "os.version" ) const ( // Microsoft Windows + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeWindows = "windows" // Linux + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeLinux = "linux" // Apple Darwin + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDarwin = "darwin" // FreeBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeFreeBSD = "freebsd" // NetBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeNetBSD = "netbsd" // OpenBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeOpenBSD = "openbsd" // DragonFly BSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDragonflyBSD = "dragonflybsd" // HP-UX (Hewlett Packard Unix) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeHPUX = "hpux" // AIX (Advanced Interactive eXecutive) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeAIX = "aix" // Oracle Solaris + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeSolaris = "solaris" // IBM z/OS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeZOS = "z_os" ) @@ -686,6 +784,7 @@ const ( // Required: No // Stability: stable // Examples: 1234 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessPID = "process.pid" // 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 @@ -695,6 +794,7 @@ const ( // Required: See below // Stability: stable // Examples: 'otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutableName = "process.executable.name" // 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 @@ -704,6 +804,7 @@ const ( // Required: See below // Stability: stable // Examples: '/usr/bin/cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutablePath = "process.executable.path" // 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 @@ -713,6 +814,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommand = "process.command" // 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 @@ -723,6 +825,7 @@ const ( // Required: See below // Stability: stable // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandLine = "process.command_line" // All the command arguments (including the command/executable itself) as received // by the process. On Linux-based systems (and some other Unixoid systems @@ -734,6 +837,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otecol', '--config=config.yaml' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandArgs = "process.command_args" // The username of the user that owns the process. // @@ -741,6 +845,7 @@ const ( // Required: No // Stability: stable // Examples: 'root' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessOwner = "process.owner" ) @@ -753,6 +858,7 @@ const ( // Required: No // Stability: stable // Examples: 'OpenJDK Runtime Environment' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeName = "process.runtime.name" // The version of the runtime of this process, as returned by the runtime without // modification. @@ -761,6 +867,7 @@ const ( // Required: No // Stability: stable // Examples: '14.0.2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeVersion = "process.runtime.version" // An additional description about the runtime of the process, for example a // specific vendor customization of the runtime environment. @@ -769,6 +876,7 @@ const ( // Required: No // Stability: stable // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeDescription = "process.runtime.description" ) @@ -785,6 +893,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceName = "service.name" // A namespace for service.name. // @@ -799,6 +908,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceNamespace = "service.namespace" // The string ID of the service instance. // @@ -818,6 +928,7 @@ const ( // value of this attribute it is recommended to generate a random Version 1 or // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use // Version 5, see RFC 4122 for more recommendations). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceInstanceID = "service.instance.id" // The version string of the service API or implementation. // @@ -825,6 +936,7 @@ const ( // Required: No // Stability: stable // Examples: '2.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceVersion = "service.version" ) @@ -836,12 +948,14 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKName = "telemetry.sdk.name" // The language of the telemetry SDK. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguage = "telemetry.sdk.language" // The version string of the telemetry SDK. // @@ -849,6 +963,7 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKVersion = "telemetry.sdk.version" // The version string of the auto instrumentation agent, if used. // @@ -856,29 +971,40 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetryAutoVersion = "telemetry.auto.version" ) const ( // cpp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageCPP = "cpp" // dotnet + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageDotnet = "dotnet" // erlang + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageErlang = "erlang" // go + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageGo = "go" // java + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageJava = "java" // nodejs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageNodejs = "nodejs" // php + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePHP = "php" // python + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePython = "python" // ruby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageRuby = "ruby" // webjs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageWebjs = "webjs" ) @@ -890,6 +1016,7 @@ const ( // Required: Always // Stability: stable // Examples: 'WildFly' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineName = "webengine.name" // The version of the web engine. // @@ -897,6 +1024,7 @@ const ( // Required: No // Stability: stable // Examples: '21.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineVersion = "webengine.version" // Additional description of the web engine (e.g. detailed version and edition // information). @@ -905,9 +1033,11 @@ const ( // Required: No // Stability: stable // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineDescription = "webengine.description" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetResourceSemanticConventionAttributeNames() []string { return []string{ AttributeCloudProvider, diff --git a/model/semconv/v1.5.0/generated_trace.go b/model/semconv/v1.5.0/generated_trace.go index 08389f9e28b3..46b2181db220 100644 --- a/model/semconv/v1.5.0/generated_trace.go +++ b/model/semconv/v1.5.0/generated_trace.go @@ -27,6 +27,7 @@ const ( // Stability: stable // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' // Note: This may be different from faas.id if an alias is involved. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" ) @@ -38,6 +39,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystem = "db.system" // The connection string used to connect to the database. It is recommended to // remove embedded credentials. @@ -46,6 +48,7 @@ const ( // Required: No // Stability: stable // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBConnectionString = "db.connection_string" // Username for accessing the database. // @@ -53,6 +56,7 @@ const ( // Required: No // Stability: stable // Examples: 'readonly_user', 'reporting_user' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBUser = "db.user" // The fully-qualified class name of the Java Database Connectivity (JDBC) driver // used to connect. @@ -62,6 +66,7 @@ const ( // Stability: stable // Examples: 'org.postgresql.Driver', // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" // If no tech-specific attribute is defined, this attribute is used to report the // name of the database being accessed. For commands that switch the database, @@ -73,6 +78,7 @@ const ( // Examples: 'customers', 'main' // Note: In some SQL databases, the database name to be used is called // "schema name". + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBName = "db.name" // The database statement being executed. // @@ -82,6 +88,7 @@ const ( // Stability: stable // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' // Note: The value may be sanitized to exclude sensitive information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBStatement = "db.statement" // The name of the operation being executed, e.g. the MongoDB command name such as // findAndModify, or the SQL keyword. @@ -95,103 +102,151 @@ const ( // set if the operation name is provided by the library being instrumented. If the // SQL statement has an ambiguous operation, or performs more than one operation, // this value may be omitted. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBOperation = "db.operation" ) const ( // Some other SQL database. Fallback only. See notes + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOtherSQL = "other_sql" // Microsoft SQL Server + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMSSQL = "mssql" // MySQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMySQL = "mysql" // Oracle Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOracle = "oracle" // IBM DB2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDB2 = "db2" // PostgreSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPostgreSQL = "postgresql" // Amazon Redshift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedshift = "redshift" // Apache Hive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHive = "hive" // Cloudscape + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCloudscape = "cloudscape" // HyperSQL DataBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHSQLDB = "hsqldb" // Progress Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemProgress = "progress" // SAP MaxDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMaxDB = "maxdb" // SAP HANA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHanaDB = "hanadb" // Ingres + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemIngres = "ingres" // FirstSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirstSQL = "firstsql" // EnterpriseDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemEDB = "edb" // InterSystems Caché + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCache = "cache" // Adabas (Adaptable Database System) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemAdabas = "adabas" // Firebird + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirebird = "firebird" // Apache Derby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDerby = "derby" // FileMaker + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFilemaker = "filemaker" // Informix + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInformix = "informix" // InstantDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInstantDB = "instantdb" // InterBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInterbase = "interbase" // MariaDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMariaDB = "mariadb" // Netezza + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNetezza = "netezza" // Pervasive PSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPervasive = "pervasive" // PointBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPointbase = "pointbase" // SQLite + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSqlite = "sqlite" // Sybase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSybase = "sybase" // Teradata + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemTeradata = "teradata" // Vertica + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemVertica = "vertica" // H2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemH2 = "h2" // ColdFusion IMQ + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemColdfusion = "coldfusion" // Apache Cassandra + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCassandra = "cassandra" // Apache HBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHBase = "hbase" // MongoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMongoDB = "mongodb" // Redis + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedis = "redis" // Couchbase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchbase = "couchbase" // CouchDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchDB = "couchdb" // Microsoft Azure Cosmos DB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCosmosDB = "cosmosdb" // Amazon DynamoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDynamoDB = "dynamodb" // Neo4j + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNeo4j = "neo4j" // Apache Geode + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemGeode = "geode" // Elasticsearch + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemElasticsearch = "elasticsearch" // Memcached + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMemcached = "memcached" // CockroachDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCockroachdb = "cockroachdb" ) @@ -206,6 +261,7 @@ const ( // Examples: 'MSSQLSERVER' // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required // (but still recommended if non-standard). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMSSQLInstanceName = "db.mssql.instance_name" ) @@ -218,6 +274,7 @@ const ( // Required: Always // Stability: stable // Examples: 'mykeyspace' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraKeyspace = "db.cassandra.keyspace" // The fetch size used for paging, i.e. how many rows will be returned at once. // @@ -225,12 +282,14 @@ const ( // Required: No // Stability: stable // Examples: 5000 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraPageSize = "db.cassandra.page_size" // The consistency level of the query. Based on consistency values from CQL. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" // The name of the primary table that the operation is acting upon, including the // schema name (if applicable). @@ -244,12 +303,14 @@ const ( // db.statement just to get this property, but it should be set if it is provided // by the library being instrumented. If the operation is acting upon an anonymous // table, or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraTable = "db.cassandra.table" // Whether or not the query is idempotent. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraIdempotence = "db.cassandra.idempotence" // The number of times a query was speculatively executed. Not set or 0 if the // query was not executed speculatively. @@ -258,6 +319,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" // The ID of the coordinating node for a query. // @@ -265,6 +327,7 @@ const ( // Required: No // Stability: stable // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" // The data center of the coordinating node for a query. // @@ -272,31 +335,43 @@ const ( // Required: No // Stability: stable // Examples: 'us-west-2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" ) const ( // all + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAll = "all" // each_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" // quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelQuorum = "quorum" // local_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" // one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelOne = "one" // two + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelTwo = "two" // three + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelThree = "three" // local_one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalOne = "local_one" // any + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAny = "any" // serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelSerial = "serial" // local_serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" ) @@ -309,6 +384,7 @@ const ( // Required: Always // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBHBaseNamespace = "db.hbase.namespace" ) @@ -321,6 +397,7 @@ const ( // Required: Required, if other than the default database (`0`). // Stability: stable // Examples: 0, 1, 15 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBRedisDBIndex = "db.redis.database_index" ) @@ -332,6 +409,7 @@ const ( // Required: Always // Stability: stable // Examples: 'customers', 'products' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMongoDBCollection = "db.mongodb.collection" ) @@ -348,6 +426,7 @@ const ( // just to get this property, but it should be set if it is provided by the // library being instrumented. If the operation is acting upon an anonymous table, // or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSQLTable = "db.sql.table" ) @@ -361,6 +440,7 @@ const ( // Required: No // Stability: stable // Examples: 'java.net.ConnectException', 'OSError' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionType = "exception.type" // The exception message. // @@ -368,6 +448,7 @@ const ( // Required: No // Stability: stable // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionMessage = "exception.message" // A stacktrace as a string in the natural representation for the language // runtime. The representation is to be determined and documented by each language @@ -381,6 +462,7 @@ const ( // '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)' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionStacktrace = "exception.stacktrace" // 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. @@ -404,6 +486,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionEscaped = "exception.escaped" ) @@ -418,6 +501,7 @@ const ( // when the transport layer is abstracted in a FaaS client framework without // access to its configuration. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTrigger = "faas.trigger" // The execution ID of the current function execution. // @@ -425,19 +509,25 @@ const ( // Required: No // Stability: stable // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSExecution = "faas.execution" ) const ( // A response to some data source operation such as a database or filesystem read/write + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerDatasource = "datasource" // To provide an answer to an inbound HTTP request + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerHTTP = "http" // A function is set to be executed when messages are sent to a messaging system + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerPubsub = "pubsub" // A function is scheduled to be executed regularly + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerTimer = "timer" // If none of the others apply + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerOther = "other" ) @@ -451,12 +541,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myBucketName', 'myDBName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentCollection = "faas.document.collection" // Describes the type of the operation that was performed on the data. // // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperation = "faas.document.operation" // A string containing the time when the data was accessed in the ISO 8601 format // expressed in UTC. @@ -465,6 +557,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentTime = "faas.document.time" // 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. @@ -473,15 +566,19 @@ const ( // Required: No // Stability: stable // Examples: 'myFile.txt', 'myTableName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentName = "faas.document.name" ) const ( // When a new object is created + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationInsert = "insert" // When an object is modified + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationEdit = "edit" // When an object is deleted + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationDelete = "delete" ) @@ -494,6 +591,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTime = "faas.time" // A string containing the schedule period as Cron Expression. // @@ -501,6 +599,7 @@ const ( // Required: No // Stability: stable // Examples: '0/5 * * * ? *' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSCron = "faas.cron" ) @@ -512,6 +611,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSColdstart = "faas.coldstart" ) @@ -525,6 +625,7 @@ const ( // Examples: 'my-function' // Note: SHOULD be equal to the faas.name resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedName = "faas.invoked_name" // The cloud provider of the invoked function. // @@ -533,6 +634,7 @@ const ( // Stability: stable // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProvider = "faas.invoked_provider" // The cloud region of the invoked function. // @@ -547,15 +649,19 @@ const ( // Examples: 'eu-central-1' // Note: SHOULD be equal to the cloud.region resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedRegion = "faas.invoked_region" ) const ( // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderGCP = "gcp" ) @@ -566,6 +672,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransport = "net.transport" // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) // @@ -573,6 +680,7 @@ const ( // Required: No // Stability: stable // Examples: '127.0.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerIP = "net.peer.ip" // Remote port number. // @@ -580,6 +688,7 @@ const ( // Required: No // Stability: stable // Examples: 80, 8080, 443 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerPort = "net.peer.port" // Remote hostname or similar, see note below. // @@ -587,6 +696,7 @@ const ( // Required: No // Stability: stable // Examples: 'example.com' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerName = "net.peer.name" // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. // @@ -594,6 +704,7 @@ const ( // Required: No // Stability: stable // Examples: '192.168.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostIP = "net.host.ip" // Like net.peer.port but for the host port. // @@ -601,6 +712,7 @@ const ( // Required: No // Stability: stable // Examples: 35555 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostPort = "net.host.port" // Local hostname or similar, see note below. // @@ -608,23 +720,31 @@ const ( // Required: No // Stability: stable // Examples: 'localhost' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostName = "net.host.name" ) const ( // ip_tcp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportTCP = "ip_tcp" // ip_udp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUDP = "ip_udp" // Another IP-based protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportIP = "ip" // Unix Domain socket. See below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUnix = "unix" // Named or anonymous pipe. See note below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportPipe = "pipe" // In-process communication + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportInProc = "inproc" // Something else (non IP-based) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportOther = "other" ) @@ -637,6 +757,7 @@ const ( // Required: No // Stability: stable // Examples: 'AuthTokenCache' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributePeerService = "peer.service" ) @@ -649,6 +770,7 @@ const ( // Required: No // Stability: stable // Examples: 'username' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserID = "enduser.id" // Actual/assumed role the client is making the request under extracted from token // or application security context. @@ -657,6 +779,7 @@ const ( // Required: No // Stability: stable // Examples: 'admin' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserRole = "enduser.role" // Scopes or granted authorities the client currently possesses extracted from // token or application security context. The value would come from the scope @@ -667,6 +790,7 @@ const ( // Required: No // Stability: stable // Examples: 'read:message, write:files' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserScope = "enduser.scope" ) @@ -678,6 +802,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadID = "thread.id" // Current thread name. // @@ -685,6 +810,7 @@ const ( // Required: No // Stability: stable // Examples: 'main' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadName = "thread.name" ) @@ -697,6 +823,7 @@ const ( // Required: No // Stability: stable // Examples: 'serveRequest' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFunction = "code.function" // The "namespace" within which code.function is defined. Usually the // qualified class or module name, such that code.namespace + some separator + @@ -706,6 +833,7 @@ const ( // Required: No // Stability: stable // Examples: 'com.example.MyHTTPService' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeNamespace = "code.namespace" // The source code file name that identifies the code unit as uniquely as possible // (preferably an absolute file path). @@ -714,6 +842,7 @@ const ( // Required: No // Stability: stable // Examples: '/usr/local/MyApplication/content_root/app/index.php' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFilepath = "code.filepath" // The line number in code.filepath best representing the operation. It SHOULD // point within the code unit named in code.function. @@ -722,6 +851,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeLineNumber = "code.lineno" ) @@ -733,6 +863,7 @@ const ( // Required: Always // Stability: stable // Examples: 'GET', 'POST', 'HEAD' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPMethod = "http.method" // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. // Usually the fragment is not transmitted over HTTP, but if it is known, it @@ -745,6 +876,7 @@ const ( // Note: http.url MUST NOT contain credentials passed via URL in form of // https://username:password@www.example.com/. In such case the attribute's value // should be https://www.example.com/. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPURL = "http.url" // The full request target as passed in a HTTP request line or equivalent. // @@ -752,6 +884,7 @@ const ( // Required: No // Stability: stable // Examples: '/path/12314/?q=ddds#123' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPTarget = "http.target" // The value of the HTTP host header. When the header is empty or not present, // this attribute should be the same. @@ -760,6 +893,7 @@ const ( // Required: No // Stability: stable // Examples: 'www.example.org' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPHost = "http.host" // The URI scheme identifying the used protocol. // @@ -767,6 +901,7 @@ const ( // Required: No // Stability: stable // Examples: 'http', 'https' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPScheme = "http.scheme" // HTTP response status code. // @@ -774,6 +909,7 @@ const ( // Required: If and only if one was received/sent. // Stability: stable // Examples: 200 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPStatusCode = "http.status_code" // Kind of HTTP protocol used. // @@ -782,6 +918,7 @@ const ( // Stability: stable // Note: If net.transport is not specified, it can be assumed to be IP.TCP except // if http.flavor is QUIC, in which case IP.UDP is assumed. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavor = "http.flavor" // Value of the HTTP User-Agent header sent by the client. // @@ -789,6 +926,7 @@ const ( // Required: No // Stability: stable // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPUserAgent = "http.user_agent" // 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 @@ -799,6 +937,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLength = "http.request_content_length" // The size of the uncompressed request payload body after transport decoding. Not // set if transport encoding not used. @@ -807,6 +946,7 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" // 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 @@ -817,6 +957,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLength = "http.response_content_length" // The size of the uncompressed response payload body after transport decoding. // Not set if transport encoding not used. @@ -825,19 +966,25 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" ) const ( // HTTP 1.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP10 = "1.0" // HTTP 1.1 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP11 = "1.1" // HTTP 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP20 = "2.0" // SPDY protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorSPDY = "SPDY" // QUIC protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorQUIC = "QUIC" ) @@ -855,6 +1002,7 @@ const ( // have to be assembled in a cumbersome and sometimes lossy process from other // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus // preferred to supply the raw data that is available. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPServerName = "http.server_name" // The matched route (path template). // @@ -862,6 +1010,7 @@ const ( // Required: No // Stability: stable // Examples: '/users/:userID?' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRoute = "http.route" // The IP address of the original client behind all proxies, if known (e.g. from // X-Forwarded-For). @@ -872,6 +1021,7 @@ const ( // Examples: '83.164.160.102' // Note: This is not necessarily the same as net.peer.ip, which would identify the // network-level peer, which may be a proxy. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPClientIP = "http.client_ip" ) @@ -883,6 +1033,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'Cats' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" // The JSON-serialized value of each item in the ConsumedCapacity response field. // @@ -896,6 +1047,7 @@ const ( // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": // "string", "WriteCapacityUnits": number }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" // The JSON-serialized value of the ItemCollectionMetrics response field. // @@ -906,6 +1058,7 @@ const ( // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. // @@ -913,6 +1066,7 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. // @@ -920,12 +1074,14 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" // The value of the ConsistentRead request parameter. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" // The value of the ProjectionExpression request parameter. // @@ -934,6 +1090,7 @@ const ( // Stability: stable // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, // ProductReviews' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" // The value of the Limit request parameter. // @@ -941,6 +1098,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" // The value of the AttributesToGet request parameter. // @@ -948,6 +1106,7 @@ const ( // Required: No // Stability: stable // Examples: 'lives', 'id' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" // The value of the IndexName request parameter. // @@ -955,6 +1114,7 @@ const ( // Required: No // Stability: stable // Examples: 'name_to_group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" // The value of the Select request parameter. // @@ -962,6 +1122,7 @@ const ( // Required: No // Stability: stable // Examples: 'ALL_ATTRIBUTES', 'COUNT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSelect = "aws.dynamodb.select" ) @@ -977,6 +1138,7 @@ const ( // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": // number, "WriteCapacityUnits": number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" // The JSON-serialized value of each item of the LocalSecondaryIndexes request // field. @@ -988,6 +1150,7 @@ const ( // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" ) @@ -999,6 +1162,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'CatsTable' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" // The the number of items in the TableNames response parameter. // @@ -1006,6 +1170,7 @@ const ( // Required: No // Stability: stable // Examples: 20 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" ) @@ -1016,6 +1181,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" ) @@ -1027,6 +1193,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" // The value of the TotalSegments request parameter. // @@ -1034,6 +1201,7 @@ const ( // Required: No // Stability: stable // Examples: 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" // The value of the Count response parameter. // @@ -1041,6 +1209,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBCount = "aws.dynamodb.count" // The value of the ScannedCount response parameter. // @@ -1048,6 +1217,7 @@ const ( // Required: No // Stability: stable // Examples: 50 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" ) @@ -1060,6 +1230,7 @@ const ( // Required: No // Stability: stable // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates // request field. @@ -1072,6 +1243,7 @@ const ( // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": // number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" ) @@ -1083,6 +1255,7 @@ const ( // Required: Always // Stability: stable // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingSystem = "messaging.system" // The message destination name. This might be equal to the span name but is // required nevertheless. @@ -1091,6 +1264,7 @@ const ( // Required: Always // Stability: stable // Examples: 'MyQueue', 'MyTopic' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestination = "messaging.destination" // The kind of message destination // @@ -1098,12 +1272,14 @@ const ( // Required: Required only if the message destination is either a `queue` or // `topic`. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKind = "messaging.destination_kind" // A boolean that is true if the message destination is temporary. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingTempDestination = "messaging.temp_destination" // The name of the transport protocol. // @@ -1111,6 +1287,7 @@ const ( // Required: No // Stability: stable // Examples: 'AMQP', 'MQTT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocol = "messaging.protocol" // The version of the transport protocol. // @@ -1118,6 +1295,7 @@ const ( // Required: No // Stability: stable // Examples: '0.9.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocolVersion = "messaging.protocol_version" // Connection string. // @@ -1126,6 +1304,7 @@ const ( // Stability: stable // Examples: 'tibjmsnaming://localhost:7222', // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingURL = "messaging.url" // A value used by the messaging system as an identifier for the message, // represented as a string. @@ -1134,6 +1313,7 @@ const ( // Required: No // Stability: stable // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessageID = "messaging.message_id" // The conversation ID identifying the conversation to which the message belongs, // represented as a string. Sometimes called "Correlation ID". @@ -1142,6 +1322,7 @@ const ( // Required: No // Stability: stable // Examples: 'MyConversationID' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConversationID = "messaging.conversation_id" // The (uncompressed) size of the message payload in bytes. Also use this // attribute if it is unknown whether the compressed or uncompressed payload size @@ -1151,6 +1332,7 @@ const ( // Required: No // Stability: stable // Examples: 2738 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" // The compressed size of the message payload in bytes. // @@ -1158,13 +1340,16 @@ const ( // Required: No // Stability: stable // Examples: 2048 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" ) const ( // A message sent to a queue + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindQueue = "queue" // A message sent to a topic + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindTopic = "topic" ) @@ -1178,13 +1363,16 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperation = "messaging.operation" ) const ( // receive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationReceive = "receive" // process + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationProcess = "process" ) @@ -1196,6 +1384,7 @@ const ( // Required: Unless it is empty. // Stability: stable // Examples: 'myKey' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" ) @@ -1212,6 +1401,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" // Name of the Kafka Consumer Group that is handling the message. Only applies to // consumers, not producers. @@ -1220,6 +1410,7 @@ const ( // Required: No // Stability: stable // Examples: 'my-group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" // Client ID for the Consumer or Producer that is handling the message. // @@ -1227,6 +1418,7 @@ const ( // Required: No // Stability: stable // Examples: 'client-5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaClientID = "messaging.kafka.client_id" // Partition the message is sent to. // @@ -1234,12 +1426,14 @@ const ( // Required: No // Stability: stable // Examples: 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaPartition = "messaging.kafka.partition" // A boolean that is true if the message is a tombstone. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" ) @@ -1251,6 +1445,7 @@ const ( // Required: Always // Stability: stable // Examples: 'grpc', 'java_rmi', 'wcf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCSystem = "rpc.system" // The full (logical) name of the service being called, including its package // name, if applicable. @@ -1265,6 +1460,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCService = "rpc.service" // The name of the (logical) method being called, must be equal to the $method // part in the span name. @@ -1278,6 +1474,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCMethod = "rpc.method" ) @@ -1288,43 +1485,61 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" ) const ( // OK + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOk = "0" // CANCELLED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeCancelled = "1" // UNKNOWN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnknown = "2" // INVALID_ARGUMENT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInvalidArgument = "3" // DEADLINE_EXCEEDED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" // NOT_FOUND + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeNotFound = "5" // ALREADY_EXISTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAlreadyExists = "6" // PERMISSION_DENIED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodePermissionDenied = "7" // RESOURCE_EXHAUSTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeResourceExhausted = "8" // FAILED_PRECONDITION + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeFailedPrecondition = "9" // ABORTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAborted = "10" // OUT_OF_RANGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOutOfRange = "11" // UNIMPLEMENTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnimplemented = "12" // INTERNAL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInternal = "13" // UNAVAILABLE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnavailable = "14" // DATA_LOSS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDataLoss = "15" // UNAUTHENTICATED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnauthenticated = "16" ) @@ -1337,6 +1552,7 @@ const ( // Required: If missing, it is assumed to be "1.0". // Stability: stable // Examples: '2.0', '1.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" // 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 @@ -1347,6 +1563,7 @@ const ( // Required: No // Stability: stable // Examples: '10', 'request-7', '' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" // error.code property of response if it is an error response. // @@ -1354,6 +1571,7 @@ const ( // Required: If missing, response is assumed to be successful. // Stability: stable // Examples: -32700, 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" // error.message property of response if it is an error response. // @@ -1361,9 +1579,11 @@ const ( // Required: No // Stability: stable // Examples: 'Parse error', 'User already exists' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetTraceSemanticConventionAttributeNames() []string { return []string{ AttributeAWSLambdaInvokedARN, diff --git a/model/semconv/v1.5.0/nonstandard.go b/model/semconv/v1.5.0/nonstandard.go index d9856098f020..4d3943674488 100644 --- a/model/semconv/v1.5.0/nonstandard.go +++ b/model/semconv/v1.5.0/nonstandard.go @@ -15,11 +15,15 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" const ( - InstrumentationLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + InstrumentationLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. InstrumentationLibraryVersion = "otel.library.version" ) const ( - OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. OtelStatusDescription = "otel.status_description" ) diff --git a/model/semconv/v1.5.0/schema.go b/model/semconv/v1.5.0/schema.go index 625aa5d8c7df..4f87f9724fd0 100644 --- a/model/semconv/v1.5.0/schema.go +++ b/model/semconv/v1.5.0/schema.go @@ -17,4 +17,5 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" // SchemaURL is the schema URL that matches the version of the semantic conventions // that this package defines. Conventions packages starting from v1.4.0 must declare // non-empty schema URL in the form https://opentelemetry.io/schemas/ +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. const SchemaURL = "https://opentelemetry.io/schemas/1.5.0" diff --git a/model/semconv/v1.6.1/generated_resource.go b/model/semconv/v1.6.1/generated_resource.go index dbb63d705036..3b54a7da8e6d 100644 --- a/model/semconv/v1.6.1/generated_resource.go +++ b/model/semconv/v1.6.1/generated_resource.go @@ -23,6 +23,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProvider = "cloud.provider" // The cloud account ID the resource is assigned to. // @@ -30,6 +31,7 @@ const ( // Required: No // Stability: stable // Examples: '111111111111', 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAccountID = "cloud.account.id" // The geographical region the resource is running. Refer to your provider's docs // to see the available regions, for example Alibaba Cloud regions, AWS regions, @@ -39,6 +41,7 @@ const ( // Required: No // Stability: stable // Examples: 'us-central1', 'us-east-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudRegion = "cloud.region" // Cloud regions often have multiple, isolated locations known as zones to // increase availability. Availability zone represents the zone where the resource @@ -50,6 +53,7 @@ const ( // Examples: 'us-east-1c' // Note: Availability zones are called "zones" on Alibaba Cloud and // Google Cloud. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAvailabilityZone = "cloud.availability_zone" // The cloud platform in use. // @@ -58,54 +62,76 @@ const ( // Stability: stable // Note: The prefix of the service SHOULD match the one specified in // cloud.provider. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatform = "cloud.platform" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderGCP = "gcp" ) const ( // Alibaba Cloud Elastic Compute Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" // Alibaba Cloud Function Compute + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" // AWS Elastic Compute Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEC2 = "aws_ec2" // AWS Elastic Container Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSECS = "aws_ecs" // AWS Elastic Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEKS = "aws_eks" // AWS Lambda + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSLambda = "aws_lambda" // AWS Elastic Beanstalk + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" // Azure Virtual Machines + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureVM = "azure_vm" // Azure Container Instances + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" // Azure Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAKS = "azure_aks" // Azure Functions + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureFunctions = "azure_functions" // Azure App Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAppService = "azure_app_service" // Google Cloud Compute Engine (GCE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" // Google Cloud Run + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" // Google Cloud Kubernetes Engine (GKE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" // Google Cloud Functions (GCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" // Google Cloud App Engine (GAE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" ) @@ -118,6 +144,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSContainerARN = "aws.ecs.container.arn" // The ARN of an ECS cluster. // @@ -125,12 +152,14 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" // The launch type for an ECS task. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtype = "aws.ecs.launchtype" // The ARN of an ECS task definition. // @@ -139,6 +168,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskARN = "aws.ecs.task.arn" // The task definition family this task definition is a member of. // @@ -146,6 +176,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-family' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskFamily = "aws.ecs.task.family" // The revision for this task definition. // @@ -153,13 +184,16 @@ const ( // Required: No // Stability: stable // Examples: '8', '26' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskRevision = "aws.ecs.task.revision" ) const ( // ec2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeEC2 = "ec2" // fargate + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeFargate = "fargate" ) @@ -171,6 +205,7 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" ) @@ -185,6 +220,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupNames = "aws.log.group.names" // The Amazon Resource Name(s) (ARN) of the AWS log group(s). // @@ -193,6 +229,7 @@ const ( // Stability: stable // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' // Note: See the log group ARN format documentation. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupARNs = "aws.log.group.arns" // The name(s) of the AWS log stream(s) an application is writing to. // @@ -200,6 +237,7 @@ const ( // Required: No // Stability: stable // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamNames = "aws.log.stream.names" // The ARN(s) of the AWS log stream(s). // @@ -211,6 +249,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamARNs = "aws.log.stream.arns" ) @@ -222,6 +261,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerName = "container.name" // Container ID. Usually a UUID, as for example used to identify Docker // containers. The UUID might be abbreviated. @@ -230,6 +270,7 @@ const ( // Required: No // Stability: stable // Examples: 'a3bf90e006b2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerID = "container.id" // The container runtime managing this container. // @@ -237,6 +278,7 @@ const ( // Required: No // Stability: stable // Examples: 'docker', 'containerd', 'rkt' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerRuntime = "container.runtime" // Name of the image the container was built on. // @@ -244,6 +286,7 @@ const ( // Required: No // Stability: stable // Examples: 'gcr.io/opentelemetry/operator' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageName = "container.image.name" // Container image tag. // @@ -251,6 +294,7 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageTag = "container.image.tag" ) @@ -262,6 +306,7 @@ const ( // Required: No // Stability: stable // Examples: 'staging', 'production' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeploymentEnvironment = "deployment.environment" ) @@ -282,6 +327,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceID = "device.id" // The model identifier for the device // @@ -292,6 +338,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelIdentifier = "device.model.identifier" // The marketing name for the device model // @@ -301,6 +348,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelName = "device.model.name" ) @@ -315,6 +363,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSName = "faas.name" // The unique ID of the single function that this runtime instance executes. // @@ -338,6 +387,7 @@ const ( // part of the ARN is not available without calling another AWS API // which may be deemed too slow for a short-running lambda function. // As an alternative, consider setting faas.id as a span attribute instead. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSID = "faas.id" // The immutable version of the function being executed. // @@ -354,6 +404,7 @@ const ( // K_REVISION environment variable. //
  • Azure Functions: Not applicable. Do not set this attribute.
  • // + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSVersion = "faas.version" // The execution environment ID as a string, that will be potentially reused for // other invocations to the same function/function version. @@ -365,6 +416,7 @@ const ( // Note: + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInstance = "faas.instance" // The amount of memory available to the serverless function in MiB. // @@ -376,6 +428,7 @@ const ( // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this // information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSMaxMemory = "faas.max_memory" ) @@ -388,6 +441,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostID = "host.id" // 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 @@ -397,6 +451,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostName = "host.name" // Type of host. For Cloud, this must be the machine type. // @@ -404,12 +459,14 @@ const ( // Required: No // Stability: stable // Examples: 'n1-standard-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostType = "host.type" // The CPU architecture the host system is running on. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArch = "host.arch" // Name of the VM image or OS install the host was instantiated from. // @@ -417,6 +474,7 @@ const ( // Required: No // Stability: stable // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageName = "host.image.name" // VM image ID. For Cloud, this value is from the provider. // @@ -424,6 +482,7 @@ const ( // Required: No // Stability: stable // Examples: 'ami-07b06b442921831e5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageID = "host.image.id" // The version string of the VM image as defined in Version Attributes. // @@ -431,23 +490,31 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageVersion = "host.image.version" ) const ( // AMD64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchAMD64 = "amd64" // ARM32 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM32 = "arm32" // ARM64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM64 = "arm64" // Itanium + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchIA64 = "ia64" // 32-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC32 = "ppc32" // 64-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC64 = "ppc64" // 32-bit x86 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchX86 = "x86" ) @@ -459,6 +526,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SClusterName = "k8s.cluster.name" ) @@ -470,6 +538,7 @@ const ( // Required: No // Stability: stable // Examples: 'node-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeName = "k8s.node.name" // The UID of the Node. // @@ -477,6 +546,7 @@ const ( // Required: No // Stability: stable // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeUID = "k8s.node.uid" ) @@ -488,6 +558,7 @@ const ( // Required: No // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNamespaceName = "k8s.namespace.name" ) @@ -499,6 +570,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodUID = "k8s.pod.uid" // The name of the Pod. // @@ -506,6 +578,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-pod-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodName = "k8s.pod.name" ) @@ -517,6 +590,7 @@ const ( // Required: No // Stability: stable // Examples: 'redis' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerName = "k8s.container.name" ) @@ -528,6 +602,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetUID = "k8s.replicaset.uid" // The name of the ReplicaSet. // @@ -535,6 +610,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetName = "k8s.replicaset.name" ) @@ -546,6 +622,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentUID = "k8s.deployment.uid" // The name of the Deployment. // @@ -553,6 +630,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentName = "k8s.deployment.name" ) @@ -564,6 +642,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetUID = "k8s.statefulset.uid" // The name of the StatefulSet. // @@ -571,6 +650,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetName = "k8s.statefulset.name" ) @@ -582,6 +662,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetUID = "k8s.daemonset.uid" // The name of the DaemonSet. // @@ -589,6 +670,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetName = "k8s.daemonset.name" ) @@ -600,6 +682,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobUID = "k8s.job.uid" // The name of the Job. // @@ -607,6 +690,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobName = "k8s.job.name" ) @@ -618,6 +702,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobUID = "k8s.cronjob.uid" // The name of the CronJob. // @@ -625,6 +710,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobName = "k8s.cronjob.name" ) @@ -635,6 +721,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSType = "os.type" // Human readable (not intended to be parsed) OS version information, like e.g. // reported by ver or lsb_release -a commands. @@ -643,6 +730,7 @@ const ( // Required: No // Stability: stable // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSDescription = "os.description" // Human readable operating system name. // @@ -650,6 +738,7 @@ const ( // Required: No // Stability: stable // Examples: 'iOS', 'Android', 'Ubuntu' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSName = "os.name" // The version string of the operating system as defined in Version Attributes. // @@ -657,31 +746,43 @@ const ( // Required: No // Stability: stable // Examples: '14.2.1', '18.04.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSVersion = "os.version" ) const ( // Microsoft Windows + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeWindows = "windows" // Linux + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeLinux = "linux" // Apple Darwin + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDarwin = "darwin" // FreeBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeFreeBSD = "freebsd" // NetBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeNetBSD = "netbsd" // OpenBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeOpenBSD = "openbsd" // DragonFly BSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDragonflyBSD = "dragonflybsd" // HP-UX (Hewlett Packard Unix) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeHPUX = "hpux" // AIX (Advanced Interactive eXecutive) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeAIX = "aix" // Oracle Solaris + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeSolaris = "solaris" // IBM z/OS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeZOS = "z_os" ) @@ -693,6 +794,7 @@ const ( // Required: No // Stability: stable // Examples: 1234 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessPID = "process.pid" // 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 @@ -702,6 +804,7 @@ const ( // Required: See below // Stability: stable // Examples: 'otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutableName = "process.executable.name" // 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 @@ -711,6 +814,7 @@ const ( // Required: See below // Stability: stable // Examples: '/usr/bin/cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutablePath = "process.executable.path" // 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 @@ -720,6 +824,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommand = "process.command" // 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 @@ -730,6 +835,7 @@ const ( // Required: See below // Stability: stable // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandLine = "process.command_line" // All the command arguments (including the command/executable itself) as received // by the process. On Linux-based systems (and some other Unixoid systems @@ -741,6 +847,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otecol', '--config=config.yaml' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandArgs = "process.command_args" // The username of the user that owns the process. // @@ -748,6 +855,7 @@ const ( // Required: No // Stability: stable // Examples: 'root' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessOwner = "process.owner" ) @@ -760,6 +868,7 @@ const ( // Required: No // Stability: stable // Examples: 'OpenJDK Runtime Environment' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeName = "process.runtime.name" // The version of the runtime of this process, as returned by the runtime without // modification. @@ -768,6 +877,7 @@ const ( // Required: No // Stability: stable // Examples: '14.0.2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeVersion = "process.runtime.version" // An additional description about the runtime of the process, for example a // specific vendor customization of the runtime environment. @@ -776,6 +886,7 @@ const ( // Required: No // Stability: stable // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeDescription = "process.runtime.description" ) @@ -792,6 +903,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceName = "service.name" // A namespace for service.name. // @@ -806,6 +918,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceNamespace = "service.namespace" // The string ID of the service instance. // @@ -825,6 +938,7 @@ const ( // value of this attribute it is recommended to generate a random Version 1 or // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use // Version 5, see RFC 4122 for more recommendations). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceInstanceID = "service.instance.id" // The version string of the service API or implementation. // @@ -832,6 +946,7 @@ const ( // Required: No // Stability: stable // Examples: '2.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceVersion = "service.version" ) @@ -843,12 +958,14 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKName = "telemetry.sdk.name" // The language of the telemetry SDK. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguage = "telemetry.sdk.language" // The version string of the telemetry SDK. // @@ -856,6 +973,7 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKVersion = "telemetry.sdk.version" // The version string of the auto instrumentation agent, if used. // @@ -863,29 +981,40 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetryAutoVersion = "telemetry.auto.version" ) const ( // cpp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageCPP = "cpp" // dotnet + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageDotnet = "dotnet" // erlang + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageErlang = "erlang" // go + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageGo = "go" // java + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageJava = "java" // nodejs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageNodejs = "nodejs" // php + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePHP = "php" // python + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePython = "python" // ruby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageRuby = "ruby" // webjs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageWebjs = "webjs" ) @@ -897,6 +1026,7 @@ const ( // Required: Always // Stability: stable // Examples: 'WildFly' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineName = "webengine.name" // The version of the web engine. // @@ -904,6 +1034,7 @@ const ( // Required: No // Stability: stable // Examples: '21.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineVersion = "webengine.version" // Additional description of the web engine (e.g. detailed version and edition // information). @@ -912,9 +1043,11 @@ const ( // Required: No // Stability: stable // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineDescription = "webengine.description" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetResourceSemanticConventionAttributeNames() []string { return []string{ AttributeCloudProvider, diff --git a/model/semconv/v1.6.1/generated_trace.go b/model/semconv/v1.6.1/generated_trace.go index 8e2972d4c906..15655c7c549e 100644 --- a/model/semconv/v1.6.1/generated_trace.go +++ b/model/semconv/v1.6.1/generated_trace.go @@ -27,6 +27,7 @@ const ( // Stability: stable // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' // Note: This may be different from faas.id if an alias is involved. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" ) @@ -38,6 +39,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystem = "db.system" // The connection string used to connect to the database. It is recommended to // remove embedded credentials. @@ -46,6 +48,7 @@ const ( // Required: No // Stability: stable // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBConnectionString = "db.connection_string" // Username for accessing the database. // @@ -53,6 +56,7 @@ const ( // Required: No // Stability: stable // Examples: 'readonly_user', 'reporting_user' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBUser = "db.user" // The fully-qualified class name of the Java Database Connectivity (JDBC) driver // used to connect. @@ -62,6 +66,7 @@ const ( // Stability: stable // Examples: 'org.postgresql.Driver', // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" // If no tech-specific attribute is defined, this attribute is used to report the // name of the database being accessed. For commands that switch the database, @@ -73,6 +78,7 @@ const ( // Examples: 'customers', 'main' // Note: In some SQL databases, the database name to be used is called // "schema name". + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBName = "db.name" // The database statement being executed. // @@ -82,6 +88,7 @@ const ( // Stability: stable // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' // Note: The value may be sanitized to exclude sensitive information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBStatement = "db.statement" // The name of the operation being executed, e.g. the MongoDB command name such as // findAndModify, or the SQL keyword. @@ -95,103 +102,151 @@ const ( // set if the operation name is provided by the library being instrumented. If the // SQL statement has an ambiguous operation, or performs more than one operation, // this value may be omitted. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBOperation = "db.operation" ) const ( // Some other SQL database. Fallback only. See notes + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOtherSQL = "other_sql" // Microsoft SQL Server + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMSSQL = "mssql" // MySQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMySQL = "mysql" // Oracle Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOracle = "oracle" // IBM DB2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDB2 = "db2" // PostgreSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPostgreSQL = "postgresql" // Amazon Redshift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedshift = "redshift" // Apache Hive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHive = "hive" // Cloudscape + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCloudscape = "cloudscape" // HyperSQL DataBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHSQLDB = "hsqldb" // Progress Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemProgress = "progress" // SAP MaxDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMaxDB = "maxdb" // SAP HANA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHanaDB = "hanadb" // Ingres + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemIngres = "ingres" // FirstSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirstSQL = "firstsql" // EnterpriseDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemEDB = "edb" // InterSystems Caché + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCache = "cache" // Adabas (Adaptable Database System) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemAdabas = "adabas" // Firebird + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirebird = "firebird" // Apache Derby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDerby = "derby" // FileMaker + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFilemaker = "filemaker" // Informix + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInformix = "informix" // InstantDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInstantDB = "instantdb" // InterBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInterbase = "interbase" // MariaDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMariaDB = "mariadb" // Netezza + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNetezza = "netezza" // Pervasive PSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPervasive = "pervasive" // PointBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPointbase = "pointbase" // SQLite + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSqlite = "sqlite" // Sybase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSybase = "sybase" // Teradata + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemTeradata = "teradata" // Vertica + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemVertica = "vertica" // H2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemH2 = "h2" // ColdFusion IMQ + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemColdfusion = "coldfusion" // Apache Cassandra + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCassandra = "cassandra" // Apache HBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHBase = "hbase" // MongoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMongoDB = "mongodb" // Redis + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedis = "redis" // Couchbase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchbase = "couchbase" // CouchDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchDB = "couchdb" // Microsoft Azure Cosmos DB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCosmosDB = "cosmosdb" // Amazon DynamoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDynamoDB = "dynamodb" // Neo4j + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNeo4j = "neo4j" // Apache Geode + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemGeode = "geode" // Elasticsearch + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemElasticsearch = "elasticsearch" // Memcached + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMemcached = "memcached" // CockroachDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCockroachdb = "cockroachdb" ) @@ -206,6 +261,7 @@ const ( // Examples: 'MSSQLSERVER' // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required // (but still recommended if non-standard). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMSSQLInstanceName = "db.mssql.instance_name" ) @@ -218,6 +274,7 @@ const ( // Required: Always // Stability: stable // Examples: 'mykeyspace' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraKeyspace = "db.cassandra.keyspace" // The fetch size used for paging, i.e. how many rows will be returned at once. // @@ -225,12 +282,14 @@ const ( // Required: No // Stability: stable // Examples: 5000 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraPageSize = "db.cassandra.page_size" // The consistency level of the query. Based on consistency values from CQL. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" // The name of the primary table that the operation is acting upon, including the // schema name (if applicable). @@ -244,12 +303,14 @@ const ( // db.statement just to get this property, but it should be set if it is provided // by the library being instrumented. If the operation is acting upon an anonymous // table, or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraTable = "db.cassandra.table" // Whether or not the query is idempotent. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraIdempotence = "db.cassandra.idempotence" // The number of times a query was speculatively executed. Not set or 0 if the // query was not executed speculatively. @@ -258,6 +319,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" // The ID of the coordinating node for a query. // @@ -265,6 +327,7 @@ const ( // Required: No // Stability: stable // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" // The data center of the coordinating node for a query. // @@ -272,31 +335,43 @@ const ( // Required: No // Stability: stable // Examples: 'us-west-2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" ) const ( // all + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAll = "all" // each_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" // quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelQuorum = "quorum" // local_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" // one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelOne = "one" // two + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelTwo = "two" // three + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelThree = "three" // local_one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalOne = "local_one" // any + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAny = "any" // serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelSerial = "serial" // local_serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" ) @@ -309,6 +384,7 @@ const ( // Required: Always // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBHBaseNamespace = "db.hbase.namespace" ) @@ -321,6 +397,7 @@ const ( // Required: Required, if other than the default database (`0`). // Stability: stable // Examples: 0, 1, 15 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBRedisDBIndex = "db.redis.database_index" ) @@ -332,6 +409,7 @@ const ( // Required: Always // Stability: stable // Examples: 'customers', 'products' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMongoDBCollection = "db.mongodb.collection" ) @@ -348,6 +426,7 @@ const ( // just to get this property, but it should be set if it is provided by the // library being instrumented. If the operation is acting upon an anonymous table, // or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSQLTable = "db.sql.table" ) @@ -361,6 +440,7 @@ const ( // Required: No // Stability: stable // Examples: 'java.net.ConnectException', 'OSError' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionType = "exception.type" // The exception message. // @@ -368,6 +448,7 @@ const ( // Required: No // Stability: stable // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionMessage = "exception.message" // A stacktrace as a string in the natural representation for the language // runtime. The representation is to be determined and documented by each language @@ -381,6 +462,7 @@ const ( // '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)' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionStacktrace = "exception.stacktrace" // 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. @@ -404,6 +486,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionEscaped = "exception.escaped" ) @@ -418,6 +501,7 @@ const ( // when the transport layer is abstracted in a FaaS client framework without // access to its configuration. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTrigger = "faas.trigger" // The execution ID of the current function execution. // @@ -425,19 +509,25 @@ const ( // Required: No // Stability: stable // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSExecution = "faas.execution" ) const ( // A response to some data source operation such as a database or filesystem read/write + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerDatasource = "datasource" // To provide an answer to an inbound HTTP request + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerHTTP = "http" // A function is set to be executed when messages are sent to a messaging system + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerPubsub = "pubsub" // A function is scheduled to be executed regularly + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerTimer = "timer" // If none of the others apply + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerOther = "other" ) @@ -451,12 +541,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myBucketName', 'myDBName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentCollection = "faas.document.collection" // Describes the type of the operation that was performed on the data. // // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperation = "faas.document.operation" // A string containing the time when the data was accessed in the ISO 8601 format // expressed in UTC. @@ -465,6 +557,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentTime = "faas.document.time" // 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. @@ -473,15 +566,19 @@ const ( // Required: No // Stability: stable // Examples: 'myFile.txt', 'myTableName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentName = "faas.document.name" ) const ( // When a new object is created + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationInsert = "insert" // When an object is modified + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationEdit = "edit" // When an object is deleted + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationDelete = "delete" ) @@ -494,6 +591,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTime = "faas.time" // A string containing the schedule period as Cron Expression. // @@ -501,6 +599,7 @@ const ( // Required: No // Stability: stable // Examples: '0/5 * * * ? *' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSCron = "faas.cron" ) @@ -512,6 +611,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSColdstart = "faas.coldstart" ) @@ -525,6 +625,7 @@ const ( // Examples: 'my-function' // Note: SHOULD be equal to the faas.name resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedName = "faas.invoked_name" // The cloud provider of the invoked function. // @@ -533,6 +634,7 @@ const ( // Stability: stable // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProvider = "faas.invoked_provider" // The cloud region of the invoked function. // @@ -547,17 +649,22 @@ const ( // Examples: 'eu-central-1' // Note: SHOULD be equal to the cloud.region resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedRegion = "faas.invoked_region" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderGCP = "gcp" ) @@ -568,6 +675,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransport = "net.transport" // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) // @@ -575,6 +683,7 @@ const ( // Required: No // Stability: stable // Examples: '127.0.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerIP = "net.peer.ip" // Remote port number. // @@ -582,6 +691,7 @@ const ( // Required: No // Stability: stable // Examples: 80, 8080, 443 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerPort = "net.peer.port" // Remote hostname or similar, see note below. // @@ -589,6 +699,7 @@ const ( // Required: No // Stability: stable // Examples: 'example.com' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerName = "net.peer.name" // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. // @@ -596,6 +707,7 @@ const ( // Required: No // Stability: stable // Examples: '192.168.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostIP = "net.host.ip" // Like net.peer.port but for the host port. // @@ -603,6 +715,7 @@ const ( // Required: No // Stability: stable // Examples: 35555 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostPort = "net.host.port" // Local hostname or similar, see note below. // @@ -610,6 +723,7 @@ const ( // Required: No // Stability: stable // Examples: 'localhost' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostName = "net.host.name" // The internet connection type currently being used by the host. // @@ -617,6 +731,7 @@ const ( // Required: No // Stability: stable // Examples: 'wifi' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionType = "net.host.connection.type" // 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 @@ -626,6 +741,7 @@ const ( // Required: No // Stability: stable // Examples: 'LTE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtype = "net.host.connection.subtype" // The name of the mobile carrier. // @@ -633,6 +749,7 @@ const ( // Required: No // Stability: stable // Examples: 'sprint' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierName = "net.host.carrier.name" // The mobile carrier country code. // @@ -640,6 +757,7 @@ const ( // Required: No // Stability: stable // Examples: '310' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMcc = "net.host.carrier.mcc" // The mobile carrier network code. // @@ -647,6 +765,7 @@ const ( // Required: No // Stability: stable // Examples: '001' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMnc = "net.host.carrier.mnc" // The ISO 3166-1 alpha-2 2-character country code associated with the mobile // carrier network. @@ -655,81 +774,115 @@ const ( // Required: No // Stability: stable // Examples: 'DE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierIcc = "net.host.carrier.icc" ) const ( // ip_tcp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportTCP = "ip_tcp" // ip_udp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUDP = "ip_udp" // Another IP-based protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportIP = "ip" // Unix Domain socket. See below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUnix = "unix" // Named or anonymous pipe. See note below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportPipe = "pipe" // In-process communication + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportInProc = "inproc" // Something else (non IP-based) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportOther = "other" ) const ( // wifi + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWifi = "wifi" // wired + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWired = "wired" // cell + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeCell = "cell" // unavailable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnavailable = "unavailable" // unknown + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnknown = "unknown" ) const ( // GPRS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGprs = "gprs" // EDGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEdge = "edge" // UMTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeUmts = "umts" // CDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma = "cdma" // EVDO Rel. 0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" // EVDO Rev. A + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" // CDMA2000 1XRTT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" // HSDPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" // HSUPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsupa = "hsupa" // HSPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspa = "hspa" // IDEN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIden = "iden" // EVDO Rev. B + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" // LTE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLte = "lte" // EHRPD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" // HSPAP + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspap = "hspap" // GSM + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGsm = "gsm" // TD-SCDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" // IWLAN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIwlan = "iwlan" // 5G NR (New Radio) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNr = "nr" // 5G NRNSA (New Radio Non-Standalone) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" // LTE CA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLteCa = "lte_ca" ) @@ -742,6 +895,7 @@ const ( // Required: No // Stability: stable // Examples: 'AuthTokenCache' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributePeerService = "peer.service" ) @@ -754,6 +908,7 @@ const ( // Required: No // Stability: stable // Examples: 'username' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserID = "enduser.id" // Actual/assumed role the client is making the request under extracted from token // or application security context. @@ -762,6 +917,7 @@ const ( // Required: No // Stability: stable // Examples: 'admin' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserRole = "enduser.role" // Scopes or granted authorities the client currently possesses extracted from // token or application security context. The value would come from the scope @@ -772,6 +928,7 @@ const ( // Required: No // Stability: stable // Examples: 'read:message, write:files' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserScope = "enduser.scope" ) @@ -783,6 +940,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadID = "thread.id" // Current thread name. // @@ -790,6 +948,7 @@ const ( // Required: No // Stability: stable // Examples: 'main' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadName = "thread.name" ) @@ -802,6 +961,7 @@ const ( // Required: No // Stability: stable // Examples: 'serveRequest' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFunction = "code.function" // The "namespace" within which code.function is defined. Usually the // qualified class or module name, such that code.namespace + some separator + @@ -811,6 +971,7 @@ const ( // Required: No // Stability: stable // Examples: 'com.example.MyHTTPService' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeNamespace = "code.namespace" // The source code file name that identifies the code unit as uniquely as possible // (preferably an absolute file path). @@ -819,6 +980,7 @@ const ( // Required: No // Stability: stable // Examples: '/usr/local/MyApplication/content_root/app/index.php' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFilepath = "code.filepath" // The line number in code.filepath best representing the operation. It SHOULD // point within the code unit named in code.function. @@ -827,6 +989,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeLineNumber = "code.lineno" ) @@ -838,6 +1001,7 @@ const ( // Required: Always // Stability: stable // Examples: 'GET', 'POST', 'HEAD' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPMethod = "http.method" // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. // Usually the fragment is not transmitted over HTTP, but if it is known, it @@ -850,6 +1014,7 @@ const ( // Note: http.url MUST NOT contain credentials passed via URL in form of // https://username:password@www.example.com/. In such case the attribute's value // should be https://www.example.com/. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPURL = "http.url" // The full request target as passed in a HTTP request line or equivalent. // @@ -857,6 +1022,7 @@ const ( // Required: No // Stability: stable // Examples: '/path/12314/?q=ddds#123' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPTarget = "http.target" // The value of the HTTP host header. When the header is empty or not present, // this attribute should be the same. @@ -865,6 +1031,7 @@ const ( // Required: No // Stability: stable // Examples: 'www.example.org' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPHost = "http.host" // The URI scheme identifying the used protocol. // @@ -872,6 +1039,7 @@ const ( // Required: No // Stability: stable // Examples: 'http', 'https' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPScheme = "http.scheme" // HTTP response status code. // @@ -879,6 +1047,7 @@ const ( // Required: If and only if one was received/sent. // Stability: stable // Examples: 200 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPStatusCode = "http.status_code" // Kind of HTTP protocol used. // @@ -887,6 +1056,7 @@ const ( // Stability: stable // Note: If net.transport is not specified, it can be assumed to be IP.TCP except // if http.flavor is QUIC, in which case IP.UDP is assumed. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavor = "http.flavor" // Value of the HTTP User-Agent header sent by the client. // @@ -894,6 +1064,7 @@ const ( // Required: No // Stability: stable // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPUserAgent = "http.user_agent" // 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 @@ -904,6 +1075,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLength = "http.request_content_length" // The size of the uncompressed request payload body after transport decoding. Not // set if transport encoding not used. @@ -912,6 +1084,7 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" // 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 @@ -922,6 +1095,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLength = "http.response_content_length" // The size of the uncompressed response payload body after transport decoding. // Not set if transport encoding not used. @@ -930,19 +1104,25 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" ) const ( // HTTP 1.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP10 = "1.0" // HTTP 1.1 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP11 = "1.1" // HTTP 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP20 = "2.0" // SPDY protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorSPDY = "SPDY" // QUIC protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorQUIC = "QUIC" ) @@ -960,6 +1140,7 @@ const ( // have to be assembled in a cumbersome and sometimes lossy process from other // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus // preferred to supply the raw data that is available. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPServerName = "http.server_name" // The matched route (path template). // @@ -967,6 +1148,7 @@ const ( // Required: No // Stability: stable // Examples: '/users/:userID?' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRoute = "http.route" // The IP address of the original client behind all proxies, if known (e.g. from // X-Forwarded-For). @@ -977,6 +1159,7 @@ const ( // Examples: '83.164.160.102' // Note: This is not necessarily the same as net.peer.ip, which would identify the // network-level peer, which may be a proxy. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPClientIP = "http.client_ip" ) @@ -988,6 +1171,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'Cats' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" // The JSON-serialized value of each item in the ConsumedCapacity response field. // @@ -1001,6 +1185,7 @@ const ( // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": // "string", "WriteCapacityUnits": number }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" // The JSON-serialized value of the ItemCollectionMetrics response field. // @@ -1011,6 +1196,7 @@ const ( // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. // @@ -1018,6 +1204,7 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. // @@ -1025,12 +1212,14 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" // The value of the ConsistentRead request parameter. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" // The value of the ProjectionExpression request parameter. // @@ -1039,6 +1228,7 @@ const ( // Stability: stable // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, // ProductReviews' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" // The value of the Limit request parameter. // @@ -1046,6 +1236,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" // The value of the AttributesToGet request parameter. // @@ -1053,6 +1244,7 @@ const ( // Required: No // Stability: stable // Examples: 'lives', 'id' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" // The value of the IndexName request parameter. // @@ -1060,6 +1252,7 @@ const ( // Required: No // Stability: stable // Examples: 'name_to_group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" // The value of the Select request parameter. // @@ -1067,6 +1260,7 @@ const ( // Required: No // Stability: stable // Examples: 'ALL_ATTRIBUTES', 'COUNT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSelect = "aws.dynamodb.select" ) @@ -1082,6 +1276,7 @@ const ( // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": // number, "WriteCapacityUnits": number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" // The JSON-serialized value of each item of the LocalSecondaryIndexes request // field. @@ -1093,6 +1288,7 @@ const ( // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" ) @@ -1104,6 +1300,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'CatsTable' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" // The the number of items in the TableNames response parameter. // @@ -1111,6 +1308,7 @@ const ( // Required: No // Stability: stable // Examples: 20 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" ) @@ -1121,6 +1319,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" ) @@ -1132,6 +1331,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" // The value of the TotalSegments request parameter. // @@ -1139,6 +1339,7 @@ const ( // Required: No // Stability: stable // Examples: 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" // The value of the Count response parameter. // @@ -1146,6 +1347,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBCount = "aws.dynamodb.count" // The value of the ScannedCount response parameter. // @@ -1153,6 +1355,7 @@ const ( // Required: No // Stability: stable // Examples: 50 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" ) @@ -1165,6 +1368,7 @@ const ( // Required: No // Stability: stable // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates // request field. @@ -1177,6 +1381,7 @@ const ( // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": // number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" ) @@ -1188,6 +1393,7 @@ const ( // Required: Always // Stability: stable // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingSystem = "messaging.system" // The message destination name. This might be equal to the span name but is // required nevertheless. @@ -1196,6 +1402,7 @@ const ( // Required: Always // Stability: stable // Examples: 'MyQueue', 'MyTopic' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestination = "messaging.destination" // The kind of message destination // @@ -1203,12 +1410,14 @@ const ( // Required: Required only if the message destination is either a `queue` or // `topic`. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKind = "messaging.destination_kind" // A boolean that is true if the message destination is temporary. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingTempDestination = "messaging.temp_destination" // The name of the transport protocol. // @@ -1216,6 +1425,7 @@ const ( // Required: No // Stability: stable // Examples: 'AMQP', 'MQTT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocol = "messaging.protocol" // The version of the transport protocol. // @@ -1223,6 +1433,7 @@ const ( // Required: No // Stability: stable // Examples: '0.9.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocolVersion = "messaging.protocol_version" // Connection string. // @@ -1231,6 +1442,7 @@ const ( // Stability: stable // Examples: 'tibjmsnaming://localhost:7222', // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingURL = "messaging.url" // A value used by the messaging system as an identifier for the message, // represented as a string. @@ -1239,6 +1451,7 @@ const ( // Required: No // Stability: stable // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessageID = "messaging.message_id" // The conversation ID identifying the conversation to which the message belongs, // represented as a string. Sometimes called "Correlation ID". @@ -1247,6 +1460,7 @@ const ( // Required: No // Stability: stable // Examples: 'MyConversationID' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConversationID = "messaging.conversation_id" // The (uncompressed) size of the message payload in bytes. Also use this // attribute if it is unknown whether the compressed or uncompressed payload size @@ -1256,6 +1470,7 @@ const ( // Required: No // Stability: stable // Examples: 2738 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" // The compressed size of the message payload in bytes. // @@ -1263,13 +1478,16 @@ const ( // Required: No // Stability: stable // Examples: 2048 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" ) const ( // A message sent to a queue + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindQueue = "queue" // A message sent to a topic + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindTopic = "topic" ) @@ -1283,13 +1501,16 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperation = "messaging.operation" ) const ( // receive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationReceive = "receive" // process + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationProcess = "process" ) @@ -1301,6 +1522,7 @@ const ( // Required: Unless it is empty. // Stability: stable // Examples: 'myKey' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" ) @@ -1317,6 +1539,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" // Name of the Kafka Consumer Group that is handling the message. Only applies to // consumers, not producers. @@ -1325,6 +1548,7 @@ const ( // Required: No // Stability: stable // Examples: 'my-group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" // Client ID for the Consumer or Producer that is handling the message. // @@ -1332,6 +1556,7 @@ const ( // Required: No // Stability: stable // Examples: 'client-5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaClientID = "messaging.kafka.client_id" // Partition the message is sent to. // @@ -1339,12 +1564,14 @@ const ( // Required: No // Stability: stable // Examples: 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaPartition = "messaging.kafka.partition" // A boolean that is true if the message is a tombstone. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" ) @@ -1356,6 +1583,7 @@ const ( // Required: Always // Stability: stable // Examples: 'grpc', 'java_rmi', 'wcf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCSystem = "rpc.system" // The full (logical) name of the service being called, including its package // name, if applicable. @@ -1370,6 +1598,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCService = "rpc.service" // The name of the (logical) method being called, must be equal to the $method // part in the span name. @@ -1383,6 +1612,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCMethod = "rpc.method" ) @@ -1393,43 +1623,61 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" ) const ( // OK + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOk = "0" // CANCELLED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeCancelled = "1" // UNKNOWN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnknown = "2" // INVALID_ARGUMENT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInvalidArgument = "3" // DEADLINE_EXCEEDED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" // NOT_FOUND + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeNotFound = "5" // ALREADY_EXISTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAlreadyExists = "6" // PERMISSION_DENIED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodePermissionDenied = "7" // RESOURCE_EXHAUSTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeResourceExhausted = "8" // FAILED_PRECONDITION + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeFailedPrecondition = "9" // ABORTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAborted = "10" // OUT_OF_RANGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOutOfRange = "11" // UNIMPLEMENTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnimplemented = "12" // INTERNAL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInternal = "13" // UNAVAILABLE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnavailable = "14" // DATA_LOSS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDataLoss = "15" // UNAUTHENTICATED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnauthenticated = "16" ) @@ -1442,6 +1690,7 @@ const ( // Required: If missing, it is assumed to be "1.0". // Stability: stable // Examples: '2.0', '1.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" // 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 @@ -1452,6 +1701,7 @@ const ( // Required: No // Stability: stable // Examples: '10', 'request-7', '' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" // error.code property of response if it is an error response. // @@ -1459,6 +1709,7 @@ const ( // Required: If missing, response is assumed to be successful. // Stability: stable // Examples: -32700, 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" // error.message property of response if it is an error response. // @@ -1466,9 +1717,11 @@ const ( // Required: No // Stability: stable // Examples: 'Parse error', 'User already exists' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetTraceSemanticConventionAttributeNames() []string { return []string{ AttributeAWSLambdaInvokedARN, diff --git a/model/semconv/v1.6.1/nonstandard.go b/model/semconv/v1.6.1/nonstandard.go index 2c0b2f33cfe1..9603f8df063d 100644 --- a/model/semconv/v1.6.1/nonstandard.go +++ b/model/semconv/v1.6.1/nonstandard.go @@ -15,8 +15,12 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" const ( - OtelLibraryName = "otel.library.name" - OtelLibraryVersion = "otel.library.version" - OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryVersion = "otel.library.version" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. OtelStatusDescription = "otel.status_description" ) diff --git a/model/semconv/v1.6.1/schema.go b/model/semconv/v1.6.1/schema.go index 6ab05b4af210..9f76b6259721 100644 --- a/model/semconv/v1.6.1/schema.go +++ b/model/semconv/v1.6.1/schema.go @@ -17,4 +17,5 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" // SchemaURL is the schema URL that matches the version of the semantic conventions // that this package defines. Conventions packages starting from v1.4.0 must declare // non-empty schema URL in the form https://opentelemetry.io/schemas/ +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. const SchemaURL = "https://opentelemetry.io/schemas/1.6.1" diff --git a/model/semconv/v1.7.0/generated_resource.go b/model/semconv/v1.7.0/generated_resource.go index 7a1b3520d382..0eeee942905d 100644 --- a/model/semconv/v1.7.0/generated_resource.go +++ b/model/semconv/v1.7.0/generated_resource.go @@ -23,6 +23,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProvider = "cloud.provider" // The cloud account ID the resource is assigned to. // @@ -30,6 +31,7 @@ const ( // Required: No // Stability: stable // Examples: '111111111111', 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAccountID = "cloud.account.id" // The geographical region the resource is running. Refer to your provider's docs // to see the available regions, for example Alibaba Cloud regions, AWS regions, @@ -39,6 +41,7 @@ const ( // Required: No // Stability: stable // Examples: 'us-central1', 'us-east-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudRegion = "cloud.region" // Cloud regions often have multiple, isolated locations known as zones to // increase availability. Availability zone represents the zone where the resource @@ -50,6 +53,7 @@ const ( // Examples: 'us-east-1c' // Note: Availability zones are called "zones" on Alibaba Cloud and // Google Cloud. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAvailabilityZone = "cloud.availability_zone" // The cloud platform in use. // @@ -58,54 +62,76 @@ const ( // Stability: stable // Note: The prefix of the service SHOULD match the one specified in // cloud.provider. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatform = "cloud.platform" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderGCP = "gcp" ) const ( // Alibaba Cloud Elastic Compute Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" // Alibaba Cloud Function Compute + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" // AWS Elastic Compute Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEC2 = "aws_ec2" // AWS Elastic Container Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSECS = "aws_ecs" // AWS Elastic Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEKS = "aws_eks" // AWS Lambda + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSLambda = "aws_lambda" // AWS Elastic Beanstalk + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" // Azure Virtual Machines + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureVM = "azure_vm" // Azure Container Instances + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" // Azure Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAKS = "azure_aks" // Azure Functions + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureFunctions = "azure_functions" // Azure App Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAppService = "azure_app_service" // Google Cloud Compute Engine (GCE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" // Google Cloud Run + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" // Google Cloud Kubernetes Engine (GKE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" // Google Cloud Functions (GCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" // Google Cloud App Engine (GAE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" ) @@ -118,6 +144,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSContainerARN = "aws.ecs.container.arn" // The ARN of an ECS cluster. // @@ -125,12 +152,14 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" // The launch type for an ECS task. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtype = "aws.ecs.launchtype" // The ARN of an ECS task definition. // @@ -139,6 +168,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskARN = "aws.ecs.task.arn" // The task definition family this task definition is a member of. // @@ -146,6 +176,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-family' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskFamily = "aws.ecs.task.family" // The revision for this task definition. // @@ -153,13 +184,16 @@ const ( // Required: No // Stability: stable // Examples: '8', '26' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskRevision = "aws.ecs.task.revision" ) const ( // ec2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeEC2 = "ec2" // fargate + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeFargate = "fargate" ) @@ -171,6 +205,7 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" ) @@ -185,6 +220,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupNames = "aws.log.group.names" // The Amazon Resource Name(s) (ARN) of the AWS log group(s). // @@ -193,6 +229,7 @@ const ( // Stability: stable // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' // Note: See the log group ARN format documentation. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupARNs = "aws.log.group.arns" // The name(s) of the AWS log stream(s) an application is writing to. // @@ -200,6 +237,7 @@ const ( // Required: No // Stability: stable // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamNames = "aws.log.stream.names" // The ARN(s) of the AWS log stream(s). // @@ -211,6 +249,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamARNs = "aws.log.stream.arns" ) @@ -222,6 +261,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerName = "container.name" // Container ID. Usually a UUID, as for example used to identify Docker // containers. The UUID might be abbreviated. @@ -230,6 +270,7 @@ const ( // Required: No // Stability: stable // Examples: 'a3bf90e006b2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerID = "container.id" // The container runtime managing this container. // @@ -237,6 +278,7 @@ const ( // Required: No // Stability: stable // Examples: 'docker', 'containerd', 'rkt' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerRuntime = "container.runtime" // Name of the image the container was built on. // @@ -244,6 +286,7 @@ const ( // Required: No // Stability: stable // Examples: 'gcr.io/opentelemetry/operator' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageName = "container.image.name" // Container image tag. // @@ -251,6 +294,7 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageTag = "container.image.tag" ) @@ -262,6 +306,7 @@ const ( // Required: No // Stability: stable // Examples: 'staging', 'production' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeploymentEnvironment = "deployment.environment" ) @@ -282,6 +327,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceID = "device.id" // The model identifier for the device // @@ -292,6 +338,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelIdentifier = "device.model.identifier" // The marketing name for the device model // @@ -301,6 +348,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelName = "device.model.name" ) @@ -315,6 +363,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSName = "faas.name" // The unique ID of the single function that this runtime instance executes. // @@ -338,6 +387,7 @@ const ( // part of the ARN is not available without calling another AWS API // which may be deemed too slow for a short-running lambda function. // As an alternative, consider setting faas.id as a span attribute instead. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSID = "faas.id" // The immutable version of the function being executed. // @@ -354,6 +404,7 @@ const ( // K_REVISION environment variable. //
  • Azure Functions: Not applicable. Do not set this attribute.
  • // + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSVersion = "faas.version" // The execution environment ID as a string, that will be potentially reused for // other invocations to the same function/function version. @@ -365,6 +416,7 @@ const ( // Note:
      //
    • AWS Lambda: Use the (full) log stream name.
    • //
    + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInstance = "faas.instance" // The amount of memory available to the serverless function in MiB. // @@ -376,6 +428,7 @@ const ( // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this // information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSMaxMemory = "faas.max_memory" ) @@ -388,6 +441,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostID = "host.id" // 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 @@ -397,6 +451,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostName = "host.name" // Type of host. For Cloud, this must be the machine type. // @@ -404,12 +459,14 @@ const ( // Required: No // Stability: stable // Examples: 'n1-standard-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostType = "host.type" // The CPU architecture the host system is running on. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArch = "host.arch" // Name of the VM image or OS install the host was instantiated from. // @@ -417,6 +474,7 @@ const ( // Required: No // Stability: stable // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageName = "host.image.name" // VM image ID. For Cloud, this value is from the provider. // @@ -424,6 +482,7 @@ const ( // Required: No // Stability: stable // Examples: 'ami-07b06b442921831e5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageID = "host.image.id" // The version string of the VM image as defined in Version Attributes. // @@ -431,23 +490,31 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageVersion = "host.image.version" ) const ( // AMD64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchAMD64 = "amd64" // ARM32 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM32 = "arm32" // ARM64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM64 = "arm64" // Itanium + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchIA64 = "ia64" // 32-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC32 = "ppc32" // 64-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC64 = "ppc64" // 32-bit x86 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchX86 = "x86" ) @@ -459,6 +526,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SClusterName = "k8s.cluster.name" ) @@ -470,6 +538,7 @@ const ( // Required: No // Stability: stable // Examples: 'node-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeName = "k8s.node.name" // The UID of the Node. // @@ -477,6 +546,7 @@ const ( // Required: No // Stability: stable // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeUID = "k8s.node.uid" ) @@ -488,6 +558,7 @@ const ( // Required: No // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNamespaceName = "k8s.namespace.name" ) @@ -499,6 +570,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodUID = "k8s.pod.uid" // The name of the Pod. // @@ -506,6 +578,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-pod-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodName = "k8s.pod.name" ) @@ -517,6 +590,7 @@ const ( // Required: No // Stability: stable // Examples: 'redis' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerName = "k8s.container.name" ) @@ -528,6 +602,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetUID = "k8s.replicaset.uid" // The name of the ReplicaSet. // @@ -535,6 +610,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetName = "k8s.replicaset.name" ) @@ -546,6 +622,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentUID = "k8s.deployment.uid" // The name of the Deployment. // @@ -553,6 +630,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentName = "k8s.deployment.name" ) @@ -564,6 +642,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetUID = "k8s.statefulset.uid" // The name of the StatefulSet. // @@ -571,6 +650,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetName = "k8s.statefulset.name" ) @@ -582,6 +662,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetUID = "k8s.daemonset.uid" // The name of the DaemonSet. // @@ -589,6 +670,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetName = "k8s.daemonset.name" ) @@ -600,6 +682,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobUID = "k8s.job.uid" // The name of the Job. // @@ -607,6 +690,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobName = "k8s.job.name" ) @@ -618,6 +702,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobUID = "k8s.cronjob.uid" // The name of the CronJob. // @@ -625,6 +710,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobName = "k8s.cronjob.name" ) @@ -635,6 +721,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSType = "os.type" // Human readable (not intended to be parsed) OS version information, like e.g. // reported by ver or lsb_release -a commands. @@ -643,6 +730,7 @@ const ( // Required: No // Stability: stable // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSDescription = "os.description" // Human readable operating system name. // @@ -650,6 +738,7 @@ const ( // Required: No // Stability: stable // Examples: 'iOS', 'Android', 'Ubuntu' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSName = "os.name" // The version string of the operating system as defined in Version Attributes. // @@ -657,31 +746,43 @@ const ( // Required: No // Stability: stable // Examples: '14.2.1', '18.04.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSVersion = "os.version" ) const ( // Microsoft Windows + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeWindows = "windows" // Linux + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeLinux = "linux" // Apple Darwin + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDarwin = "darwin" // FreeBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeFreeBSD = "freebsd" // NetBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeNetBSD = "netbsd" // OpenBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeOpenBSD = "openbsd" // DragonFly BSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDragonflyBSD = "dragonflybsd" // HP-UX (Hewlett Packard Unix) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeHPUX = "hpux" // AIX (Advanced Interactive eXecutive) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeAIX = "aix" // Oracle Solaris + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeSolaris = "solaris" // IBM z/OS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeZOS = "z_os" ) @@ -693,6 +794,7 @@ const ( // Required: No // Stability: stable // Examples: 1234 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessPID = "process.pid" // 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 @@ -702,6 +804,7 @@ const ( // Required: See below // Stability: stable // Examples: 'otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutableName = "process.executable.name" // 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 @@ -711,6 +814,7 @@ const ( // Required: See below // Stability: stable // Examples: '/usr/bin/cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutablePath = "process.executable.path" // 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 @@ -720,6 +824,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommand = "process.command" // 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 @@ -730,6 +835,7 @@ const ( // Required: See below // Stability: stable // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandLine = "process.command_line" // All the command arguments (including the command/executable itself) as received // by the process. On Linux-based systems (and some other Unixoid systems @@ -741,6 +847,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otecol', '--config=config.yaml' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandArgs = "process.command_args" // The username of the user that owns the process. // @@ -748,6 +855,7 @@ const ( // Required: No // Stability: stable // Examples: 'root' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessOwner = "process.owner" ) @@ -760,6 +868,7 @@ const ( // Required: No // Stability: stable // Examples: 'OpenJDK Runtime Environment' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeName = "process.runtime.name" // The version of the runtime of this process, as returned by the runtime without // modification. @@ -768,6 +877,7 @@ const ( // Required: No // Stability: stable // Examples: '14.0.2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeVersion = "process.runtime.version" // An additional description about the runtime of the process, for example a // specific vendor customization of the runtime environment. @@ -776,6 +886,7 @@ const ( // Required: No // Stability: stable // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeDescription = "process.runtime.description" ) @@ -792,6 +903,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceName = "service.name" // A namespace for service.name. // @@ -806,6 +918,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceNamespace = "service.namespace" // The string ID of the service instance. // @@ -825,6 +938,7 @@ const ( // value of this attribute it is recommended to generate a random Version 1 or // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use // Version 5, see RFC 4122 for more recommendations). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceInstanceID = "service.instance.id" // The version string of the service API or implementation. // @@ -832,6 +946,7 @@ const ( // Required: No // Stability: stable // Examples: '2.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceVersion = "service.version" ) @@ -843,12 +958,14 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKName = "telemetry.sdk.name" // The language of the telemetry SDK. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguage = "telemetry.sdk.language" // The version string of the telemetry SDK. // @@ -856,6 +973,7 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKVersion = "telemetry.sdk.version" // The version string of the auto instrumentation agent, if used. // @@ -863,29 +981,40 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetryAutoVersion = "telemetry.auto.version" ) const ( // cpp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageCPP = "cpp" // dotnet + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageDotnet = "dotnet" // erlang + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageErlang = "erlang" // go + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageGo = "go" // java + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageJava = "java" // nodejs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageNodejs = "nodejs" // php + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePHP = "php" // python + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePython = "python" // ruby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageRuby = "ruby" // webjs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageWebjs = "webjs" ) @@ -897,6 +1026,7 @@ const ( // Required: Always // Stability: stable // Examples: 'WildFly' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineName = "webengine.name" // The version of the web engine. // @@ -904,6 +1034,7 @@ const ( // Required: No // Stability: stable // Examples: '21.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineVersion = "webengine.version" // Additional description of the web engine (e.g. detailed version and edition // information). @@ -912,9 +1043,11 @@ const ( // Required: No // Stability: stable // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineDescription = "webengine.description" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetResourceSemanticConventionAttributeNames() []string { return []string{ AttributeCloudProvider, diff --git a/model/semconv/v1.7.0/generated_trace.go b/model/semconv/v1.7.0/generated_trace.go index 42bcb685169e..9b4411c88c1f 100644 --- a/model/semconv/v1.7.0/generated_trace.go +++ b/model/semconv/v1.7.0/generated_trace.go @@ -27,6 +27,7 @@ const ( // Stability: stable // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' // Note: This may be different from faas.id if an alias is involved. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" ) @@ -38,6 +39,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystem = "db.system" // The connection string used to connect to the database. It is recommended to // remove embedded credentials. @@ -46,6 +48,7 @@ const ( // Required: No // Stability: stable // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBConnectionString = "db.connection_string" // Username for accessing the database. // @@ -53,6 +56,7 @@ const ( // Required: No // Stability: stable // Examples: 'readonly_user', 'reporting_user' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBUser = "db.user" // The fully-qualified class name of the Java Database Connectivity (JDBC) driver // used to connect. @@ -62,6 +66,7 @@ const ( // Stability: stable // Examples: 'org.postgresql.Driver', // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" // If no tech-specific attribute is defined, this attribute is used to report the // name of the database being accessed. For commands that switch the database, @@ -73,6 +78,7 @@ const ( // Examples: 'customers', 'main' // Note: In some SQL databases, the database name to be used is called // "schema name". + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBName = "db.name" // The database statement being executed. // @@ -82,6 +88,7 @@ const ( // Stability: stable // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' // Note: The value may be sanitized to exclude sensitive information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBStatement = "db.statement" // The name of the operation being executed, e.g. the MongoDB command name such as // findAndModify, or the SQL keyword. @@ -95,103 +102,151 @@ const ( // set if the operation name is provided by the library being instrumented. If the // SQL statement has an ambiguous operation, or performs more than one operation, // this value may be omitted. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBOperation = "db.operation" ) const ( // Some other SQL database. Fallback only. See notes + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOtherSQL = "other_sql" // Microsoft SQL Server + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMSSQL = "mssql" // MySQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMySQL = "mysql" // Oracle Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOracle = "oracle" // IBM DB2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDB2 = "db2" // PostgreSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPostgreSQL = "postgresql" // Amazon Redshift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedshift = "redshift" // Apache Hive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHive = "hive" // Cloudscape + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCloudscape = "cloudscape" // HyperSQL DataBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHSQLDB = "hsqldb" // Progress Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemProgress = "progress" // SAP MaxDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMaxDB = "maxdb" // SAP HANA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHanaDB = "hanadb" // Ingres + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemIngres = "ingres" // FirstSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirstSQL = "firstsql" // EnterpriseDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemEDB = "edb" // InterSystems Caché + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCache = "cache" // Adabas (Adaptable Database System) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemAdabas = "adabas" // Firebird + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirebird = "firebird" // Apache Derby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDerby = "derby" // FileMaker + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFilemaker = "filemaker" // Informix + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInformix = "informix" // InstantDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInstantDB = "instantdb" // InterBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInterbase = "interbase" // MariaDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMariaDB = "mariadb" // Netezza + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNetezza = "netezza" // Pervasive PSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPervasive = "pervasive" // PointBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPointbase = "pointbase" // SQLite + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSqlite = "sqlite" // Sybase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSybase = "sybase" // Teradata + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemTeradata = "teradata" // Vertica + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemVertica = "vertica" // H2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemH2 = "h2" // ColdFusion IMQ + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemColdfusion = "coldfusion" // Apache Cassandra + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCassandra = "cassandra" // Apache HBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHBase = "hbase" // MongoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMongoDB = "mongodb" // Redis + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedis = "redis" // Couchbase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchbase = "couchbase" // CouchDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchDB = "couchdb" // Microsoft Azure Cosmos DB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCosmosDB = "cosmosdb" // Amazon DynamoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDynamoDB = "dynamodb" // Neo4j + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNeo4j = "neo4j" // Apache Geode + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemGeode = "geode" // Elasticsearch + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemElasticsearch = "elasticsearch" // Memcached + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMemcached = "memcached" // CockroachDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCockroachdb = "cockroachdb" ) @@ -206,6 +261,7 @@ const ( // Examples: 'MSSQLSERVER' // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required // (but still recommended if non-standard). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMSSQLInstanceName = "db.mssql.instance_name" ) @@ -218,6 +274,7 @@ const ( // Required: Always // Stability: stable // Examples: 'mykeyspace' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraKeyspace = "db.cassandra.keyspace" // The fetch size used for paging, i.e. how many rows will be returned at once. // @@ -225,12 +282,14 @@ const ( // Required: No // Stability: stable // Examples: 5000 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraPageSize = "db.cassandra.page_size" // The consistency level of the query. Based on consistency values from CQL. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" // The name of the primary table that the operation is acting upon, including the // schema name (if applicable). @@ -244,12 +303,14 @@ const ( // db.statement just to get this property, but it should be set if it is provided // by the library being instrumented. If the operation is acting upon an anonymous // table, or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraTable = "db.cassandra.table" // Whether or not the query is idempotent. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraIdempotence = "db.cassandra.idempotence" // The number of times a query was speculatively executed. Not set or 0 if the // query was not executed speculatively. @@ -258,6 +319,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" // The ID of the coordinating node for a query. // @@ -265,6 +327,7 @@ const ( // Required: No // Stability: stable // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" // The data center of the coordinating node for a query. // @@ -272,31 +335,43 @@ const ( // Required: No // Stability: stable // Examples: 'us-west-2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" ) const ( // all + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAll = "all" // each_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" // quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelQuorum = "quorum" // local_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" // one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelOne = "one" // two + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelTwo = "two" // three + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelThree = "three" // local_one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalOne = "local_one" // any + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAny = "any" // serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelSerial = "serial" // local_serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" ) @@ -309,6 +384,7 @@ const ( // Required: Always // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBHBaseNamespace = "db.hbase.namespace" ) @@ -321,6 +397,7 @@ const ( // Required: Required, if other than the default database (`0`). // Stability: stable // Examples: 0, 1, 15 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBRedisDBIndex = "db.redis.database_index" ) @@ -332,6 +409,7 @@ const ( // Required: Always // Stability: stable // Examples: 'customers', 'products' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMongoDBCollection = "db.mongodb.collection" ) @@ -348,6 +426,7 @@ const ( // just to get this property, but it should be set if it is provided by the // library being instrumented. If the operation is acting upon an anonymous table, // or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSQLTable = "db.sql.table" ) @@ -361,6 +440,7 @@ const ( // Required: No // Stability: stable // Examples: 'java.net.ConnectException', 'OSError' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionType = "exception.type" // The exception message. // @@ -368,6 +448,7 @@ const ( // Required: No // Stability: stable // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionMessage = "exception.message" // A stacktrace as a string in the natural representation for the language // runtime. The representation is to be determined and documented by each language @@ -381,6 +462,7 @@ const ( // '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)' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionStacktrace = "exception.stacktrace" // 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. @@ -404,6 +486,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionEscaped = "exception.escaped" ) @@ -418,6 +501,7 @@ const ( // when the transport layer is abstracted in a FaaS client framework without // access to its configuration. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTrigger = "faas.trigger" // The execution ID of the current function execution. // @@ -425,19 +509,25 @@ const ( // Required: No // Stability: stable // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSExecution = "faas.execution" ) const ( // A response to some data source operation such as a database or filesystem read/write + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerDatasource = "datasource" // To provide an answer to an inbound HTTP request + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerHTTP = "http" // A function is set to be executed when messages are sent to a messaging system + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerPubsub = "pubsub" // A function is scheduled to be executed regularly + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerTimer = "timer" // If none of the others apply + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerOther = "other" ) @@ -451,12 +541,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myBucketName', 'myDBName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentCollection = "faas.document.collection" // Describes the type of the operation that was performed on the data. // // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperation = "faas.document.operation" // A string containing the time when the data was accessed in the ISO 8601 format // expressed in UTC. @@ -465,6 +557,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentTime = "faas.document.time" // 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. @@ -473,15 +566,19 @@ const ( // Required: No // Stability: stable // Examples: 'myFile.txt', 'myTableName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentName = "faas.document.name" ) const ( // When a new object is created + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationInsert = "insert" // When an object is modified + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationEdit = "edit" // When an object is deleted + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationDelete = "delete" ) @@ -494,6 +591,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTime = "faas.time" // A string containing the schedule period as Cron Expression. // @@ -501,6 +599,7 @@ const ( // Required: No // Stability: stable // Examples: '0/5 * * * ? *' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSCron = "faas.cron" ) @@ -512,6 +611,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSColdstart = "faas.coldstart" ) @@ -525,6 +625,7 @@ const ( // Examples: 'my-function' // Note: SHOULD be equal to the faas.name resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedName = "faas.invoked_name" // The cloud provider of the invoked function. // @@ -533,6 +634,7 @@ const ( // Stability: stable // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProvider = "faas.invoked_provider" // The cloud region of the invoked function. // @@ -547,17 +649,22 @@ const ( // Examples: 'eu-central-1' // Note: SHOULD be equal to the cloud.region resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedRegion = "faas.invoked_region" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderGCP = "gcp" ) @@ -568,6 +675,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransport = "net.transport" // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) // @@ -575,6 +683,7 @@ const ( // Required: No // Stability: stable // Examples: '127.0.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerIP = "net.peer.ip" // Remote port number. // @@ -582,6 +691,7 @@ const ( // Required: No // Stability: stable // Examples: 80, 8080, 443 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerPort = "net.peer.port" // Remote hostname or similar, see note below. // @@ -589,6 +699,7 @@ const ( // Required: No // Stability: stable // Examples: 'example.com' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerName = "net.peer.name" // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. // @@ -596,6 +707,7 @@ const ( // Required: No // Stability: stable // Examples: '192.168.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostIP = "net.host.ip" // Like net.peer.port but for the host port. // @@ -603,6 +715,7 @@ const ( // Required: No // Stability: stable // Examples: 35555 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostPort = "net.host.port" // Local hostname or similar, see note below. // @@ -610,6 +723,7 @@ const ( // Required: No // Stability: stable // Examples: 'localhost' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostName = "net.host.name" // The internet connection type currently being used by the host. // @@ -617,6 +731,7 @@ const ( // Required: No // Stability: stable // Examples: 'wifi' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionType = "net.host.connection.type" // 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 @@ -626,6 +741,7 @@ const ( // Required: No // Stability: stable // Examples: 'LTE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtype = "net.host.connection.subtype" // The name of the mobile carrier. // @@ -633,6 +749,7 @@ const ( // Required: No // Stability: stable // Examples: 'sprint' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierName = "net.host.carrier.name" // The mobile carrier country code. // @@ -640,6 +757,7 @@ const ( // Required: No // Stability: stable // Examples: '310' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMcc = "net.host.carrier.mcc" // The mobile carrier network code. // @@ -647,6 +765,7 @@ const ( // Required: No // Stability: stable // Examples: '001' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMnc = "net.host.carrier.mnc" // The ISO 3166-1 alpha-2 2-character country code associated with the mobile // carrier network. @@ -655,81 +774,115 @@ const ( // Required: No // Stability: stable // Examples: 'DE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierIcc = "net.host.carrier.icc" ) const ( // ip_tcp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportTCP = "ip_tcp" // ip_udp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUDP = "ip_udp" // Another IP-based protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportIP = "ip" // Unix Domain socket. See below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUnix = "unix" // Named or anonymous pipe. See note below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportPipe = "pipe" // In-process communication + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportInProc = "inproc" // Something else (non IP-based) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportOther = "other" ) const ( // wifi + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWifi = "wifi" // wired + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWired = "wired" // cell + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeCell = "cell" // unavailable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnavailable = "unavailable" // unknown + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnknown = "unknown" ) const ( // GPRS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGprs = "gprs" // EDGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEdge = "edge" // UMTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeUmts = "umts" // CDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma = "cdma" // EVDO Rel. 0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" // EVDO Rev. A + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" // CDMA2000 1XRTT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" // HSDPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" // HSUPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsupa = "hsupa" // HSPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspa = "hspa" // IDEN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIden = "iden" // EVDO Rev. B + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" // LTE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLte = "lte" // EHRPD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" // HSPAP + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspap = "hspap" // GSM + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGsm = "gsm" // TD-SCDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" // IWLAN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIwlan = "iwlan" // 5G NR (New Radio) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNr = "nr" // 5G NRNSA (New Radio Non-Standalone) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" // LTE CA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLteCa = "lte_ca" ) @@ -742,6 +895,7 @@ const ( // Required: No // Stability: stable // Examples: 'AuthTokenCache' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributePeerService = "peer.service" ) @@ -754,6 +908,7 @@ const ( // Required: No // Stability: stable // Examples: 'username' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserID = "enduser.id" // Actual/assumed role the client is making the request under extracted from token // or application security context. @@ -762,6 +917,7 @@ const ( // Required: No // Stability: stable // Examples: 'admin' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserRole = "enduser.role" // Scopes or granted authorities the client currently possesses extracted from // token or application security context. The value would come from the scope @@ -772,6 +928,7 @@ const ( // Required: No // Stability: stable // Examples: 'read:message, write:files' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserScope = "enduser.scope" ) @@ -783,6 +940,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadID = "thread.id" // Current thread name. // @@ -790,6 +948,7 @@ const ( // Required: No // Stability: stable // Examples: 'main' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadName = "thread.name" ) @@ -802,6 +961,7 @@ const ( // Required: No // Stability: stable // Examples: 'serveRequest' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFunction = "code.function" // The "namespace" within which code.function is defined. Usually the // qualified class or module name, such that code.namespace + some separator + @@ -811,6 +971,7 @@ const ( // Required: No // Stability: stable // Examples: 'com.example.MyHTTPService' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeNamespace = "code.namespace" // The source code file name that identifies the code unit as uniquely as possible // (preferably an absolute file path). @@ -819,6 +980,7 @@ const ( // Required: No // Stability: stable // Examples: '/usr/local/MyApplication/content_root/app/index.php' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFilepath = "code.filepath" // The line number in code.filepath best representing the operation. It SHOULD // point within the code unit named in code.function. @@ -827,6 +989,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeLineNumber = "code.lineno" ) @@ -838,6 +1001,7 @@ const ( // Required: Always // Stability: stable // Examples: 'GET', 'POST', 'HEAD' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPMethod = "http.method" // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. // Usually the fragment is not transmitted over HTTP, but if it is known, it @@ -850,6 +1014,7 @@ const ( // Note: http.url MUST NOT contain credentials passed via URL in form of // https://username:password@www.example.com/. In such case the attribute's value // should be https://www.example.com/. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPURL = "http.url" // The full request target as passed in a HTTP request line or equivalent. // @@ -857,6 +1022,7 @@ const ( // Required: No // Stability: stable // Examples: '/path/12314/?q=ddds#123' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPTarget = "http.target" // The value of the HTTP host header. An empty Host header should also be // reported, see note. @@ -869,6 +1035,7 @@ const ( // empty string. Note that this is a valid situation that is expected in certain // cases, according the aforementioned section of RFC 7230. When the header is not // set the attribute MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPHost = "http.host" // The URI scheme identifying the used protocol. // @@ -876,6 +1043,7 @@ const ( // Required: No // Stability: stable // Examples: 'http', 'https' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPScheme = "http.scheme" // HTTP response status code. // @@ -883,6 +1051,7 @@ const ( // Required: If and only if one was received/sent. // Stability: stable // Examples: 200 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPStatusCode = "http.status_code" // Kind of HTTP protocol used. // @@ -891,6 +1060,7 @@ const ( // Stability: stable // Note: If net.transport is not specified, it can be assumed to be IP.TCP except // if http.flavor is QUIC, in which case IP.UDP is assumed. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavor = "http.flavor" // Value of the HTTP User-Agent header sent by the client. // @@ -898,6 +1068,7 @@ const ( // Required: No // Stability: stable // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPUserAgent = "http.user_agent" // 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 @@ -908,6 +1079,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLength = "http.request_content_length" // The size of the uncompressed request payload body after transport decoding. Not // set if transport encoding not used. @@ -916,6 +1088,7 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" // 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 @@ -926,6 +1099,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLength = "http.response_content_length" // The size of the uncompressed response payload body after transport decoding. // Not set if transport encoding not used. @@ -934,19 +1108,25 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" ) const ( // HTTP 1.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP10 = "1.0" // HTTP 1.1 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP11 = "1.1" // HTTP 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP20 = "2.0" // SPDY protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorSPDY = "SPDY" // QUIC protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorQUIC = "QUIC" ) @@ -964,6 +1144,7 @@ const ( // have to be assembled in a cumbersome and sometimes lossy process from other // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus // preferred to supply the raw data that is available. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPServerName = "http.server_name" // The matched route (path template). // @@ -971,6 +1152,7 @@ const ( // Required: No // Stability: stable // Examples: '/users/:userID?' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRoute = "http.route" // The IP address of the original client behind all proxies, if known (e.g. from // X-Forwarded-For). @@ -989,6 +1171,7 @@ const ( // http.client_ip when it's the same as net.peer.ip means that // one is at least somewhat confident that the address is not that of // the closest proxy. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPClientIP = "http.client_ip" ) @@ -1000,6 +1183,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'Cats' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" // The JSON-serialized value of each item in the ConsumedCapacity response field. // @@ -1013,6 +1197,7 @@ const ( // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": // "string", "WriteCapacityUnits": number }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" // The JSON-serialized value of the ItemCollectionMetrics response field. // @@ -1023,6 +1208,7 @@ const ( // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. // @@ -1030,6 +1216,7 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. // @@ -1037,12 +1224,14 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" // The value of the ConsistentRead request parameter. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" // The value of the ProjectionExpression request parameter. // @@ -1051,6 +1240,7 @@ const ( // Stability: stable // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, // ProductReviews' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" // The value of the Limit request parameter. // @@ -1058,6 +1248,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" // The value of the AttributesToGet request parameter. // @@ -1065,6 +1256,7 @@ const ( // Required: No // Stability: stable // Examples: 'lives', 'id' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" // The value of the IndexName request parameter. // @@ -1072,6 +1264,7 @@ const ( // Required: No // Stability: stable // Examples: 'name_to_group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" // The value of the Select request parameter. // @@ -1079,6 +1272,7 @@ const ( // Required: No // Stability: stable // Examples: 'ALL_ATTRIBUTES', 'COUNT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSelect = "aws.dynamodb.select" ) @@ -1094,6 +1288,7 @@ const ( // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": // number, "WriteCapacityUnits": number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" // The JSON-serialized value of each item of the LocalSecondaryIndexes request // field. @@ -1105,6 +1300,7 @@ const ( // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" ) @@ -1116,6 +1312,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'CatsTable' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" // The the number of items in the TableNames response parameter. // @@ -1123,6 +1320,7 @@ const ( // Required: No // Stability: stable // Examples: 20 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" ) @@ -1133,6 +1331,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" ) @@ -1144,6 +1343,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" // The value of the TotalSegments request parameter. // @@ -1151,6 +1351,7 @@ const ( // Required: No // Stability: stable // Examples: 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" // The value of the Count response parameter. // @@ -1158,6 +1359,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBCount = "aws.dynamodb.count" // The value of the ScannedCount response parameter. // @@ -1165,6 +1367,7 @@ const ( // Required: No // Stability: stable // Examples: 50 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" ) @@ -1177,6 +1380,7 @@ const ( // Required: No // Stability: stable // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates // request field. @@ -1189,6 +1393,7 @@ const ( // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": // number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" ) @@ -1200,6 +1405,7 @@ const ( // Required: Always // Stability: stable // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingSystem = "messaging.system" // The message destination name. This might be equal to the span name but is // required nevertheless. @@ -1208,6 +1414,7 @@ const ( // Required: Always // Stability: stable // Examples: 'MyQueue', 'MyTopic' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestination = "messaging.destination" // The kind of message destination // @@ -1215,12 +1422,14 @@ const ( // Required: Required only if the message destination is either a `queue` or // `topic`. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKind = "messaging.destination_kind" // A boolean that is true if the message destination is temporary. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingTempDestination = "messaging.temp_destination" // The name of the transport protocol. // @@ -1228,6 +1437,7 @@ const ( // Required: No // Stability: stable // Examples: 'AMQP', 'MQTT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocol = "messaging.protocol" // The version of the transport protocol. // @@ -1235,6 +1445,7 @@ const ( // Required: No // Stability: stable // Examples: '0.9.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocolVersion = "messaging.protocol_version" // Connection string. // @@ -1243,6 +1454,7 @@ const ( // Stability: stable // Examples: 'tibjmsnaming://localhost:7222', // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingURL = "messaging.url" // A value used by the messaging system as an identifier for the message, // represented as a string. @@ -1251,6 +1463,7 @@ const ( // Required: No // Stability: stable // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessageID = "messaging.message_id" // The conversation ID identifying the conversation to which the message belongs, // represented as a string. Sometimes called "Correlation ID". @@ -1259,6 +1472,7 @@ const ( // Required: No // Stability: stable // Examples: 'MyConversationID' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConversationID = "messaging.conversation_id" // The (uncompressed) size of the message payload in bytes. Also use this // attribute if it is unknown whether the compressed or uncompressed payload size @@ -1268,6 +1482,7 @@ const ( // Required: No // Stability: stable // Examples: 2738 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" // The compressed size of the message payload in bytes. // @@ -1275,13 +1490,16 @@ const ( // Required: No // Stability: stable // Examples: 2048 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" ) const ( // A message sent to a queue + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindQueue = "queue" // A message sent to a topic + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindTopic = "topic" ) @@ -1295,6 +1513,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperation = "messaging.operation" // The identifier for the consumer receiving a message. For Kafka, set it to // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are @@ -1305,13 +1524,16 @@ const ( // Required: No // Stability: stable // Examples: 'mygroup - client-6' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConsumerID = "messaging.consumer_id" ) const ( // receive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationReceive = "receive" // process + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationProcess = "process" ) @@ -1323,6 +1545,7 @@ const ( // Required: Unless it is empty. // Stability: stable // Examples: 'myKey' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" ) @@ -1339,6 +1562,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" // Name of the Kafka Consumer Group that is handling the message. Only applies to // consumers, not producers. @@ -1347,6 +1571,7 @@ const ( // Required: No // Stability: stable // Examples: 'my-group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" // Client ID for the Consumer or Producer that is handling the message. // @@ -1354,6 +1579,7 @@ const ( // Required: No // Stability: stable // Examples: 'client-5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaClientID = "messaging.kafka.client_id" // Partition the message is sent to. // @@ -1361,12 +1587,14 @@ const ( // Required: No // Stability: stable // Examples: 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaPartition = "messaging.kafka.partition" // A boolean that is true if the message is a tombstone. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" ) @@ -1378,6 +1606,7 @@ const ( // Required: Always // Stability: stable // Examples: 'grpc', 'java_rmi', 'wcf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCSystem = "rpc.system" // The full (logical) name of the service being called, including its package // name, if applicable. @@ -1392,6 +1621,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCService = "rpc.service" // The name of the (logical) method being called, must be equal to the $method // part in the span name. @@ -1405,6 +1635,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCMethod = "rpc.method" ) @@ -1415,43 +1646,61 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" ) const ( // OK + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOk = "0" // CANCELLED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeCancelled = "1" // UNKNOWN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnknown = "2" // INVALID_ARGUMENT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInvalidArgument = "3" // DEADLINE_EXCEEDED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" // NOT_FOUND + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeNotFound = "5" // ALREADY_EXISTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAlreadyExists = "6" // PERMISSION_DENIED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodePermissionDenied = "7" // RESOURCE_EXHAUSTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeResourceExhausted = "8" // FAILED_PRECONDITION + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeFailedPrecondition = "9" // ABORTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAborted = "10" // OUT_OF_RANGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOutOfRange = "11" // UNIMPLEMENTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnimplemented = "12" // INTERNAL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInternal = "13" // UNAVAILABLE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnavailable = "14" // DATA_LOSS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDataLoss = "15" // UNAUTHENTICATED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnauthenticated = "16" ) @@ -1464,6 +1713,7 @@ const ( // Required: If missing, it is assumed to be "1.0". // Stability: stable // Examples: '2.0', '1.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" // 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 @@ -1474,6 +1724,7 @@ const ( // Required: No // Stability: stable // Examples: '10', 'request-7', '' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" // error.code property of response if it is an error response. // @@ -1481,6 +1732,7 @@ const ( // Required: If missing, response is assumed to be successful. // Stability: stable // Examples: -32700, 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" // error.message property of response if it is an error response. // @@ -1488,6 +1740,7 @@ const ( // Required: No // Stability: stable // Examples: 'Parse error', 'User already exists' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" ) @@ -1498,6 +1751,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageType = "message.type" // MUST be calculated as two different counters starting from 1 one for sent // messages and one for received message. @@ -1507,28 +1761,34 @@ const ( // Stability: stable // Note: This way we guarantee that the values will be consistent between // different implementations. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageID = "message.id" // Compressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageCompressedSize = "message.compressed_size" // Uncompressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageUncompressedSize = "message.uncompressed_size" ) const ( // sent + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeSent = "SENT" // received + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeReceived = "RECEIVED" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetTraceSemanticConventionAttributeNames() []string { return []string{ AttributeAWSLambdaInvokedARN, diff --git a/model/semconv/v1.7.0/nonstandard.go b/model/semconv/v1.7.0/nonstandard.go index c0dc3e736b78..be1c8ed1b9c3 100644 --- a/model/semconv/v1.7.0/nonstandard.go +++ b/model/semconv/v1.7.0/nonstandard.go @@ -15,8 +15,12 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.7.0" const ( - OtelLibraryName = "otel.library.name" - OtelLibraryVersion = "otel.library.version" - OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryVersion = "otel.library.version" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. OtelStatusDescription = "otel.status_description" ) diff --git a/model/semconv/v1.7.0/schema.go b/model/semconv/v1.7.0/schema.go index c3a9649238f1..5d7335ebb116 100644 --- a/model/semconv/v1.7.0/schema.go +++ b/model/semconv/v1.7.0/schema.go @@ -17,4 +17,5 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.7.0" // SchemaURL is the schema URL that matches the version of the semantic conventions // that this package defines. Conventions packages starting from v1.4.0 must declare // non-empty schema URL in the form https://opentelemetry.io/schemas/ +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. const SchemaURL = "https://opentelemetry.io/schemas/1.7.0" diff --git a/model/semconv/v1.8.0/generated_resource.go b/model/semconv/v1.8.0/generated_resource.go index 64d783156cab..3ba59b89d8a8 100644 --- a/model/semconv/v1.8.0/generated_resource.go +++ b/model/semconv/v1.8.0/generated_resource.go @@ -23,6 +23,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProvider = "cloud.provider" // The cloud account ID the resource is assigned to. // @@ -30,6 +31,7 @@ const ( // Required: No // Stability: stable // Examples: '111111111111', 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAccountID = "cloud.account.id" // The geographical region the resource is running. // @@ -40,6 +42,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudRegion = "cloud.region" // Cloud regions often have multiple, isolated locations known as zones to // increase availability. Availability zone represents the zone where the resource @@ -51,6 +54,7 @@ const ( // Examples: 'us-east-1c' // Note: Availability zones are called "zones" on Alibaba Cloud and // Google Cloud. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAvailabilityZone = "cloud.availability_zone" // The cloud platform in use. // @@ -59,64 +63,91 @@ const ( // Stability: stable // Note: The prefix of the service SHOULD match the one specified in // cloud.provider. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatform = "cloud.platform" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderGCP = "gcp" // Tencent Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderTencentCloud = "tencent_cloud" ) const ( // Alibaba Cloud Elastic Compute Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" // Alibaba Cloud Function Compute + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" // AWS Elastic Compute Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEC2 = "aws_ec2" // AWS Elastic Container Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSECS = "aws_ecs" // AWS Elastic Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEKS = "aws_eks" // AWS Lambda + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSLambda = "aws_lambda" // AWS Elastic Beanstalk + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" // AWS App Runner + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSAppRunner = "aws_app_runner" // Azure Virtual Machines + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureVM = "azure_vm" // Azure Container Instances + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" // Azure Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAKS = "azure_aks" // Azure Functions + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureFunctions = "azure_functions" // Azure App Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAppService = "azure_app_service" // Google Cloud Compute Engine (GCE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" // Google Cloud Run + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" // Google Cloud Kubernetes Engine (GKE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" // Google Cloud Functions (GCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" // Google Cloud App Engine (GAE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" // Tencent Cloud Cloud Virtual Machine (CVM) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" // Tencent Cloud Elastic Kubernetes Service (EKS) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" // Tencent Cloud Serverless Cloud Function (SCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" ) @@ -129,6 +160,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSContainerARN = "aws.ecs.container.arn" // The ARN of an ECS cluster. // @@ -136,12 +168,14 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" // The launch type for an ECS task. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtype = "aws.ecs.launchtype" // The ARN of an ECS task definition. // @@ -150,6 +184,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskARN = "aws.ecs.task.arn" // The task definition family this task definition is a member of. // @@ -157,6 +192,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-family' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskFamily = "aws.ecs.task.family" // The revision for this task definition. // @@ -164,13 +200,16 @@ const ( // Required: No // Stability: stable // Examples: '8', '26' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskRevision = "aws.ecs.task.revision" ) const ( // ec2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeEC2 = "ec2" // fargate + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeFargate = "fargate" ) @@ -182,6 +221,7 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" ) @@ -196,6 +236,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupNames = "aws.log.group.names" // The Amazon Resource Name(s) (ARN) of the AWS log group(s). // @@ -204,6 +245,7 @@ const ( // Stability: stable // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' // Note: See the log group ARN format documentation. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupARNs = "aws.log.group.arns" // The name(s) of the AWS log stream(s) an application is writing to. // @@ -211,6 +253,7 @@ const ( // Required: No // Stability: stable // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamNames = "aws.log.stream.names" // The ARN(s) of the AWS log stream(s). // @@ -222,6 +265,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamARNs = "aws.log.stream.arns" ) @@ -233,6 +277,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerName = "container.name" // Container ID. Usually a UUID, as for example used to identify Docker // containers. The UUID might be abbreviated. @@ -241,6 +286,7 @@ const ( // Required: No // Stability: stable // Examples: 'a3bf90e006b2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerID = "container.id" // The container runtime managing this container. // @@ -248,6 +294,7 @@ const ( // Required: No // Stability: stable // Examples: 'docker', 'containerd', 'rkt' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerRuntime = "container.runtime" // Name of the image the container was built on. // @@ -255,6 +302,7 @@ const ( // Required: No // Stability: stable // Examples: 'gcr.io/opentelemetry/operator' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageName = "container.image.name" // Container image tag. // @@ -262,6 +310,7 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageTag = "container.image.tag" ) @@ -273,6 +322,7 @@ const ( // Required: No // Stability: stable // Examples: 'staging', 'production' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeploymentEnvironment = "deployment.environment" ) @@ -293,6 +343,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceID = "device.id" // The model identifier for the device // @@ -303,6 +354,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelIdentifier = "device.model.identifier" // The marketing name for the device model // @@ -312,6 +364,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelName = "device.model.name" ) @@ -326,6 +379,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSName = "faas.name" // The unique ID of the single function that this runtime instance executes. // @@ -349,6 +403,7 @@ const ( // part of the ARN is not available without calling another AWS API // which may be deemed too slow for a short-running lambda function. // As an alternative, consider setting faas.id as a span attribute instead. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSID = "faas.id" // The immutable version of the function being executed. // @@ -365,6 +420,7 @@ const ( // K_REVISION environment variable. //
  • Azure Functions: Not applicable. Do not set this attribute.
  • // + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSVersion = "faas.version" // The execution environment ID as a string, that will be potentially reused for // other invocations to the same function/function version. @@ -376,6 +432,7 @@ const ( // Note:
      //
    • AWS Lambda: Use the (full) log stream name.
    • //
    + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInstance = "faas.instance" // The amount of memory available to the serverless function in MiB. // @@ -387,6 +444,7 @@ const ( // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this // information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSMaxMemory = "faas.max_memory" ) @@ -399,6 +457,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostID = "host.id" // 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 @@ -408,6 +467,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostName = "host.name" // Type of host. For Cloud, this must be the machine type. // @@ -415,12 +475,14 @@ const ( // Required: No // Stability: stable // Examples: 'n1-standard-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostType = "host.type" // The CPU architecture the host system is running on. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArch = "host.arch" // Name of the VM image or OS install the host was instantiated from. // @@ -428,6 +490,7 @@ const ( // Required: No // Stability: stable // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageName = "host.image.name" // VM image ID. For Cloud, this value is from the provider. // @@ -435,6 +498,7 @@ const ( // Required: No // Stability: stable // Examples: 'ami-07b06b442921831e5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageID = "host.image.id" // The version string of the VM image as defined in Version Attributes. // @@ -442,25 +506,34 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageVersion = "host.image.version" ) const ( // AMD64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchAMD64 = "amd64" // ARM32 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM32 = "arm32" // ARM64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM64 = "arm64" // Itanium + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchIA64 = "ia64" // 32-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC32 = "ppc32" // 64-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC64 = "ppc64" // IBM z/Architecture + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchS390x = "s390x" // 32-bit x86 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchX86 = "x86" ) @@ -472,6 +545,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SClusterName = "k8s.cluster.name" ) @@ -483,6 +557,7 @@ const ( // Required: No // Stability: stable // Examples: 'node-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeName = "k8s.node.name" // The UID of the Node. // @@ -490,6 +565,7 @@ const ( // Required: No // Stability: stable // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeUID = "k8s.node.uid" ) @@ -501,6 +577,7 @@ const ( // Required: No // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNamespaceName = "k8s.namespace.name" ) @@ -512,6 +589,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodUID = "k8s.pod.uid" // The name of the Pod. // @@ -519,6 +597,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-pod-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodName = "k8s.pod.name" ) @@ -531,6 +610,7 @@ const ( // Required: No // Stability: stable // Examples: 'redis' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerName = "k8s.container.name" // Number of times the container was restarted. This attribute can be used to // identify a particular container (running or stopped) within a container spec. @@ -539,6 +619,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerRestartCount = "k8s.container.restart_count" ) @@ -550,6 +631,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetUID = "k8s.replicaset.uid" // The name of the ReplicaSet. // @@ -557,6 +639,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetName = "k8s.replicaset.name" ) @@ -568,6 +651,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentUID = "k8s.deployment.uid" // The name of the Deployment. // @@ -575,6 +659,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentName = "k8s.deployment.name" ) @@ -586,6 +671,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetUID = "k8s.statefulset.uid" // The name of the StatefulSet. // @@ -593,6 +679,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetName = "k8s.statefulset.name" ) @@ -604,6 +691,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetUID = "k8s.daemonset.uid" // The name of the DaemonSet. // @@ -611,6 +699,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetName = "k8s.daemonset.name" ) @@ -622,6 +711,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobUID = "k8s.job.uid" // The name of the Job. // @@ -629,6 +719,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobName = "k8s.job.name" ) @@ -640,6 +731,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobUID = "k8s.cronjob.uid" // The name of the CronJob. // @@ -647,6 +739,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobName = "k8s.cronjob.name" ) @@ -657,6 +750,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSType = "os.type" // Human readable (not intended to be parsed) OS version information, like e.g. // reported by ver or lsb_release -a commands. @@ -665,6 +759,7 @@ const ( // Required: No // Stability: stable // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSDescription = "os.description" // Human readable operating system name. // @@ -672,6 +767,7 @@ const ( // Required: No // Stability: stable // Examples: 'iOS', 'Android', 'Ubuntu' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSName = "os.name" // The version string of the operating system as defined in Version Attributes. // @@ -679,31 +775,43 @@ const ( // Required: No // Stability: stable // Examples: '14.2.1', '18.04.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSVersion = "os.version" ) const ( // Microsoft Windows + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeWindows = "windows" // Linux + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeLinux = "linux" // Apple Darwin + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDarwin = "darwin" // FreeBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeFreeBSD = "freebsd" // NetBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeNetBSD = "netbsd" // OpenBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeOpenBSD = "openbsd" // DragonFly BSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDragonflyBSD = "dragonflybsd" // HP-UX (Hewlett Packard Unix) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeHPUX = "hpux" // AIX (Advanced Interactive eXecutive) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeAIX = "aix" // Oracle Solaris + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeSolaris = "solaris" // IBM z/OS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeZOS = "z_os" ) @@ -715,6 +823,7 @@ const ( // Required: No // Stability: stable // Examples: 1234 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessPID = "process.pid" // 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 @@ -724,6 +833,7 @@ const ( // Required: See below // Stability: stable // Examples: 'otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutableName = "process.executable.name" // 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 @@ -733,6 +843,7 @@ const ( // Required: See below // Stability: stable // Examples: '/usr/bin/cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutablePath = "process.executable.path" // 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 @@ -742,6 +853,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommand = "process.command" // 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 @@ -752,6 +864,7 @@ const ( // Required: See below // Stability: stable // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandLine = "process.command_line" // All the command arguments (including the command/executable itself) as received // by the process. On Linux-based systems (and some other Unixoid systems @@ -763,6 +876,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otecol', '--config=config.yaml' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandArgs = "process.command_args" // The username of the user that owns the process. // @@ -770,6 +884,7 @@ const ( // Required: No // Stability: stable // Examples: 'root' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessOwner = "process.owner" ) @@ -782,6 +897,7 @@ const ( // Required: No // Stability: stable // Examples: 'OpenJDK Runtime Environment' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeName = "process.runtime.name" // The version of the runtime of this process, as returned by the runtime without // modification. @@ -790,6 +906,7 @@ const ( // Required: No // Stability: stable // Examples: '14.0.2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeVersion = "process.runtime.version" // An additional description about the runtime of the process, for example a // specific vendor customization of the runtime environment. @@ -798,6 +915,7 @@ const ( // Required: No // Stability: stable // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeDescription = "process.runtime.description" ) @@ -814,6 +932,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceName = "service.name" // A namespace for service.name. // @@ -828,6 +947,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceNamespace = "service.namespace" // The string ID of the service instance. // @@ -847,6 +967,7 @@ const ( // value of this attribute it is recommended to generate a random Version 1 or // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use // Version 5, see RFC 4122 for more recommendations). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceInstanceID = "service.instance.id" // The version string of the service API or implementation. // @@ -854,6 +975,7 @@ const ( // Required: No // Stability: stable // Examples: '2.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceVersion = "service.version" ) @@ -865,12 +987,14 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKName = "telemetry.sdk.name" // The language of the telemetry SDK. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguage = "telemetry.sdk.language" // The version string of the telemetry SDK. // @@ -878,6 +1002,7 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKVersion = "telemetry.sdk.version" // The version string of the auto instrumentation agent, if used. // @@ -885,31 +1010,43 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetryAutoVersion = "telemetry.auto.version" ) const ( // cpp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageCPP = "cpp" // dotnet + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageDotnet = "dotnet" // erlang + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageErlang = "erlang" // go + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageGo = "go" // java + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageJava = "java" // nodejs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageNodejs = "nodejs" // php + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePHP = "php" // python + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePython = "python" // ruby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageRuby = "ruby" // webjs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageWebjs = "webjs" // swift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageSwift = "swift" ) @@ -921,6 +1058,7 @@ const ( // Required: Always // Stability: stable // Examples: 'WildFly' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineName = "webengine.name" // The version of the web engine. // @@ -928,6 +1066,7 @@ const ( // Required: No // Stability: stable // Examples: '21.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineVersion = "webengine.version" // Additional description of the web engine (e.g. detailed version and edition // information). @@ -936,9 +1075,11 @@ const ( // Required: No // Stability: stable // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineDescription = "webengine.description" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetResourceSemanticConventionAttributeNames() []string { return []string{ AttributeCloudProvider, diff --git a/model/semconv/v1.8.0/generated_trace.go b/model/semconv/v1.8.0/generated_trace.go index 747741b88387..6c6293e0cf51 100644 --- a/model/semconv/v1.8.0/generated_trace.go +++ b/model/semconv/v1.8.0/generated_trace.go @@ -27,6 +27,7 @@ const ( // Stability: stable // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' // Note: This may be different from faas.id if an alias is involved. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" ) @@ -38,6 +39,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystem = "db.system" // The connection string used to connect to the database. It is recommended to // remove embedded credentials. @@ -46,6 +48,7 @@ const ( // Required: No // Stability: stable // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBConnectionString = "db.connection_string" // Username for accessing the database. // @@ -53,6 +56,7 @@ const ( // Required: No // Stability: stable // Examples: 'readonly_user', 'reporting_user' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBUser = "db.user" // The fully-qualified class name of the Java Database Connectivity (JDBC) driver // used to connect. @@ -62,6 +66,7 @@ const ( // Stability: stable // Examples: 'org.postgresql.Driver', // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" // This attribute is used to report the name of the database being accessed. For // commands that switch the database, this should be set to the target database @@ -75,6 +80,7 @@ const ( // "schema name". In case there are multiple layers that could be // considered for database name (e.g. Oracle instance name and schema name), the // database name to be used is the more specific layer (e.g. Oracle schema name). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBName = "db.name" // The database statement being executed. // @@ -84,6 +90,7 @@ const ( // Stability: stable // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' // Note: The value may be sanitized to exclude sensitive information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBStatement = "db.statement" // The name of the operation being executed, e.g. the MongoDB command name such as // findAndModify, or the SQL keyword. @@ -97,103 +104,151 @@ const ( // set if the operation name is provided by the library being instrumented. If the // SQL statement has an ambiguous operation, or performs more than one operation, // this value may be omitted. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBOperation = "db.operation" ) const ( // Some other SQL database. Fallback only. See notes + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOtherSQL = "other_sql" // Microsoft SQL Server + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMSSQL = "mssql" // MySQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMySQL = "mysql" // Oracle Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOracle = "oracle" // IBM DB2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDB2 = "db2" // PostgreSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPostgreSQL = "postgresql" // Amazon Redshift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedshift = "redshift" // Apache Hive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHive = "hive" // Cloudscape + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCloudscape = "cloudscape" // HyperSQL DataBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHSQLDB = "hsqldb" // Progress Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemProgress = "progress" // SAP MaxDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMaxDB = "maxdb" // SAP HANA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHanaDB = "hanadb" // Ingres + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemIngres = "ingres" // FirstSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirstSQL = "firstsql" // EnterpriseDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemEDB = "edb" // InterSystems Caché + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCache = "cache" // Adabas (Adaptable Database System) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemAdabas = "adabas" // Firebird + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirebird = "firebird" // Apache Derby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDerby = "derby" // FileMaker + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFilemaker = "filemaker" // Informix + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInformix = "informix" // InstantDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInstantDB = "instantdb" // InterBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInterbase = "interbase" // MariaDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMariaDB = "mariadb" // Netezza + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNetezza = "netezza" // Pervasive PSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPervasive = "pervasive" // PointBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPointbase = "pointbase" // SQLite + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSqlite = "sqlite" // Sybase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSybase = "sybase" // Teradata + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemTeradata = "teradata" // Vertica + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemVertica = "vertica" // H2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemH2 = "h2" // ColdFusion IMQ + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemColdfusion = "coldfusion" // Apache Cassandra + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCassandra = "cassandra" // Apache HBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHBase = "hbase" // MongoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMongoDB = "mongodb" // Redis + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedis = "redis" // Couchbase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchbase = "couchbase" // CouchDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchDB = "couchdb" // Microsoft Azure Cosmos DB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCosmosDB = "cosmosdb" // Amazon DynamoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDynamoDB = "dynamodb" // Neo4j + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNeo4j = "neo4j" // Apache Geode + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemGeode = "geode" // Elasticsearch + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemElasticsearch = "elasticsearch" // Memcached + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMemcached = "memcached" // CockroachDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCockroachdb = "cockroachdb" ) @@ -208,6 +263,7 @@ const ( // Examples: 'MSSQLSERVER' // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required // (but still recommended if non-standard). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMSSQLInstanceName = "db.mssql.instance_name" ) @@ -219,12 +275,14 @@ const ( // Required: No // Stability: stable // Examples: 5000 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraPageSize = "db.cassandra.page_size" // The consistency level of the query. Based on consistency values from CQL. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" // The name of the primary table that the operation is acting upon, including the // keyspace name (if applicable). @@ -238,12 +296,14 @@ const ( // db.statement just to get this property, but it should be set if it is provided // by the library being instrumented. If the operation is acting upon an anonymous // table, or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraTable = "db.cassandra.table" // Whether or not the query is idempotent. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraIdempotence = "db.cassandra.idempotence" // The number of times a query was speculatively executed. Not set or 0 if the // query was not executed speculatively. @@ -252,6 +312,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" // The ID of the coordinating node for a query. // @@ -259,6 +320,7 @@ const ( // Required: No // Stability: stable // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" // The data center of the coordinating node for a query. // @@ -266,31 +328,43 @@ const ( // Required: No // Stability: stable // Examples: 'us-west-2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" ) const ( // all + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAll = "all" // each_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" // quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelQuorum = "quorum" // local_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" // one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelOne = "one" // two + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelTwo = "two" // three + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelThree = "three" // local_one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalOne = "local_one" // any + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAny = "any" // serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelSerial = "serial" // local_serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" ) @@ -303,6 +377,7 @@ const ( // Required: Required, if other than the default database (`0`). // Stability: stable // Examples: 0, 1, 15 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBRedisDBIndex = "db.redis.database_index" ) @@ -314,6 +389,7 @@ const ( // Required: Always // Stability: stable // Examples: 'customers', 'products' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMongoDBCollection = "db.mongodb.collection" ) @@ -330,6 +406,7 @@ const ( // just to get this property, but it should be set if it is provided by the // library being instrumented. If the operation is acting upon an anonymous table, // or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSQLTable = "db.sql.table" ) @@ -343,6 +420,7 @@ const ( // Required: No // Stability: stable // Examples: 'java.net.ConnectException', 'OSError' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionType = "exception.type" // The exception message. // @@ -350,6 +428,7 @@ const ( // Required: No // Stability: stable // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionMessage = "exception.message" // A stacktrace as a string in the natural representation for the language // runtime. The representation is to be determined and documented by each language @@ -363,6 +442,7 @@ const ( // '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)' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionStacktrace = "exception.stacktrace" // 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. @@ -386,6 +466,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionEscaped = "exception.escaped" ) @@ -404,6 +485,7 @@ const ( // trigger that corresponding incoming would have (i.e., this has // nothing to do with the underlying transport used to make the API // call to invoke the lambda, which is often HTTP). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTrigger = "faas.trigger" // The execution ID of the current function execution. // @@ -411,19 +493,25 @@ const ( // Required: No // Stability: stable // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSExecution = "faas.execution" ) const ( // A response to some data source operation such as a database or filesystem read/write + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerDatasource = "datasource" // To provide an answer to an inbound HTTP request + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerHTTP = "http" // A function is set to be executed when messages are sent to a messaging system + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerPubsub = "pubsub" // A function is scheduled to be executed regularly + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerTimer = "timer" // If none of the others apply + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerOther = "other" ) @@ -437,12 +525,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myBucketName', 'myDBName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentCollection = "faas.document.collection" // Describes the type of the operation that was performed on the data. // // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperation = "faas.document.operation" // A string containing the time when the data was accessed in the ISO 8601 format // expressed in UTC. @@ -451,6 +541,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentTime = "faas.document.time" // 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. @@ -459,15 +550,19 @@ const ( // Required: No // Stability: stable // Examples: 'myFile.txt', 'myTableName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentName = "faas.document.name" ) const ( // When a new object is created + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationInsert = "insert" // When an object is modified + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationEdit = "edit" // When an object is deleted + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationDelete = "delete" ) @@ -480,6 +575,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTime = "faas.time" // A string containing the schedule period as Cron Expression. // @@ -487,6 +583,7 @@ const ( // Required: No // Stability: stable // Examples: '0/5 * * * ? *' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSCron = "faas.cron" ) @@ -498,6 +595,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSColdstart = "faas.coldstart" ) @@ -511,6 +609,7 @@ const ( // Examples: 'my-function' // Note: SHOULD be equal to the faas.name resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedName = "faas.invoked_name" // The cloud provider of the invoked function. // @@ -519,6 +618,7 @@ const ( // Stability: stable // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProvider = "faas.invoked_provider" // The cloud region of the invoked function. // @@ -533,19 +633,25 @@ const ( // Examples: 'eu-central-1' // Note: SHOULD be equal to the cloud.region resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedRegion = "faas.invoked_region" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderGCP = "gcp" // Tencent Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" ) @@ -556,6 +662,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransport = "net.transport" // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) // @@ -563,6 +670,7 @@ const ( // Required: No // Stability: stable // Examples: '127.0.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerIP = "net.peer.ip" // Remote port number. // @@ -570,6 +678,7 @@ const ( // Required: No // Stability: stable // Examples: 80, 8080, 443 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerPort = "net.peer.port" // Remote hostname or similar, see note below. // @@ -577,6 +686,7 @@ const ( // Required: No // Stability: stable // Examples: 'example.com' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerName = "net.peer.name" // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. // @@ -584,6 +694,7 @@ const ( // Required: No // Stability: stable // Examples: '192.168.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostIP = "net.host.ip" // Like net.peer.port but for the host port. // @@ -591,6 +702,7 @@ const ( // Required: No // Stability: stable // Examples: 35555 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostPort = "net.host.port" // Local hostname or similar, see note below. // @@ -598,6 +710,7 @@ const ( // Required: No // Stability: stable // Examples: 'localhost' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostName = "net.host.name" // The internet connection type currently being used by the host. // @@ -605,6 +718,7 @@ const ( // Required: No // Stability: stable // Examples: 'wifi' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionType = "net.host.connection.type" // 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 @@ -614,6 +728,7 @@ const ( // Required: No // Stability: stable // Examples: 'LTE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtype = "net.host.connection.subtype" // The name of the mobile carrier. // @@ -621,6 +736,7 @@ const ( // Required: No // Stability: stable // Examples: 'sprint' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierName = "net.host.carrier.name" // The mobile carrier country code. // @@ -628,6 +744,7 @@ const ( // Required: No // Stability: stable // Examples: '310' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMcc = "net.host.carrier.mcc" // The mobile carrier network code. // @@ -635,6 +752,7 @@ const ( // Required: No // Stability: stable // Examples: '001' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMnc = "net.host.carrier.mnc" // The ISO 3166-1 alpha-2 2-character country code associated with the mobile // carrier network. @@ -643,81 +761,115 @@ const ( // Required: No // Stability: stable // Examples: 'DE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierIcc = "net.host.carrier.icc" ) const ( // ip_tcp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportTCP = "ip_tcp" // ip_udp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUDP = "ip_udp" // Another IP-based protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportIP = "ip" // Unix Domain socket. See below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUnix = "unix" // Named or anonymous pipe. See note below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportPipe = "pipe" // In-process communication + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportInProc = "inproc" // Something else (non IP-based) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportOther = "other" ) const ( // wifi + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWifi = "wifi" // wired + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWired = "wired" // cell + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeCell = "cell" // unavailable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnavailable = "unavailable" // unknown + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnknown = "unknown" ) const ( // GPRS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGprs = "gprs" // EDGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEdge = "edge" // UMTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeUmts = "umts" // CDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma = "cdma" // EVDO Rel. 0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" // EVDO Rev. A + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" // CDMA2000 1XRTT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" // HSDPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" // HSUPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsupa = "hsupa" // HSPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspa = "hspa" // IDEN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIden = "iden" // EVDO Rev. B + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" // LTE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLte = "lte" // EHRPD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" // HSPAP + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspap = "hspap" // GSM + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGsm = "gsm" // TD-SCDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" // IWLAN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIwlan = "iwlan" // 5G NR (New Radio) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNr = "nr" // 5G NRNSA (New Radio Non-Standalone) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" // LTE CA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLteCa = "lte_ca" ) @@ -730,6 +882,7 @@ const ( // Required: No // Stability: stable // Examples: 'AuthTokenCache' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributePeerService = "peer.service" ) @@ -742,6 +895,7 @@ const ( // Required: No // Stability: stable // Examples: 'username' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserID = "enduser.id" // Actual/assumed role the client is making the request under extracted from token // or application security context. @@ -750,6 +904,7 @@ const ( // Required: No // Stability: stable // Examples: 'admin' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserRole = "enduser.role" // Scopes or granted authorities the client currently possesses extracted from // token or application security context. The value would come from the scope @@ -760,6 +915,7 @@ const ( // Required: No // Stability: stable // Examples: 'read:message, write:files' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserScope = "enduser.scope" ) @@ -771,6 +927,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadID = "thread.id" // Current thread name. // @@ -778,6 +935,7 @@ const ( // Required: No // Stability: stable // Examples: 'main' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadName = "thread.name" ) @@ -790,6 +948,7 @@ const ( // Required: No // Stability: stable // Examples: 'serveRequest' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFunction = "code.function" // The "namespace" within which code.function is defined. Usually the // qualified class or module name, such that code.namespace + some separator + @@ -799,6 +958,7 @@ const ( // Required: No // Stability: stable // Examples: 'com.example.MyHTTPService' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeNamespace = "code.namespace" // The source code file name that identifies the code unit as uniquely as possible // (preferably an absolute file path). @@ -807,6 +967,7 @@ const ( // Required: No // Stability: stable // Examples: '/usr/local/MyApplication/content_root/app/index.php' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFilepath = "code.filepath" // The line number in code.filepath best representing the operation. It SHOULD // point within the code unit named in code.function. @@ -815,6 +976,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeLineNumber = "code.lineno" ) @@ -826,6 +988,7 @@ const ( // Required: Always // Stability: stable // Examples: 'GET', 'POST', 'HEAD' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPMethod = "http.method" // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. // Usually the fragment is not transmitted over HTTP, but if it is known, it @@ -838,6 +1001,7 @@ const ( // Note: http.url MUST NOT contain credentials passed via URL in form of // https://username:password@www.example.com/. In such case the attribute's value // should be https://www.example.com/. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPURL = "http.url" // The full request target as passed in a HTTP request line or equivalent. // @@ -845,6 +1009,7 @@ const ( // Required: No // Stability: stable // Examples: '/path/12314/?q=ddds#123' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPTarget = "http.target" // The value of the HTTP host header. An empty Host header should also be // reported, see note. @@ -857,6 +1022,7 @@ const ( // empty string. Note that this is a valid situation that is expected in certain // cases, according the aforementioned section of RFC 7230. When the header is not // set the attribute MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPHost = "http.host" // The URI scheme identifying the used protocol. // @@ -864,6 +1030,7 @@ const ( // Required: No // Stability: stable // Examples: 'http', 'https' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPScheme = "http.scheme" // HTTP response status code. // @@ -871,6 +1038,7 @@ const ( // Required: If and only if one was received/sent. // Stability: stable // Examples: 200 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPStatusCode = "http.status_code" // Kind of HTTP protocol used. // @@ -879,6 +1047,7 @@ const ( // Stability: stable // Note: If net.transport is not specified, it can be assumed to be IP.TCP except // if http.flavor is QUIC, in which case IP.UDP is assumed. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavor = "http.flavor" // Value of the HTTP User-Agent header sent by the client. // @@ -886,6 +1055,7 @@ const ( // Required: No // Stability: stable // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPUserAgent = "http.user_agent" // 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 @@ -896,6 +1066,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLength = "http.request_content_length" // The size of the uncompressed request payload body after transport decoding. Not // set if transport encoding not used. @@ -904,6 +1075,7 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" // 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 @@ -914,6 +1086,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLength = "http.response_content_length" // The size of the uncompressed response payload body after transport decoding. // Not set if transport encoding not used. @@ -922,19 +1095,25 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" ) const ( // HTTP 1.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP10 = "1.0" // HTTP 1.1 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP11 = "1.1" // HTTP 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP20 = "2.0" // SPDY protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorSPDY = "SPDY" // QUIC protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorQUIC = "QUIC" ) @@ -952,6 +1131,7 @@ const ( // have to be assembled in a cumbersome and sometimes lossy process from other // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus // preferred to supply the raw data that is available. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPServerName = "http.server_name" // The matched route (path template). // @@ -959,6 +1139,7 @@ const ( // Required: No // Stability: stable // Examples: '/users/:userID?' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRoute = "http.route" // The IP address of the original client behind all proxies, if known (e.g. from // X-Forwarded-For). @@ -977,6 +1158,7 @@ const ( // http.client_ip when it's the same as net.peer.ip means that // one is at least somewhat confident that the address is not that of // the closest proxy. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPClientIP = "http.client_ip" ) @@ -988,6 +1170,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'Cats' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" // The JSON-serialized value of each item in the ConsumedCapacity response field. // @@ -1001,6 +1184,7 @@ const ( // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": // "string", "WriteCapacityUnits": number }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" // The JSON-serialized value of the ItemCollectionMetrics response field. // @@ -1011,6 +1195,7 @@ const ( // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. // @@ -1018,6 +1203,7 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. // @@ -1025,12 +1211,14 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" // The value of the ConsistentRead request parameter. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" // The value of the ProjectionExpression request parameter. // @@ -1039,6 +1227,7 @@ const ( // Stability: stable // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, // ProductReviews' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" // The value of the Limit request parameter. // @@ -1046,6 +1235,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" // The value of the AttributesToGet request parameter. // @@ -1053,6 +1243,7 @@ const ( // Required: No // Stability: stable // Examples: 'lives', 'id' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" // The value of the IndexName request parameter. // @@ -1060,6 +1251,7 @@ const ( // Required: No // Stability: stable // Examples: 'name_to_group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" // The value of the Select request parameter. // @@ -1067,6 +1259,7 @@ const ( // Required: No // Stability: stable // Examples: 'ALL_ATTRIBUTES', 'COUNT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSelect = "aws.dynamodb.select" ) @@ -1082,6 +1275,7 @@ const ( // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": // number, "WriteCapacityUnits": number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" // The JSON-serialized value of each item of the LocalSecondaryIndexes request // field. @@ -1093,6 +1287,7 @@ const ( // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" ) @@ -1104,6 +1299,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'CatsTable' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" // The the number of items in the TableNames response parameter. // @@ -1111,6 +1307,7 @@ const ( // Required: No // Stability: stable // Examples: 20 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" ) @@ -1121,6 +1318,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" ) @@ -1132,6 +1330,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" // The value of the TotalSegments request parameter. // @@ -1139,6 +1338,7 @@ const ( // Required: No // Stability: stable // Examples: 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" // The value of the Count response parameter. // @@ -1146,6 +1346,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBCount = "aws.dynamodb.count" // The value of the ScannedCount response parameter. // @@ -1153,6 +1354,7 @@ const ( // Required: No // Stability: stable // Examples: 50 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" ) @@ -1165,6 +1367,7 @@ const ( // Required: No // Stability: stable // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates // request field. @@ -1177,6 +1380,7 @@ const ( // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": // number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" ) @@ -1188,6 +1392,7 @@ const ( // Required: Always // Stability: stable // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingSystem = "messaging.system" // The message destination name. This might be equal to the span name but is // required nevertheless. @@ -1196,6 +1401,7 @@ const ( // Required: Always // Stability: stable // Examples: 'MyQueue', 'MyTopic' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestination = "messaging.destination" // The kind of message destination // @@ -1203,12 +1409,14 @@ const ( // Required: Required only if the message destination is either a `queue` or // `topic`. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKind = "messaging.destination_kind" // A boolean that is true if the message destination is temporary. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingTempDestination = "messaging.temp_destination" // The name of the transport protocol. // @@ -1216,6 +1424,7 @@ const ( // Required: No // Stability: stable // Examples: 'AMQP', 'MQTT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocol = "messaging.protocol" // The version of the transport protocol. // @@ -1223,6 +1432,7 @@ const ( // Required: No // Stability: stable // Examples: '0.9.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocolVersion = "messaging.protocol_version" // Connection string. // @@ -1231,6 +1441,7 @@ const ( // Stability: stable // Examples: 'tibjmsnaming://localhost:7222', // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingURL = "messaging.url" // A value used by the messaging system as an identifier for the message, // represented as a string. @@ -1239,6 +1450,7 @@ const ( // Required: No // Stability: stable // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessageID = "messaging.message_id" // The conversation ID identifying the conversation to which the message belongs, // represented as a string. Sometimes called "Correlation ID". @@ -1247,6 +1459,7 @@ const ( // Required: No // Stability: stable // Examples: 'MyConversationID' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConversationID = "messaging.conversation_id" // The (uncompressed) size of the message payload in bytes. Also use this // attribute if it is unknown whether the compressed or uncompressed payload size @@ -1256,6 +1469,7 @@ const ( // Required: No // Stability: stable // Examples: 2738 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" // The compressed size of the message payload in bytes. // @@ -1263,13 +1477,16 @@ const ( // Required: No // Stability: stable // Examples: 2048 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" ) const ( // A message sent to a queue + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindQueue = "queue" // A message sent to a topic + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindTopic = "topic" ) @@ -1283,6 +1500,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperation = "messaging.operation" // The identifier for the consumer receiving a message. For Kafka, set it to // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are @@ -1293,13 +1511,16 @@ const ( // Required: No // Stability: stable // Examples: 'mygroup - client-6' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConsumerID = "messaging.consumer_id" ) const ( // receive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationReceive = "receive" // process + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationProcess = "process" ) @@ -1311,6 +1532,7 @@ const ( // Required: Unless it is empty. // Stability: stable // Examples: 'myKey' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" ) @@ -1327,6 +1549,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" // Name of the Kafka Consumer Group that is handling the message. Only applies to // consumers, not producers. @@ -1335,6 +1558,7 @@ const ( // Required: No // Stability: stable // Examples: 'my-group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" // Client ID for the Consumer or Producer that is handling the message. // @@ -1342,6 +1566,7 @@ const ( // Required: No // Stability: stable // Examples: 'client-5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaClientID = "messaging.kafka.client_id" // Partition the message is sent to. // @@ -1349,12 +1574,14 @@ const ( // Required: No // Stability: stable // Examples: 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaPartition = "messaging.kafka.partition" // A boolean that is true if the message is a tombstone. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" ) @@ -1367,6 +1594,7 @@ const ( // Required: Always // Stability: stable // Examples: 'myNamespace' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" // Name of the RocketMQ producer/consumer group that is handling the message. The // client type is identified by the SpanKind. @@ -1375,6 +1603,7 @@ const ( // Required: Always // Stability: stable // Examples: 'myConsumerGroup' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" // The unique identifier for each client. // @@ -1382,12 +1611,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myhost@8742@s8083jm' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" // Type of message. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" // The secondary classifier of message besides topic. // @@ -1395,6 +1626,7 @@ const ( // Required: No // Stability: stable // Examples: 'tagA' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" // Key(s) of message, another way to mark message besides message id. // @@ -1402,30 +1634,38 @@ const ( // Required: No // Stability: stable // Examples: 'keyA', 'keyB' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" // Model of message consumption. This only applies to consumer spans. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" ) const ( // Normal message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeNormal = "normal" // FIFO message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeFifo = "fifo" // Delay message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeDelay = "delay" // Transaction message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeTransaction = "transaction" ) const ( // Clustering consumption model + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModelClustering = "clustering" // Broadcasting consumption model + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" ) @@ -1437,6 +1677,7 @@ const ( // Required: Always // Stability: stable // Examples: 'grpc', 'java_rmi', 'wcf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCSystem = "rpc.system" // The full (logical) name of the service being called, including its package // name, if applicable. @@ -1451,6 +1692,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCService = "rpc.service" // The name of the (logical) method being called, must be equal to the $method // part in the span name. @@ -1464,6 +1706,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCMethod = "rpc.method" ) @@ -1474,43 +1717,61 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" ) const ( // OK + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOk = "0" // CANCELLED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeCancelled = "1" // UNKNOWN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnknown = "2" // INVALID_ARGUMENT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInvalidArgument = "3" // DEADLINE_EXCEEDED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" // NOT_FOUND + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeNotFound = "5" // ALREADY_EXISTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAlreadyExists = "6" // PERMISSION_DENIED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodePermissionDenied = "7" // RESOURCE_EXHAUSTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeResourceExhausted = "8" // FAILED_PRECONDITION + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeFailedPrecondition = "9" // ABORTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAborted = "10" // OUT_OF_RANGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOutOfRange = "11" // UNIMPLEMENTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnimplemented = "12" // INTERNAL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInternal = "13" // UNAVAILABLE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnavailable = "14" // DATA_LOSS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDataLoss = "15" // UNAUTHENTICATED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnauthenticated = "16" ) @@ -1523,6 +1784,7 @@ const ( // Required: If missing, it is assumed to be "1.0". // Stability: stable // Examples: '2.0', '1.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" // 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 @@ -1533,6 +1795,7 @@ const ( // Required: No // Stability: stable // Examples: '10', 'request-7', '' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" // error.code property of response if it is an error response. // @@ -1540,6 +1803,7 @@ const ( // Required: If missing, response is assumed to be successful. // Stability: stable // Examples: -32700, 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" // error.message property of response if it is an error response. // @@ -1547,6 +1811,7 @@ const ( // Required: No // Stability: stable // Examples: 'Parse error', 'User already exists' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" ) @@ -1557,6 +1822,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageType = "message.type" // MUST be calculated as two different counters starting from 1 one for sent // messages and one for received message. @@ -1566,28 +1832,34 @@ const ( // Stability: stable // Note: This way we guarantee that the values will be consistent between // different implementations. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageID = "message.id" // Compressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageCompressedSize = "message.compressed_size" // Uncompressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageUncompressedSize = "message.uncompressed_size" ) const ( // sent + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeSent = "SENT" // received + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeReceived = "RECEIVED" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetTraceSemanticConventionAttributeNames() []string { return []string{ AttributeAWSLambdaInvokedARN, diff --git a/model/semconv/v1.8.0/nonstandard.go b/model/semconv/v1.8.0/nonstandard.go index 196892d3a6ac..0ad3555aba2f 100644 --- a/model/semconv/v1.8.0/nonstandard.go +++ b/model/semconv/v1.8.0/nonstandard.go @@ -15,8 +15,12 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.8.0" const ( - OtelLibraryName = "otel.library.name" - OtelLibraryVersion = "otel.library.version" - OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryVersion = "otel.library.version" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. OtelStatusDescription = "otel.status_description" ) diff --git a/model/semconv/v1.8.0/schema.go b/model/semconv/v1.8.0/schema.go index d70ea3bd288e..5b64cab4d501 100644 --- a/model/semconv/v1.8.0/schema.go +++ b/model/semconv/v1.8.0/schema.go @@ -17,4 +17,5 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.8.0" // SchemaURL is the schema URL that matches the version of the semantic conventions // that this package defines. Conventions packages starting from v1.4.0 must declare // non-empty schema URL in the form https://opentelemetry.io/schemas/ +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. const SchemaURL = "https://opentelemetry.io/schemas/1.8.0" diff --git a/model/semconv/v1.9.0/generated_resource.go b/model/semconv/v1.9.0/generated_resource.go index 64718c0ae72b..61eb9ac12cd4 100644 --- a/model/semconv/v1.9.0/generated_resource.go +++ b/model/semconv/v1.9.0/generated_resource.go @@ -23,6 +23,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProvider = "cloud.provider" // The cloud account ID the resource is assigned to. // @@ -30,6 +31,7 @@ const ( // Required: No // Stability: stable // Examples: '111111111111', 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAccountID = "cloud.account.id" // The geographical region the resource is running. // @@ -40,6 +42,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudRegion = "cloud.region" // Cloud regions often have multiple, isolated locations known as zones to // increase availability. Availability zone represents the zone where the resource @@ -51,6 +54,7 @@ const ( // Examples: 'us-east-1c' // Note: Availability zones are called "zones" on Alibaba Cloud and // Google Cloud. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudAvailabilityZone = "cloud.availability_zone" // The cloud platform in use. // @@ -59,64 +63,91 @@ const ( // Stability: stable // Note: The prefix of the service SHOULD match the one specified in // cloud.provider. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatform = "cloud.platform" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderGCP = "gcp" // Tencent Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudProviderTencentCloud = "tencent_cloud" ) const ( // Alibaba Cloud Elastic Compute Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" // Alibaba Cloud Function Compute + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" // AWS Elastic Compute Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEC2 = "aws_ec2" // AWS Elastic Container Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSECS = "aws_ecs" // AWS Elastic Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSEKS = "aws_eks" // AWS Lambda + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSLambda = "aws_lambda" // AWS Elastic Beanstalk + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" // AWS App Runner + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAWSAppRunner = "aws_app_runner" // Azure Virtual Machines + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureVM = "azure_vm" // Azure Container Instances + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" // Azure Kubernetes Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAKS = "azure_aks" // Azure Functions + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureFunctions = "azure_functions" // Azure App Service + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformAzureAppService = "azure_app_service" // Google Cloud Compute Engine (GCE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" // Google Cloud Run + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" // Google Cloud Kubernetes Engine (GKE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" // Google Cloud Functions (GCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" // Google Cloud App Engine (GAE) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" // Tencent Cloud Cloud Virtual Machine (CVM) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" // Tencent Cloud Elastic Kubernetes Service (EKS) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" // Tencent Cloud Serverless Cloud Function (SCF) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" ) @@ -129,6 +160,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSContainerARN = "aws.ecs.container.arn" // The ARN of an ECS cluster. // @@ -136,12 +168,14 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" // The launch type for an ECS task. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtype = "aws.ecs.launchtype" // The ARN of an ECS task definition. // @@ -150,6 +184,7 @@ const ( // Stability: stable // Examples: 'arn:aws:ecs:us- // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskARN = "aws.ecs.task.arn" // The task definition family this task definition is a member of. // @@ -157,6 +192,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-family' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskFamily = "aws.ecs.task.family" // The revision for this task definition. // @@ -164,13 +200,16 @@ const ( // Required: No // Stability: stable // Examples: '8', '26' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSTaskRevision = "aws.ecs.task.revision" ) const ( // ec2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeEC2 = "ec2" // fargate + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSECSLaunchtypeFargate = "fargate" ) @@ -182,6 +221,7 @@ const ( // Required: No // Stability: stable // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" ) @@ -196,6 +236,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupNames = "aws.log.group.names" // The Amazon Resource Name(s) (ARN) of the AWS log group(s). // @@ -204,6 +245,7 @@ const ( // Stability: stable // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' // Note: See the log group ARN format documentation. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogGroupARNs = "aws.log.group.arns" // The name(s) of the AWS log stream(s) an application is writing to. // @@ -211,6 +253,7 @@ const ( // Required: No // Stability: stable // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamNames = "aws.log.stream.names" // The ARN(s) of the AWS log stream(s). // @@ -222,6 +265,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLogStreamARNs = "aws.log.stream.arns" ) @@ -233,6 +277,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerName = "container.name" // Container ID. Usually a UUID, as for example used to identify Docker // containers. The UUID might be abbreviated. @@ -241,6 +286,7 @@ const ( // Required: No // Stability: stable // Examples: 'a3bf90e006b2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerID = "container.id" // The container runtime managing this container. // @@ -248,6 +294,7 @@ const ( // Required: No // Stability: stable // Examples: 'docker', 'containerd', 'rkt' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerRuntime = "container.runtime" // Name of the image the container was built on. // @@ -255,6 +302,7 @@ const ( // Required: No // Stability: stable // Examples: 'gcr.io/opentelemetry/operator' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageName = "container.image.name" // Container image tag. // @@ -262,6 +310,7 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeContainerImageTag = "container.image.tag" ) @@ -273,6 +322,7 @@ const ( // Required: No // Stability: stable // Examples: 'staging', 'production' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeploymentEnvironment = "deployment.environment" ) @@ -293,6 +343,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceID = "device.id" // The model identifier for the device // @@ -303,6 +354,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelIdentifier = "device.model.identifier" // The marketing name for the device model // @@ -312,6 +364,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceModelName = "device.model.name" // The name of the device manufacturer // @@ -321,6 +374,7 @@ const ( // Examples: 'Apple', 'Samsung' // Note: The Android OS provides this field via Build. iOS apps SHOULD hardcode // the value Apple. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDeviceManufacturer = "device.manufacturer" ) @@ -335,6 +389,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSName = "faas.name" // The unique ID of the single function that this runtime instance executes. // @@ -358,6 +413,7 @@ const ( // part of the ARN is not available without calling another AWS API // which may be deemed too slow for a short-running lambda function. // As an alternative, consider setting faas.id as a span attribute instead. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSID = "faas.id" // The immutable version of the function being executed. // @@ -374,6 +430,7 @@ const ( // K_REVISION environment variable. //
  • Azure Functions: Not applicable. Do not set this attribute.
  • // + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSVersion = "faas.version" // The execution environment ID as a string, that will be potentially reused for // other invocations to the same function/function version. @@ -385,6 +442,7 @@ const ( // Note:
      //
    • AWS Lambda: Use the (full) log stream name.
    • //
    + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInstance = "faas.instance" // The amount of memory available to the serverless function in MiB. // @@ -396,6 +454,7 @@ const ( // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this // information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSMaxMemory = "faas.max_memory" ) @@ -408,6 +467,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostID = "host.id" // 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 @@ -417,6 +477,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-test' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostName = "host.name" // Type of host. For Cloud, this must be the machine type. // @@ -424,12 +485,14 @@ const ( // Required: No // Stability: stable // Examples: 'n1-standard-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostType = "host.type" // The CPU architecture the host system is running on. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArch = "host.arch" // Name of the VM image or OS install the host was instantiated from. // @@ -437,6 +500,7 @@ const ( // Required: No // Stability: stable // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageName = "host.image.name" // VM image ID. For Cloud, this value is from the provider. // @@ -444,6 +508,7 @@ const ( // Required: No // Stability: stable // Examples: 'ami-07b06b442921831e5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageID = "host.image.id" // The version string of the VM image as defined in Version Attributes. // @@ -451,25 +516,34 @@ const ( // Required: No // Stability: stable // Examples: '0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostImageVersion = "host.image.version" ) const ( // AMD64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchAMD64 = "amd64" // ARM32 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM32 = "arm32" // ARM64 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchARM64 = "arm64" // Itanium + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchIA64 = "ia64" // 32-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC32 = "ppc32" // 64-bit PowerPC + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchPPC64 = "ppc64" // IBM z/Architecture + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchS390x = "s390x" // 32-bit x86 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHostArchX86 = "x86" ) @@ -481,6 +555,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-cluster' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SClusterName = "k8s.cluster.name" ) @@ -492,6 +567,7 @@ const ( // Required: No // Stability: stable // Examples: 'node-1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeName = "k8s.node.name" // The UID of the Node. // @@ -499,6 +575,7 @@ const ( // Required: No // Stability: stable // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNodeUID = "k8s.node.uid" ) @@ -510,6 +587,7 @@ const ( // Required: No // Stability: stable // Examples: 'default' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SNamespaceName = "k8s.namespace.name" ) @@ -521,6 +599,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodUID = "k8s.pod.uid" // The name of the Pod. // @@ -528,6 +607,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry-pod-autoconf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SPodName = "k8s.pod.name" ) @@ -540,6 +620,7 @@ const ( // Required: No // Stability: stable // Examples: 'redis' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerName = "k8s.container.name" // Number of times the container was restarted. This attribute can be used to // identify a particular container (running or stopped) within a container spec. @@ -548,6 +629,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SContainerRestartCount = "k8s.container.restart_count" ) @@ -559,6 +641,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetUID = "k8s.replicaset.uid" // The name of the ReplicaSet. // @@ -566,6 +649,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SReplicaSetName = "k8s.replicaset.name" ) @@ -577,6 +661,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentUID = "k8s.deployment.uid" // The name of the Deployment. // @@ -584,6 +669,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDeploymentName = "k8s.deployment.name" ) @@ -595,6 +681,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetUID = "k8s.statefulset.uid" // The name of the StatefulSet. // @@ -602,6 +689,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SStatefulSetName = "k8s.statefulset.name" ) @@ -613,6 +701,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetUID = "k8s.daemonset.uid" // The name of the DaemonSet. // @@ -620,6 +709,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SDaemonSetName = "k8s.daemonset.name" ) @@ -631,6 +721,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobUID = "k8s.job.uid" // The name of the Job. // @@ -638,6 +729,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SJobName = "k8s.job.name" ) @@ -649,6 +741,7 @@ const ( // Required: No // Stability: stable // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobUID = "k8s.cronjob.uid" // The name of the CronJob. // @@ -656,6 +749,7 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeK8SCronJobName = "k8s.cronjob.name" ) @@ -666,6 +760,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSType = "os.type" // Human readable (not intended to be parsed) OS version information, like e.g. // reported by ver or lsb_release -a commands. @@ -674,6 +769,7 @@ const ( // Required: No // Stability: stable // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSDescription = "os.description" // Human readable operating system name. // @@ -681,6 +777,7 @@ const ( // Required: No // Stability: stable // Examples: 'iOS', 'Android', 'Ubuntu' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSName = "os.name" // The version string of the operating system as defined in Version Attributes. // @@ -688,31 +785,43 @@ const ( // Required: No // Stability: stable // Examples: '14.2.1', '18.04.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSVersion = "os.version" ) const ( // Microsoft Windows + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeWindows = "windows" // Linux + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeLinux = "linux" // Apple Darwin + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDarwin = "darwin" // FreeBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeFreeBSD = "freebsd" // NetBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeNetBSD = "netbsd" // OpenBSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeOpenBSD = "openbsd" // DragonFly BSD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeDragonflyBSD = "dragonflybsd" // HP-UX (Hewlett Packard Unix) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeHPUX = "hpux" // AIX (Advanced Interactive eXecutive) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeAIX = "aix" // Oracle Solaris + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeSolaris = "solaris" // IBM z/OS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOSTypeZOS = "z_os" ) @@ -724,6 +833,7 @@ const ( // Required: No // Stability: stable // Examples: 1234 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessPID = "process.pid" // 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 @@ -733,6 +843,7 @@ const ( // Required: See below // Stability: stable // Examples: 'otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutableName = "process.executable.name" // 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 @@ -742,6 +853,7 @@ const ( // Required: See below // Stability: stable // Examples: '/usr/bin/cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessExecutablePath = "process.executable.path" // 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 @@ -751,6 +863,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otelcol' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommand = "process.command" // 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 @@ -761,6 +874,7 @@ const ( // Required: See below // Stability: stable // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandLine = "process.command_line" // All the command arguments (including the command/executable itself) as received // by the process. On Linux-based systems (and some other Unixoid systems @@ -772,6 +886,7 @@ const ( // Required: See below // Stability: stable // Examples: 'cmd/otecol', '--config=config.yaml' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessCommandArgs = "process.command_args" // The username of the user that owns the process. // @@ -779,6 +894,7 @@ const ( // Required: No // Stability: stable // Examples: 'root' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessOwner = "process.owner" ) @@ -791,6 +907,7 @@ const ( // Required: No // Stability: stable // Examples: 'OpenJDK Runtime Environment' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeName = "process.runtime.name" // The version of the runtime of this process, as returned by the runtime without // modification. @@ -799,6 +916,7 @@ const ( // Required: No // Stability: stable // Examples: '14.0.2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeVersion = "process.runtime.version" // An additional description about the runtime of the process, for example a // specific vendor customization of the runtime environment. @@ -807,6 +925,7 @@ const ( // Required: No // Stability: stable // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeProcessRuntimeDescription = "process.runtime.description" ) @@ -823,6 +942,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceName = "service.name" // A namespace for service.name. // @@ -837,6 +957,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceNamespace = "service.namespace" // The string ID of the service instance. // @@ -856,6 +977,7 @@ const ( // value of this attribute it is recommended to generate a random Version 1 or // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use // Version 5, see RFC 4122 for more recommendations). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceInstanceID = "service.instance.id" // The version string of the service API or implementation. // @@ -863,6 +985,7 @@ const ( // Required: No // Stability: stable // Examples: '2.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeServiceVersion = "service.version" ) @@ -874,12 +997,14 @@ const ( // Required: No // Stability: stable // Examples: 'opentelemetry' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKName = "telemetry.sdk.name" // The language of the telemetry SDK. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguage = "telemetry.sdk.language" // The version string of the telemetry SDK. // @@ -887,6 +1012,7 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKVersion = "telemetry.sdk.version" // The version string of the auto instrumentation agent, if used. // @@ -894,31 +1020,43 @@ const ( // Required: No // Stability: stable // Examples: '1.2.3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetryAutoVersion = "telemetry.auto.version" ) const ( // cpp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageCPP = "cpp" // dotnet + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageDotnet = "dotnet" // erlang + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageErlang = "erlang" // go + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageGo = "go" // java + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageJava = "java" // nodejs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageNodejs = "nodejs" // php + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePHP = "php" // python + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguagePython = "python" // ruby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageRuby = "ruby" // webjs + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageWebjs = "webjs" // swift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeTelemetrySDKLanguageSwift = "swift" ) @@ -930,6 +1068,7 @@ const ( // Required: Always // Stability: stable // Examples: 'WildFly' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineName = "webengine.name" // The version of the web engine. // @@ -937,6 +1076,7 @@ const ( // Required: No // Stability: stable // Examples: '21.0.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineVersion = "webengine.version" // Additional description of the web engine (e.g. detailed version and edition // information). @@ -945,9 +1085,11 @@ const ( // Required: No // Stability: stable // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeWebEngineDescription = "webengine.description" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetResourceSemanticConventionAttributeNames() []string { return []string{ AttributeCloudProvider, diff --git a/model/semconv/v1.9.0/generated_trace.go b/model/semconv/v1.9.0/generated_trace.go index 53eee61c3ae3..c12f284c6f20 100644 --- a/model/semconv/v1.9.0/generated_trace.go +++ b/model/semconv/v1.9.0/generated_trace.go @@ -27,6 +27,7 @@ const ( // Stability: stable // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' // Note: This may be different from faas.id if an alias is involved. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" ) @@ -38,13 +39,16 @@ const ( // Required: No // Stability: stable // Note: The causal relationship between a child Span and a parent Span. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOpentracingRefType = "opentracing.ref_type" ) const ( // The parent Span depends on the child Span in some capacity + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOpentracingRefTypeChildOf = "child_of" // The parent Span does not depend in any way on the result of the child Span + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeOpentracingRefTypeFollowsFrom = "follows_from" ) @@ -56,6 +60,7 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystem = "db.system" // The connection string used to connect to the database. It is recommended to // remove embedded credentials. @@ -64,6 +69,7 @@ const ( // Required: No // Stability: stable // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBConnectionString = "db.connection_string" // Username for accessing the database. // @@ -71,6 +77,7 @@ const ( // Required: No // Stability: stable // Examples: 'readonly_user', 'reporting_user' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBUser = "db.user" // The fully-qualified class name of the Java Database Connectivity (JDBC) driver // used to connect. @@ -80,6 +87,7 @@ const ( // Stability: stable // Examples: 'org.postgresql.Driver', // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" // This attribute is used to report the name of the database being accessed. For // commands that switch the database, this should be set to the target database @@ -93,6 +101,7 @@ const ( // "schema name". In case there are multiple layers that could be // considered for database name (e.g. Oracle instance name and schema name), the // database name to be used is the more specific layer (e.g. Oracle schema name). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBName = "db.name" // The database statement being executed. // @@ -102,6 +111,7 @@ const ( // Stability: stable // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' // Note: The value may be sanitized to exclude sensitive information. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBStatement = "db.statement" // The name of the operation being executed, e.g. the MongoDB command name such as // findAndModify, or the SQL keyword. @@ -115,103 +125,151 @@ const ( // set if the operation name is provided by the library being instrumented. If the // SQL statement has an ambiguous operation, or performs more than one operation, // this value may be omitted. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBOperation = "db.operation" ) const ( // Some other SQL database. Fallback only. See notes + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOtherSQL = "other_sql" // Microsoft SQL Server + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMSSQL = "mssql" // MySQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMySQL = "mysql" // Oracle Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemOracle = "oracle" // IBM DB2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDB2 = "db2" // PostgreSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPostgreSQL = "postgresql" // Amazon Redshift + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedshift = "redshift" // Apache Hive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHive = "hive" // Cloudscape + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCloudscape = "cloudscape" // HyperSQL DataBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHSQLDB = "hsqldb" // Progress Database + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemProgress = "progress" // SAP MaxDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMaxDB = "maxdb" // SAP HANA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHanaDB = "hanadb" // Ingres + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemIngres = "ingres" // FirstSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirstSQL = "firstsql" // EnterpriseDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemEDB = "edb" // InterSystems Caché + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCache = "cache" // Adabas (Adaptable Database System) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemAdabas = "adabas" // Firebird + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFirebird = "firebird" // Apache Derby + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDerby = "derby" // FileMaker + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemFilemaker = "filemaker" // Informix + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInformix = "informix" // InstantDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInstantDB = "instantdb" // InterBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemInterbase = "interbase" // MariaDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMariaDB = "mariadb" // Netezza + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNetezza = "netezza" // Pervasive PSQL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPervasive = "pervasive" // PointBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemPointbase = "pointbase" // SQLite + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSqlite = "sqlite" // Sybase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemSybase = "sybase" // Teradata + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemTeradata = "teradata" // Vertica + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemVertica = "vertica" // H2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemH2 = "h2" // ColdFusion IMQ + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemColdfusion = "coldfusion" // Apache Cassandra + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCassandra = "cassandra" // Apache HBase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemHBase = "hbase" // MongoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMongoDB = "mongodb" // Redis + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemRedis = "redis" // Couchbase + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchbase = "couchbase" // CouchDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCouchDB = "couchdb" // Microsoft Azure Cosmos DB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCosmosDB = "cosmosdb" // Amazon DynamoDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemDynamoDB = "dynamodb" // Neo4j + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemNeo4j = "neo4j" // Apache Geode + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemGeode = "geode" // Elasticsearch + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemElasticsearch = "elasticsearch" // Memcached + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemMemcached = "memcached" // CockroachDB + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSystemCockroachdb = "cockroachdb" ) @@ -226,6 +284,7 @@ const ( // Examples: 'MSSQLSERVER' // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required // (but still recommended if non-standard). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMSSQLInstanceName = "db.mssql.instance_name" ) @@ -237,12 +296,14 @@ const ( // Required: No // Stability: stable // Examples: 5000 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraPageSize = "db.cassandra.page_size" // The consistency level of the query. Based on consistency values from CQL. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" // The name of the primary table that the operation is acting upon, including the // keyspace name (if applicable). @@ -256,12 +317,14 @@ const ( // db.statement just to get this property, but it should be set if it is provided // by the library being instrumented. If the operation is acting upon an anonymous // table, or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraTable = "db.cassandra.table" // Whether or not the query is idempotent. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraIdempotence = "db.cassandra.idempotence" // The number of times a query was speculatively executed. Not set or 0 if the // query was not executed speculatively. @@ -270,6 +333,7 @@ const ( // Required: No // Stability: stable // Examples: 0, 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" // The ID of the coordinating node for a query. // @@ -277,6 +341,7 @@ const ( // Required: No // Stability: stable // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" // The data center of the coordinating node for a query. // @@ -284,31 +349,43 @@ const ( // Required: No // Stability: stable // Examples: 'us-west-2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" ) const ( // all + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAll = "all" // each_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" // quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelQuorum = "quorum" // local_quorum + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" // one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelOne = "one" // two + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelTwo = "two" // three + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelThree = "three" // local_one + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalOne = "local_one" // any + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelAny = "any" // serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelSerial = "serial" // local_serial + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" ) @@ -321,6 +398,7 @@ const ( // Required: Required, if other than the default database (`0`). // Stability: stable // Examples: 0, 1, 15 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBRedisDBIndex = "db.redis.database_index" ) @@ -332,6 +410,7 @@ const ( // Required: Always // Stability: stable // Examples: 'customers', 'products' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBMongoDBCollection = "db.mongodb.collection" ) @@ -348,6 +427,7 @@ const ( // just to get this property, but it should be set if it is provided by the // library being instrumented. If the operation is acting upon an anonymous table, // or more than one table, this value MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeDBSQLTable = "db.sql.table" ) @@ -361,6 +441,7 @@ const ( // Required: No // Stability: stable // Examples: 'java.net.ConnectException', 'OSError' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionType = "exception.type" // The exception message. // @@ -368,6 +449,7 @@ const ( // Required: No // Stability: stable // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionMessage = "exception.message" // A stacktrace as a string in the natural representation for the language // runtime. The representation is to be determined and documented by each language @@ -381,6 +463,7 @@ const ( // '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)' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionStacktrace = "exception.stacktrace" // 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. @@ -404,6 +487,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeExceptionEscaped = "exception.escaped" ) @@ -422,6 +506,7 @@ const ( // trigger that corresponding incoming would have (i.e., this has // nothing to do with the underlying transport used to make the API // call to invoke the lambda, which is often HTTP). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTrigger = "faas.trigger" // The execution ID of the current function execution. // @@ -429,19 +514,25 @@ const ( // Required: No // Stability: stable // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSExecution = "faas.execution" ) const ( // A response to some data source operation such as a database or filesystem read/write + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerDatasource = "datasource" // To provide an answer to an inbound HTTP request + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerHTTP = "http" // A function is set to be executed when messages are sent to a messaging system + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerPubsub = "pubsub" // A function is scheduled to be executed regularly + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerTimer = "timer" // If none of the others apply + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTriggerOther = "other" ) @@ -455,12 +546,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myBucketName', 'myDBName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentCollection = "faas.document.collection" // Describes the type of the operation that was performed on the data. // // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperation = "faas.document.operation" // A string containing the time when the data was accessed in the ISO 8601 format // expressed in UTC. @@ -469,6 +562,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentTime = "faas.document.time" // 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. @@ -477,15 +571,19 @@ const ( // Required: No // Stability: stable // Examples: 'myFile.txt', 'myTableName' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentName = "faas.document.name" ) const ( // When a new object is created + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationInsert = "insert" // When an object is modified + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationEdit = "edit" // When an object is deleted + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSDocumentOperationDelete = "delete" ) @@ -498,6 +596,7 @@ const ( // Required: Always // Stability: stable // Examples: '2020-01-23T13:47:06Z' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSTime = "faas.time" // A string containing the schedule period as Cron Expression. // @@ -505,6 +604,7 @@ const ( // Required: No // Stability: stable // Examples: '0/5 * * * ? *' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSCron = "faas.cron" ) @@ -516,6 +616,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSColdstart = "faas.coldstart" ) @@ -529,6 +630,7 @@ const ( // Examples: 'my-function' // Note: SHOULD be equal to the faas.name resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedName = "faas.invoked_name" // The cloud provider of the invoked function. // @@ -537,6 +639,7 @@ const ( // Stability: stable // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProvider = "faas.invoked_provider" // The cloud region of the invoked function. // @@ -551,19 +654,25 @@ const ( // Examples: 'eu-central-1' // Note: SHOULD be equal to the cloud.region resource attribute of the invoked // function. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedRegion = "faas.invoked_region" ) const ( // Alibaba Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" // Amazon Web Services + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAWS = "aws" // Microsoft Azure + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderAzure = "azure" // Google Cloud Platform + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderGCP = "gcp" // Tencent Cloud + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" ) @@ -574,6 +683,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransport = "net.transport" // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) // @@ -581,6 +691,7 @@ const ( // Required: No // Stability: stable // Examples: '127.0.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerIP = "net.peer.ip" // Remote port number. // @@ -588,6 +699,7 @@ const ( // Required: No // Stability: stable // Examples: 80, 8080, 443 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerPort = "net.peer.port" // Remote hostname or similar, see note below. // @@ -595,6 +707,7 @@ const ( // Required: No // Stability: stable // Examples: 'example.com' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetPeerName = "net.peer.name" // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. // @@ -602,6 +715,7 @@ const ( // Required: No // Stability: stable // Examples: '192.168.0.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostIP = "net.host.ip" // Like net.peer.port but for the host port. // @@ -609,6 +723,7 @@ const ( // Required: No // Stability: stable // Examples: 35555 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostPort = "net.host.port" // Local hostname or similar, see note below. // @@ -616,6 +731,7 @@ const ( // Required: No // Stability: stable // Examples: 'localhost' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostName = "net.host.name" // The internet connection type currently being used by the host. // @@ -623,6 +739,7 @@ const ( // Required: No // Stability: stable // Examples: 'wifi' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionType = "net.host.connection.type" // 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 @@ -632,6 +749,7 @@ const ( // Required: No // Stability: stable // Examples: 'LTE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtype = "net.host.connection.subtype" // The name of the mobile carrier. // @@ -639,6 +757,7 @@ const ( // Required: No // Stability: stable // Examples: 'sprint' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierName = "net.host.carrier.name" // The mobile carrier country code. // @@ -646,6 +765,7 @@ const ( // Required: No // Stability: stable // Examples: '310' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMcc = "net.host.carrier.mcc" // The mobile carrier network code. // @@ -653,6 +773,7 @@ const ( // Required: No // Stability: stable // Examples: '001' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierMnc = "net.host.carrier.mnc" // The ISO 3166-1 alpha-2 2-character country code associated with the mobile // carrier network. @@ -661,81 +782,115 @@ const ( // Required: No // Stability: stable // Examples: 'DE' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostCarrierIcc = "net.host.carrier.icc" ) const ( // ip_tcp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportTCP = "ip_tcp" // ip_udp + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUDP = "ip_udp" // Another IP-based protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportIP = "ip" // Unix Domain socket. See below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportUnix = "unix" // Named or anonymous pipe. See note below + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportPipe = "pipe" // In-process communication + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportInProc = "inproc" // Something else (non IP-based) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetTransportOther = "other" ) const ( // wifi + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWifi = "wifi" // wired + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeWired = "wired" // cell + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeCell = "cell" // unavailable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnavailable = "unavailable" // unknown + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionTypeUnknown = "unknown" ) const ( // GPRS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGprs = "gprs" // EDGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEdge = "edge" // UMTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeUmts = "umts" // CDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma = "cdma" // EVDO Rel. 0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" // EVDO Rev. A + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" // CDMA2000 1XRTT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" // HSDPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" // HSUPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHsupa = "hsupa" // HSPA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspa = "hspa" // IDEN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIden = "iden" // EVDO Rev. B + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" // LTE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLte = "lte" // EHRPD + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" // HSPAP + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeHspap = "hspap" // GSM + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeGsm = "gsm" // TD-SCDMA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" // IWLAN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeIwlan = "iwlan" // 5G NR (New Radio) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNr = "nr" // 5G NRNSA (New Radio Non-Standalone) + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" // LTE CA + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeNetHostConnectionSubtypeLteCa = "lte_ca" ) @@ -748,6 +903,7 @@ const ( // Required: No // Stability: stable // Examples: 'AuthTokenCache' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributePeerService = "peer.service" ) @@ -760,6 +916,7 @@ const ( // Required: No // Stability: stable // Examples: 'username' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserID = "enduser.id" // Actual/assumed role the client is making the request under extracted from token // or application security context. @@ -768,6 +925,7 @@ const ( // Required: No // Stability: stable // Examples: 'admin' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserRole = "enduser.role" // Scopes or granted authorities the client currently possesses extracted from // token or application security context. The value would come from the scope @@ -778,6 +936,7 @@ const ( // Required: No // Stability: stable // Examples: 'read:message, write:files' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeEnduserScope = "enduser.scope" ) @@ -789,6 +948,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadID = "thread.id" // Current thread name. // @@ -796,6 +956,7 @@ const ( // Required: No // Stability: stable // Examples: 'main' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeThreadName = "thread.name" ) @@ -808,6 +969,7 @@ const ( // Required: No // Stability: stable // Examples: 'serveRequest' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFunction = "code.function" // The "namespace" within which code.function is defined. Usually the // qualified class or module name, such that code.namespace + some separator + @@ -817,6 +979,7 @@ const ( // Required: No // Stability: stable // Examples: 'com.example.MyHTTPService' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeNamespace = "code.namespace" // The source code file name that identifies the code unit as uniquely as possible // (preferably an absolute file path). @@ -825,6 +988,7 @@ const ( // Required: No // Stability: stable // Examples: '/usr/local/MyApplication/content_root/app/index.php' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeFilepath = "code.filepath" // The line number in code.filepath best representing the operation. It SHOULD // point within the code unit named in code.function. @@ -833,6 +997,7 @@ const ( // Required: No // Stability: stable // Examples: 42 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeCodeLineNumber = "code.lineno" ) @@ -844,6 +1009,7 @@ const ( // Required: Always // Stability: stable // Examples: 'GET', 'POST', 'HEAD' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPMethod = "http.method" // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. // Usually the fragment is not transmitted over HTTP, but if it is known, it @@ -856,6 +1022,7 @@ const ( // Note: http.url MUST NOT contain credentials passed via URL in form of // https://username:password@www.example.com/. In such case the attribute's value // should be https://www.example.com/. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPURL = "http.url" // The full request target as passed in a HTTP request line or equivalent. // @@ -863,6 +1030,7 @@ const ( // Required: No // Stability: stable // Examples: '/path/12314/?q=ddds#123' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPTarget = "http.target" // The value of the HTTP host header. An empty Host header should also be // reported, see note. @@ -875,6 +1043,7 @@ const ( // empty string. Note that this is a valid situation that is expected in certain // cases, according the aforementioned section of RFC 7230. When the header is not // set the attribute MUST NOT be set. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPHost = "http.host" // The URI scheme identifying the used protocol. // @@ -882,6 +1051,7 @@ const ( // Required: No // Stability: stable // Examples: 'http', 'https' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPScheme = "http.scheme" // HTTP response status code. // @@ -889,6 +1059,7 @@ const ( // Required: If and only if one was received/sent. // Stability: stable // Examples: 200 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPStatusCode = "http.status_code" // Kind of HTTP protocol used. // @@ -897,6 +1068,7 @@ const ( // Stability: stable // Note: If net.transport is not specified, it can be assumed to be IP.TCP except // if http.flavor is QUIC, in which case IP.UDP is assumed. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavor = "http.flavor" // Value of the HTTP User-Agent header sent by the client. // @@ -904,6 +1076,7 @@ const ( // Required: No // Stability: stable // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPUserAgent = "http.user_agent" // 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 @@ -914,6 +1087,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLength = "http.request_content_length" // The size of the uncompressed request payload body after transport decoding. Not // set if transport encoding not used. @@ -922,6 +1096,7 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" // 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 @@ -932,6 +1107,7 @@ const ( // Required: No // Stability: stable // Examples: 3495 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLength = "http.response_content_length" // The size of the uncompressed response payload body after transport decoding. // Not set if transport encoding not used. @@ -940,19 +1116,25 @@ const ( // Required: No // Stability: stable // Examples: 5493 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" ) const ( // HTTP 1.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP10 = "1.0" // HTTP 1.1 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP11 = "1.1" // HTTP 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorHTTP20 = "2.0" // SPDY protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorSPDY = "SPDY" // QUIC protocol + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPFlavorQUIC = "QUIC" ) @@ -970,6 +1152,7 @@ const ( // have to be assembled in a cumbersome and sometimes lossy process from other // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus // preferred to supply the raw data that is available. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPServerName = "http.server_name" // The matched route (path template). // @@ -977,6 +1160,7 @@ const ( // Required: No // Stability: stable // Examples: '/users/:userID?' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPRoute = "http.route" // The IP address of the original client behind all proxies, if known (e.g. from // X-Forwarded-For). @@ -995,6 +1179,7 @@ const ( // http.client_ip when it's the same as net.peer.ip means that // one is at least somewhat confident that the address is not that of // the closest proxy. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeHTTPClientIP = "http.client_ip" ) @@ -1006,6 +1191,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'Cats' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" // The JSON-serialized value of each item in the ConsumedCapacity response field. // @@ -1019,6 +1205,7 @@ const ( // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": // "string", "WriteCapacityUnits": number }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" // The JSON-serialized value of the ItemCollectionMetrics response field. // @@ -1029,6 +1216,7 @@ const ( // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. // @@ -1036,6 +1224,7 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. // @@ -1043,12 +1232,14 @@ const ( // Required: No // Stability: stable // Examples: 1.0, 2.0 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" // The value of the ConsistentRead request parameter. // // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" // The value of the ProjectionExpression request parameter. // @@ -1057,6 +1248,7 @@ const ( // Stability: stable // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, // ProductReviews' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" // The value of the Limit request parameter. // @@ -1064,6 +1256,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" // The value of the AttributesToGet request parameter. // @@ -1071,6 +1264,7 @@ const ( // Required: No // Stability: stable // Examples: 'lives', 'id' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" // The value of the IndexName request parameter. // @@ -1078,6 +1272,7 @@ const ( // Required: No // Stability: stable // Examples: 'name_to_group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" // The value of the Select request parameter. // @@ -1085,6 +1280,7 @@ const ( // Required: No // Stability: stable // Examples: 'ALL_ATTRIBUTES', 'COUNT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSelect = "aws.dynamodb.select" ) @@ -1100,6 +1296,7 @@ const ( // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": // number, "WriteCapacityUnits": number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" // The JSON-serialized value of each item of the LocalSecondaryIndexes request // field. @@ -1111,6 +1308,7 @@ const ( // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], // "ProjectionType": "string" } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" ) @@ -1122,6 +1320,7 @@ const ( // Required: No // Stability: stable // Examples: 'Users', 'CatsTable' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" // The the number of items in the TableNames response parameter. // @@ -1129,6 +1328,7 @@ const ( // Required: No // Stability: stable // Examples: 20 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" ) @@ -1139,6 +1339,7 @@ const ( // Type: boolean // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" ) @@ -1150,6 +1351,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" // The value of the TotalSegments request parameter. // @@ -1157,6 +1359,7 @@ const ( // Required: No // Stability: stable // Examples: 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" // The value of the Count response parameter. // @@ -1164,6 +1367,7 @@ const ( // Required: No // Stability: stable // Examples: 10 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBCount = "aws.dynamodb.count" // The value of the ScannedCount response parameter. // @@ -1171,6 +1375,7 @@ const ( // Required: No // Stability: stable // Examples: 50 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" ) @@ -1183,6 +1388,7 @@ const ( // Required: No // Stability: stable // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates // request field. @@ -1195,6 +1401,7 @@ const ( // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": // number } }' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" ) @@ -1206,6 +1413,7 @@ const ( // Required: Always // Stability: stable // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingSystem = "messaging.system" // The message destination name. This might be equal to the span name but is // required nevertheless. @@ -1214,6 +1422,7 @@ const ( // Required: Always // Stability: stable // Examples: 'MyQueue', 'MyTopic' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestination = "messaging.destination" // The kind of message destination // @@ -1221,12 +1430,14 @@ const ( // Required: Required only if the message destination is either a `queue` or // `topic`. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKind = "messaging.destination_kind" // A boolean that is true if the message destination is temporary. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingTempDestination = "messaging.temp_destination" // The name of the transport protocol. // @@ -1234,6 +1445,7 @@ const ( // Required: No // Stability: stable // Examples: 'AMQP', 'MQTT' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocol = "messaging.protocol" // The version of the transport protocol. // @@ -1241,6 +1453,7 @@ const ( // Required: No // Stability: stable // Examples: '0.9.1' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingProtocolVersion = "messaging.protocol_version" // Connection string. // @@ -1249,6 +1462,7 @@ const ( // Stability: stable // Examples: 'tibjmsnaming://localhost:7222', // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingURL = "messaging.url" // A value used by the messaging system as an identifier for the message, // represented as a string. @@ -1257,6 +1471,7 @@ const ( // Required: No // Stability: stable // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessageID = "messaging.message_id" // The conversation ID identifying the conversation to which the message belongs, // represented as a string. Sometimes called "Correlation ID". @@ -1265,6 +1480,7 @@ const ( // Required: No // Stability: stable // Examples: 'MyConversationID' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConversationID = "messaging.conversation_id" // The (uncompressed) size of the message payload in bytes. Also use this // attribute if it is unknown whether the compressed or uncompressed payload size @@ -1274,6 +1490,7 @@ const ( // Required: No // Stability: stable // Examples: 2738 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" // The compressed size of the message payload in bytes. // @@ -1281,13 +1498,16 @@ const ( // Required: No // Stability: stable // Examples: 2048 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" ) const ( // A message sent to a queue + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindQueue = "queue" // A message sent to a topic + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingDestinationKindTopic = "topic" ) @@ -1301,6 +1521,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperation = "messaging.operation" // The identifier for the consumer receiving a message. For Kafka, set it to // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are @@ -1311,13 +1532,16 @@ const ( // Required: No // Stability: stable // Examples: 'mygroup - client-6' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingConsumerID = "messaging.consumer_id" ) const ( // receive + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationReceive = "receive" // process + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingOperationProcess = "process" ) @@ -1329,6 +1553,7 @@ const ( // Required: Unless it is empty. // Stability: stable // Examples: 'myKey' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" ) @@ -1345,6 +1570,7 @@ const ( // 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. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" // Name of the Kafka Consumer Group that is handling the message. Only applies to // consumers, not producers. @@ -1353,6 +1579,7 @@ const ( // Required: No // Stability: stable // Examples: 'my-group' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" // Client ID for the Consumer or Producer that is handling the message. // @@ -1360,6 +1587,7 @@ const ( // Required: No // Stability: stable // Examples: 'client-5' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaClientID = "messaging.kafka.client_id" // Partition the message is sent to. // @@ -1367,12 +1595,14 @@ const ( // Required: No // Stability: stable // Examples: 2 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaPartition = "messaging.kafka.partition" // A boolean that is true if the message is a tombstone. // // Type: boolean // Required: If missing, it is assumed to be false. // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" ) @@ -1385,6 +1615,7 @@ const ( // Required: Always // Stability: stable // Examples: 'myNamespace' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" // Name of the RocketMQ producer/consumer group that is handling the message. The // client type is identified by the SpanKind. @@ -1393,6 +1624,7 @@ const ( // Required: Always // Stability: stable // Examples: 'myConsumerGroup' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" // The unique identifier for each client. // @@ -1400,12 +1632,14 @@ const ( // Required: Always // Stability: stable // Examples: 'myhost@8742@s8083jm' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" // Type of message. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" // The secondary classifier of message besides topic. // @@ -1413,6 +1647,7 @@ const ( // Required: No // Stability: stable // Examples: 'tagA' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" // Key(s) of message, another way to mark message besides message id. // @@ -1420,30 +1655,38 @@ const ( // Required: No // Stability: stable // Examples: 'keyA', 'keyB' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" // Model of message consumption. This only applies to consumer spans. // // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" ) const ( // Normal message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeNormal = "normal" // FIFO message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeFifo = "fifo" // Delay message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeDelay = "delay" // Transaction message + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqMessageTypeTransaction = "transaction" ) const ( // Clustering consumption model + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModelClustering = "clustering" // Broadcasting consumption model + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" ) @@ -1455,6 +1698,7 @@ const ( // Required: Always // Stability: stable // Examples: 'grpc', 'java_rmi', 'wcf' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCSystem = "rpc.system" // The full (logical) name of the service being called, including its package // name, if applicable. @@ -1469,6 +1713,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCService = "rpc.service" // The name of the (logical) method being called, must be equal to the $method // part in the span name. @@ -1482,6 +1727,7 @@ const ( // 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). + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCMethod = "rpc.method" ) @@ -1492,43 +1738,61 @@ const ( // Type: Enum // Required: Always // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" ) const ( // OK + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOk = "0" // CANCELLED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeCancelled = "1" // UNKNOWN + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnknown = "2" // INVALID_ARGUMENT + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInvalidArgument = "3" // DEADLINE_EXCEEDED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" // NOT_FOUND + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeNotFound = "5" // ALREADY_EXISTS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAlreadyExists = "6" // PERMISSION_DENIED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodePermissionDenied = "7" // RESOURCE_EXHAUSTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeResourceExhausted = "8" // FAILED_PRECONDITION + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeFailedPrecondition = "9" // ABORTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeAborted = "10" // OUT_OF_RANGE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeOutOfRange = "11" // UNIMPLEMENTED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnimplemented = "12" // INTERNAL + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeInternal = "13" // UNAVAILABLE + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnavailable = "14" // DATA_LOSS + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeDataLoss = "15" // UNAUTHENTICATED + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCGRPCStatusCodeUnauthenticated = "16" ) @@ -1541,6 +1805,7 @@ const ( // Required: If missing, it is assumed to be "1.0". // Stability: stable // Examples: '2.0', '1.0' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" // 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 @@ -1551,6 +1816,7 @@ const ( // Required: No // Stability: stable // Examples: '10', 'request-7', '' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" // error.code property of response if it is an error response. // @@ -1558,6 +1824,7 @@ const ( // Required: If missing, response is assumed to be successful. // Stability: stable // Examples: -32700, 100 + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" // error.message property of response if it is an error response. // @@ -1565,6 +1832,7 @@ const ( // Required: No // Stability: stable // Examples: 'Parse error', 'User already exists' + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" ) @@ -1575,6 +1843,7 @@ const ( // Type: Enum // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageType = "message.type" // MUST be calculated as two different counters starting from 1 one for sent // messages and one for received message. @@ -1584,28 +1853,34 @@ const ( // Stability: stable // Note: This way we guarantee that the values will be consistent between // different implementations. + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageID = "message.id" // Compressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageCompressedSize = "message.compressed_size" // Uncompressed size of the message in bytes. // // Type: int // Required: No // Stability: stable + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageUncompressedSize = "message.uncompressed_size" ) const ( // sent + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeSent = "SENT" // received + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. AttributeMessageTypeReceived = "RECEIVED" ) +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. func GetTraceSemanticConventionAttributeNames() []string { return []string{ AttributeAWSLambdaInvokedARN, diff --git a/model/semconv/v1.9.0/nonstandard.go b/model/semconv/v1.9.0/nonstandard.go index 5217e6342cac..f5030517d4eb 100644 --- a/model/semconv/v1.9.0/nonstandard.go +++ b/model/semconv/v1.9.0/nonstandard.go @@ -15,8 +15,12 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.9.0" const ( - OtelLibraryName = "otel.library.name" - OtelLibraryVersion = "otel.library.version" - OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryName = "otel.library.name" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelLibraryVersion = "otel.library.version" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. + OtelStatusCode = "otel.status_code" + // Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. OtelStatusDescription = "otel.status_description" ) diff --git a/model/semconv/v1.9.0/schema.go b/model/semconv/v1.9.0/schema.go index 56d5afbd1c8b..85c60c416e56 100644 --- a/model/semconv/v1.9.0/schema.go +++ b/model/semconv/v1.9.0/schema.go @@ -17,4 +17,5 @@ package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.9.0" // SchemaURL is the schema URL that matches the version of the semantic conventions // that this package defines. Conventions packages starting from v1.4.0 must declare // non-empty schema URL in the form https://opentelemetry.io/schemas/ +// Deprecated: [v0.49.0] Use go.opentelemetry.io/collector/semconv module. const SchemaURL = "https://opentelemetry.io/schemas/1.9.0" diff --git a/receiver/otlpreceiver/otlp_test.go b/receiver/otlpreceiver/otlp_test.go index b3bf05179b8b..e47b678f4424 100644 --- a/receiver/otlpreceiver/otlp_test.go +++ b/receiver/otlpreceiver/otlp_test.go @@ -48,11 +48,11 @@ import ( "go.opentelemetry.io/collector/internal/internalconsumertest" "go.opentelemetry.io/collector/internal/testdata" "go.opentelemetry.io/collector/internal/testutil" - semconv "go.opentelemetry.io/collector/model/semconv/v1.5.0" "go.opentelemetry.io/collector/obsreport/obsreporttest" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/ptrace" "go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp" + semconv "go.opentelemetry.io/collector/semconv/v1.5.0" ) const otlpReceiverName = "receiver_test" diff --git a/semconv/Makefile b/semconv/Makefile new file mode 100644 index 000000000000..39734bfaebb2 --- /dev/null +++ b/semconv/Makefile @@ -0,0 +1 @@ +include ../Makefile.Common diff --git a/model/semconv/README.md b/semconv/README.md similarity index 56% rename from model/semconv/README.md rename to semconv/README.md index 94993da31d93..dcbcc71c797e 100644 --- a/model/semconv/README.md +++ b/semconv/README.md @@ -1,19 +1,19 @@ # Semantic Convention Constants -This package contains constants representing the OpenTelemetry semantic conventions. They are automatically generated +This package contains constants representing the OpenTelemetry semantic conventions. They are automatically generated from definitions in the specification. ## Generation -To generate the constants you can use the `gensemconv` make target. You must provide the path to the root of a clone -of the `opentelemetry-specification` repository in the `SPECPATH` variable and the version of the conventions to -generate in the `SPECTAG` variable. +To generate the constants you can use the `gensemconv` make target. You must provide the path to the root of a clone of +the `opentelemetry-specification` repository in the `SPECPATH` variable and the version of the conventions to generate +in the `SPECTAG` variable. ```console $ make gensemconv SPECPATH=~/dev/opentelemetry-specification SPECTAG=v1.5.0 Generating semantic convention constants from specification version v1.5.0 at ~/dev/opentelemetry-specification -semconvgen -o model/semconv/v1.5.0 -t model/internal/semconv/template.j2 -s v1.5.0 -i ~/dev/opentelemetry-specification/semantic_conventions/resource -p conventionType=resource -semconvgen -o model/semconv/v1.5.0 -t model/internal/semconv/template.j2 -s v1.5.0 -i ~/dev/opentelemetry-specification/semantic_conventions/trace -p conventionType=trace +semconvgen -o semconv/v1.5.0 -t semconv/template.j2 -s v1.5.0 -i ~/dev/opentelemetry-specification/semantic_conventions/resource -p conventionType=resource +semconvgen -o semconv/v1.5.0 -t semconv/template.j2 -s v1.5.0 -i ~/dev/opentelemetry-specification/semantic_conventions/trace -p conventionType=trace ``` When generating the constants for a new version ot the specification it is important to note that only diff --git a/semconv/go.mod b/semconv/go.mod new file mode 100644 index 000000000000..87bf58682243 --- /dev/null +++ b/semconv/go.mod @@ -0,0 +1,11 @@ +module go.opentelemetry.io/collector/semconv + +go 1.17 + +require github.com/stretchr/testify v1.7.1 + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/semconv/go.sum b/semconv/go.sum new file mode 100644 index 000000000000..2dca7c9c64eb --- /dev/null +++ b/semconv/go.sum @@ -0,0 +1,11 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/model/semconv/semconv_test.go b/semconv/semconv_test.go similarity index 100% rename from model/semconv/semconv_test.go rename to semconv/semconv_test.go diff --git a/model/internal/semconv/template.j2 b/semconv/template.j2 similarity index 100% rename from model/internal/semconv/template.j2 rename to semconv/template.j2 diff --git a/semconv/v1.5.0/generated_resource.go b/semconv/v1.5.0/generated_resource.go new file mode 100644 index 000000000000..4f2dfc10cf9b --- /dev/null +++ b/semconv/v1.5.0/generated_resource.go @@ -0,0 +1,995 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.5.0" + +// A cloud environment (e.g. GCP, Azure, AWS) +const ( + // Name of the cloud provider. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeCloudProvider = "cloud.provider" + // The cloud account ID the resource is assigned to. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '111111111111', 'opentelemetry' + AttributeCloudAccountID = "cloud.account.id" + // The geographical region the resource is running. Refer to your provider's docs + // to see the available regions, for example AWS regions, Azure regions, or Google + // Cloud regions. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-central1', 'us-east-1' + AttributeCloudRegion = "cloud.region" + // 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 + // Required: No + // Stability: stable + // Examples: 'us-east-1c' + // Note: Availability zones are called "zones" on Google Cloud. + AttributeCloudAvailabilityZone = "cloud.availability_zone" + // The cloud platform in use. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The prefix of the service SHOULD match the one specified in + // cloud.provider. + AttributeCloudPlatform = "cloud.platform" +) + +const ( + // Amazon Web Services + AttributeCloudProviderAWS = "aws" + // Microsoft Azure + AttributeCloudProviderAzure = "azure" + // Google Cloud Platform + AttributeCloudProviderGCP = "gcp" +) + +const ( + // AWS Elastic Compute Cloud + AttributeCloudPlatformAWSEC2 = "aws_ec2" + // AWS Elastic Container Service + AttributeCloudPlatformAWSECS = "aws_ecs" + // AWS Elastic Kubernetes Service + AttributeCloudPlatformAWSEKS = "aws_eks" + // AWS Lambda + AttributeCloudPlatformAWSLambda = "aws_lambda" + // AWS Elastic Beanstalk + AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" + // Azure Virtual Machines + AttributeCloudPlatformAzureVM = "azure_vm" + // Azure Container Instances + AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" + // Azure Kubernetes Service + AttributeCloudPlatformAzureAKS = "azure_aks" + // Azure Functions + AttributeCloudPlatformAzureFunctions = "azure_functions" + // Azure App Service + AttributeCloudPlatformAzureAppService = "azure_app_service" + // Google Cloud Compute Engine (GCE) + AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" + // Google Cloud Run + AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" + // Google Cloud Kubernetes Engine (GKE) + AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" + // Google Cloud Functions (GCF) + AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" + // Google Cloud App Engine (GAE) + AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" +) + +// Resources used by AWS Elastic Container Service (ECS). +const ( + // The Amazon Resource Name (ARN) of an ECS container instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + AttributeAWSECSContainerARN = "aws.ecs.container.arn" + // The ARN of an ECS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" + // The launch type for an ECS task. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeAWSECSLaunchtype = "aws.ecs.launchtype" + // The ARN of an ECS task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSECSTaskARN = "aws.ecs.task.arn" + // The task definition family this task definition is a member of. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-family' + AttributeAWSECSTaskFamily = "aws.ecs.task.family" + // The revision for this task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '8', '26' + AttributeAWSECSTaskRevision = "aws.ecs.task.revision" +) + +const ( + // ec2 + AttributeAWSECSLaunchtypeEC2 = "ec2" + // fargate + AttributeAWSECSLaunchtypeFargate = "fargate" +) + +// Resources used by AWS Elastic Kubernetes Service (EKS). +const ( + // The ARN of an EKS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" +) + +// Resources specific to Amazon Web Services. +const ( + // The name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogGroupNames = "aws.log.group.names" + // The Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' + // Note: See the log group ARN format documentation. + AttributeAWSLogGroupARNs = "aws.log.group.arns" + // The name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSLogStreamNames = "aws.log.stream.names" + // The ARN(s) of the AWS log stream(s). + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogStreamARNs = "aws.log.stream.arns" +) + +// A container instance. +const ( + // Container name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-autoconf' + AttributeContainerName = "container.name" + // Container ID. Usually a UUID, as for example used to identify Docker + // containers. The UUID might be abbreviated. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'a3bf90e006b2' + AttributeContainerID = "container.id" + // The container runtime managing this container. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'docker', 'containerd', 'rkt' + AttributeContainerRuntime = "container.runtime" + // Name of the image the container was built on. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'gcr.io/opentelemetry/operator' + AttributeContainerImageName = "container.image.name" + // Container image tag. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeContainerImageTag = "container.image.tag" +) + +// The software deployment. +const ( + // Name of the deployment environment (aka deployment tier). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'staging', 'production' + AttributeDeploymentEnvironment = "deployment.environment" +) + +// The device on which the process represented by this resource is running. +const ( + // A unique identifier representing the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceID = "device.id" + // The model identifier for the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelIdentifier = "device.model.identifier" + // The marketing name for the device model + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelName = "device.model.name" +) + +// A serverless instance. +const ( + // The name of the single function that this runtime instance executes. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // 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). + AttributeFaaSName = "faas.name" + // The unique ID of the single function that this runtime instance executes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' + // Note: Depending on the cloud provider, use:
      + //
    • 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 invokable with multiple + // different aliases.
      + //
    • GCP: The URI of the resource
    • + //
    • Azure: The Fully Qualified Resource ID.
    • + //
    + // On some providers, it may not be possible to determine the full ID at startup, + // which is why this field cannot be made required. For example, on AWS the + // account ID + // part of the ARN is not available without calling another AWS API + // which may be deemed too slow for a short-running lambda function. + // As an alternative, consider setting faas.id as a span attribute instead. + AttributeFaaSID = "faas.id" + // The immutable version of the function being executed. + // + // Type: string + // Required: No + // Stability: stable + // 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: 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.
    • + //
    + AttributeFaaSVersion = "faas.version" + // The execution environment ID as a string, that will be potentially reused for + // other invocations to the same function/function version. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' + // Note:
      + //
    • AWS Lambda: Use the (full) log stream name.
    • + //
    + AttributeFaaSInstance = "faas.instance" + // The amount of memory available to the serverless function in MiB. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 128 + // 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. + AttributeFaaSMaxMemory = "faas.max_memory" +) + +// A host is defined as a general computing instance. +const ( + // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud + // provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostID = "host.id" + // 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 + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostName = "host.name" + // Type of host. For Cloud, this must be the machine type. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'n1-standard-1' + AttributeHostType = "host.type" + // The CPU architecture the host system is running on. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeHostArch = "host.arch" + // Name of the VM image or OS install the host was instantiated from. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + AttributeHostImageName = "host.image.name" + // VM image ID. For Cloud, this value is from the provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ami-07b06b442921831e5' + AttributeHostImageID = "host.image.id" + // The version string of the VM image as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeHostImageVersion = "host.image.version" +) + +const ( + // AMD64 + AttributeHostArchAMD64 = "amd64" + // ARM32 + AttributeHostArchARM32 = "arm32" + // ARM64 + AttributeHostArchARM64 = "arm64" + // Itanium + AttributeHostArchIA64 = "ia64" + // 32-bit PowerPC + AttributeHostArchPPC32 = "ppc32" + // 64-bit PowerPC + AttributeHostArchPPC64 = "ppc64" + // 32-bit x86 + AttributeHostArchX86 = "x86" +) + +// A Kubernetes Cluster. +const ( + // The name of the cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-cluster' + AttributeK8SClusterName = "k8s.cluster.name" +) + +// A Kubernetes Node object. +const ( + // The name of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'node-1' + AttributeK8SNodeName = "k8s.node.name" + // The UID of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + AttributeK8SNodeUID = "k8s.node.uid" +) + +// A Kubernetes Namespace. +const ( + // The name of the namespace that the pod is running in. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'default' + AttributeK8SNamespaceName = "k8s.namespace.name" +) + +// A Kubernetes Pod object. +const ( + // The UID of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SPodUID = "k8s.pod.uid" + // The name of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-pod-autoconf' + AttributeK8SPodName = "k8s.pod.name" +) + +// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). +const ( + // The name of the Container in a Pod template. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'redis' + AttributeK8SContainerName = "k8s.container.name" +) + +// A Kubernetes ReplicaSet object. +const ( + // The UID of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SReplicaSetUID = "k8s.replicaset.uid" + // The name of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SReplicaSetName = "k8s.replicaset.name" +) + +// A Kubernetes Deployment object. +const ( + // The UID of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDeploymentUID = "k8s.deployment.uid" + // The name of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDeploymentName = "k8s.deployment.name" +) + +// A Kubernetes StatefulSet object. +const ( + // The UID of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SStatefulSetUID = "k8s.statefulset.uid" + // The name of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SStatefulSetName = "k8s.statefulset.name" +) + +// A Kubernetes DaemonSet object. +const ( + // The UID of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDaemonSetUID = "k8s.daemonset.uid" + // The name of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDaemonSetName = "k8s.daemonset.name" +) + +// A Kubernetes Job object. +const ( + // The UID of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SJobUID = "k8s.job.uid" + // The name of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SJobName = "k8s.job.name" +) + +// A Kubernetes CronJob object. +const ( + // The UID of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SCronJobUID = "k8s.cronjob.uid" + // The name of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SCronJobName = "k8s.cronjob.name" +) + +// The operating system (OS) on which the process represented by this resource is running. +const ( + // The operating system type. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeOSType = "os.type" + // Human readable (not intended to be parsed) OS version information, like e.g. + // reported by ver or lsb_release -a commands. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + AttributeOSDescription = "os.description" + // Human readable operating system name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'iOS', 'Android', 'Ubuntu' + AttributeOSName = "os.name" + // The version string of the operating system as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.2.1', '18.04.1' + AttributeOSVersion = "os.version" +) + +const ( + // Microsoft Windows + AttributeOSTypeWindows = "windows" + // Linux + AttributeOSTypeLinux = "linux" + // Apple Darwin + AttributeOSTypeDarwin = "darwin" + // FreeBSD + AttributeOSTypeFreeBSD = "freebsd" + // NetBSD + AttributeOSTypeNetBSD = "netbsd" + // OpenBSD + AttributeOSTypeOpenBSD = "openbsd" + // DragonFly BSD + AttributeOSTypeDragonflyBSD = "dragonflybsd" + // HP-UX (Hewlett Packard Unix) + AttributeOSTypeHPUX = "hpux" + // AIX (Advanced Interactive eXecutive) + AttributeOSTypeAIX = "aix" + // Oracle Solaris + AttributeOSTypeSolaris = "solaris" + // IBM z/OS + AttributeOSTypeZOS = "z_os" +) + +// An operating system process. +const ( + // Process identifier (PID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 1234 + AttributeProcessPID = "process.pid" + // 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 + // Required: See below + // Stability: stable + // Examples: 'otelcol' + AttributeProcessExecutableName = "process.executable.name" + // 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 + // Required: See below + // Stability: stable + // Examples: '/usr/bin/cmd/otelcol' + AttributeProcessExecutablePath = "process.executable.path" + // 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 + // Required: See below + // Stability: stable + // Examples: 'cmd/otelcol' + AttributeProcessCommand = "process.command" + // 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 + // Required: See below + // Stability: stable + // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + AttributeProcessCommandLine = "process.command_line" + // 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[] + // Required: See below + // Stability: stable + // Examples: 'cmd/otecol', '--config=config.yaml' + AttributeProcessCommandArgs = "process.command_args" + // The username of the user that owns the process. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'root' + AttributeProcessOwner = "process.owner" +) + +// The single (language) runtime instance which is monitored. +const ( + // The name of the runtime of this process. For compiled native binaries, this + // SHOULD be the name of the compiler. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'OpenJDK Runtime Environment' + AttributeProcessRuntimeName = "process.runtime.name" + // The version of the runtime of this process, as returned by the runtime without + // modification. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.0.2' + AttributeProcessRuntimeVersion = "process.runtime.version" + // An additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + AttributeProcessRuntimeDescription = "process.runtime.description" +) + +// A service instance. +const ( + // Logical name of the service. + // + // Type: string + // Required: Always + // 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. + AttributeServiceName = "service.name" + // A namespace for service.name. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeServiceNamespace = "service.namespace" + // The string ID of the service instance. + // + // Type: string + // Required: No + // Stability: stable + // 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). It is + // preferable for the ID to be persistent and stay the same for the lifetime of + // the service instance, however it is acceptable that the ID is ephemeral and + // changes during important lifetime events for the service (e.g. service + // restarts). If the service has no inherent unique ID that can be used as the + // value of this attribute it is recommended to generate a random Version 1 or + // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use + // Version 5, see RFC 4122 for more recommendations). + AttributeServiceInstanceID = "service.instance.id" + // The version string of the service API or implementation. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2.0.0' + AttributeServiceVersion = "service.version" +) + +// The telemetry SDK used to capture data recorded by the instrumentation libraries. +const ( + // The name of the telemetry SDK as defined above. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeTelemetrySDKName = "telemetry.sdk.name" + // The language of the telemetry SDK. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeTelemetrySDKLanguage = "telemetry.sdk.language" + // The version string of the telemetry SDK. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetrySDKVersion = "telemetry.sdk.version" + // The version string of the auto instrumentation agent, if used. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetryAutoVersion = "telemetry.auto.version" +) + +const ( + // cpp + AttributeTelemetrySDKLanguageCPP = "cpp" + // dotnet + AttributeTelemetrySDKLanguageDotnet = "dotnet" + // erlang + AttributeTelemetrySDKLanguageErlang = "erlang" + // go + AttributeTelemetrySDKLanguageGo = "go" + // java + AttributeTelemetrySDKLanguageJava = "java" + // nodejs + AttributeTelemetrySDKLanguageNodejs = "nodejs" + // php + AttributeTelemetrySDKLanguagePHP = "php" + // python + AttributeTelemetrySDKLanguagePython = "python" + // ruby + AttributeTelemetrySDKLanguageRuby = "ruby" + // webjs + AttributeTelemetrySDKLanguageWebjs = "webjs" +) + +// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. +const ( + // The name of the web engine. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'WildFly' + AttributeWebEngineName = "webengine.name" + // The version of the web engine. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '21.0.0' + AttributeWebEngineVersion = "webengine.version" + // Additional description of the web engine (e.g. detailed version and edition + // information). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + AttributeWebEngineDescription = "webengine.description" +) + +func GetResourceSemanticConventionAttributeNames() []string { + return []string{ + AttributeCloudProvider, + AttributeCloudAccountID, + AttributeCloudRegion, + AttributeCloudAvailabilityZone, + AttributeCloudPlatform, + AttributeAWSECSContainerARN, + AttributeAWSECSClusterARN, + AttributeAWSECSLaunchtype, + AttributeAWSECSTaskARN, + AttributeAWSECSTaskFamily, + AttributeAWSECSTaskRevision, + AttributeAWSEKSClusterARN, + AttributeAWSLogGroupNames, + AttributeAWSLogGroupARNs, + AttributeAWSLogStreamNames, + AttributeAWSLogStreamARNs, + AttributeContainerName, + AttributeContainerID, + AttributeContainerRuntime, + AttributeContainerImageName, + AttributeContainerImageTag, + AttributeDeploymentEnvironment, + AttributeDeviceID, + AttributeDeviceModelIdentifier, + AttributeDeviceModelName, + AttributeFaaSName, + AttributeFaaSID, + AttributeFaaSVersion, + AttributeFaaSInstance, + AttributeFaaSMaxMemory, + AttributeHostID, + AttributeHostName, + AttributeHostType, + AttributeHostArch, + AttributeHostImageName, + AttributeHostImageID, + AttributeHostImageVersion, + AttributeK8SClusterName, + AttributeK8SNodeName, + AttributeK8SNodeUID, + AttributeK8SNamespaceName, + AttributeK8SPodUID, + AttributeK8SPodName, + AttributeK8SContainerName, + AttributeK8SReplicaSetUID, + AttributeK8SReplicaSetName, + AttributeK8SDeploymentUID, + AttributeK8SDeploymentName, + AttributeK8SStatefulSetUID, + AttributeK8SStatefulSetName, + AttributeK8SDaemonSetUID, + AttributeK8SDaemonSetName, + AttributeK8SJobUID, + AttributeK8SJobName, + AttributeK8SCronJobUID, + AttributeK8SCronJobName, + AttributeOSType, + AttributeOSDescription, + AttributeOSName, + AttributeOSVersion, + AttributeProcessPID, + AttributeProcessExecutableName, + AttributeProcessExecutablePath, + AttributeProcessCommand, + AttributeProcessCommandLine, + AttributeProcessCommandArgs, + AttributeProcessOwner, + AttributeProcessRuntimeName, + AttributeProcessRuntimeVersion, + AttributeProcessRuntimeDescription, + AttributeServiceName, + AttributeServiceNamespace, + AttributeServiceInstanceID, + AttributeServiceVersion, + AttributeTelemetrySDKName, + AttributeTelemetrySDKLanguage, + AttributeTelemetrySDKVersion, + AttributeTelemetryAutoVersion, + AttributeWebEngineName, + AttributeWebEngineVersion, + AttributeWebEngineDescription, + } +} diff --git a/semconv/v1.5.0/generated_trace.go b/semconv/v1.5.0/generated_trace.go new file mode 100644 index 000000000000..33591077be7d --- /dev/null +++ b/semconv/v1.5.0/generated_trace.go @@ -0,0 +1,1487 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.5.0" + +// Span attributes used by AWS Lambda (in addition to general `faas` attributes). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' + // Note: This may be different from faas.id if an alias is involved. + AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" +) + +// This document defines the attributes used to perform database client calls. +const ( + // An identifier for the database management system (DBMS) product being used. See + // below for a list of well-known identifiers. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeDBSystem = "db.system" + // The connection string used to connect to the database. It is recommended to + // remove embedded credentials. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + AttributeDBConnectionString = "db.connection_string" + // Username for accessing the database. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'readonly_user', 'reporting_user' + AttributeDBUser = "db.user" + // The fully-qualified class name of the Java Database Connectivity (JDBC) driver + // used to connect. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'org.postgresql.Driver', + // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" + // If no tech-specific attribute is defined, this attribute is used to report the + // name of the database being accessed. For commands that switch the database, + // this should be set to the target database (even if the command fails). + // + // Type: string + // Required: Required, if applicable and no more-specific attribute is defined. + // Stability: stable + // Examples: 'customers', 'main' + // Note: In some SQL databases, the database name to be used is called + // "schema name". + AttributeDBName = "db.name" + // The database statement being executed. + // + // Type: string + // Required: Required if applicable and not explicitly disabled via + // instrumentation configuration. + // Stability: stable + // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' + // Note: The value may be sanitized to exclude sensitive information. + AttributeDBStatement = "db.statement" + // The name of the operation being executed, e.g. the MongoDB command name such as + // findAndModify, or the SQL keyword. + // + // Type: string + // Required: Required, if `db.statement` is not applicable. + // Stability: stable + // Examples: 'findAndModify', 'HMSET', 'SELECT' + // Note: When setting this to an SQL keyword, it is not recommended to attempt any + // client-side parsing of db.statement just to get this property, but it should be + // set if the operation name is provided by the library being instrumented. If the + // SQL statement has an ambiguous operation, or performs more than one operation, + // this value may be omitted. + AttributeDBOperation = "db.operation" +) + +const ( + // Some other SQL database. Fallback only. See notes + AttributeDBSystemOtherSQL = "other_sql" + // Microsoft SQL Server + AttributeDBSystemMSSQL = "mssql" + // MySQL + AttributeDBSystemMySQL = "mysql" + // Oracle Database + AttributeDBSystemOracle = "oracle" + // IBM DB2 + AttributeDBSystemDB2 = "db2" + // PostgreSQL + AttributeDBSystemPostgreSQL = "postgresql" + // Amazon Redshift + AttributeDBSystemRedshift = "redshift" + // Apache Hive + AttributeDBSystemHive = "hive" + // Cloudscape + AttributeDBSystemCloudscape = "cloudscape" + // HyperSQL DataBase + AttributeDBSystemHSQLDB = "hsqldb" + // Progress Database + AttributeDBSystemProgress = "progress" + // SAP MaxDB + AttributeDBSystemMaxDB = "maxdb" + // SAP HANA + AttributeDBSystemHanaDB = "hanadb" + // Ingres + AttributeDBSystemIngres = "ingres" + // FirstSQL + AttributeDBSystemFirstSQL = "firstsql" + // EnterpriseDB + AttributeDBSystemEDB = "edb" + // InterSystems Caché + AttributeDBSystemCache = "cache" + // Adabas (Adaptable Database System) + AttributeDBSystemAdabas = "adabas" + // Firebird + AttributeDBSystemFirebird = "firebird" + // Apache Derby + AttributeDBSystemDerby = "derby" + // FileMaker + AttributeDBSystemFilemaker = "filemaker" + // Informix + AttributeDBSystemInformix = "informix" + // InstantDB + AttributeDBSystemInstantDB = "instantdb" + // InterBase + AttributeDBSystemInterbase = "interbase" + // MariaDB + AttributeDBSystemMariaDB = "mariadb" + // Netezza + AttributeDBSystemNetezza = "netezza" + // Pervasive PSQL + AttributeDBSystemPervasive = "pervasive" + // PointBase + AttributeDBSystemPointbase = "pointbase" + // SQLite + AttributeDBSystemSqlite = "sqlite" + // Sybase + AttributeDBSystemSybase = "sybase" + // Teradata + AttributeDBSystemTeradata = "teradata" + // Vertica + AttributeDBSystemVertica = "vertica" + // H2 + AttributeDBSystemH2 = "h2" + // ColdFusion IMQ + AttributeDBSystemColdfusion = "coldfusion" + // Apache Cassandra + AttributeDBSystemCassandra = "cassandra" + // Apache HBase + AttributeDBSystemHBase = "hbase" + // MongoDB + AttributeDBSystemMongoDB = "mongodb" + // Redis + AttributeDBSystemRedis = "redis" + // Couchbase + AttributeDBSystemCouchbase = "couchbase" + // CouchDB + AttributeDBSystemCouchDB = "couchdb" + // Microsoft Azure Cosmos DB + AttributeDBSystemCosmosDB = "cosmosdb" + // Amazon DynamoDB + AttributeDBSystemDynamoDB = "dynamodb" + // Neo4j + AttributeDBSystemNeo4j = "neo4j" + // Apache Geode + AttributeDBSystemGeode = "geode" + // Elasticsearch + AttributeDBSystemElasticsearch = "elasticsearch" + // Memcached + AttributeDBSystemMemcached = "memcached" + // CockroachDB + AttributeDBSystemCockroachdb = "cockroachdb" +) + +// Connection-level attributes for Microsoft SQL Server +const ( + // The Microsoft SQL Server instance name connecting to. This name is used to + // determine the port of a named instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MSSQLSERVER' + // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required + // (but still recommended if non-standard). + AttributeDBMSSQLInstanceName = "db.mssql.instance_name" +) + +// Call-level attributes for Cassandra +const ( + // The name of the keyspace being accessed. To be used instead of the generic + // db.name attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'mykeyspace' + AttributeDBCassandraKeyspace = "db.cassandra.keyspace" + // The fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5000 + AttributeDBCassandraPageSize = "db.cassandra.page_size" + // The consistency level of the query. Based on consistency values from CQL. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'mytable' + // Note: This mirrors the db.sql.table attribute but references cassandra rather + // than sql. It is not recommended to attempt any client-side parsing of + // db.statement just to get this property, but it should be set if it is provided + // by the library being instrumented. If the operation is acting upon an anonymous + // table, or more than one table, this value MUST NOT be set. + AttributeDBCassandraTable = "db.cassandra.table" + // Whether or not the query is idempotent. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeDBCassandraIdempotence = "db.cassandra.idempotence" + // The number of times a query was speculatively executed. Not set or 0 if the + // query was not executed speculatively. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" + // The ID of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" + // The data center of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-west-2' + AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" +) + +const ( + // all + AttributeDBCassandraConsistencyLevelAll = "all" + // each_quorum + AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" + // quorum + AttributeDBCassandraConsistencyLevelQuorum = "quorum" + // local_quorum + AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" + // one + AttributeDBCassandraConsistencyLevelOne = "one" + // two + AttributeDBCassandraConsistencyLevelTwo = "two" + // three + AttributeDBCassandraConsistencyLevelThree = "three" + // local_one + AttributeDBCassandraConsistencyLevelLocalOne = "local_one" + // any + AttributeDBCassandraConsistencyLevelAny = "any" + // serial + AttributeDBCassandraConsistencyLevelSerial = "serial" + // local_serial + AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" +) + +// Call-level attributes for Apache HBase +const ( + // The HBase namespace being accessed. To be used instead of the generic db.name + // attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'default' + AttributeDBHBaseNamespace = "db.hbase.namespace" +) + +// Call-level attributes for Redis +const ( + // The index of the database being accessed as used in the SELECT command, + // provided as an integer. To be used instead of the generic db.name attribute. + // + // Type: int + // Required: Required, if other than the default database (`0`). + // Stability: stable + // Examples: 0, 1, 15 + AttributeDBRedisDBIndex = "db.redis.database_index" +) + +// Call-level attributes for MongoDB +const ( + // The collection being accessed within the database stated in db.name. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'customers', 'products' + AttributeDBMongoDBCollection = "db.mongodb.collection" +) + +// Call-level attrbiutes for SQL databases +const ( + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'public.users', 'customers' + // Note: It is not recommended to attempt any client-side parsing of db.statement + // just to get this property, but it should be set if it is provided by the + // library being instrumented. If the operation is acting upon an anonymous table, + // or more than one table, this value MUST NOT be set. + AttributeDBSQLTable = "db.sql.table" +) + +// This document defines the attributes used to report a single exception associated with a span. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'java.net.ConnectException', 'OSError' + AttributeExceptionType = "exception.type" + // The exception message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + AttributeExceptionMessage = "exception.message" + // 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 + // Required: No + // 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)' + AttributeExceptionStacktrace = "exception.stacktrace" + // 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 + // Required: No + // Stability: stable + // 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 above.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. + AttributeExceptionEscaped = "exception.escaped" +) + +// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. +const ( + // Type of the trigger on which the function is executed. + // + // Type: Enum + // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. + // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing + // invocations, if it is known to the client. This is, for example, not the case, + // when the transport layer is abstracted in a FaaS client framework without + // access to its configuration. + // Stability: stable + AttributeFaaSTrigger = "faas.trigger" + // The execution ID of the current function execution. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + AttributeFaaSExecution = "faas.execution" +) + +const ( + // A response to some data source operation such as a database or filesystem read/write + AttributeFaaSTriggerDatasource = "datasource" + // To provide an answer to an inbound HTTP request + AttributeFaaSTriggerHTTP = "http" + // A function is set to be executed when messages are sent to a messaging system + AttributeFaaSTriggerPubsub = "pubsub" + // A function is scheduled to be executed regularly + AttributeFaaSTriggerTimer = "timer" + // If none of the others apply + AttributeFaaSTriggerOther = "other" +) + +// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. +const ( + // 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 + // Required: Always + // Stability: stable + // Examples: 'myBucketName', 'myDBName' + AttributeFaaSDocumentCollection = "faas.document.collection" + // Describes the type of the operation that was performed on the data. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeFaaSDocumentOperation = "faas.document.operation" + // A string containing the time when the data was accessed in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSDocumentTime = "faas.document.time" + // 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 + // Required: No + // Stability: stable + // Examples: 'myFile.txt', 'myTableName' + AttributeFaaSDocumentName = "faas.document.name" +) + +const ( + // When a new object is created + AttributeFaaSDocumentOperationInsert = "insert" + // When an object is modified + AttributeFaaSDocumentOperationEdit = "edit" + // When an object is deleted + AttributeFaaSDocumentOperationDelete = "delete" +) + +// Semantic Convention for FaaS scheduled to be executed regularly. +const ( + // A string containing the function invocation time in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSTime = "faas.time" + // A string containing the schedule period as Cron Expression. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0/5 * * * ? *' + AttributeFaaSCron = "faas.cron" +) + +// Contains additional attributes for incoming FaaS spans. +const ( + // A boolean that is true if the serverless function is executed for the first + // time (aka cold-start). + // + // Type: boolean + // Required: No + // Stability: stable + AttributeFaaSColdstart = "faas.coldstart" +) + +// Contains additional attributes for outgoing FaaS spans. +const ( + // The name of the invoked function. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // Note: SHOULD be equal to the faas.name resource attribute of the invoked + // function. + AttributeFaaSInvokedName = "faas.invoked_name" + // The cloud provider of the invoked function. + // + // Type: Enum + // Required: Always + // Stability: stable + // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked + // function. + AttributeFaaSInvokedProvider = "faas.invoked_provider" + // The cloud region of the invoked function. + // + // Type: string + // Required: For some cloud providers, like AWS or GCP, the region in which a + // function is hosted is essential to uniquely identify the function and also part + // of its endpoint. Since it's part of the endpoint being called, the region is + // always known to clients. In these cases, `faas.invoked_region` MUST be set + // accordingly. If the region is unknown to the client or not required for + // identifying the invoked function, setting `faas.invoked_region` is optional. + // Stability: stable + // Examples: 'eu-central-1' + // Note: SHOULD be equal to the cloud.region resource attribute of the invoked + // function. + AttributeFaaSInvokedRegion = "faas.invoked_region" +) + +const ( + // Amazon Web Services + AttributeFaaSInvokedProviderAWS = "aws" + // Microsoft Azure + AttributeFaaSInvokedProviderAzure = "azure" + // Google Cloud Platform + AttributeFaaSInvokedProviderGCP = "gcp" +) + +// These attributes may be used for any network related operation. +const ( + // Transport protocol used. See note below. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeNetTransport = "net.transport" + // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) + // + // Type: string + // Required: No + // Stability: stable + // Examples: '127.0.0.1' + AttributeNetPeerIP = "net.peer.ip" + // Remote port number. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 80, 8080, 443 + AttributeNetPeerPort = "net.peer.port" + // Remote hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + AttributeNetPeerName = "net.peer.name" + // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '192.168.0.1' + AttributeNetHostIP = "net.host.ip" + // Like net.peer.port but for the host port. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 35555 + AttributeNetHostPort = "net.host.port" + // Local hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'localhost' + AttributeNetHostName = "net.host.name" +) + +const ( + // ip_tcp + AttributeNetTransportTCP = "ip_tcp" + // ip_udp + AttributeNetTransportUDP = "ip_udp" + // Another IP-based protocol + AttributeNetTransportIP = "ip" + // Unix Domain socket. See below + AttributeNetTransportUnix = "unix" + // Named or anonymous pipe. See note below + AttributeNetTransportPipe = "pipe" + // In-process communication + AttributeNetTransportInProc = "inproc" + // Something else (non IP-based) + AttributeNetTransportOther = "other" +) + +// Operations that access some remote service. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'AuthTokenCache' + AttributePeerService = "peer.service" +) + +// These attributes may be used for any operation with an authenticated and/or authorized enduser. +const ( + // Username or client_id extracted from the access token or Authorization header + // in the inbound request from outside the system. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'username' + AttributeEnduserID = "enduser.id" + // Actual/assumed role the client is making the request under extracted from token + // or application security context. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'admin' + AttributeEnduserRole = "enduser.role" + // Scopes or granted authorities the client currently possesses extracted from + // token or application security context. The value would come from the scope + // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 + // Assertion. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'read:message, write:files' + AttributeEnduserScope = "enduser.scope" +) + +// These attributes may be used for any operation to store information about a thread that started a span. +const ( + // Current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeThreadID = "thread.id" + // Current thread name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'main' + AttributeThreadName = "thread.name" +) + +// These attributes allow to report this unit of code and therefore to provide more context about the span. +const ( + // The method or function name, or equivalent (usually rightmost part of the code + // unit's name). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'serveRequest' + AttributeCodeFunction = "code.function" + // 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 + // Required: No + // Stability: stable + // Examples: 'com.example.MyHTTPService' + AttributeCodeNamespace = "code.namespace" + // The source code file name that identifies the code unit as uniquely as possible + // (preferably an absolute file path). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/usr/local/MyApplication/content_root/app/index.php' + AttributeCodeFilepath = "code.filepath" + // The line number in code.filepath best representing the operation. It SHOULD + // point within the code unit named in code.function. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeCodeLineNumber = "code.lineno" +) + +// This document defines semantic conventions for HTTP client and server Spans. +const ( + // HTTP request method. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'GET', 'POST', 'HEAD' + AttributeHTTPMethod = "http.method" + // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. + // Usually the fragment is not transmitted over HTTP, but if it is known, it + // should be included nevertheless. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' + // Note: http.url MUST NOT contain credentials passed via URL in form of + // https://username:password@www.example.com/. In such case the attribute's value + // should be https://www.example.com/. + AttributeHTTPURL = "http.url" + // The full request target as passed in a HTTP request line or equivalent. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/path/12314/?q=ddds#123' + AttributeHTTPTarget = "http.target" + // The value of the HTTP host header. When the header is empty or not present, + // this attribute should be the same. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'www.example.org' + AttributeHTTPHost = "http.host" + // The URI scheme identifying the used protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'http', 'https' + AttributeHTTPScheme = "http.scheme" + // HTTP response status code. + // + // Type: int + // Required: If and only if one was received/sent. + // Stability: stable + // Examples: 200 + AttributeHTTPStatusCode = "http.status_code" + // Kind of HTTP protocol used. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: If net.transport is not specified, it can be assumed to be IP.TCP except + // if http.flavor is QUIC, in which case IP.UDP is assumed. + AttributeHTTPFlavor = "http.flavor" + // Value of the HTTP User-Agent header sent by the client. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + AttributeHTTPUserAgent = "http.user_agent" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPRequestContentLength = "http.request_content_length" + // The size of the uncompressed request payload body after transport decoding. Not + // set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPResponseContentLength = "http.response_content_length" + // The size of the uncompressed response payload body after transport decoding. + // Not set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" +) + +const ( + // HTTP 1.0 + AttributeHTTPFlavorHTTP10 = "1.0" + // HTTP 1.1 + AttributeHTTPFlavorHTTP11 = "1.1" + // HTTP 2 + AttributeHTTPFlavorHTTP20 = "2.0" + // SPDY protocol + AttributeHTTPFlavorSPDY = "SPDY" + // QUIC protocol + AttributeHTTPFlavorQUIC = "QUIC" +) + +// Semantic Convention for HTTP Server +const ( + // The primary server name of the matched virtual host. This should be obtained + // via configuration. If no such configuration can be obtained, this attribute + // MUST NOT be set ( net.host.name should be used instead). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + // Note: http.url is usually not readily available on the server side but would + // have to be assembled in a cumbersome and sometimes lossy process from other + // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus + // preferred to supply the raw data that is available. + AttributeHTTPServerName = "http.server_name" + // The matched route (path template). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/users/:userID?' + AttributeHTTPRoute = "http.route" + // The IP address of the original client behind all proxies, if known (e.g. from + // X-Forwarded-For). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '83.164.160.102' + // Note: This is not necessarily the same as net.peer.ip, which would identify the + // network-level peer, which may be a proxy. + AttributeHTTPClientIP = "http.client_ip" +) + +// Attributes that exist for multiple DynamoDB request types. +const ( + // The keys in the RequestItems object field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'Users', 'Cats' + AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" + // The JSON-serialized value of each item in the ConsumedCapacity response field. + // + // Type: string[] + // Required: No + // Stability: stable + // 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 }' + AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" + // The JSON-serialized value of the ItemCollectionMetrics response field. + // + // Type: string + // Required: No + // Stability: stable + // 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 ] } ] }' + AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" + // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" + // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" + // The value of the ConsistentRead request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" + // The value of the ProjectionExpression request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, + // ProductReviews' + AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" + // The value of the Limit request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" + // The value of the AttributesToGet request parameter. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'lives', 'id' + AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" + // The value of the IndexName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'name_to_group' + AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" + // The value of the Select request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ALL_ATTRIBUTES', 'COUNT' + AttributeAWSDynamoDBSelect = "aws.dynamodb.select" +) + +// DynamoDB.CreateTable +const ( + // The JSON-serialized value of each item of the GlobalSecondaryIndexes request + // field + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": + // number, "WriteCapacityUnits": number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" + // The JSON-serialized value of each item of the LocalSecondaryIndexes request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }' + AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" +) + +// DynamoDB.ListTables +const ( + // The value of the ExclusiveStartTableName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Users', 'CatsTable' + AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" + // The the number of items in the TableNames response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 20 + AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" +) + +// DynamoDB.Query +const ( + // The value of the ScanIndexForward request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" +) + +// DynamoDB.Scan +const ( + // The value of the Segment request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" + // The value of the TotalSegments request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 100 + AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" + // The value of the Count response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBCount = "aws.dynamodb.count" + // The value of the ScannedCount response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 50 + AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" +) + +// DynamoDB.UpdateTable +const ( + // The JSON-serialized value of each item in the AttributeDefinitions request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" + // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates + // request field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" +) + +// This document defines the attributes used in messaging systems. +const ( + // A string identifying the messaging system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + AttributeMessagingSystem = "messaging.system" + // The message destination name. This might be equal to the span name but is + // required nevertheless. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'MyQueue', 'MyTopic' + AttributeMessagingDestination = "messaging.destination" + // The kind of message destination + // + // Type: Enum + // Required: Required only if the message destination is either a `queue` or + // `topic`. + // Stability: stable + AttributeMessagingDestinationKind = "messaging.destination_kind" + // A boolean that is true if the message destination is temporary. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingTempDestination = "messaging.temp_destination" + // The name of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'AMQP', 'MQTT' + AttributeMessagingProtocol = "messaging.protocol" + // The version of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.9.1' + AttributeMessagingProtocolVersion = "messaging.protocol_version" + // Connection string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tibjmsnaming://localhost:7222', + // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + AttributeMessagingURL = "messaging.url" + // A value used by the messaging system as an identifier for the message, + // represented as a string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + AttributeMessagingMessageID = "messaging.message_id" + // The conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MyConversationID' + AttributeMessagingConversationID = "messaging.conversation_id" + // The (uncompressed) size of the message payload in bytes. Also use this + // attribute if it is unknown whether the compressed or uncompressed payload size + // is reported. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2738 + AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" + // The compressed size of the message payload in bytes. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2048 + AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" +) + +const ( + // A message sent to a queue + AttributeMessagingDestinationKindQueue = "queue" + // A message sent to a topic + AttributeMessagingDestinationKindTopic = "topic" +) + +// Semantic convention for a consumer of messages received from a messaging system +const ( + // A string identifying the kind of message consumption as defined in the + // Operation names section above. If the operation is "send", this + // attribute MUST NOT be set, since the operation can be inferred from the span + // kind in that case. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingOperation = "messaging.operation" +) + +const ( + // receive + AttributeMessagingOperationReceive = "receive" + // process + AttributeMessagingOperationProcess = "process" +) + +// Attributes for RabbitMQ +const ( + // RabbitMQ message routing key. + // + // Type: string + // Required: Unless it is empty. + // Stability: stable + // Examples: 'myKey' + AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" +) + +// Attributes for Apache Kafka +const ( + // 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 + // Required: No + // Stability: stable + // 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. + AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" + // Name of the Kafka Consumer Group that is handling the message. Only applies to + // consumers, not producers. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'my-group' + AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" + // Client ID for the Consumer or Producer that is handling the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'client-5' + AttributeMessagingKafkaClientID = "messaging.kafka.client_id" + // Partition the message is sent to. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2 + AttributeMessagingKafkaPartition = "messaging.kafka.partition" + // A boolean that is true if the message is a tombstone. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" +) + +// This document defines semantic conventions for remote procedure calls. +const ( + // A string identifying the remoting system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'grpc', 'java_rmi', 'wcf' + AttributeRPCSystem = "rpc.system" + // The full (logical) name of the service being called, including its package + // name, if applicable. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCService = "rpc.service" + // The name of the (logical) method being called, must be equal to the $method + // part in the span name. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCMethod = "rpc.method" +) + +// Tech-specific attributes for gRPC. +const ( + // The numeric status code of the gRPC request. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" +) + +const ( + // OK + AttributeRPCGRPCStatusCodeOk = "0" + // CANCELLED + AttributeRPCGRPCStatusCodeCancelled = "1" + // UNKNOWN + AttributeRPCGRPCStatusCodeUnknown = "2" + // INVALID_ARGUMENT + AttributeRPCGRPCStatusCodeInvalidArgument = "3" + // DEADLINE_EXCEEDED + AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" + // NOT_FOUND + AttributeRPCGRPCStatusCodeNotFound = "5" + // ALREADY_EXISTS + AttributeRPCGRPCStatusCodeAlreadyExists = "6" + // PERMISSION_DENIED + AttributeRPCGRPCStatusCodePermissionDenied = "7" + // RESOURCE_EXHAUSTED + AttributeRPCGRPCStatusCodeResourceExhausted = "8" + // FAILED_PRECONDITION + AttributeRPCGRPCStatusCodeFailedPrecondition = "9" + // ABORTED + AttributeRPCGRPCStatusCodeAborted = "10" + // OUT_OF_RANGE + AttributeRPCGRPCStatusCodeOutOfRange = "11" + // UNIMPLEMENTED + AttributeRPCGRPCStatusCodeUnimplemented = "12" + // INTERNAL + AttributeRPCGRPCStatusCodeInternal = "13" + // UNAVAILABLE + AttributeRPCGRPCStatusCodeUnavailable = "14" + // DATA_LOSS + AttributeRPCGRPCStatusCodeDataLoss = "15" + // UNAUTHENTICATED + AttributeRPCGRPCStatusCodeUnauthenticated = "16" +) + +// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). +const ( + // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 + // does not specify this, the value can be omitted. + // + // Type: string + // Required: If missing, it is assumed to be "1.0". + // Stability: stable + // Examples: '2.0', '1.0' + AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" + // 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 + // Required: No + // Stability: stable + // Examples: '10', 'request-7', '' + AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" + // error.code property of response if it is an error response. + // + // Type: int + // Required: If missing, response is assumed to be successful. + // Stability: stable + // Examples: -32700, 100 + AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" + // error.message property of response if it is an error response. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Parse error', 'User already exists' + AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" +) + +func GetTraceSemanticConventionAttributeNames() []string { + return []string{ + AttributeAWSLambdaInvokedARN, + AttributeDBSystem, + AttributeDBConnectionString, + AttributeDBUser, + AttributeDBJDBCDriverClassname, + AttributeDBName, + AttributeDBStatement, + AttributeDBOperation, + AttributeDBMSSQLInstanceName, + AttributeDBCassandraKeyspace, + AttributeDBCassandraPageSize, + AttributeDBCassandraConsistencyLevel, + AttributeDBCassandraTable, + AttributeDBCassandraIdempotence, + AttributeDBCassandraSpeculativeExecutionCount, + AttributeDBCassandraCoordinatorID, + AttributeDBCassandraCoordinatorDC, + AttributeDBHBaseNamespace, + AttributeDBRedisDBIndex, + AttributeDBMongoDBCollection, + AttributeDBSQLTable, + AttributeExceptionType, + AttributeExceptionMessage, + AttributeExceptionStacktrace, + AttributeExceptionEscaped, + AttributeFaaSTrigger, + AttributeFaaSExecution, + AttributeFaaSDocumentCollection, + AttributeFaaSDocumentOperation, + AttributeFaaSDocumentTime, + AttributeFaaSDocumentName, + AttributeFaaSTime, + AttributeFaaSCron, + AttributeFaaSColdstart, + AttributeFaaSInvokedName, + AttributeFaaSInvokedProvider, + AttributeFaaSInvokedRegion, + AttributeNetTransport, + AttributeNetPeerIP, + AttributeNetPeerPort, + AttributeNetPeerName, + AttributeNetHostIP, + AttributeNetHostPort, + AttributeNetHostName, + AttributePeerService, + AttributeEnduserID, + AttributeEnduserRole, + AttributeEnduserScope, + AttributeThreadID, + AttributeThreadName, + AttributeCodeFunction, + AttributeCodeNamespace, + AttributeCodeFilepath, + AttributeCodeLineNumber, + AttributeHTTPMethod, + AttributeHTTPURL, + AttributeHTTPTarget, + AttributeHTTPHost, + AttributeHTTPScheme, + AttributeHTTPStatusCode, + AttributeHTTPFlavor, + AttributeHTTPUserAgent, + AttributeHTTPRequestContentLength, + AttributeHTTPRequestContentLengthUncompressed, + AttributeHTTPResponseContentLength, + AttributeHTTPResponseContentLengthUncompressed, + AttributeHTTPServerName, + AttributeHTTPRoute, + AttributeHTTPClientIP, + AttributeAWSDynamoDBTableNames, + AttributeAWSDynamoDBConsumedCapacity, + AttributeAWSDynamoDBItemCollectionMetrics, + AttributeAWSDynamoDBProvisionedReadCapacity, + AttributeAWSDynamoDBProvisionedWriteCapacity, + AttributeAWSDynamoDBConsistentRead, + AttributeAWSDynamoDBProjection, + AttributeAWSDynamoDBLimit, + AttributeAWSDynamoDBAttributesToGet, + AttributeAWSDynamoDBIndexName, + AttributeAWSDynamoDBSelect, + AttributeAWSDynamoDBGlobalSecondaryIndexes, + AttributeAWSDynamoDBLocalSecondaryIndexes, + AttributeAWSDynamoDBExclusiveStartTable, + AttributeAWSDynamoDBTableCount, + AttributeAWSDynamoDBScanForward, + AttributeAWSDynamoDBSegment, + AttributeAWSDynamoDBTotalSegments, + AttributeAWSDynamoDBCount, + AttributeAWSDynamoDBScannedCount, + AttributeAWSDynamoDBAttributeDefinitions, + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, + AttributeMessagingSystem, + AttributeMessagingDestination, + AttributeMessagingDestinationKind, + AttributeMessagingTempDestination, + AttributeMessagingProtocol, + AttributeMessagingProtocolVersion, + AttributeMessagingURL, + AttributeMessagingMessageID, + AttributeMessagingConversationID, + AttributeMessagingMessagePayloadSizeBytes, + AttributeMessagingMessagePayloadCompressedSizeBytes, + AttributeMessagingOperation, + AttributeMessagingRabbitmqRoutingKey, + AttributeMessagingKafkaMessageKey, + AttributeMessagingKafkaConsumerGroup, + AttributeMessagingKafkaClientID, + AttributeMessagingKafkaPartition, + AttributeMessagingKafkaTombstone, + AttributeRPCSystem, + AttributeRPCService, + AttributeRPCMethod, + AttributeRPCGRPCStatusCode, + AttributeRPCJsonrpcVersion, + AttributeRPCJsonrpcRequestID, + AttributeRPCJsonrpcErrorCode, + AttributeRPCJsonrpcErrorMessage, + } +} diff --git a/semconv/v1.5.0/nonstandard.go b/semconv/v1.5.0/nonstandard.go new file mode 100644 index 000000000000..970b36794e3f --- /dev/null +++ b/semconv/v1.5.0/nonstandard.go @@ -0,0 +1,25 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.5.0" + +const ( + InstrumentationLibraryName = "otel.library.name" + InstrumentationLibraryVersion = "otel.library.version" +) + +const ( + OtelStatusCode = "otel.status_code" + OtelStatusDescription = "otel.status_description" +) diff --git a/semconv/v1.5.0/schema.go b/semconv/v1.5.0/schema.go new file mode 100644 index 000000000000..e2f5f69c335e --- /dev/null +++ b/semconv/v1.5.0/schema.go @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.5.0" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Conventions 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.5.0" diff --git a/semconv/v1.6.1/generated_resource.go b/semconv/v1.6.1/generated_resource.go new file mode 100644 index 000000000000..ff15abb3702f --- /dev/null +++ b/semconv/v1.6.1/generated_resource.go @@ -0,0 +1,1002 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.6.1" + +// A cloud environment (e.g. GCP, Azure, AWS) +const ( + // Name of the cloud provider. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeCloudProvider = "cloud.provider" + // The cloud account ID the resource is assigned to. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '111111111111', 'opentelemetry' + AttributeCloudAccountID = "cloud.account.id" + // The geographical region the resource is running. Refer to your provider's docs + // to see the available regions, for example Alibaba Cloud regions, AWS regions, + // Azure regions, or Google Cloud regions. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-central1', 'us-east-1' + AttributeCloudRegion = "cloud.region" + // 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 + // Required: No + // Stability: stable + // Examples: 'us-east-1c' + // Note: Availability zones are called "zones" on Alibaba Cloud and + // Google Cloud. + AttributeCloudAvailabilityZone = "cloud.availability_zone" + // The cloud platform in use. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The prefix of the service SHOULD match the one specified in + // cloud.provider. + AttributeCloudPlatform = "cloud.platform" +) + +const ( + // Alibaba Cloud + AttributeCloudProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeCloudProviderAWS = "aws" + // Microsoft Azure + AttributeCloudProviderAzure = "azure" + // Google Cloud Platform + AttributeCloudProviderGCP = "gcp" +) + +const ( + // Alibaba Cloud Elastic Compute Service + AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" + // Alibaba Cloud Function Compute + AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" + // AWS Elastic Compute Cloud + AttributeCloudPlatformAWSEC2 = "aws_ec2" + // AWS Elastic Container Service + AttributeCloudPlatformAWSECS = "aws_ecs" + // AWS Elastic Kubernetes Service + AttributeCloudPlatformAWSEKS = "aws_eks" + // AWS Lambda + AttributeCloudPlatformAWSLambda = "aws_lambda" + // AWS Elastic Beanstalk + AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" + // Azure Virtual Machines + AttributeCloudPlatformAzureVM = "azure_vm" + // Azure Container Instances + AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" + // Azure Kubernetes Service + AttributeCloudPlatformAzureAKS = "azure_aks" + // Azure Functions + AttributeCloudPlatformAzureFunctions = "azure_functions" + // Azure App Service + AttributeCloudPlatformAzureAppService = "azure_app_service" + // Google Cloud Compute Engine (GCE) + AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" + // Google Cloud Run + AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" + // Google Cloud Kubernetes Engine (GKE) + AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" + // Google Cloud Functions (GCF) + AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" + // Google Cloud App Engine (GAE) + AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" +) + +// Resources used by AWS Elastic Container Service (ECS). +const ( + // The Amazon Resource Name (ARN) of an ECS container instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + AttributeAWSECSContainerARN = "aws.ecs.container.arn" + // The ARN of an ECS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" + // The launch type for an ECS task. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeAWSECSLaunchtype = "aws.ecs.launchtype" + // The ARN of an ECS task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSECSTaskARN = "aws.ecs.task.arn" + // The task definition family this task definition is a member of. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-family' + AttributeAWSECSTaskFamily = "aws.ecs.task.family" + // The revision for this task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '8', '26' + AttributeAWSECSTaskRevision = "aws.ecs.task.revision" +) + +const ( + // ec2 + AttributeAWSECSLaunchtypeEC2 = "ec2" + // fargate + AttributeAWSECSLaunchtypeFargate = "fargate" +) + +// Resources used by AWS Elastic Kubernetes Service (EKS). +const ( + // The ARN of an EKS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" +) + +// Resources specific to Amazon Web Services. +const ( + // The name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogGroupNames = "aws.log.group.names" + // The Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' + // Note: See the log group ARN format documentation. + AttributeAWSLogGroupARNs = "aws.log.group.arns" + // The name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSLogStreamNames = "aws.log.stream.names" + // The ARN(s) of the AWS log stream(s). + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogStreamARNs = "aws.log.stream.arns" +) + +// A container instance. +const ( + // Container name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-autoconf' + AttributeContainerName = "container.name" + // Container ID. Usually a UUID, as for example used to identify Docker + // containers. The UUID might be abbreviated. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'a3bf90e006b2' + AttributeContainerID = "container.id" + // The container runtime managing this container. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'docker', 'containerd', 'rkt' + AttributeContainerRuntime = "container.runtime" + // Name of the image the container was built on. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'gcr.io/opentelemetry/operator' + AttributeContainerImageName = "container.image.name" + // Container image tag. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeContainerImageTag = "container.image.tag" +) + +// The software deployment. +const ( + // Name of the deployment environment (aka deployment tier). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'staging', 'production' + AttributeDeploymentEnvironment = "deployment.environment" +) + +// The device on which the process represented by this resource is running. +const ( + // A unique identifier representing the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceID = "device.id" + // The model identifier for the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelIdentifier = "device.model.identifier" + // The marketing name for the device model + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelName = "device.model.name" +) + +// A serverless instance. +const ( + // The name of the single function that this runtime instance executes. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // 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). + AttributeFaaSName = "faas.name" + // The unique ID of the single function that this runtime instance executes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' + // Note: Depending on the cloud provider, use:
      + //
    • 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 invokable with multiple + // different aliases.
      + //
    • GCP: The URI of the resource
    • + //
    • Azure: The Fully Qualified Resource ID.
    • + //
    + // On some providers, it may not be possible to determine the full ID at startup, + // which is why this field cannot be made required. For example, on AWS the + // account ID + // part of the ARN is not available without calling another AWS API + // which may be deemed too slow for a short-running lambda function. + // As an alternative, consider setting faas.id as a span attribute instead. + AttributeFaaSID = "faas.id" + // The immutable version of the function being executed. + // + // Type: string + // Required: No + // Stability: stable + // 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: 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.
    • + //
    + AttributeFaaSVersion = "faas.version" + // The execution environment ID as a string, that will be potentially reused for + // other invocations to the same function/function version. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' + // Note:
      + //
    • AWS Lambda: Use the (full) log stream name.
    • + //
    + AttributeFaaSInstance = "faas.instance" + // The amount of memory available to the serverless function in MiB. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 128 + // 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. + AttributeFaaSMaxMemory = "faas.max_memory" +) + +// A host is defined as a general computing instance. +const ( + // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud + // provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostID = "host.id" + // 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 + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostName = "host.name" + // Type of host. For Cloud, this must be the machine type. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'n1-standard-1' + AttributeHostType = "host.type" + // The CPU architecture the host system is running on. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeHostArch = "host.arch" + // Name of the VM image or OS install the host was instantiated from. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + AttributeHostImageName = "host.image.name" + // VM image ID. For Cloud, this value is from the provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ami-07b06b442921831e5' + AttributeHostImageID = "host.image.id" + // The version string of the VM image as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeHostImageVersion = "host.image.version" +) + +const ( + // AMD64 + AttributeHostArchAMD64 = "amd64" + // ARM32 + AttributeHostArchARM32 = "arm32" + // ARM64 + AttributeHostArchARM64 = "arm64" + // Itanium + AttributeHostArchIA64 = "ia64" + // 32-bit PowerPC + AttributeHostArchPPC32 = "ppc32" + // 64-bit PowerPC + AttributeHostArchPPC64 = "ppc64" + // 32-bit x86 + AttributeHostArchX86 = "x86" +) + +// A Kubernetes Cluster. +const ( + // The name of the cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-cluster' + AttributeK8SClusterName = "k8s.cluster.name" +) + +// A Kubernetes Node object. +const ( + // The name of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'node-1' + AttributeK8SNodeName = "k8s.node.name" + // The UID of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + AttributeK8SNodeUID = "k8s.node.uid" +) + +// A Kubernetes Namespace. +const ( + // The name of the namespace that the pod is running in. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'default' + AttributeK8SNamespaceName = "k8s.namespace.name" +) + +// A Kubernetes Pod object. +const ( + // The UID of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SPodUID = "k8s.pod.uid" + // The name of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-pod-autoconf' + AttributeK8SPodName = "k8s.pod.name" +) + +// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). +const ( + // The name of the Container in a Pod template. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'redis' + AttributeK8SContainerName = "k8s.container.name" +) + +// A Kubernetes ReplicaSet object. +const ( + // The UID of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SReplicaSetUID = "k8s.replicaset.uid" + // The name of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SReplicaSetName = "k8s.replicaset.name" +) + +// A Kubernetes Deployment object. +const ( + // The UID of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDeploymentUID = "k8s.deployment.uid" + // The name of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDeploymentName = "k8s.deployment.name" +) + +// A Kubernetes StatefulSet object. +const ( + // The UID of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SStatefulSetUID = "k8s.statefulset.uid" + // The name of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SStatefulSetName = "k8s.statefulset.name" +) + +// A Kubernetes DaemonSet object. +const ( + // The UID of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDaemonSetUID = "k8s.daemonset.uid" + // The name of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDaemonSetName = "k8s.daemonset.name" +) + +// A Kubernetes Job object. +const ( + // The UID of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SJobUID = "k8s.job.uid" + // The name of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SJobName = "k8s.job.name" +) + +// A Kubernetes CronJob object. +const ( + // The UID of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SCronJobUID = "k8s.cronjob.uid" + // The name of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SCronJobName = "k8s.cronjob.name" +) + +// The operating system (OS) on which the process represented by this resource is running. +const ( + // The operating system type. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeOSType = "os.type" + // Human readable (not intended to be parsed) OS version information, like e.g. + // reported by ver or lsb_release -a commands. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + AttributeOSDescription = "os.description" + // Human readable operating system name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'iOS', 'Android', 'Ubuntu' + AttributeOSName = "os.name" + // The version string of the operating system as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.2.1', '18.04.1' + AttributeOSVersion = "os.version" +) + +const ( + // Microsoft Windows + AttributeOSTypeWindows = "windows" + // Linux + AttributeOSTypeLinux = "linux" + // Apple Darwin + AttributeOSTypeDarwin = "darwin" + // FreeBSD + AttributeOSTypeFreeBSD = "freebsd" + // NetBSD + AttributeOSTypeNetBSD = "netbsd" + // OpenBSD + AttributeOSTypeOpenBSD = "openbsd" + // DragonFly BSD + AttributeOSTypeDragonflyBSD = "dragonflybsd" + // HP-UX (Hewlett Packard Unix) + AttributeOSTypeHPUX = "hpux" + // AIX (Advanced Interactive eXecutive) + AttributeOSTypeAIX = "aix" + // Oracle Solaris + AttributeOSTypeSolaris = "solaris" + // IBM z/OS + AttributeOSTypeZOS = "z_os" +) + +// An operating system process. +const ( + // Process identifier (PID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 1234 + AttributeProcessPID = "process.pid" + // 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 + // Required: See below + // Stability: stable + // Examples: 'otelcol' + AttributeProcessExecutableName = "process.executable.name" + // 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 + // Required: See below + // Stability: stable + // Examples: '/usr/bin/cmd/otelcol' + AttributeProcessExecutablePath = "process.executable.path" + // 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 + // Required: See below + // Stability: stable + // Examples: 'cmd/otelcol' + AttributeProcessCommand = "process.command" + // 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 + // Required: See below + // Stability: stable + // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + AttributeProcessCommandLine = "process.command_line" + // 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[] + // Required: See below + // Stability: stable + // Examples: 'cmd/otecol', '--config=config.yaml' + AttributeProcessCommandArgs = "process.command_args" + // The username of the user that owns the process. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'root' + AttributeProcessOwner = "process.owner" +) + +// The single (language) runtime instance which is monitored. +const ( + // The name of the runtime of this process. For compiled native binaries, this + // SHOULD be the name of the compiler. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'OpenJDK Runtime Environment' + AttributeProcessRuntimeName = "process.runtime.name" + // The version of the runtime of this process, as returned by the runtime without + // modification. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.0.2' + AttributeProcessRuntimeVersion = "process.runtime.version" + // An additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + AttributeProcessRuntimeDescription = "process.runtime.description" +) + +// A service instance. +const ( + // Logical name of the service. + // + // Type: string + // Required: Always + // 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. + AttributeServiceName = "service.name" + // A namespace for service.name. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeServiceNamespace = "service.namespace" + // The string ID of the service instance. + // + // Type: string + // Required: No + // Stability: stable + // 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). It is + // preferable for the ID to be persistent and stay the same for the lifetime of + // the service instance, however it is acceptable that the ID is ephemeral and + // changes during important lifetime events for the service (e.g. service + // restarts). If the service has no inherent unique ID that can be used as the + // value of this attribute it is recommended to generate a random Version 1 or + // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use + // Version 5, see RFC 4122 for more recommendations). + AttributeServiceInstanceID = "service.instance.id" + // The version string of the service API or implementation. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2.0.0' + AttributeServiceVersion = "service.version" +) + +// The telemetry SDK used to capture data recorded by the instrumentation libraries. +const ( + // The name of the telemetry SDK as defined above. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeTelemetrySDKName = "telemetry.sdk.name" + // The language of the telemetry SDK. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeTelemetrySDKLanguage = "telemetry.sdk.language" + // The version string of the telemetry SDK. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetrySDKVersion = "telemetry.sdk.version" + // The version string of the auto instrumentation agent, if used. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetryAutoVersion = "telemetry.auto.version" +) + +const ( + // cpp + AttributeTelemetrySDKLanguageCPP = "cpp" + // dotnet + AttributeTelemetrySDKLanguageDotnet = "dotnet" + // erlang + AttributeTelemetrySDKLanguageErlang = "erlang" + // go + AttributeTelemetrySDKLanguageGo = "go" + // java + AttributeTelemetrySDKLanguageJava = "java" + // nodejs + AttributeTelemetrySDKLanguageNodejs = "nodejs" + // php + AttributeTelemetrySDKLanguagePHP = "php" + // python + AttributeTelemetrySDKLanguagePython = "python" + // ruby + AttributeTelemetrySDKLanguageRuby = "ruby" + // webjs + AttributeTelemetrySDKLanguageWebjs = "webjs" +) + +// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. +const ( + // The name of the web engine. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'WildFly' + AttributeWebEngineName = "webengine.name" + // The version of the web engine. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '21.0.0' + AttributeWebEngineVersion = "webengine.version" + // Additional description of the web engine (e.g. detailed version and edition + // information). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + AttributeWebEngineDescription = "webengine.description" +) + +func GetResourceSemanticConventionAttributeNames() []string { + return []string{ + AttributeCloudProvider, + AttributeCloudAccountID, + AttributeCloudRegion, + AttributeCloudAvailabilityZone, + AttributeCloudPlatform, + AttributeAWSECSContainerARN, + AttributeAWSECSClusterARN, + AttributeAWSECSLaunchtype, + AttributeAWSECSTaskARN, + AttributeAWSECSTaskFamily, + AttributeAWSECSTaskRevision, + AttributeAWSEKSClusterARN, + AttributeAWSLogGroupNames, + AttributeAWSLogGroupARNs, + AttributeAWSLogStreamNames, + AttributeAWSLogStreamARNs, + AttributeContainerName, + AttributeContainerID, + AttributeContainerRuntime, + AttributeContainerImageName, + AttributeContainerImageTag, + AttributeDeploymentEnvironment, + AttributeDeviceID, + AttributeDeviceModelIdentifier, + AttributeDeviceModelName, + AttributeFaaSName, + AttributeFaaSID, + AttributeFaaSVersion, + AttributeFaaSInstance, + AttributeFaaSMaxMemory, + AttributeHostID, + AttributeHostName, + AttributeHostType, + AttributeHostArch, + AttributeHostImageName, + AttributeHostImageID, + AttributeHostImageVersion, + AttributeK8SClusterName, + AttributeK8SNodeName, + AttributeK8SNodeUID, + AttributeK8SNamespaceName, + AttributeK8SPodUID, + AttributeK8SPodName, + AttributeK8SContainerName, + AttributeK8SReplicaSetUID, + AttributeK8SReplicaSetName, + AttributeK8SDeploymentUID, + AttributeK8SDeploymentName, + AttributeK8SStatefulSetUID, + AttributeK8SStatefulSetName, + AttributeK8SDaemonSetUID, + AttributeK8SDaemonSetName, + AttributeK8SJobUID, + AttributeK8SJobName, + AttributeK8SCronJobUID, + AttributeK8SCronJobName, + AttributeOSType, + AttributeOSDescription, + AttributeOSName, + AttributeOSVersion, + AttributeProcessPID, + AttributeProcessExecutableName, + AttributeProcessExecutablePath, + AttributeProcessCommand, + AttributeProcessCommandLine, + AttributeProcessCommandArgs, + AttributeProcessOwner, + AttributeProcessRuntimeName, + AttributeProcessRuntimeVersion, + AttributeProcessRuntimeDescription, + AttributeServiceName, + AttributeServiceNamespace, + AttributeServiceInstanceID, + AttributeServiceVersion, + AttributeTelemetrySDKName, + AttributeTelemetrySDKLanguage, + AttributeTelemetrySDKVersion, + AttributeTelemetryAutoVersion, + AttributeWebEngineName, + AttributeWebEngineVersion, + AttributeWebEngineDescription, + } +} diff --git a/semconv/v1.6.1/generated_trace.go b/semconv/v1.6.1/generated_trace.go new file mode 100644 index 000000000000..241cbfcb89f8 --- /dev/null +++ b/semconv/v1.6.1/generated_trace.go @@ -0,0 +1,1598 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.6.1" + +// Span attributes used by AWS Lambda (in addition to general `faas` attributes). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' + // Note: This may be different from faas.id if an alias is involved. + AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" +) + +// This document defines the attributes used to perform database client calls. +const ( + // An identifier for the database management system (DBMS) product being used. See + // below for a list of well-known identifiers. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeDBSystem = "db.system" + // The connection string used to connect to the database. It is recommended to + // remove embedded credentials. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + AttributeDBConnectionString = "db.connection_string" + // Username for accessing the database. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'readonly_user', 'reporting_user' + AttributeDBUser = "db.user" + // The fully-qualified class name of the Java Database Connectivity (JDBC) driver + // used to connect. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'org.postgresql.Driver', + // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" + // If no tech-specific attribute is defined, this attribute is used to report the + // name of the database being accessed. For commands that switch the database, + // this should be set to the target database (even if the command fails). + // + // Type: string + // Required: Required, if applicable and no more-specific attribute is defined. + // Stability: stable + // Examples: 'customers', 'main' + // Note: In some SQL databases, the database name to be used is called + // "schema name". + AttributeDBName = "db.name" + // The database statement being executed. + // + // Type: string + // Required: Required if applicable and not explicitly disabled via + // instrumentation configuration. + // Stability: stable + // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' + // Note: The value may be sanitized to exclude sensitive information. + AttributeDBStatement = "db.statement" + // The name of the operation being executed, e.g. the MongoDB command name such as + // findAndModify, or the SQL keyword. + // + // Type: string + // Required: Required, if `db.statement` is not applicable. + // Stability: stable + // Examples: 'findAndModify', 'HMSET', 'SELECT' + // Note: When setting this to an SQL keyword, it is not recommended to attempt any + // client-side parsing of db.statement just to get this property, but it should be + // set if the operation name is provided by the library being instrumented. If the + // SQL statement has an ambiguous operation, or performs more than one operation, + // this value may be omitted. + AttributeDBOperation = "db.operation" +) + +const ( + // Some other SQL database. Fallback only. See notes + AttributeDBSystemOtherSQL = "other_sql" + // Microsoft SQL Server + AttributeDBSystemMSSQL = "mssql" + // MySQL + AttributeDBSystemMySQL = "mysql" + // Oracle Database + AttributeDBSystemOracle = "oracle" + // IBM DB2 + AttributeDBSystemDB2 = "db2" + // PostgreSQL + AttributeDBSystemPostgreSQL = "postgresql" + // Amazon Redshift + AttributeDBSystemRedshift = "redshift" + // Apache Hive + AttributeDBSystemHive = "hive" + // Cloudscape + AttributeDBSystemCloudscape = "cloudscape" + // HyperSQL DataBase + AttributeDBSystemHSQLDB = "hsqldb" + // Progress Database + AttributeDBSystemProgress = "progress" + // SAP MaxDB + AttributeDBSystemMaxDB = "maxdb" + // SAP HANA + AttributeDBSystemHanaDB = "hanadb" + // Ingres + AttributeDBSystemIngres = "ingres" + // FirstSQL + AttributeDBSystemFirstSQL = "firstsql" + // EnterpriseDB + AttributeDBSystemEDB = "edb" + // InterSystems Caché + AttributeDBSystemCache = "cache" + // Adabas (Adaptable Database System) + AttributeDBSystemAdabas = "adabas" + // Firebird + AttributeDBSystemFirebird = "firebird" + // Apache Derby + AttributeDBSystemDerby = "derby" + // FileMaker + AttributeDBSystemFilemaker = "filemaker" + // Informix + AttributeDBSystemInformix = "informix" + // InstantDB + AttributeDBSystemInstantDB = "instantdb" + // InterBase + AttributeDBSystemInterbase = "interbase" + // MariaDB + AttributeDBSystemMariaDB = "mariadb" + // Netezza + AttributeDBSystemNetezza = "netezza" + // Pervasive PSQL + AttributeDBSystemPervasive = "pervasive" + // PointBase + AttributeDBSystemPointbase = "pointbase" + // SQLite + AttributeDBSystemSqlite = "sqlite" + // Sybase + AttributeDBSystemSybase = "sybase" + // Teradata + AttributeDBSystemTeradata = "teradata" + // Vertica + AttributeDBSystemVertica = "vertica" + // H2 + AttributeDBSystemH2 = "h2" + // ColdFusion IMQ + AttributeDBSystemColdfusion = "coldfusion" + // Apache Cassandra + AttributeDBSystemCassandra = "cassandra" + // Apache HBase + AttributeDBSystemHBase = "hbase" + // MongoDB + AttributeDBSystemMongoDB = "mongodb" + // Redis + AttributeDBSystemRedis = "redis" + // Couchbase + AttributeDBSystemCouchbase = "couchbase" + // CouchDB + AttributeDBSystemCouchDB = "couchdb" + // Microsoft Azure Cosmos DB + AttributeDBSystemCosmosDB = "cosmosdb" + // Amazon DynamoDB + AttributeDBSystemDynamoDB = "dynamodb" + // Neo4j + AttributeDBSystemNeo4j = "neo4j" + // Apache Geode + AttributeDBSystemGeode = "geode" + // Elasticsearch + AttributeDBSystemElasticsearch = "elasticsearch" + // Memcached + AttributeDBSystemMemcached = "memcached" + // CockroachDB + AttributeDBSystemCockroachdb = "cockroachdb" +) + +// Connection-level attributes for Microsoft SQL Server +const ( + // The Microsoft SQL Server instance name connecting to. This name is used to + // determine the port of a named instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MSSQLSERVER' + // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required + // (but still recommended if non-standard). + AttributeDBMSSQLInstanceName = "db.mssql.instance_name" +) + +// Call-level attributes for Cassandra +const ( + // The name of the keyspace being accessed. To be used instead of the generic + // db.name attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'mykeyspace' + AttributeDBCassandraKeyspace = "db.cassandra.keyspace" + // The fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5000 + AttributeDBCassandraPageSize = "db.cassandra.page_size" + // The consistency level of the query. Based on consistency values from CQL. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'mytable' + // Note: This mirrors the db.sql.table attribute but references cassandra rather + // than sql. It is not recommended to attempt any client-side parsing of + // db.statement just to get this property, but it should be set if it is provided + // by the library being instrumented. If the operation is acting upon an anonymous + // table, or more than one table, this value MUST NOT be set. + AttributeDBCassandraTable = "db.cassandra.table" + // Whether or not the query is idempotent. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeDBCassandraIdempotence = "db.cassandra.idempotence" + // The number of times a query was speculatively executed. Not set or 0 if the + // query was not executed speculatively. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" + // The ID of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" + // The data center of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-west-2' + AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" +) + +const ( + // all + AttributeDBCassandraConsistencyLevelAll = "all" + // each_quorum + AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" + // quorum + AttributeDBCassandraConsistencyLevelQuorum = "quorum" + // local_quorum + AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" + // one + AttributeDBCassandraConsistencyLevelOne = "one" + // two + AttributeDBCassandraConsistencyLevelTwo = "two" + // three + AttributeDBCassandraConsistencyLevelThree = "three" + // local_one + AttributeDBCassandraConsistencyLevelLocalOne = "local_one" + // any + AttributeDBCassandraConsistencyLevelAny = "any" + // serial + AttributeDBCassandraConsistencyLevelSerial = "serial" + // local_serial + AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" +) + +// Call-level attributes for Apache HBase +const ( + // The HBase namespace being accessed. To be used instead of the generic db.name + // attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'default' + AttributeDBHBaseNamespace = "db.hbase.namespace" +) + +// Call-level attributes for Redis +const ( + // The index of the database being accessed as used in the SELECT command, + // provided as an integer. To be used instead of the generic db.name attribute. + // + // Type: int + // Required: Required, if other than the default database (`0`). + // Stability: stable + // Examples: 0, 1, 15 + AttributeDBRedisDBIndex = "db.redis.database_index" +) + +// Call-level attributes for MongoDB +const ( + // The collection being accessed within the database stated in db.name. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'customers', 'products' + AttributeDBMongoDBCollection = "db.mongodb.collection" +) + +// Call-level attrbiutes for SQL databases +const ( + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'public.users', 'customers' + // Note: It is not recommended to attempt any client-side parsing of db.statement + // just to get this property, but it should be set if it is provided by the + // library being instrumented. If the operation is acting upon an anonymous table, + // or more than one table, this value MUST NOT be set. + AttributeDBSQLTable = "db.sql.table" +) + +// This document defines the attributes used to report a single exception associated with a span. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'java.net.ConnectException', 'OSError' + AttributeExceptionType = "exception.type" + // The exception message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + AttributeExceptionMessage = "exception.message" + // 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 + // Required: No + // 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)' + AttributeExceptionStacktrace = "exception.stacktrace" + // 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 + // Required: No + // Stability: stable + // 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 above.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. + AttributeExceptionEscaped = "exception.escaped" +) + +// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. +const ( + // Type of the trigger on which the function is executed. + // + // Type: Enum + // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. + // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing + // invocations, if it is known to the client. This is, for example, not the case, + // when the transport layer is abstracted in a FaaS client framework without + // access to its configuration. + // Stability: stable + AttributeFaaSTrigger = "faas.trigger" + // The execution ID of the current function execution. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + AttributeFaaSExecution = "faas.execution" +) + +const ( + // A response to some data source operation such as a database or filesystem read/write + AttributeFaaSTriggerDatasource = "datasource" + // To provide an answer to an inbound HTTP request + AttributeFaaSTriggerHTTP = "http" + // A function is set to be executed when messages are sent to a messaging system + AttributeFaaSTriggerPubsub = "pubsub" + // A function is scheduled to be executed regularly + AttributeFaaSTriggerTimer = "timer" + // If none of the others apply + AttributeFaaSTriggerOther = "other" +) + +// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. +const ( + // 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 + // Required: Always + // Stability: stable + // Examples: 'myBucketName', 'myDBName' + AttributeFaaSDocumentCollection = "faas.document.collection" + // Describes the type of the operation that was performed on the data. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeFaaSDocumentOperation = "faas.document.operation" + // A string containing the time when the data was accessed in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSDocumentTime = "faas.document.time" + // 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 + // Required: No + // Stability: stable + // Examples: 'myFile.txt', 'myTableName' + AttributeFaaSDocumentName = "faas.document.name" +) + +const ( + // When a new object is created + AttributeFaaSDocumentOperationInsert = "insert" + // When an object is modified + AttributeFaaSDocumentOperationEdit = "edit" + // When an object is deleted + AttributeFaaSDocumentOperationDelete = "delete" +) + +// Semantic Convention for FaaS scheduled to be executed regularly. +const ( + // A string containing the function invocation time in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSTime = "faas.time" + // A string containing the schedule period as Cron Expression. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0/5 * * * ? *' + AttributeFaaSCron = "faas.cron" +) + +// Contains additional attributes for incoming FaaS spans. +const ( + // A boolean that is true if the serverless function is executed for the first + // time (aka cold-start). + // + // Type: boolean + // Required: No + // Stability: stable + AttributeFaaSColdstart = "faas.coldstart" +) + +// Contains additional attributes for outgoing FaaS spans. +const ( + // The name of the invoked function. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // Note: SHOULD be equal to the faas.name resource attribute of the invoked + // function. + AttributeFaaSInvokedName = "faas.invoked_name" + // The cloud provider of the invoked function. + // + // Type: Enum + // Required: Always + // Stability: stable + // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked + // function. + AttributeFaaSInvokedProvider = "faas.invoked_provider" + // The cloud region of the invoked function. + // + // Type: string + // Required: For some cloud providers, like AWS or GCP, the region in which a + // function is hosted is essential to uniquely identify the function and also part + // of its endpoint. Since it's part of the endpoint being called, the region is + // always known to clients. In these cases, `faas.invoked_region` MUST be set + // accordingly. If the region is unknown to the client or not required for + // identifying the invoked function, setting `faas.invoked_region` is optional. + // Stability: stable + // Examples: 'eu-central-1' + // Note: SHOULD be equal to the cloud.region resource attribute of the invoked + // function. + AttributeFaaSInvokedRegion = "faas.invoked_region" +) + +const ( + // Alibaba Cloud + AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeFaaSInvokedProviderAWS = "aws" + // Microsoft Azure + AttributeFaaSInvokedProviderAzure = "azure" + // Google Cloud Platform + AttributeFaaSInvokedProviderGCP = "gcp" +) + +// These attributes may be used for any network related operation. +const ( + // Transport protocol used. See note below. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeNetTransport = "net.transport" + // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) + // + // Type: string + // Required: No + // Stability: stable + // Examples: '127.0.0.1' + AttributeNetPeerIP = "net.peer.ip" + // Remote port number. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 80, 8080, 443 + AttributeNetPeerPort = "net.peer.port" + // Remote hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + AttributeNetPeerName = "net.peer.name" + // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '192.168.0.1' + AttributeNetHostIP = "net.host.ip" + // Like net.peer.port but for the host port. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 35555 + AttributeNetHostPort = "net.host.port" + // Local hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'localhost' + AttributeNetHostName = "net.host.name" + // The internet connection type currently being used by the host. + // + // Type: Enum + // Required: No + // Stability: stable + // Examples: 'wifi' + AttributeNetHostConnectionType = "net.host.connection.type" + // 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 + // Required: No + // Stability: stable + // Examples: 'LTE' + AttributeNetHostConnectionSubtype = "net.host.connection.subtype" + // The name of the mobile carrier. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'sprint' + AttributeNetHostCarrierName = "net.host.carrier.name" + // The mobile carrier country code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '310' + AttributeNetHostCarrierMcc = "net.host.carrier.mcc" + // The mobile carrier network code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '001' + AttributeNetHostCarrierMnc = "net.host.carrier.mnc" + // The ISO 3166-1 alpha-2 2-character country code associated with the mobile + // carrier network. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'DE' + AttributeNetHostCarrierIcc = "net.host.carrier.icc" +) + +const ( + // ip_tcp + AttributeNetTransportTCP = "ip_tcp" + // ip_udp + AttributeNetTransportUDP = "ip_udp" + // Another IP-based protocol + AttributeNetTransportIP = "ip" + // Unix Domain socket. See below + AttributeNetTransportUnix = "unix" + // Named or anonymous pipe. See note below + AttributeNetTransportPipe = "pipe" + // In-process communication + AttributeNetTransportInProc = "inproc" + // Something else (non IP-based) + AttributeNetTransportOther = "other" +) + +const ( + // wifi + AttributeNetHostConnectionTypeWifi = "wifi" + // wired + AttributeNetHostConnectionTypeWired = "wired" + // cell + AttributeNetHostConnectionTypeCell = "cell" + // unavailable + AttributeNetHostConnectionTypeUnavailable = "unavailable" + // unknown + AttributeNetHostConnectionTypeUnknown = "unknown" +) + +const ( + // GPRS + AttributeNetHostConnectionSubtypeGprs = "gprs" + // EDGE + AttributeNetHostConnectionSubtypeEdge = "edge" + // UMTS + AttributeNetHostConnectionSubtypeUmts = "umts" + // CDMA + AttributeNetHostConnectionSubtypeCdma = "cdma" + // EVDO Rel. 0 + AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" + // EVDO Rev. A + AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" + // CDMA2000 1XRTT + AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" + // HSDPA + AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" + // HSUPA + AttributeNetHostConnectionSubtypeHsupa = "hsupa" + // HSPA + AttributeNetHostConnectionSubtypeHspa = "hspa" + // IDEN + AttributeNetHostConnectionSubtypeIden = "iden" + // EVDO Rev. B + AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" + // LTE + AttributeNetHostConnectionSubtypeLte = "lte" + // EHRPD + AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" + // HSPAP + AttributeNetHostConnectionSubtypeHspap = "hspap" + // GSM + AttributeNetHostConnectionSubtypeGsm = "gsm" + // TD-SCDMA + AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" + // IWLAN + AttributeNetHostConnectionSubtypeIwlan = "iwlan" + // 5G NR (New Radio) + AttributeNetHostConnectionSubtypeNr = "nr" + // 5G NRNSA (New Radio Non-Standalone) + AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" + // LTE CA + AttributeNetHostConnectionSubtypeLteCa = "lte_ca" +) + +// Operations that access some remote service. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'AuthTokenCache' + AttributePeerService = "peer.service" +) + +// These attributes may be used for any operation with an authenticated and/or authorized enduser. +const ( + // Username or client_id extracted from the access token or Authorization header + // in the inbound request from outside the system. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'username' + AttributeEnduserID = "enduser.id" + // Actual/assumed role the client is making the request under extracted from token + // or application security context. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'admin' + AttributeEnduserRole = "enduser.role" + // Scopes or granted authorities the client currently possesses extracted from + // token or application security context. The value would come from the scope + // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 + // Assertion. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'read:message, write:files' + AttributeEnduserScope = "enduser.scope" +) + +// These attributes may be used for any operation to store information about a thread that started a span. +const ( + // Current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeThreadID = "thread.id" + // Current thread name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'main' + AttributeThreadName = "thread.name" +) + +// These attributes allow to report this unit of code and therefore to provide more context about the span. +const ( + // The method or function name, or equivalent (usually rightmost part of the code + // unit's name). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'serveRequest' + AttributeCodeFunction = "code.function" + // 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 + // Required: No + // Stability: stable + // Examples: 'com.example.MyHTTPService' + AttributeCodeNamespace = "code.namespace" + // The source code file name that identifies the code unit as uniquely as possible + // (preferably an absolute file path). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/usr/local/MyApplication/content_root/app/index.php' + AttributeCodeFilepath = "code.filepath" + // The line number in code.filepath best representing the operation. It SHOULD + // point within the code unit named in code.function. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeCodeLineNumber = "code.lineno" +) + +// This document defines semantic conventions for HTTP client and server Spans. +const ( + // HTTP request method. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'GET', 'POST', 'HEAD' + AttributeHTTPMethod = "http.method" + // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. + // Usually the fragment is not transmitted over HTTP, but if it is known, it + // should be included nevertheless. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' + // Note: http.url MUST NOT contain credentials passed via URL in form of + // https://username:password@www.example.com/. In such case the attribute's value + // should be https://www.example.com/. + AttributeHTTPURL = "http.url" + // The full request target as passed in a HTTP request line or equivalent. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/path/12314/?q=ddds#123' + AttributeHTTPTarget = "http.target" + // The value of the HTTP host header. When the header is empty or not present, + // this attribute should be the same. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'www.example.org' + AttributeHTTPHost = "http.host" + // The URI scheme identifying the used protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'http', 'https' + AttributeHTTPScheme = "http.scheme" + // HTTP response status code. + // + // Type: int + // Required: If and only if one was received/sent. + // Stability: stable + // Examples: 200 + AttributeHTTPStatusCode = "http.status_code" + // Kind of HTTP protocol used. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: If net.transport is not specified, it can be assumed to be IP.TCP except + // if http.flavor is QUIC, in which case IP.UDP is assumed. + AttributeHTTPFlavor = "http.flavor" + // Value of the HTTP User-Agent header sent by the client. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + AttributeHTTPUserAgent = "http.user_agent" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPRequestContentLength = "http.request_content_length" + // The size of the uncompressed request payload body after transport decoding. Not + // set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPResponseContentLength = "http.response_content_length" + // The size of the uncompressed response payload body after transport decoding. + // Not set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" +) + +const ( + // HTTP 1.0 + AttributeHTTPFlavorHTTP10 = "1.0" + // HTTP 1.1 + AttributeHTTPFlavorHTTP11 = "1.1" + // HTTP 2 + AttributeHTTPFlavorHTTP20 = "2.0" + // SPDY protocol + AttributeHTTPFlavorSPDY = "SPDY" + // QUIC protocol + AttributeHTTPFlavorQUIC = "QUIC" +) + +// Semantic Convention for HTTP Server +const ( + // The primary server name of the matched virtual host. This should be obtained + // via configuration. If no such configuration can be obtained, this attribute + // MUST NOT be set ( net.host.name should be used instead). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + // Note: http.url is usually not readily available on the server side but would + // have to be assembled in a cumbersome and sometimes lossy process from other + // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus + // preferred to supply the raw data that is available. + AttributeHTTPServerName = "http.server_name" + // The matched route (path template). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/users/:userID?' + AttributeHTTPRoute = "http.route" + // The IP address of the original client behind all proxies, if known (e.g. from + // X-Forwarded-For). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '83.164.160.102' + // Note: This is not necessarily the same as net.peer.ip, which would identify the + // network-level peer, which may be a proxy. + AttributeHTTPClientIP = "http.client_ip" +) + +// Attributes that exist for multiple DynamoDB request types. +const ( + // The keys in the RequestItems object field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'Users', 'Cats' + AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" + // The JSON-serialized value of each item in the ConsumedCapacity response field. + // + // Type: string[] + // Required: No + // Stability: stable + // 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 }' + AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" + // The JSON-serialized value of the ItemCollectionMetrics response field. + // + // Type: string + // Required: No + // Stability: stable + // 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 ] } ] }' + AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" + // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" + // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" + // The value of the ConsistentRead request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" + // The value of the ProjectionExpression request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, + // ProductReviews' + AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" + // The value of the Limit request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" + // The value of the AttributesToGet request parameter. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'lives', 'id' + AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" + // The value of the IndexName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'name_to_group' + AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" + // The value of the Select request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ALL_ATTRIBUTES', 'COUNT' + AttributeAWSDynamoDBSelect = "aws.dynamodb.select" +) + +// DynamoDB.CreateTable +const ( + // The JSON-serialized value of each item of the GlobalSecondaryIndexes request + // field + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": + // number, "WriteCapacityUnits": number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" + // The JSON-serialized value of each item of the LocalSecondaryIndexes request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }' + AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" +) + +// DynamoDB.ListTables +const ( + // The value of the ExclusiveStartTableName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Users', 'CatsTable' + AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" + // The the number of items in the TableNames response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 20 + AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" +) + +// DynamoDB.Query +const ( + // The value of the ScanIndexForward request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" +) + +// DynamoDB.Scan +const ( + // The value of the Segment request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" + // The value of the TotalSegments request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 100 + AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" + // The value of the Count response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBCount = "aws.dynamodb.count" + // The value of the ScannedCount response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 50 + AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" +) + +// DynamoDB.UpdateTable +const ( + // The JSON-serialized value of each item in the AttributeDefinitions request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" + // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates + // request field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" +) + +// This document defines the attributes used in messaging systems. +const ( + // A string identifying the messaging system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + AttributeMessagingSystem = "messaging.system" + // The message destination name. This might be equal to the span name but is + // required nevertheless. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'MyQueue', 'MyTopic' + AttributeMessagingDestination = "messaging.destination" + // The kind of message destination + // + // Type: Enum + // Required: Required only if the message destination is either a `queue` or + // `topic`. + // Stability: stable + AttributeMessagingDestinationKind = "messaging.destination_kind" + // A boolean that is true if the message destination is temporary. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingTempDestination = "messaging.temp_destination" + // The name of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'AMQP', 'MQTT' + AttributeMessagingProtocol = "messaging.protocol" + // The version of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.9.1' + AttributeMessagingProtocolVersion = "messaging.protocol_version" + // Connection string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tibjmsnaming://localhost:7222', + // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + AttributeMessagingURL = "messaging.url" + // A value used by the messaging system as an identifier for the message, + // represented as a string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + AttributeMessagingMessageID = "messaging.message_id" + // The conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MyConversationID' + AttributeMessagingConversationID = "messaging.conversation_id" + // The (uncompressed) size of the message payload in bytes. Also use this + // attribute if it is unknown whether the compressed or uncompressed payload size + // is reported. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2738 + AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" + // The compressed size of the message payload in bytes. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2048 + AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" +) + +const ( + // A message sent to a queue + AttributeMessagingDestinationKindQueue = "queue" + // A message sent to a topic + AttributeMessagingDestinationKindTopic = "topic" +) + +// Semantic convention for a consumer of messages received from a messaging system +const ( + // A string identifying the kind of message consumption as defined in the + // Operation names section above. If the operation is "send", this + // attribute MUST NOT be set, since the operation can be inferred from the span + // kind in that case. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingOperation = "messaging.operation" +) + +const ( + // receive + AttributeMessagingOperationReceive = "receive" + // process + AttributeMessagingOperationProcess = "process" +) + +// Attributes for RabbitMQ +const ( + // RabbitMQ message routing key. + // + // Type: string + // Required: Unless it is empty. + // Stability: stable + // Examples: 'myKey' + AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" +) + +// Attributes for Apache Kafka +const ( + // 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 + // Required: No + // Stability: stable + // 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. + AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" + // Name of the Kafka Consumer Group that is handling the message. Only applies to + // consumers, not producers. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'my-group' + AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" + // Client ID for the Consumer or Producer that is handling the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'client-5' + AttributeMessagingKafkaClientID = "messaging.kafka.client_id" + // Partition the message is sent to. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2 + AttributeMessagingKafkaPartition = "messaging.kafka.partition" + // A boolean that is true if the message is a tombstone. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" +) + +// This document defines semantic conventions for remote procedure calls. +const ( + // A string identifying the remoting system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'grpc', 'java_rmi', 'wcf' + AttributeRPCSystem = "rpc.system" + // The full (logical) name of the service being called, including its package + // name, if applicable. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCService = "rpc.service" + // The name of the (logical) method being called, must be equal to the $method + // part in the span name. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCMethod = "rpc.method" +) + +// Tech-specific attributes for gRPC. +const ( + // The numeric status code of the gRPC request. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" +) + +const ( + // OK + AttributeRPCGRPCStatusCodeOk = "0" + // CANCELLED + AttributeRPCGRPCStatusCodeCancelled = "1" + // UNKNOWN + AttributeRPCGRPCStatusCodeUnknown = "2" + // INVALID_ARGUMENT + AttributeRPCGRPCStatusCodeInvalidArgument = "3" + // DEADLINE_EXCEEDED + AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" + // NOT_FOUND + AttributeRPCGRPCStatusCodeNotFound = "5" + // ALREADY_EXISTS + AttributeRPCGRPCStatusCodeAlreadyExists = "6" + // PERMISSION_DENIED + AttributeRPCGRPCStatusCodePermissionDenied = "7" + // RESOURCE_EXHAUSTED + AttributeRPCGRPCStatusCodeResourceExhausted = "8" + // FAILED_PRECONDITION + AttributeRPCGRPCStatusCodeFailedPrecondition = "9" + // ABORTED + AttributeRPCGRPCStatusCodeAborted = "10" + // OUT_OF_RANGE + AttributeRPCGRPCStatusCodeOutOfRange = "11" + // UNIMPLEMENTED + AttributeRPCGRPCStatusCodeUnimplemented = "12" + // INTERNAL + AttributeRPCGRPCStatusCodeInternal = "13" + // UNAVAILABLE + AttributeRPCGRPCStatusCodeUnavailable = "14" + // DATA_LOSS + AttributeRPCGRPCStatusCodeDataLoss = "15" + // UNAUTHENTICATED + AttributeRPCGRPCStatusCodeUnauthenticated = "16" +) + +// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). +const ( + // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 + // does not specify this, the value can be omitted. + // + // Type: string + // Required: If missing, it is assumed to be "1.0". + // Stability: stable + // Examples: '2.0', '1.0' + AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" + // 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 + // Required: No + // Stability: stable + // Examples: '10', 'request-7', '' + AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" + // error.code property of response if it is an error response. + // + // Type: int + // Required: If missing, response is assumed to be successful. + // Stability: stable + // Examples: -32700, 100 + AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" + // error.message property of response if it is an error response. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Parse error', 'User already exists' + AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" +) + +func GetTraceSemanticConventionAttributeNames() []string { + return []string{ + AttributeAWSLambdaInvokedARN, + AttributeDBSystem, + AttributeDBConnectionString, + AttributeDBUser, + AttributeDBJDBCDriverClassname, + AttributeDBName, + AttributeDBStatement, + AttributeDBOperation, + AttributeDBMSSQLInstanceName, + AttributeDBCassandraKeyspace, + AttributeDBCassandraPageSize, + AttributeDBCassandraConsistencyLevel, + AttributeDBCassandraTable, + AttributeDBCassandraIdempotence, + AttributeDBCassandraSpeculativeExecutionCount, + AttributeDBCassandraCoordinatorID, + AttributeDBCassandraCoordinatorDC, + AttributeDBHBaseNamespace, + AttributeDBRedisDBIndex, + AttributeDBMongoDBCollection, + AttributeDBSQLTable, + AttributeExceptionType, + AttributeExceptionMessage, + AttributeExceptionStacktrace, + AttributeExceptionEscaped, + AttributeFaaSTrigger, + AttributeFaaSExecution, + AttributeFaaSDocumentCollection, + AttributeFaaSDocumentOperation, + AttributeFaaSDocumentTime, + AttributeFaaSDocumentName, + AttributeFaaSTime, + AttributeFaaSCron, + AttributeFaaSColdstart, + AttributeFaaSInvokedName, + AttributeFaaSInvokedProvider, + AttributeFaaSInvokedRegion, + AttributeNetTransport, + AttributeNetPeerIP, + AttributeNetPeerPort, + AttributeNetPeerName, + AttributeNetHostIP, + AttributeNetHostPort, + AttributeNetHostName, + AttributeNetHostConnectionType, + AttributeNetHostConnectionSubtype, + AttributeNetHostCarrierName, + AttributeNetHostCarrierMcc, + AttributeNetHostCarrierMnc, + AttributeNetHostCarrierIcc, + AttributePeerService, + AttributeEnduserID, + AttributeEnduserRole, + AttributeEnduserScope, + AttributeThreadID, + AttributeThreadName, + AttributeCodeFunction, + AttributeCodeNamespace, + AttributeCodeFilepath, + AttributeCodeLineNumber, + AttributeHTTPMethod, + AttributeHTTPURL, + AttributeHTTPTarget, + AttributeHTTPHost, + AttributeHTTPScheme, + AttributeHTTPStatusCode, + AttributeHTTPFlavor, + AttributeHTTPUserAgent, + AttributeHTTPRequestContentLength, + AttributeHTTPRequestContentLengthUncompressed, + AttributeHTTPResponseContentLength, + AttributeHTTPResponseContentLengthUncompressed, + AttributeHTTPServerName, + AttributeHTTPRoute, + AttributeHTTPClientIP, + AttributeAWSDynamoDBTableNames, + AttributeAWSDynamoDBConsumedCapacity, + AttributeAWSDynamoDBItemCollectionMetrics, + AttributeAWSDynamoDBProvisionedReadCapacity, + AttributeAWSDynamoDBProvisionedWriteCapacity, + AttributeAWSDynamoDBConsistentRead, + AttributeAWSDynamoDBProjection, + AttributeAWSDynamoDBLimit, + AttributeAWSDynamoDBAttributesToGet, + AttributeAWSDynamoDBIndexName, + AttributeAWSDynamoDBSelect, + AttributeAWSDynamoDBGlobalSecondaryIndexes, + AttributeAWSDynamoDBLocalSecondaryIndexes, + AttributeAWSDynamoDBExclusiveStartTable, + AttributeAWSDynamoDBTableCount, + AttributeAWSDynamoDBScanForward, + AttributeAWSDynamoDBSegment, + AttributeAWSDynamoDBTotalSegments, + AttributeAWSDynamoDBCount, + AttributeAWSDynamoDBScannedCount, + AttributeAWSDynamoDBAttributeDefinitions, + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, + AttributeMessagingSystem, + AttributeMessagingDestination, + AttributeMessagingDestinationKind, + AttributeMessagingTempDestination, + AttributeMessagingProtocol, + AttributeMessagingProtocolVersion, + AttributeMessagingURL, + AttributeMessagingMessageID, + AttributeMessagingConversationID, + AttributeMessagingMessagePayloadSizeBytes, + AttributeMessagingMessagePayloadCompressedSizeBytes, + AttributeMessagingOperation, + AttributeMessagingRabbitmqRoutingKey, + AttributeMessagingKafkaMessageKey, + AttributeMessagingKafkaConsumerGroup, + AttributeMessagingKafkaClientID, + AttributeMessagingKafkaPartition, + AttributeMessagingKafkaTombstone, + AttributeRPCSystem, + AttributeRPCService, + AttributeRPCMethod, + AttributeRPCGRPCStatusCode, + AttributeRPCJsonrpcVersion, + AttributeRPCJsonrpcRequestID, + AttributeRPCJsonrpcErrorCode, + AttributeRPCJsonrpcErrorMessage, + } +} diff --git a/semconv/v1.6.1/nonstandard.go b/semconv/v1.6.1/nonstandard.go new file mode 100644 index 000000000000..5812cfafb3c7 --- /dev/null +++ b/semconv/v1.6.1/nonstandard.go @@ -0,0 +1,22 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.6.1" + +const ( + OtelLibraryName = "otel.library.name" + OtelLibraryVersion = "otel.library.version" + OtelStatusCode = "otel.status_code" + OtelStatusDescription = "otel.status_description" +) diff --git a/semconv/v1.6.1/schema.go b/semconv/v1.6.1/schema.go new file mode 100644 index 000000000000..530fe151b791 --- /dev/null +++ b/semconv/v1.6.1/schema.go @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.6.1" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Conventions 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.6.1" diff --git a/semconv/v1.7.0/generated_resource.go b/semconv/v1.7.0/generated_resource.go new file mode 100644 index 000000000000..7a1b3520d382 --- /dev/null +++ b/semconv/v1.7.0/generated_resource.go @@ -0,0 +1,1002 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// A cloud environment (e.g. GCP, Azure, AWS) +const ( + // Name of the cloud provider. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeCloudProvider = "cloud.provider" + // The cloud account ID the resource is assigned to. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '111111111111', 'opentelemetry' + AttributeCloudAccountID = "cloud.account.id" + // The geographical region the resource is running. Refer to your provider's docs + // to see the available regions, for example Alibaba Cloud regions, AWS regions, + // Azure regions, or Google Cloud regions. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-central1', 'us-east-1' + AttributeCloudRegion = "cloud.region" + // 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 + // Required: No + // Stability: stable + // Examples: 'us-east-1c' + // Note: Availability zones are called "zones" on Alibaba Cloud and + // Google Cloud. + AttributeCloudAvailabilityZone = "cloud.availability_zone" + // The cloud platform in use. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The prefix of the service SHOULD match the one specified in + // cloud.provider. + AttributeCloudPlatform = "cloud.platform" +) + +const ( + // Alibaba Cloud + AttributeCloudProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeCloudProviderAWS = "aws" + // Microsoft Azure + AttributeCloudProviderAzure = "azure" + // Google Cloud Platform + AttributeCloudProviderGCP = "gcp" +) + +const ( + // Alibaba Cloud Elastic Compute Service + AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" + // Alibaba Cloud Function Compute + AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" + // AWS Elastic Compute Cloud + AttributeCloudPlatformAWSEC2 = "aws_ec2" + // AWS Elastic Container Service + AttributeCloudPlatformAWSECS = "aws_ecs" + // AWS Elastic Kubernetes Service + AttributeCloudPlatformAWSEKS = "aws_eks" + // AWS Lambda + AttributeCloudPlatformAWSLambda = "aws_lambda" + // AWS Elastic Beanstalk + AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" + // Azure Virtual Machines + AttributeCloudPlatformAzureVM = "azure_vm" + // Azure Container Instances + AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" + // Azure Kubernetes Service + AttributeCloudPlatformAzureAKS = "azure_aks" + // Azure Functions + AttributeCloudPlatformAzureFunctions = "azure_functions" + // Azure App Service + AttributeCloudPlatformAzureAppService = "azure_app_service" + // Google Cloud Compute Engine (GCE) + AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" + // Google Cloud Run + AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" + // Google Cloud Kubernetes Engine (GKE) + AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" + // Google Cloud Functions (GCF) + AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" + // Google Cloud App Engine (GAE) + AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" +) + +// Resources used by AWS Elastic Container Service (ECS). +const ( + // The Amazon Resource Name (ARN) of an ECS container instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + AttributeAWSECSContainerARN = "aws.ecs.container.arn" + // The ARN of an ECS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" + // The launch type for an ECS task. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeAWSECSLaunchtype = "aws.ecs.launchtype" + // The ARN of an ECS task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSECSTaskARN = "aws.ecs.task.arn" + // The task definition family this task definition is a member of. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-family' + AttributeAWSECSTaskFamily = "aws.ecs.task.family" + // The revision for this task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '8', '26' + AttributeAWSECSTaskRevision = "aws.ecs.task.revision" +) + +const ( + // ec2 + AttributeAWSECSLaunchtypeEC2 = "ec2" + // fargate + AttributeAWSECSLaunchtypeFargate = "fargate" +) + +// Resources used by AWS Elastic Kubernetes Service (EKS). +const ( + // The ARN of an EKS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" +) + +// Resources specific to Amazon Web Services. +const ( + // The name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogGroupNames = "aws.log.group.names" + // The Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' + // Note: See the log group ARN format documentation. + AttributeAWSLogGroupARNs = "aws.log.group.arns" + // The name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSLogStreamNames = "aws.log.stream.names" + // The ARN(s) of the AWS log stream(s). + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogStreamARNs = "aws.log.stream.arns" +) + +// A container instance. +const ( + // Container name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-autoconf' + AttributeContainerName = "container.name" + // Container ID. Usually a UUID, as for example used to identify Docker + // containers. The UUID might be abbreviated. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'a3bf90e006b2' + AttributeContainerID = "container.id" + // The container runtime managing this container. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'docker', 'containerd', 'rkt' + AttributeContainerRuntime = "container.runtime" + // Name of the image the container was built on. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'gcr.io/opentelemetry/operator' + AttributeContainerImageName = "container.image.name" + // Container image tag. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeContainerImageTag = "container.image.tag" +) + +// The software deployment. +const ( + // Name of the deployment environment (aka deployment tier). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'staging', 'production' + AttributeDeploymentEnvironment = "deployment.environment" +) + +// The device on which the process represented by this resource is running. +const ( + // A unique identifier representing the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceID = "device.id" + // The model identifier for the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelIdentifier = "device.model.identifier" + // The marketing name for the device model + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelName = "device.model.name" +) + +// A serverless instance. +const ( + // The name of the single function that this runtime instance executes. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // 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). + AttributeFaaSName = "faas.name" + // The unique ID of the single function that this runtime instance executes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' + // Note: Depending on the cloud provider, use:
      + //
    • 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 invokable with multiple + // different aliases.
      + //
    • GCP: The URI of the resource
    • + //
    • Azure: The Fully Qualified Resource ID.
    • + //
    + // On some providers, it may not be possible to determine the full ID at startup, + // which is why this field cannot be made required. For example, on AWS the + // account ID + // part of the ARN is not available without calling another AWS API + // which may be deemed too slow for a short-running lambda function. + // As an alternative, consider setting faas.id as a span attribute instead. + AttributeFaaSID = "faas.id" + // The immutable version of the function being executed. + // + // Type: string + // Required: No + // Stability: stable + // 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: 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.
    • + //
    + AttributeFaaSVersion = "faas.version" + // The execution environment ID as a string, that will be potentially reused for + // other invocations to the same function/function version. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' + // Note:
      + //
    • AWS Lambda: Use the (full) log stream name.
    • + //
    + AttributeFaaSInstance = "faas.instance" + // The amount of memory available to the serverless function in MiB. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 128 + // 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. + AttributeFaaSMaxMemory = "faas.max_memory" +) + +// A host is defined as a general computing instance. +const ( + // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud + // provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostID = "host.id" + // 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 + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostName = "host.name" + // Type of host. For Cloud, this must be the machine type. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'n1-standard-1' + AttributeHostType = "host.type" + // The CPU architecture the host system is running on. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeHostArch = "host.arch" + // Name of the VM image or OS install the host was instantiated from. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + AttributeHostImageName = "host.image.name" + // VM image ID. For Cloud, this value is from the provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ami-07b06b442921831e5' + AttributeHostImageID = "host.image.id" + // The version string of the VM image as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeHostImageVersion = "host.image.version" +) + +const ( + // AMD64 + AttributeHostArchAMD64 = "amd64" + // ARM32 + AttributeHostArchARM32 = "arm32" + // ARM64 + AttributeHostArchARM64 = "arm64" + // Itanium + AttributeHostArchIA64 = "ia64" + // 32-bit PowerPC + AttributeHostArchPPC32 = "ppc32" + // 64-bit PowerPC + AttributeHostArchPPC64 = "ppc64" + // 32-bit x86 + AttributeHostArchX86 = "x86" +) + +// A Kubernetes Cluster. +const ( + // The name of the cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-cluster' + AttributeK8SClusterName = "k8s.cluster.name" +) + +// A Kubernetes Node object. +const ( + // The name of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'node-1' + AttributeK8SNodeName = "k8s.node.name" + // The UID of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + AttributeK8SNodeUID = "k8s.node.uid" +) + +// A Kubernetes Namespace. +const ( + // The name of the namespace that the pod is running in. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'default' + AttributeK8SNamespaceName = "k8s.namespace.name" +) + +// A Kubernetes Pod object. +const ( + // The UID of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SPodUID = "k8s.pod.uid" + // The name of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-pod-autoconf' + AttributeK8SPodName = "k8s.pod.name" +) + +// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). +const ( + // The name of the Container in a Pod template. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'redis' + AttributeK8SContainerName = "k8s.container.name" +) + +// A Kubernetes ReplicaSet object. +const ( + // The UID of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SReplicaSetUID = "k8s.replicaset.uid" + // The name of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SReplicaSetName = "k8s.replicaset.name" +) + +// A Kubernetes Deployment object. +const ( + // The UID of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDeploymentUID = "k8s.deployment.uid" + // The name of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDeploymentName = "k8s.deployment.name" +) + +// A Kubernetes StatefulSet object. +const ( + // The UID of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SStatefulSetUID = "k8s.statefulset.uid" + // The name of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SStatefulSetName = "k8s.statefulset.name" +) + +// A Kubernetes DaemonSet object. +const ( + // The UID of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDaemonSetUID = "k8s.daemonset.uid" + // The name of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDaemonSetName = "k8s.daemonset.name" +) + +// A Kubernetes Job object. +const ( + // The UID of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SJobUID = "k8s.job.uid" + // The name of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SJobName = "k8s.job.name" +) + +// A Kubernetes CronJob object. +const ( + // The UID of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SCronJobUID = "k8s.cronjob.uid" + // The name of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SCronJobName = "k8s.cronjob.name" +) + +// The operating system (OS) on which the process represented by this resource is running. +const ( + // The operating system type. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeOSType = "os.type" + // Human readable (not intended to be parsed) OS version information, like e.g. + // reported by ver or lsb_release -a commands. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + AttributeOSDescription = "os.description" + // Human readable operating system name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'iOS', 'Android', 'Ubuntu' + AttributeOSName = "os.name" + // The version string of the operating system as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.2.1', '18.04.1' + AttributeOSVersion = "os.version" +) + +const ( + // Microsoft Windows + AttributeOSTypeWindows = "windows" + // Linux + AttributeOSTypeLinux = "linux" + // Apple Darwin + AttributeOSTypeDarwin = "darwin" + // FreeBSD + AttributeOSTypeFreeBSD = "freebsd" + // NetBSD + AttributeOSTypeNetBSD = "netbsd" + // OpenBSD + AttributeOSTypeOpenBSD = "openbsd" + // DragonFly BSD + AttributeOSTypeDragonflyBSD = "dragonflybsd" + // HP-UX (Hewlett Packard Unix) + AttributeOSTypeHPUX = "hpux" + // AIX (Advanced Interactive eXecutive) + AttributeOSTypeAIX = "aix" + // Oracle Solaris + AttributeOSTypeSolaris = "solaris" + // IBM z/OS + AttributeOSTypeZOS = "z_os" +) + +// An operating system process. +const ( + // Process identifier (PID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 1234 + AttributeProcessPID = "process.pid" + // 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 + // Required: See below + // Stability: stable + // Examples: 'otelcol' + AttributeProcessExecutableName = "process.executable.name" + // 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 + // Required: See below + // Stability: stable + // Examples: '/usr/bin/cmd/otelcol' + AttributeProcessExecutablePath = "process.executable.path" + // 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 + // Required: See below + // Stability: stable + // Examples: 'cmd/otelcol' + AttributeProcessCommand = "process.command" + // 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 + // Required: See below + // Stability: stable + // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + AttributeProcessCommandLine = "process.command_line" + // 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[] + // Required: See below + // Stability: stable + // Examples: 'cmd/otecol', '--config=config.yaml' + AttributeProcessCommandArgs = "process.command_args" + // The username of the user that owns the process. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'root' + AttributeProcessOwner = "process.owner" +) + +// The single (language) runtime instance which is monitored. +const ( + // The name of the runtime of this process. For compiled native binaries, this + // SHOULD be the name of the compiler. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'OpenJDK Runtime Environment' + AttributeProcessRuntimeName = "process.runtime.name" + // The version of the runtime of this process, as returned by the runtime without + // modification. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.0.2' + AttributeProcessRuntimeVersion = "process.runtime.version" + // An additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + AttributeProcessRuntimeDescription = "process.runtime.description" +) + +// A service instance. +const ( + // Logical name of the service. + // + // Type: string + // Required: Always + // 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. + AttributeServiceName = "service.name" + // A namespace for service.name. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeServiceNamespace = "service.namespace" + // The string ID of the service instance. + // + // Type: string + // Required: No + // Stability: stable + // 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). It is + // preferable for the ID to be persistent and stay the same for the lifetime of + // the service instance, however it is acceptable that the ID is ephemeral and + // changes during important lifetime events for the service (e.g. service + // restarts). If the service has no inherent unique ID that can be used as the + // value of this attribute it is recommended to generate a random Version 1 or + // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use + // Version 5, see RFC 4122 for more recommendations). + AttributeServiceInstanceID = "service.instance.id" + // The version string of the service API or implementation. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2.0.0' + AttributeServiceVersion = "service.version" +) + +// The telemetry SDK used to capture data recorded by the instrumentation libraries. +const ( + // The name of the telemetry SDK as defined above. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeTelemetrySDKName = "telemetry.sdk.name" + // The language of the telemetry SDK. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeTelemetrySDKLanguage = "telemetry.sdk.language" + // The version string of the telemetry SDK. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetrySDKVersion = "telemetry.sdk.version" + // The version string of the auto instrumentation agent, if used. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetryAutoVersion = "telemetry.auto.version" +) + +const ( + // cpp + AttributeTelemetrySDKLanguageCPP = "cpp" + // dotnet + AttributeTelemetrySDKLanguageDotnet = "dotnet" + // erlang + AttributeTelemetrySDKLanguageErlang = "erlang" + // go + AttributeTelemetrySDKLanguageGo = "go" + // java + AttributeTelemetrySDKLanguageJava = "java" + // nodejs + AttributeTelemetrySDKLanguageNodejs = "nodejs" + // php + AttributeTelemetrySDKLanguagePHP = "php" + // python + AttributeTelemetrySDKLanguagePython = "python" + // ruby + AttributeTelemetrySDKLanguageRuby = "ruby" + // webjs + AttributeTelemetrySDKLanguageWebjs = "webjs" +) + +// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. +const ( + // The name of the web engine. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'WildFly' + AttributeWebEngineName = "webengine.name" + // The version of the web engine. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '21.0.0' + AttributeWebEngineVersion = "webengine.version" + // Additional description of the web engine (e.g. detailed version and edition + // information). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + AttributeWebEngineDescription = "webengine.description" +) + +func GetResourceSemanticConventionAttributeNames() []string { + return []string{ + AttributeCloudProvider, + AttributeCloudAccountID, + AttributeCloudRegion, + AttributeCloudAvailabilityZone, + AttributeCloudPlatform, + AttributeAWSECSContainerARN, + AttributeAWSECSClusterARN, + AttributeAWSECSLaunchtype, + AttributeAWSECSTaskARN, + AttributeAWSECSTaskFamily, + AttributeAWSECSTaskRevision, + AttributeAWSEKSClusterARN, + AttributeAWSLogGroupNames, + AttributeAWSLogGroupARNs, + AttributeAWSLogStreamNames, + AttributeAWSLogStreamARNs, + AttributeContainerName, + AttributeContainerID, + AttributeContainerRuntime, + AttributeContainerImageName, + AttributeContainerImageTag, + AttributeDeploymentEnvironment, + AttributeDeviceID, + AttributeDeviceModelIdentifier, + AttributeDeviceModelName, + AttributeFaaSName, + AttributeFaaSID, + AttributeFaaSVersion, + AttributeFaaSInstance, + AttributeFaaSMaxMemory, + AttributeHostID, + AttributeHostName, + AttributeHostType, + AttributeHostArch, + AttributeHostImageName, + AttributeHostImageID, + AttributeHostImageVersion, + AttributeK8SClusterName, + AttributeK8SNodeName, + AttributeK8SNodeUID, + AttributeK8SNamespaceName, + AttributeK8SPodUID, + AttributeK8SPodName, + AttributeK8SContainerName, + AttributeK8SReplicaSetUID, + AttributeK8SReplicaSetName, + AttributeK8SDeploymentUID, + AttributeK8SDeploymentName, + AttributeK8SStatefulSetUID, + AttributeK8SStatefulSetName, + AttributeK8SDaemonSetUID, + AttributeK8SDaemonSetName, + AttributeK8SJobUID, + AttributeK8SJobName, + AttributeK8SCronJobUID, + AttributeK8SCronJobName, + AttributeOSType, + AttributeOSDescription, + AttributeOSName, + AttributeOSVersion, + AttributeProcessPID, + AttributeProcessExecutableName, + AttributeProcessExecutablePath, + AttributeProcessCommand, + AttributeProcessCommandLine, + AttributeProcessCommandArgs, + AttributeProcessOwner, + AttributeProcessRuntimeName, + AttributeProcessRuntimeVersion, + AttributeProcessRuntimeDescription, + AttributeServiceName, + AttributeServiceNamespace, + AttributeServiceInstanceID, + AttributeServiceVersion, + AttributeTelemetrySDKName, + AttributeTelemetrySDKLanguage, + AttributeTelemetrySDKVersion, + AttributeTelemetryAutoVersion, + AttributeWebEngineName, + AttributeWebEngineVersion, + AttributeWebEngineDescription, + } +} diff --git a/semconv/v1.7.0/generated_trace.go b/semconv/v1.7.0/generated_trace.go new file mode 100644 index 000000000000..42bcb685169e --- /dev/null +++ b/semconv/v1.7.0/generated_trace.go @@ -0,0 +1,1663 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// Span attributes used by AWS Lambda (in addition to general `faas` attributes). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' + // Note: This may be different from faas.id if an alias is involved. + AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" +) + +// This document defines the attributes used to perform database client calls. +const ( + // An identifier for the database management system (DBMS) product being used. See + // below for a list of well-known identifiers. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeDBSystem = "db.system" + // The connection string used to connect to the database. It is recommended to + // remove embedded credentials. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + AttributeDBConnectionString = "db.connection_string" + // Username for accessing the database. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'readonly_user', 'reporting_user' + AttributeDBUser = "db.user" + // The fully-qualified class name of the Java Database Connectivity (JDBC) driver + // used to connect. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'org.postgresql.Driver', + // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" + // If no tech-specific attribute is defined, this attribute is used to report the + // name of the database being accessed. For commands that switch the database, + // this should be set to the target database (even if the command fails). + // + // Type: string + // Required: Required, if applicable and no more-specific attribute is defined. + // Stability: stable + // Examples: 'customers', 'main' + // Note: In some SQL databases, the database name to be used is called + // "schema name". + AttributeDBName = "db.name" + // The database statement being executed. + // + // Type: string + // Required: Required if applicable and not explicitly disabled via + // instrumentation configuration. + // Stability: stable + // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' + // Note: The value may be sanitized to exclude sensitive information. + AttributeDBStatement = "db.statement" + // The name of the operation being executed, e.g. the MongoDB command name such as + // findAndModify, or the SQL keyword. + // + // Type: string + // Required: Required, if `db.statement` is not applicable. + // Stability: stable + // Examples: 'findAndModify', 'HMSET', 'SELECT' + // Note: When setting this to an SQL keyword, it is not recommended to attempt any + // client-side parsing of db.statement just to get this property, but it should be + // set if the operation name is provided by the library being instrumented. If the + // SQL statement has an ambiguous operation, or performs more than one operation, + // this value may be omitted. + AttributeDBOperation = "db.operation" +) + +const ( + // Some other SQL database. Fallback only. See notes + AttributeDBSystemOtherSQL = "other_sql" + // Microsoft SQL Server + AttributeDBSystemMSSQL = "mssql" + // MySQL + AttributeDBSystemMySQL = "mysql" + // Oracle Database + AttributeDBSystemOracle = "oracle" + // IBM DB2 + AttributeDBSystemDB2 = "db2" + // PostgreSQL + AttributeDBSystemPostgreSQL = "postgresql" + // Amazon Redshift + AttributeDBSystemRedshift = "redshift" + // Apache Hive + AttributeDBSystemHive = "hive" + // Cloudscape + AttributeDBSystemCloudscape = "cloudscape" + // HyperSQL DataBase + AttributeDBSystemHSQLDB = "hsqldb" + // Progress Database + AttributeDBSystemProgress = "progress" + // SAP MaxDB + AttributeDBSystemMaxDB = "maxdb" + // SAP HANA + AttributeDBSystemHanaDB = "hanadb" + // Ingres + AttributeDBSystemIngres = "ingres" + // FirstSQL + AttributeDBSystemFirstSQL = "firstsql" + // EnterpriseDB + AttributeDBSystemEDB = "edb" + // InterSystems Caché + AttributeDBSystemCache = "cache" + // Adabas (Adaptable Database System) + AttributeDBSystemAdabas = "adabas" + // Firebird + AttributeDBSystemFirebird = "firebird" + // Apache Derby + AttributeDBSystemDerby = "derby" + // FileMaker + AttributeDBSystemFilemaker = "filemaker" + // Informix + AttributeDBSystemInformix = "informix" + // InstantDB + AttributeDBSystemInstantDB = "instantdb" + // InterBase + AttributeDBSystemInterbase = "interbase" + // MariaDB + AttributeDBSystemMariaDB = "mariadb" + // Netezza + AttributeDBSystemNetezza = "netezza" + // Pervasive PSQL + AttributeDBSystemPervasive = "pervasive" + // PointBase + AttributeDBSystemPointbase = "pointbase" + // SQLite + AttributeDBSystemSqlite = "sqlite" + // Sybase + AttributeDBSystemSybase = "sybase" + // Teradata + AttributeDBSystemTeradata = "teradata" + // Vertica + AttributeDBSystemVertica = "vertica" + // H2 + AttributeDBSystemH2 = "h2" + // ColdFusion IMQ + AttributeDBSystemColdfusion = "coldfusion" + // Apache Cassandra + AttributeDBSystemCassandra = "cassandra" + // Apache HBase + AttributeDBSystemHBase = "hbase" + // MongoDB + AttributeDBSystemMongoDB = "mongodb" + // Redis + AttributeDBSystemRedis = "redis" + // Couchbase + AttributeDBSystemCouchbase = "couchbase" + // CouchDB + AttributeDBSystemCouchDB = "couchdb" + // Microsoft Azure Cosmos DB + AttributeDBSystemCosmosDB = "cosmosdb" + // Amazon DynamoDB + AttributeDBSystemDynamoDB = "dynamodb" + // Neo4j + AttributeDBSystemNeo4j = "neo4j" + // Apache Geode + AttributeDBSystemGeode = "geode" + // Elasticsearch + AttributeDBSystemElasticsearch = "elasticsearch" + // Memcached + AttributeDBSystemMemcached = "memcached" + // CockroachDB + AttributeDBSystemCockroachdb = "cockroachdb" +) + +// Connection-level attributes for Microsoft SQL Server +const ( + // The Microsoft SQL Server instance name connecting to. This name is used to + // determine the port of a named instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MSSQLSERVER' + // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required + // (but still recommended if non-standard). + AttributeDBMSSQLInstanceName = "db.mssql.instance_name" +) + +// Call-level attributes for Cassandra +const ( + // The name of the keyspace being accessed. To be used instead of the generic + // db.name attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'mykeyspace' + AttributeDBCassandraKeyspace = "db.cassandra.keyspace" + // The fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5000 + AttributeDBCassandraPageSize = "db.cassandra.page_size" + // The consistency level of the query. Based on consistency values from CQL. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'mytable' + // Note: This mirrors the db.sql.table attribute but references cassandra rather + // than sql. It is not recommended to attempt any client-side parsing of + // db.statement just to get this property, but it should be set if it is provided + // by the library being instrumented. If the operation is acting upon an anonymous + // table, or more than one table, this value MUST NOT be set. + AttributeDBCassandraTable = "db.cassandra.table" + // Whether or not the query is idempotent. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeDBCassandraIdempotence = "db.cassandra.idempotence" + // The number of times a query was speculatively executed. Not set or 0 if the + // query was not executed speculatively. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" + // The ID of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" + // The data center of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-west-2' + AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" +) + +const ( + // all + AttributeDBCassandraConsistencyLevelAll = "all" + // each_quorum + AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" + // quorum + AttributeDBCassandraConsistencyLevelQuorum = "quorum" + // local_quorum + AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" + // one + AttributeDBCassandraConsistencyLevelOne = "one" + // two + AttributeDBCassandraConsistencyLevelTwo = "two" + // three + AttributeDBCassandraConsistencyLevelThree = "three" + // local_one + AttributeDBCassandraConsistencyLevelLocalOne = "local_one" + // any + AttributeDBCassandraConsistencyLevelAny = "any" + // serial + AttributeDBCassandraConsistencyLevelSerial = "serial" + // local_serial + AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" +) + +// Call-level attributes for Apache HBase +const ( + // The HBase namespace being accessed. To be used instead of the generic db.name + // attribute. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'default' + AttributeDBHBaseNamespace = "db.hbase.namespace" +) + +// Call-level attributes for Redis +const ( + // The index of the database being accessed as used in the SELECT command, + // provided as an integer. To be used instead of the generic db.name attribute. + // + // Type: int + // Required: Required, if other than the default database (`0`). + // Stability: stable + // Examples: 0, 1, 15 + AttributeDBRedisDBIndex = "db.redis.database_index" +) + +// Call-level attributes for MongoDB +const ( + // The collection being accessed within the database stated in db.name. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'customers', 'products' + AttributeDBMongoDBCollection = "db.mongodb.collection" +) + +// Call-level attrbiutes for SQL databases +const ( + // The name of the primary table that the operation is acting upon, including the + // schema name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'public.users', 'customers' + // Note: It is not recommended to attempt any client-side parsing of db.statement + // just to get this property, but it should be set if it is provided by the + // library being instrumented. If the operation is acting upon an anonymous table, + // or more than one table, this value MUST NOT be set. + AttributeDBSQLTable = "db.sql.table" +) + +// This document defines the attributes used to report a single exception associated with a span. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'java.net.ConnectException', 'OSError' + AttributeExceptionType = "exception.type" + // The exception message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + AttributeExceptionMessage = "exception.message" + // 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 + // Required: No + // 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)' + AttributeExceptionStacktrace = "exception.stacktrace" + // 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 + // Required: No + // Stability: stable + // 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 above.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. + AttributeExceptionEscaped = "exception.escaped" +) + +// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. +const ( + // Type of the trigger on which the function is executed. + // + // Type: Enum + // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. + // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing + // invocations, if it is known to the client. This is, for example, not the case, + // when the transport layer is abstracted in a FaaS client framework without + // access to its configuration. + // Stability: stable + AttributeFaaSTrigger = "faas.trigger" + // The execution ID of the current function execution. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + AttributeFaaSExecution = "faas.execution" +) + +const ( + // A response to some data source operation such as a database or filesystem read/write + AttributeFaaSTriggerDatasource = "datasource" + // To provide an answer to an inbound HTTP request + AttributeFaaSTriggerHTTP = "http" + // A function is set to be executed when messages are sent to a messaging system + AttributeFaaSTriggerPubsub = "pubsub" + // A function is scheduled to be executed regularly + AttributeFaaSTriggerTimer = "timer" + // If none of the others apply + AttributeFaaSTriggerOther = "other" +) + +// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. +const ( + // 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 + // Required: Always + // Stability: stable + // Examples: 'myBucketName', 'myDBName' + AttributeFaaSDocumentCollection = "faas.document.collection" + // Describes the type of the operation that was performed on the data. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeFaaSDocumentOperation = "faas.document.operation" + // A string containing the time when the data was accessed in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSDocumentTime = "faas.document.time" + // 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 + // Required: No + // Stability: stable + // Examples: 'myFile.txt', 'myTableName' + AttributeFaaSDocumentName = "faas.document.name" +) + +const ( + // When a new object is created + AttributeFaaSDocumentOperationInsert = "insert" + // When an object is modified + AttributeFaaSDocumentOperationEdit = "edit" + // When an object is deleted + AttributeFaaSDocumentOperationDelete = "delete" +) + +// Semantic Convention for FaaS scheduled to be executed regularly. +const ( + // A string containing the function invocation time in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSTime = "faas.time" + // A string containing the schedule period as Cron Expression. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0/5 * * * ? *' + AttributeFaaSCron = "faas.cron" +) + +// Contains additional attributes for incoming FaaS spans. +const ( + // A boolean that is true if the serverless function is executed for the first + // time (aka cold-start). + // + // Type: boolean + // Required: No + // Stability: stable + AttributeFaaSColdstart = "faas.coldstart" +) + +// Contains additional attributes for outgoing FaaS spans. +const ( + // The name of the invoked function. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // Note: SHOULD be equal to the faas.name resource attribute of the invoked + // function. + AttributeFaaSInvokedName = "faas.invoked_name" + // The cloud provider of the invoked function. + // + // Type: Enum + // Required: Always + // Stability: stable + // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked + // function. + AttributeFaaSInvokedProvider = "faas.invoked_provider" + // The cloud region of the invoked function. + // + // Type: string + // Required: For some cloud providers, like AWS or GCP, the region in which a + // function is hosted is essential to uniquely identify the function and also part + // of its endpoint. Since it's part of the endpoint being called, the region is + // always known to clients. In these cases, `faas.invoked_region` MUST be set + // accordingly. If the region is unknown to the client or not required for + // identifying the invoked function, setting `faas.invoked_region` is optional. + // Stability: stable + // Examples: 'eu-central-1' + // Note: SHOULD be equal to the cloud.region resource attribute of the invoked + // function. + AttributeFaaSInvokedRegion = "faas.invoked_region" +) + +const ( + // Alibaba Cloud + AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeFaaSInvokedProviderAWS = "aws" + // Microsoft Azure + AttributeFaaSInvokedProviderAzure = "azure" + // Google Cloud Platform + AttributeFaaSInvokedProviderGCP = "gcp" +) + +// These attributes may be used for any network related operation. +const ( + // Transport protocol used. See note below. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeNetTransport = "net.transport" + // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) + // + // Type: string + // Required: No + // Stability: stable + // Examples: '127.0.0.1' + AttributeNetPeerIP = "net.peer.ip" + // Remote port number. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 80, 8080, 443 + AttributeNetPeerPort = "net.peer.port" + // Remote hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + AttributeNetPeerName = "net.peer.name" + // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '192.168.0.1' + AttributeNetHostIP = "net.host.ip" + // Like net.peer.port but for the host port. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 35555 + AttributeNetHostPort = "net.host.port" + // Local hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'localhost' + AttributeNetHostName = "net.host.name" + // The internet connection type currently being used by the host. + // + // Type: Enum + // Required: No + // Stability: stable + // Examples: 'wifi' + AttributeNetHostConnectionType = "net.host.connection.type" + // 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 + // Required: No + // Stability: stable + // Examples: 'LTE' + AttributeNetHostConnectionSubtype = "net.host.connection.subtype" + // The name of the mobile carrier. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'sprint' + AttributeNetHostCarrierName = "net.host.carrier.name" + // The mobile carrier country code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '310' + AttributeNetHostCarrierMcc = "net.host.carrier.mcc" + // The mobile carrier network code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '001' + AttributeNetHostCarrierMnc = "net.host.carrier.mnc" + // The ISO 3166-1 alpha-2 2-character country code associated with the mobile + // carrier network. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'DE' + AttributeNetHostCarrierIcc = "net.host.carrier.icc" +) + +const ( + // ip_tcp + AttributeNetTransportTCP = "ip_tcp" + // ip_udp + AttributeNetTransportUDP = "ip_udp" + // Another IP-based protocol + AttributeNetTransportIP = "ip" + // Unix Domain socket. See below + AttributeNetTransportUnix = "unix" + // Named or anonymous pipe. See note below + AttributeNetTransportPipe = "pipe" + // In-process communication + AttributeNetTransportInProc = "inproc" + // Something else (non IP-based) + AttributeNetTransportOther = "other" +) + +const ( + // wifi + AttributeNetHostConnectionTypeWifi = "wifi" + // wired + AttributeNetHostConnectionTypeWired = "wired" + // cell + AttributeNetHostConnectionTypeCell = "cell" + // unavailable + AttributeNetHostConnectionTypeUnavailable = "unavailable" + // unknown + AttributeNetHostConnectionTypeUnknown = "unknown" +) + +const ( + // GPRS + AttributeNetHostConnectionSubtypeGprs = "gprs" + // EDGE + AttributeNetHostConnectionSubtypeEdge = "edge" + // UMTS + AttributeNetHostConnectionSubtypeUmts = "umts" + // CDMA + AttributeNetHostConnectionSubtypeCdma = "cdma" + // EVDO Rel. 0 + AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" + // EVDO Rev. A + AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" + // CDMA2000 1XRTT + AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" + // HSDPA + AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" + // HSUPA + AttributeNetHostConnectionSubtypeHsupa = "hsupa" + // HSPA + AttributeNetHostConnectionSubtypeHspa = "hspa" + // IDEN + AttributeNetHostConnectionSubtypeIden = "iden" + // EVDO Rev. B + AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" + // LTE + AttributeNetHostConnectionSubtypeLte = "lte" + // EHRPD + AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" + // HSPAP + AttributeNetHostConnectionSubtypeHspap = "hspap" + // GSM + AttributeNetHostConnectionSubtypeGsm = "gsm" + // TD-SCDMA + AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" + // IWLAN + AttributeNetHostConnectionSubtypeIwlan = "iwlan" + // 5G NR (New Radio) + AttributeNetHostConnectionSubtypeNr = "nr" + // 5G NRNSA (New Radio Non-Standalone) + AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" + // LTE CA + AttributeNetHostConnectionSubtypeLteCa = "lte_ca" +) + +// Operations that access some remote service. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'AuthTokenCache' + AttributePeerService = "peer.service" +) + +// These attributes may be used for any operation with an authenticated and/or authorized enduser. +const ( + // Username or client_id extracted from the access token or Authorization header + // in the inbound request from outside the system. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'username' + AttributeEnduserID = "enduser.id" + // Actual/assumed role the client is making the request under extracted from token + // or application security context. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'admin' + AttributeEnduserRole = "enduser.role" + // Scopes or granted authorities the client currently possesses extracted from + // token or application security context. The value would come from the scope + // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 + // Assertion. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'read:message, write:files' + AttributeEnduserScope = "enduser.scope" +) + +// These attributes may be used for any operation to store information about a thread that started a span. +const ( + // Current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeThreadID = "thread.id" + // Current thread name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'main' + AttributeThreadName = "thread.name" +) + +// These attributes allow to report this unit of code and therefore to provide more context about the span. +const ( + // The method or function name, or equivalent (usually rightmost part of the code + // unit's name). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'serveRequest' + AttributeCodeFunction = "code.function" + // 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 + // Required: No + // Stability: stable + // Examples: 'com.example.MyHTTPService' + AttributeCodeNamespace = "code.namespace" + // The source code file name that identifies the code unit as uniquely as possible + // (preferably an absolute file path). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/usr/local/MyApplication/content_root/app/index.php' + AttributeCodeFilepath = "code.filepath" + // The line number in code.filepath best representing the operation. It SHOULD + // point within the code unit named in code.function. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeCodeLineNumber = "code.lineno" +) + +// This document defines semantic conventions for HTTP client and server Spans. +const ( + // HTTP request method. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'GET', 'POST', 'HEAD' + AttributeHTTPMethod = "http.method" + // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. + // Usually the fragment is not transmitted over HTTP, but if it is known, it + // should be included nevertheless. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' + // Note: http.url MUST NOT contain credentials passed via URL in form of + // https://username:password@www.example.com/. In such case the attribute's value + // should be https://www.example.com/. + AttributeHTTPURL = "http.url" + // The full request target as passed in a HTTP request line or equivalent. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/path/12314/?q=ddds#123' + AttributeHTTPTarget = "http.target" + // The value of the HTTP host header. An empty Host header should also be + // reported, see note. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'www.example.org' + // Note: When the header is present but empty the attribute SHOULD be set to the + // empty string. Note that this is a valid situation that is expected in certain + // cases, according the aforementioned section of RFC 7230. When the header is not + // set the attribute MUST NOT be set. + AttributeHTTPHost = "http.host" + // The URI scheme identifying the used protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'http', 'https' + AttributeHTTPScheme = "http.scheme" + // HTTP response status code. + // + // Type: int + // Required: If and only if one was received/sent. + // Stability: stable + // Examples: 200 + AttributeHTTPStatusCode = "http.status_code" + // Kind of HTTP protocol used. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: If net.transport is not specified, it can be assumed to be IP.TCP except + // if http.flavor is QUIC, in which case IP.UDP is assumed. + AttributeHTTPFlavor = "http.flavor" + // Value of the HTTP User-Agent header sent by the client. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + AttributeHTTPUserAgent = "http.user_agent" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPRequestContentLength = "http.request_content_length" + // The size of the uncompressed request payload body after transport decoding. Not + // set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPResponseContentLength = "http.response_content_length" + // The size of the uncompressed response payload body after transport decoding. + // Not set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" +) + +const ( + // HTTP 1.0 + AttributeHTTPFlavorHTTP10 = "1.0" + // HTTP 1.1 + AttributeHTTPFlavorHTTP11 = "1.1" + // HTTP 2 + AttributeHTTPFlavorHTTP20 = "2.0" + // SPDY protocol + AttributeHTTPFlavorSPDY = "SPDY" + // QUIC protocol + AttributeHTTPFlavorQUIC = "QUIC" +) + +// Semantic Convention for HTTP Server +const ( + // The primary server name of the matched virtual host. This should be obtained + // via configuration. If no such configuration can be obtained, this attribute + // MUST NOT be set ( net.host.name should be used instead). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + // Note: http.url is usually not readily available on the server side but would + // have to be assembled in a cumbersome and sometimes lossy process from other + // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus + // preferred to supply the raw data that is available. + AttributeHTTPServerName = "http.server_name" + // The matched route (path template). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/users/:userID?' + AttributeHTTPRoute = "http.route" + // The IP address of the original client behind all proxies, if known (e.g. from + // X-Forwarded-For). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '83.164.160.102' + // Note: This is not necessarily the same as net.peer.ip, which would + // identify the network-level peer, which may be a proxy.This attribute should be + // set when a source of information different + // from the one used for net.peer.ip, is available even if that other + // source just confirms the same value as net.peer.ip. + // Rationale: For net.peer.ip, one typically does not know if it + // comes from a proxy, reverse proxy, or the actual client. Setting + // http.client_ip when it's the same as net.peer.ip means that + // one is at least somewhat confident that the address is not that of + // the closest proxy. + AttributeHTTPClientIP = "http.client_ip" +) + +// Attributes that exist for multiple DynamoDB request types. +const ( + // The keys in the RequestItems object field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'Users', 'Cats' + AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" + // The JSON-serialized value of each item in the ConsumedCapacity response field. + // + // Type: string[] + // Required: No + // Stability: stable + // 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 }' + AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" + // The JSON-serialized value of the ItemCollectionMetrics response field. + // + // Type: string + // Required: No + // Stability: stable + // 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 ] } ] }' + AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" + // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" + // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" + // The value of the ConsistentRead request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" + // The value of the ProjectionExpression request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, + // ProductReviews' + AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" + // The value of the Limit request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" + // The value of the AttributesToGet request parameter. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'lives', 'id' + AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" + // The value of the IndexName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'name_to_group' + AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" + // The value of the Select request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ALL_ATTRIBUTES', 'COUNT' + AttributeAWSDynamoDBSelect = "aws.dynamodb.select" +) + +// DynamoDB.CreateTable +const ( + // The JSON-serialized value of each item of the GlobalSecondaryIndexes request + // field + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": + // number, "WriteCapacityUnits": number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" + // The JSON-serialized value of each item of the LocalSecondaryIndexes request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }' + AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" +) + +// DynamoDB.ListTables +const ( + // The value of the ExclusiveStartTableName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Users', 'CatsTable' + AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" + // The the number of items in the TableNames response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 20 + AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" +) + +// DynamoDB.Query +const ( + // The value of the ScanIndexForward request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" +) + +// DynamoDB.Scan +const ( + // The value of the Segment request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" + // The value of the TotalSegments request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 100 + AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" + // The value of the Count response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBCount = "aws.dynamodb.count" + // The value of the ScannedCount response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 50 + AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" +) + +// DynamoDB.UpdateTable +const ( + // The JSON-serialized value of each item in the AttributeDefinitions request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" + // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates + // request field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" +) + +// This document defines the attributes used in messaging systems. +const ( + // A string identifying the messaging system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' + AttributeMessagingSystem = "messaging.system" + // The message destination name. This might be equal to the span name but is + // required nevertheless. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'MyQueue', 'MyTopic' + AttributeMessagingDestination = "messaging.destination" + // The kind of message destination + // + // Type: Enum + // Required: Required only if the message destination is either a `queue` or + // `topic`. + // Stability: stable + AttributeMessagingDestinationKind = "messaging.destination_kind" + // A boolean that is true if the message destination is temporary. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingTempDestination = "messaging.temp_destination" + // The name of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'AMQP', 'MQTT' + AttributeMessagingProtocol = "messaging.protocol" + // The version of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.9.1' + AttributeMessagingProtocolVersion = "messaging.protocol_version" + // Connection string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tibjmsnaming://localhost:7222', + // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + AttributeMessagingURL = "messaging.url" + // A value used by the messaging system as an identifier for the message, + // represented as a string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + AttributeMessagingMessageID = "messaging.message_id" + // The conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MyConversationID' + AttributeMessagingConversationID = "messaging.conversation_id" + // The (uncompressed) size of the message payload in bytes. Also use this + // attribute if it is unknown whether the compressed or uncompressed payload size + // is reported. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2738 + AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" + // The compressed size of the message payload in bytes. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2048 + AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" +) + +const ( + // A message sent to a queue + AttributeMessagingDestinationKindQueue = "queue" + // A message sent to a topic + AttributeMessagingDestinationKindTopic = "topic" +) + +// Semantic convention for a consumer of messages received from a messaging system +const ( + // A string identifying the kind of message consumption as defined in the + // Operation names section above. If the operation is "send", this + // attribute MUST NOT be set, since the operation can be inferred from the span + // kind in that case. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingOperation = "messaging.operation" + // The identifier for the consumer receiving a message. For Kafka, set it to + // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are + // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ + // and Artemis, set it to the client_id of the client consuming the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'mygroup - client-6' + AttributeMessagingConsumerID = "messaging.consumer_id" +) + +const ( + // receive + AttributeMessagingOperationReceive = "receive" + // process + AttributeMessagingOperationProcess = "process" +) + +// Attributes for RabbitMQ +const ( + // RabbitMQ message routing key. + // + // Type: string + // Required: Unless it is empty. + // Stability: stable + // Examples: 'myKey' + AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" +) + +// Attributes for Apache Kafka +const ( + // 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 + // Required: No + // Stability: stable + // 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. + AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" + // Name of the Kafka Consumer Group that is handling the message. Only applies to + // consumers, not producers. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'my-group' + AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" + // Client ID for the Consumer or Producer that is handling the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'client-5' + AttributeMessagingKafkaClientID = "messaging.kafka.client_id" + // Partition the message is sent to. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2 + AttributeMessagingKafkaPartition = "messaging.kafka.partition" + // A boolean that is true if the message is a tombstone. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" +) + +// This document defines semantic conventions for remote procedure calls. +const ( + // A string identifying the remoting system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'grpc', 'java_rmi', 'wcf' + AttributeRPCSystem = "rpc.system" + // The full (logical) name of the service being called, including its package + // name, if applicable. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCService = "rpc.service" + // The name of the (logical) method being called, must be equal to the $method + // part in the span name. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCMethod = "rpc.method" +) + +// Tech-specific attributes for gRPC. +const ( + // The numeric status code of the gRPC request. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" +) + +const ( + // OK + AttributeRPCGRPCStatusCodeOk = "0" + // CANCELLED + AttributeRPCGRPCStatusCodeCancelled = "1" + // UNKNOWN + AttributeRPCGRPCStatusCodeUnknown = "2" + // INVALID_ARGUMENT + AttributeRPCGRPCStatusCodeInvalidArgument = "3" + // DEADLINE_EXCEEDED + AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" + // NOT_FOUND + AttributeRPCGRPCStatusCodeNotFound = "5" + // ALREADY_EXISTS + AttributeRPCGRPCStatusCodeAlreadyExists = "6" + // PERMISSION_DENIED + AttributeRPCGRPCStatusCodePermissionDenied = "7" + // RESOURCE_EXHAUSTED + AttributeRPCGRPCStatusCodeResourceExhausted = "8" + // FAILED_PRECONDITION + AttributeRPCGRPCStatusCodeFailedPrecondition = "9" + // ABORTED + AttributeRPCGRPCStatusCodeAborted = "10" + // OUT_OF_RANGE + AttributeRPCGRPCStatusCodeOutOfRange = "11" + // UNIMPLEMENTED + AttributeRPCGRPCStatusCodeUnimplemented = "12" + // INTERNAL + AttributeRPCGRPCStatusCodeInternal = "13" + // UNAVAILABLE + AttributeRPCGRPCStatusCodeUnavailable = "14" + // DATA_LOSS + AttributeRPCGRPCStatusCodeDataLoss = "15" + // UNAUTHENTICATED + AttributeRPCGRPCStatusCodeUnauthenticated = "16" +) + +// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). +const ( + // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 + // does not specify this, the value can be omitted. + // + // Type: string + // Required: If missing, it is assumed to be "1.0". + // Stability: stable + // Examples: '2.0', '1.0' + AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" + // 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 + // Required: No + // Stability: stable + // Examples: '10', 'request-7', '' + AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" + // error.code property of response if it is an error response. + // + // Type: int + // Required: If missing, response is assumed to be successful. + // Stability: stable + // Examples: -32700, 100 + AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" + // error.message property of response if it is an error response. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Parse error', 'User already exists' + AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" +) + +// RPC received/sent message. +const ( + // Whether this is a received or sent message. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessageType = "message.type" + // MUST be calculated as two different counters starting from 1 one for sent + // messages and one for received message. + // + // Type: int + // Required: No + // Stability: stable + // Note: This way we guarantee that the values will be consistent between + // different implementations. + AttributeMessageID = "message.id" + // Compressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageCompressedSize = "message.compressed_size" + // Uncompressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageUncompressedSize = "message.uncompressed_size" +) + +const ( + // sent + AttributeMessageTypeSent = "SENT" + // received + AttributeMessageTypeReceived = "RECEIVED" +) + +func GetTraceSemanticConventionAttributeNames() []string { + return []string{ + AttributeAWSLambdaInvokedARN, + AttributeDBSystem, + AttributeDBConnectionString, + AttributeDBUser, + AttributeDBJDBCDriverClassname, + AttributeDBName, + AttributeDBStatement, + AttributeDBOperation, + AttributeDBMSSQLInstanceName, + AttributeDBCassandraKeyspace, + AttributeDBCassandraPageSize, + AttributeDBCassandraConsistencyLevel, + AttributeDBCassandraTable, + AttributeDBCassandraIdempotence, + AttributeDBCassandraSpeculativeExecutionCount, + AttributeDBCassandraCoordinatorID, + AttributeDBCassandraCoordinatorDC, + AttributeDBHBaseNamespace, + AttributeDBRedisDBIndex, + AttributeDBMongoDBCollection, + AttributeDBSQLTable, + AttributeExceptionType, + AttributeExceptionMessage, + AttributeExceptionStacktrace, + AttributeExceptionEscaped, + AttributeFaaSTrigger, + AttributeFaaSExecution, + AttributeFaaSDocumentCollection, + AttributeFaaSDocumentOperation, + AttributeFaaSDocumentTime, + AttributeFaaSDocumentName, + AttributeFaaSTime, + AttributeFaaSCron, + AttributeFaaSColdstart, + AttributeFaaSInvokedName, + AttributeFaaSInvokedProvider, + AttributeFaaSInvokedRegion, + AttributeNetTransport, + AttributeNetPeerIP, + AttributeNetPeerPort, + AttributeNetPeerName, + AttributeNetHostIP, + AttributeNetHostPort, + AttributeNetHostName, + AttributeNetHostConnectionType, + AttributeNetHostConnectionSubtype, + AttributeNetHostCarrierName, + AttributeNetHostCarrierMcc, + AttributeNetHostCarrierMnc, + AttributeNetHostCarrierIcc, + AttributePeerService, + AttributeEnduserID, + AttributeEnduserRole, + AttributeEnduserScope, + AttributeThreadID, + AttributeThreadName, + AttributeCodeFunction, + AttributeCodeNamespace, + AttributeCodeFilepath, + AttributeCodeLineNumber, + AttributeHTTPMethod, + AttributeHTTPURL, + AttributeHTTPTarget, + AttributeHTTPHost, + AttributeHTTPScheme, + AttributeHTTPStatusCode, + AttributeHTTPFlavor, + AttributeHTTPUserAgent, + AttributeHTTPRequestContentLength, + AttributeHTTPRequestContentLengthUncompressed, + AttributeHTTPResponseContentLength, + AttributeHTTPResponseContentLengthUncompressed, + AttributeHTTPServerName, + AttributeHTTPRoute, + AttributeHTTPClientIP, + AttributeAWSDynamoDBTableNames, + AttributeAWSDynamoDBConsumedCapacity, + AttributeAWSDynamoDBItemCollectionMetrics, + AttributeAWSDynamoDBProvisionedReadCapacity, + AttributeAWSDynamoDBProvisionedWriteCapacity, + AttributeAWSDynamoDBConsistentRead, + AttributeAWSDynamoDBProjection, + AttributeAWSDynamoDBLimit, + AttributeAWSDynamoDBAttributesToGet, + AttributeAWSDynamoDBIndexName, + AttributeAWSDynamoDBSelect, + AttributeAWSDynamoDBGlobalSecondaryIndexes, + AttributeAWSDynamoDBLocalSecondaryIndexes, + AttributeAWSDynamoDBExclusiveStartTable, + AttributeAWSDynamoDBTableCount, + AttributeAWSDynamoDBScanForward, + AttributeAWSDynamoDBSegment, + AttributeAWSDynamoDBTotalSegments, + AttributeAWSDynamoDBCount, + AttributeAWSDynamoDBScannedCount, + AttributeAWSDynamoDBAttributeDefinitions, + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, + AttributeMessagingSystem, + AttributeMessagingDestination, + AttributeMessagingDestinationKind, + AttributeMessagingTempDestination, + AttributeMessagingProtocol, + AttributeMessagingProtocolVersion, + AttributeMessagingURL, + AttributeMessagingMessageID, + AttributeMessagingConversationID, + AttributeMessagingMessagePayloadSizeBytes, + AttributeMessagingMessagePayloadCompressedSizeBytes, + AttributeMessagingOperation, + AttributeMessagingConsumerID, + AttributeMessagingRabbitmqRoutingKey, + AttributeMessagingKafkaMessageKey, + AttributeMessagingKafkaConsumerGroup, + AttributeMessagingKafkaClientID, + AttributeMessagingKafkaPartition, + AttributeMessagingKafkaTombstone, + AttributeRPCSystem, + AttributeRPCService, + AttributeRPCMethod, + AttributeRPCGRPCStatusCode, + AttributeRPCJsonrpcVersion, + AttributeRPCJsonrpcRequestID, + AttributeRPCJsonrpcErrorCode, + AttributeRPCJsonrpcErrorMessage, + AttributeMessageType, + AttributeMessageID, + AttributeMessageCompressedSize, + AttributeMessageUncompressedSize, + } +} diff --git a/semconv/v1.7.0/nonstandard.go b/semconv/v1.7.0/nonstandard.go new file mode 100644 index 000000000000..dd6ec6ea2a82 --- /dev/null +++ b/semconv/v1.7.0/nonstandard.go @@ -0,0 +1,22 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.7.0" + +const ( + OtelLibraryName = "otel.library.name" + OtelLibraryVersion = "otel.library.version" + OtelStatusCode = "otel.status_code" + OtelStatusDescription = "otel.status_description" +) diff --git a/semconv/v1.7.0/schema.go b/semconv/v1.7.0/schema.go new file mode 100644 index 000000000000..28558966e96e --- /dev/null +++ b/semconv/v1.7.0/schema.go @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.7.0" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Conventions 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.7.0" diff --git a/semconv/v1.8.0/generated_resource.go b/semconv/v1.8.0/generated_resource.go new file mode 100644 index 000000000000..64d783156cab --- /dev/null +++ b/semconv/v1.8.0/generated_resource.go @@ -0,0 +1,1027 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// A cloud environment (e.g. GCP, Azure, AWS) +const ( + // Name of the cloud provider. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeCloudProvider = "cloud.provider" + // The cloud account ID the resource is assigned to. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '111111111111', 'opentelemetry' + AttributeCloudAccountID = "cloud.account.id" + // The geographical region the resource is running. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeCloudRegion = "cloud.region" + // 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 + // Required: No + // Stability: stable + // Examples: 'us-east-1c' + // Note: Availability zones are called "zones" on Alibaba Cloud and + // Google Cloud. + AttributeCloudAvailabilityZone = "cloud.availability_zone" + // The cloud platform in use. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The prefix of the service SHOULD match the one specified in + // cloud.provider. + AttributeCloudPlatform = "cloud.platform" +) + +const ( + // Alibaba Cloud + AttributeCloudProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeCloudProviderAWS = "aws" + // Microsoft Azure + AttributeCloudProviderAzure = "azure" + // Google Cloud Platform + AttributeCloudProviderGCP = "gcp" + // Tencent Cloud + AttributeCloudProviderTencentCloud = "tencent_cloud" +) + +const ( + // Alibaba Cloud Elastic Compute Service + AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" + // Alibaba Cloud Function Compute + AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" + // AWS Elastic Compute Cloud + AttributeCloudPlatformAWSEC2 = "aws_ec2" + // AWS Elastic Container Service + AttributeCloudPlatformAWSECS = "aws_ecs" + // AWS Elastic Kubernetes Service + AttributeCloudPlatformAWSEKS = "aws_eks" + // AWS Lambda + AttributeCloudPlatformAWSLambda = "aws_lambda" + // AWS Elastic Beanstalk + AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" + // AWS App Runner + AttributeCloudPlatformAWSAppRunner = "aws_app_runner" + // Azure Virtual Machines + AttributeCloudPlatformAzureVM = "azure_vm" + // Azure Container Instances + AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" + // Azure Kubernetes Service + AttributeCloudPlatformAzureAKS = "azure_aks" + // Azure Functions + AttributeCloudPlatformAzureFunctions = "azure_functions" + // Azure App Service + AttributeCloudPlatformAzureAppService = "azure_app_service" + // Google Cloud Compute Engine (GCE) + AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" + // Google Cloud Run + AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" + // Google Cloud Kubernetes Engine (GKE) + AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" + // Google Cloud Functions (GCF) + AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" + // Google Cloud App Engine (GAE) + AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" + // Tencent Cloud Cloud Virtual Machine (CVM) + AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" + // Tencent Cloud Elastic Kubernetes Service (EKS) + AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" + // Tencent Cloud Serverless Cloud Function (SCF) + AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" +) + +// Resources used by AWS Elastic Container Service (ECS). +const ( + // The Amazon Resource Name (ARN) of an ECS container instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + AttributeAWSECSContainerARN = "aws.ecs.container.arn" + // The ARN of an ECS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" + // The launch type for an ECS task. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeAWSECSLaunchtype = "aws.ecs.launchtype" + // The ARN of an ECS task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSECSTaskARN = "aws.ecs.task.arn" + // The task definition family this task definition is a member of. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-family' + AttributeAWSECSTaskFamily = "aws.ecs.task.family" + // The revision for this task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '8', '26' + AttributeAWSECSTaskRevision = "aws.ecs.task.revision" +) + +const ( + // ec2 + AttributeAWSECSLaunchtypeEC2 = "ec2" + // fargate + AttributeAWSECSLaunchtypeFargate = "fargate" +) + +// Resources used by AWS Elastic Kubernetes Service (EKS). +const ( + // The ARN of an EKS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" +) + +// Resources specific to Amazon Web Services. +const ( + // The name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogGroupNames = "aws.log.group.names" + // The Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' + // Note: See the log group ARN format documentation. + AttributeAWSLogGroupARNs = "aws.log.group.arns" + // The name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSLogStreamNames = "aws.log.stream.names" + // The ARN(s) of the AWS log stream(s). + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogStreamARNs = "aws.log.stream.arns" +) + +// A container instance. +const ( + // Container name used by container runtime. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-autoconf' + AttributeContainerName = "container.name" + // Container ID. Usually a UUID, as for example used to identify Docker + // containers. The UUID might be abbreviated. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'a3bf90e006b2' + AttributeContainerID = "container.id" + // The container runtime managing this container. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'docker', 'containerd', 'rkt' + AttributeContainerRuntime = "container.runtime" + // Name of the image the container was built on. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'gcr.io/opentelemetry/operator' + AttributeContainerImageName = "container.image.name" + // Container image tag. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeContainerImageTag = "container.image.tag" +) + +// The software deployment. +const ( + // Name of the deployment environment (aka deployment tier). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'staging', 'production' + AttributeDeploymentEnvironment = "deployment.environment" +) + +// The device on which the process represented by this resource is running. +const ( + // A unique identifier representing the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceID = "device.id" + // The model identifier for the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelIdentifier = "device.model.identifier" + // The marketing name for the device model + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelName = "device.model.name" +) + +// A serverless instance. +const ( + // The name of the single function that this runtime instance executes. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // 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). + AttributeFaaSName = "faas.name" + // The unique ID of the single function that this runtime instance executes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' + // Note: Depending on the cloud provider, use:
      + //
    • 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 invokable with multiple + // different aliases.
      + //
    • GCP: The URI of the resource
    • + //
    • Azure: The Fully Qualified Resource ID.
    • + //
    + // On some providers, it may not be possible to determine the full ID at startup, + // which is why this field cannot be made required. For example, on AWS the + // account ID + // part of the ARN is not available without calling another AWS API + // which may be deemed too slow for a short-running lambda function. + // As an alternative, consider setting faas.id as a span attribute instead. + AttributeFaaSID = "faas.id" + // The immutable version of the function being executed. + // + // Type: string + // Required: No + // Stability: stable + // 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: 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.
    • + //
    + AttributeFaaSVersion = "faas.version" + // The execution environment ID as a string, that will be potentially reused for + // other invocations to the same function/function version. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' + // Note:
      + //
    • AWS Lambda: Use the (full) log stream name.
    • + //
    + AttributeFaaSInstance = "faas.instance" + // The amount of memory available to the serverless function in MiB. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 128 + // 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. + AttributeFaaSMaxMemory = "faas.max_memory" +) + +// A host is defined as a general computing instance. +const ( + // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud + // provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostID = "host.id" + // 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 + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostName = "host.name" + // Type of host. For Cloud, this must be the machine type. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'n1-standard-1' + AttributeHostType = "host.type" + // The CPU architecture the host system is running on. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeHostArch = "host.arch" + // Name of the VM image or OS install the host was instantiated from. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + AttributeHostImageName = "host.image.name" + // VM image ID. For Cloud, this value is from the provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ami-07b06b442921831e5' + AttributeHostImageID = "host.image.id" + // The version string of the VM image as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeHostImageVersion = "host.image.version" +) + +const ( + // AMD64 + AttributeHostArchAMD64 = "amd64" + // ARM32 + AttributeHostArchARM32 = "arm32" + // ARM64 + AttributeHostArchARM64 = "arm64" + // Itanium + AttributeHostArchIA64 = "ia64" + // 32-bit PowerPC + AttributeHostArchPPC32 = "ppc32" + // 64-bit PowerPC + AttributeHostArchPPC64 = "ppc64" + // IBM z/Architecture + AttributeHostArchS390x = "s390x" + // 32-bit x86 + AttributeHostArchX86 = "x86" +) + +// A Kubernetes Cluster. +const ( + // The name of the cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-cluster' + AttributeK8SClusterName = "k8s.cluster.name" +) + +// A Kubernetes Node object. +const ( + // The name of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'node-1' + AttributeK8SNodeName = "k8s.node.name" + // The UID of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + AttributeK8SNodeUID = "k8s.node.uid" +) + +// A Kubernetes Namespace. +const ( + // The name of the namespace that the pod is running in. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'default' + AttributeK8SNamespaceName = "k8s.namespace.name" +) + +// A Kubernetes Pod object. +const ( + // The UID of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SPodUID = "k8s.pod.uid" + // The name of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-pod-autoconf' + AttributeK8SPodName = "k8s.pod.name" +) + +// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'redis' + AttributeK8SContainerName = "k8s.container.name" + // 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 + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeK8SContainerRestartCount = "k8s.container.restart_count" +) + +// A Kubernetes ReplicaSet object. +const ( + // The UID of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SReplicaSetUID = "k8s.replicaset.uid" + // The name of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SReplicaSetName = "k8s.replicaset.name" +) + +// A Kubernetes Deployment object. +const ( + // The UID of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDeploymentUID = "k8s.deployment.uid" + // The name of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDeploymentName = "k8s.deployment.name" +) + +// A Kubernetes StatefulSet object. +const ( + // The UID of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SStatefulSetUID = "k8s.statefulset.uid" + // The name of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SStatefulSetName = "k8s.statefulset.name" +) + +// A Kubernetes DaemonSet object. +const ( + // The UID of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDaemonSetUID = "k8s.daemonset.uid" + // The name of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDaemonSetName = "k8s.daemonset.name" +) + +// A Kubernetes Job object. +const ( + // The UID of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SJobUID = "k8s.job.uid" + // The name of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SJobName = "k8s.job.name" +) + +// A Kubernetes CronJob object. +const ( + // The UID of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SCronJobUID = "k8s.cronjob.uid" + // The name of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SCronJobName = "k8s.cronjob.name" +) + +// The operating system (OS) on which the process represented by this resource is running. +const ( + // The operating system type. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeOSType = "os.type" + // Human readable (not intended to be parsed) OS version information, like e.g. + // reported by ver or lsb_release -a commands. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + AttributeOSDescription = "os.description" + // Human readable operating system name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'iOS', 'Android', 'Ubuntu' + AttributeOSName = "os.name" + // The version string of the operating system as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.2.1', '18.04.1' + AttributeOSVersion = "os.version" +) + +const ( + // Microsoft Windows + AttributeOSTypeWindows = "windows" + // Linux + AttributeOSTypeLinux = "linux" + // Apple Darwin + AttributeOSTypeDarwin = "darwin" + // FreeBSD + AttributeOSTypeFreeBSD = "freebsd" + // NetBSD + AttributeOSTypeNetBSD = "netbsd" + // OpenBSD + AttributeOSTypeOpenBSD = "openbsd" + // DragonFly BSD + AttributeOSTypeDragonflyBSD = "dragonflybsd" + // HP-UX (Hewlett Packard Unix) + AttributeOSTypeHPUX = "hpux" + // AIX (Advanced Interactive eXecutive) + AttributeOSTypeAIX = "aix" + // Oracle Solaris + AttributeOSTypeSolaris = "solaris" + // IBM z/OS + AttributeOSTypeZOS = "z_os" +) + +// An operating system process. +const ( + // Process identifier (PID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 1234 + AttributeProcessPID = "process.pid" + // 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 + // Required: See below + // Stability: stable + // Examples: 'otelcol' + AttributeProcessExecutableName = "process.executable.name" + // 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 + // Required: See below + // Stability: stable + // Examples: '/usr/bin/cmd/otelcol' + AttributeProcessExecutablePath = "process.executable.path" + // 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 + // Required: See below + // Stability: stable + // Examples: 'cmd/otelcol' + AttributeProcessCommand = "process.command" + // 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 + // Required: See below + // Stability: stable + // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + AttributeProcessCommandLine = "process.command_line" + // 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[] + // Required: See below + // Stability: stable + // Examples: 'cmd/otecol', '--config=config.yaml' + AttributeProcessCommandArgs = "process.command_args" + // The username of the user that owns the process. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'root' + AttributeProcessOwner = "process.owner" +) + +// The single (language) runtime instance which is monitored. +const ( + // The name of the runtime of this process. For compiled native binaries, this + // SHOULD be the name of the compiler. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'OpenJDK Runtime Environment' + AttributeProcessRuntimeName = "process.runtime.name" + // The version of the runtime of this process, as returned by the runtime without + // modification. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.0.2' + AttributeProcessRuntimeVersion = "process.runtime.version" + // An additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + AttributeProcessRuntimeDescription = "process.runtime.description" +) + +// A service instance. +const ( + // Logical name of the service. + // + // Type: string + // Required: Always + // 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. + AttributeServiceName = "service.name" + // A namespace for service.name. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeServiceNamespace = "service.namespace" + // The string ID of the service instance. + // + // Type: string + // Required: No + // Stability: stable + // 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). It is + // preferable for the ID to be persistent and stay the same for the lifetime of + // the service instance, however it is acceptable that the ID is ephemeral and + // changes during important lifetime events for the service (e.g. service + // restarts). If the service has no inherent unique ID that can be used as the + // value of this attribute it is recommended to generate a random Version 1 or + // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use + // Version 5, see RFC 4122 for more recommendations). + AttributeServiceInstanceID = "service.instance.id" + // The version string of the service API or implementation. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2.0.0' + AttributeServiceVersion = "service.version" +) + +// The telemetry SDK used to capture data recorded by the instrumentation libraries. +const ( + // The name of the telemetry SDK as defined above. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeTelemetrySDKName = "telemetry.sdk.name" + // The language of the telemetry SDK. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeTelemetrySDKLanguage = "telemetry.sdk.language" + // The version string of the telemetry SDK. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetrySDKVersion = "telemetry.sdk.version" + // The version string of the auto instrumentation agent, if used. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetryAutoVersion = "telemetry.auto.version" +) + +const ( + // cpp + AttributeTelemetrySDKLanguageCPP = "cpp" + // dotnet + AttributeTelemetrySDKLanguageDotnet = "dotnet" + // erlang + AttributeTelemetrySDKLanguageErlang = "erlang" + // go + AttributeTelemetrySDKLanguageGo = "go" + // java + AttributeTelemetrySDKLanguageJava = "java" + // nodejs + AttributeTelemetrySDKLanguageNodejs = "nodejs" + // php + AttributeTelemetrySDKLanguagePHP = "php" + // python + AttributeTelemetrySDKLanguagePython = "python" + // ruby + AttributeTelemetrySDKLanguageRuby = "ruby" + // webjs + AttributeTelemetrySDKLanguageWebjs = "webjs" + // swift + AttributeTelemetrySDKLanguageSwift = "swift" +) + +// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. +const ( + // The name of the web engine. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'WildFly' + AttributeWebEngineName = "webengine.name" + // The version of the web engine. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '21.0.0' + AttributeWebEngineVersion = "webengine.version" + // Additional description of the web engine (e.g. detailed version and edition + // information). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + AttributeWebEngineDescription = "webengine.description" +) + +func GetResourceSemanticConventionAttributeNames() []string { + return []string{ + AttributeCloudProvider, + AttributeCloudAccountID, + AttributeCloudRegion, + AttributeCloudAvailabilityZone, + AttributeCloudPlatform, + AttributeAWSECSContainerARN, + AttributeAWSECSClusterARN, + AttributeAWSECSLaunchtype, + AttributeAWSECSTaskARN, + AttributeAWSECSTaskFamily, + AttributeAWSECSTaskRevision, + AttributeAWSEKSClusterARN, + AttributeAWSLogGroupNames, + AttributeAWSLogGroupARNs, + AttributeAWSLogStreamNames, + AttributeAWSLogStreamARNs, + AttributeContainerName, + AttributeContainerID, + AttributeContainerRuntime, + AttributeContainerImageName, + AttributeContainerImageTag, + AttributeDeploymentEnvironment, + AttributeDeviceID, + AttributeDeviceModelIdentifier, + AttributeDeviceModelName, + AttributeFaaSName, + AttributeFaaSID, + AttributeFaaSVersion, + AttributeFaaSInstance, + AttributeFaaSMaxMemory, + AttributeHostID, + AttributeHostName, + AttributeHostType, + AttributeHostArch, + AttributeHostImageName, + AttributeHostImageID, + AttributeHostImageVersion, + AttributeK8SClusterName, + AttributeK8SNodeName, + AttributeK8SNodeUID, + AttributeK8SNamespaceName, + AttributeK8SPodUID, + AttributeK8SPodName, + AttributeK8SContainerName, + AttributeK8SContainerRestartCount, + AttributeK8SReplicaSetUID, + AttributeK8SReplicaSetName, + AttributeK8SDeploymentUID, + AttributeK8SDeploymentName, + AttributeK8SStatefulSetUID, + AttributeK8SStatefulSetName, + AttributeK8SDaemonSetUID, + AttributeK8SDaemonSetName, + AttributeK8SJobUID, + AttributeK8SJobName, + AttributeK8SCronJobUID, + AttributeK8SCronJobName, + AttributeOSType, + AttributeOSDescription, + AttributeOSName, + AttributeOSVersion, + AttributeProcessPID, + AttributeProcessExecutableName, + AttributeProcessExecutablePath, + AttributeProcessCommand, + AttributeProcessCommandLine, + AttributeProcessCommandArgs, + AttributeProcessOwner, + AttributeProcessRuntimeName, + AttributeProcessRuntimeVersion, + AttributeProcessRuntimeDescription, + AttributeServiceName, + AttributeServiceNamespace, + AttributeServiceInstanceID, + AttributeServiceVersion, + AttributeTelemetrySDKName, + AttributeTelemetrySDKLanguage, + AttributeTelemetrySDKVersion, + AttributeTelemetryAutoVersion, + AttributeWebEngineName, + AttributeWebEngineVersion, + AttributeWebEngineDescription, + } +} diff --git a/semconv/v1.8.0/generated_trace.go b/semconv/v1.8.0/generated_trace.go new file mode 100644 index 000000000000..747741b88387 --- /dev/null +++ b/semconv/v1.8.0/generated_trace.go @@ -0,0 +1,1727 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// Span attributes used by AWS Lambda (in addition to general `faas` attributes). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' + // Note: This may be different from faas.id if an alias is involved. + AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" +) + +// This document defines the attributes used to perform database client calls. +const ( + // An identifier for the database management system (DBMS) product being used. See + // below for a list of well-known identifiers. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeDBSystem = "db.system" + // The connection string used to connect to the database. It is recommended to + // remove embedded credentials. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + AttributeDBConnectionString = "db.connection_string" + // Username for accessing the database. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'readonly_user', 'reporting_user' + AttributeDBUser = "db.user" + // The fully-qualified class name of the Java Database Connectivity (JDBC) driver + // used to connect. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'org.postgresql.Driver', + // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" + // This attribute is used to report the name of the database being accessed. For + // commands that switch the database, this should be set to the target database + // (even if the command fails). + // + // Type: string + // Required: Required, if applicable. + // Stability: stable + // Examples: 'customers', 'main' + // Note: In some SQL databases, the database name to be used is called + // "schema name". In case there are multiple layers that could be + // considered for database name (e.g. Oracle instance name and schema name), the + // database name to be used is the more specific layer (e.g. Oracle schema name). + AttributeDBName = "db.name" + // The database statement being executed. + // + // Type: string + // Required: Required if applicable and not explicitly disabled via + // instrumentation configuration. + // Stability: stable + // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' + // Note: The value may be sanitized to exclude sensitive information. + AttributeDBStatement = "db.statement" + // The name of the operation being executed, e.g. the MongoDB command name such as + // findAndModify, or the SQL keyword. + // + // Type: string + // Required: Required, if `db.statement` is not applicable. + // Stability: stable + // Examples: 'findAndModify', 'HMSET', 'SELECT' + // Note: When setting this to an SQL keyword, it is not recommended to attempt any + // client-side parsing of db.statement just to get this property, but it should be + // set if the operation name is provided by the library being instrumented. If the + // SQL statement has an ambiguous operation, or performs more than one operation, + // this value may be omitted. + AttributeDBOperation = "db.operation" +) + +const ( + // Some other SQL database. Fallback only. See notes + AttributeDBSystemOtherSQL = "other_sql" + // Microsoft SQL Server + AttributeDBSystemMSSQL = "mssql" + // MySQL + AttributeDBSystemMySQL = "mysql" + // Oracle Database + AttributeDBSystemOracle = "oracle" + // IBM DB2 + AttributeDBSystemDB2 = "db2" + // PostgreSQL + AttributeDBSystemPostgreSQL = "postgresql" + // Amazon Redshift + AttributeDBSystemRedshift = "redshift" + // Apache Hive + AttributeDBSystemHive = "hive" + // Cloudscape + AttributeDBSystemCloudscape = "cloudscape" + // HyperSQL DataBase + AttributeDBSystemHSQLDB = "hsqldb" + // Progress Database + AttributeDBSystemProgress = "progress" + // SAP MaxDB + AttributeDBSystemMaxDB = "maxdb" + // SAP HANA + AttributeDBSystemHanaDB = "hanadb" + // Ingres + AttributeDBSystemIngres = "ingres" + // FirstSQL + AttributeDBSystemFirstSQL = "firstsql" + // EnterpriseDB + AttributeDBSystemEDB = "edb" + // InterSystems Caché + AttributeDBSystemCache = "cache" + // Adabas (Adaptable Database System) + AttributeDBSystemAdabas = "adabas" + // Firebird + AttributeDBSystemFirebird = "firebird" + // Apache Derby + AttributeDBSystemDerby = "derby" + // FileMaker + AttributeDBSystemFilemaker = "filemaker" + // Informix + AttributeDBSystemInformix = "informix" + // InstantDB + AttributeDBSystemInstantDB = "instantdb" + // InterBase + AttributeDBSystemInterbase = "interbase" + // MariaDB + AttributeDBSystemMariaDB = "mariadb" + // Netezza + AttributeDBSystemNetezza = "netezza" + // Pervasive PSQL + AttributeDBSystemPervasive = "pervasive" + // PointBase + AttributeDBSystemPointbase = "pointbase" + // SQLite + AttributeDBSystemSqlite = "sqlite" + // Sybase + AttributeDBSystemSybase = "sybase" + // Teradata + AttributeDBSystemTeradata = "teradata" + // Vertica + AttributeDBSystemVertica = "vertica" + // H2 + AttributeDBSystemH2 = "h2" + // ColdFusion IMQ + AttributeDBSystemColdfusion = "coldfusion" + // Apache Cassandra + AttributeDBSystemCassandra = "cassandra" + // Apache HBase + AttributeDBSystemHBase = "hbase" + // MongoDB + AttributeDBSystemMongoDB = "mongodb" + // Redis + AttributeDBSystemRedis = "redis" + // Couchbase + AttributeDBSystemCouchbase = "couchbase" + // CouchDB + AttributeDBSystemCouchDB = "couchdb" + // Microsoft Azure Cosmos DB + AttributeDBSystemCosmosDB = "cosmosdb" + // Amazon DynamoDB + AttributeDBSystemDynamoDB = "dynamodb" + // Neo4j + AttributeDBSystemNeo4j = "neo4j" + // Apache Geode + AttributeDBSystemGeode = "geode" + // Elasticsearch + AttributeDBSystemElasticsearch = "elasticsearch" + // Memcached + AttributeDBSystemMemcached = "memcached" + // CockroachDB + AttributeDBSystemCockroachdb = "cockroachdb" +) + +// Connection-level attributes for Microsoft SQL Server +const ( + // The Microsoft SQL Server instance name connecting to. This name is used to + // determine the port of a named instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MSSQLSERVER' + // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required + // (but still recommended if non-standard). + AttributeDBMSSQLInstanceName = "db.mssql.instance_name" +) + +// Call-level attributes for Cassandra +const ( + // The fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5000 + AttributeDBCassandraPageSize = "db.cassandra.page_size" + // The consistency level of the query. Based on consistency values from CQL. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" + // The name of the primary table that the operation is acting upon, including the + // keyspace name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'mytable' + // Note: This mirrors the db.sql.table attribute but references cassandra rather + // than sql. It is not recommended to attempt any client-side parsing of + // db.statement just to get this property, but it should be set if it is provided + // by the library being instrumented. If the operation is acting upon an anonymous + // table, or more than one table, this value MUST NOT be set. + AttributeDBCassandraTable = "db.cassandra.table" + // Whether or not the query is idempotent. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeDBCassandraIdempotence = "db.cassandra.idempotence" + // The number of times a query was speculatively executed. Not set or 0 if the + // query was not executed speculatively. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" + // The ID of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" + // The data center of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-west-2' + AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" +) + +const ( + // all + AttributeDBCassandraConsistencyLevelAll = "all" + // each_quorum + AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" + // quorum + AttributeDBCassandraConsistencyLevelQuorum = "quorum" + // local_quorum + AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" + // one + AttributeDBCassandraConsistencyLevelOne = "one" + // two + AttributeDBCassandraConsistencyLevelTwo = "two" + // three + AttributeDBCassandraConsistencyLevelThree = "three" + // local_one + AttributeDBCassandraConsistencyLevelLocalOne = "local_one" + // any + AttributeDBCassandraConsistencyLevelAny = "any" + // serial + AttributeDBCassandraConsistencyLevelSerial = "serial" + // local_serial + AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" +) + +// Call-level attributes for Redis +const ( + // The index of the database being accessed as used in the SELECT command, + // provided as an integer. To be used instead of the generic db.name attribute. + // + // Type: int + // Required: Required, if other than the default database (`0`). + // Stability: stable + // Examples: 0, 1, 15 + AttributeDBRedisDBIndex = "db.redis.database_index" +) + +// Call-level attributes for MongoDB +const ( + // The collection being accessed within the database stated in db.name. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'customers', 'products' + AttributeDBMongoDBCollection = "db.mongodb.collection" +) + +// Call-level attributes for SQL databases +const ( + // The name of the primary table that the operation is acting upon, including the + // database name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'public.users', 'customers' + // Note: It is not recommended to attempt any client-side parsing of db.statement + // just to get this property, but it should be set if it is provided by the + // library being instrumented. If the operation is acting upon an anonymous table, + // or more than one table, this value MUST NOT be set. + AttributeDBSQLTable = "db.sql.table" +) + +// This document defines the attributes used to report a single exception associated with a span. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'java.net.ConnectException', 'OSError' + AttributeExceptionType = "exception.type" + // The exception message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + AttributeExceptionMessage = "exception.message" + // 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 + // Required: No + // 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)' + AttributeExceptionStacktrace = "exception.stacktrace" + // 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 + // Required: No + // Stability: stable + // 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 above.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. + AttributeExceptionEscaped = "exception.escaped" +) + +// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. +const ( + // Type of the trigger which caused this function execution. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: For the server/consumer span on the incoming side, + // faas.trigger MUST be set.Clients invoking FaaS instances usually cannot set + // faas.trigger, + // since they would typically need to look in the payload to determine + // the event type. If clients set it, it should be the same as the + // trigger that corresponding incoming would have (i.e., this has + // nothing to do with the underlying transport used to make the API + // call to invoke the lambda, which is often HTTP). + AttributeFaaSTrigger = "faas.trigger" + // The execution ID of the current function execution. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + AttributeFaaSExecution = "faas.execution" +) + +const ( + // A response to some data source operation such as a database or filesystem read/write + AttributeFaaSTriggerDatasource = "datasource" + // To provide an answer to an inbound HTTP request + AttributeFaaSTriggerHTTP = "http" + // A function is set to be executed when messages are sent to a messaging system + AttributeFaaSTriggerPubsub = "pubsub" + // A function is scheduled to be executed regularly + AttributeFaaSTriggerTimer = "timer" + // If none of the others apply + AttributeFaaSTriggerOther = "other" +) + +// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. +const ( + // 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 + // Required: Always + // Stability: stable + // Examples: 'myBucketName', 'myDBName' + AttributeFaaSDocumentCollection = "faas.document.collection" + // Describes the type of the operation that was performed on the data. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeFaaSDocumentOperation = "faas.document.operation" + // A string containing the time when the data was accessed in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSDocumentTime = "faas.document.time" + // 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 + // Required: No + // Stability: stable + // Examples: 'myFile.txt', 'myTableName' + AttributeFaaSDocumentName = "faas.document.name" +) + +const ( + // When a new object is created + AttributeFaaSDocumentOperationInsert = "insert" + // When an object is modified + AttributeFaaSDocumentOperationEdit = "edit" + // When an object is deleted + AttributeFaaSDocumentOperationDelete = "delete" +) + +// Semantic Convention for FaaS scheduled to be executed regularly. +const ( + // A string containing the function invocation time in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSTime = "faas.time" + // A string containing the schedule period as Cron Expression. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0/5 * * * ? *' + AttributeFaaSCron = "faas.cron" +) + +// Contains additional attributes for incoming FaaS spans. +const ( + // A boolean that is true if the serverless function is executed for the first + // time (aka cold-start). + // + // Type: boolean + // Required: No + // Stability: stable + AttributeFaaSColdstart = "faas.coldstart" +) + +// Contains additional attributes for outgoing FaaS spans. +const ( + // The name of the invoked function. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // Note: SHOULD be equal to the faas.name resource attribute of the invoked + // function. + AttributeFaaSInvokedName = "faas.invoked_name" + // The cloud provider of the invoked function. + // + // Type: Enum + // Required: Always + // Stability: stable + // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked + // function. + AttributeFaaSInvokedProvider = "faas.invoked_provider" + // The cloud region of the invoked function. + // + // Type: string + // Required: For some cloud providers, like AWS or GCP, the region in which a + // function is hosted is essential to uniquely identify the function and also part + // of its endpoint. Since it's part of the endpoint being called, the region is + // always known to clients. In these cases, `faas.invoked_region` MUST be set + // accordingly. If the region is unknown to the client or not required for + // identifying the invoked function, setting `faas.invoked_region` is optional. + // Stability: stable + // Examples: 'eu-central-1' + // Note: SHOULD be equal to the cloud.region resource attribute of the invoked + // function. + AttributeFaaSInvokedRegion = "faas.invoked_region" +) + +const ( + // Alibaba Cloud + AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeFaaSInvokedProviderAWS = "aws" + // Microsoft Azure + AttributeFaaSInvokedProviderAzure = "azure" + // Google Cloud Platform + AttributeFaaSInvokedProviderGCP = "gcp" + // Tencent Cloud + AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" +) + +// These attributes may be used for any network related operation. +const ( + // Transport protocol used. See note below. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeNetTransport = "net.transport" + // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) + // + // Type: string + // Required: No + // Stability: stable + // Examples: '127.0.0.1' + AttributeNetPeerIP = "net.peer.ip" + // Remote port number. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 80, 8080, 443 + AttributeNetPeerPort = "net.peer.port" + // Remote hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + AttributeNetPeerName = "net.peer.name" + // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '192.168.0.1' + AttributeNetHostIP = "net.host.ip" + // Like net.peer.port but for the host port. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 35555 + AttributeNetHostPort = "net.host.port" + // Local hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'localhost' + AttributeNetHostName = "net.host.name" + // The internet connection type currently being used by the host. + // + // Type: Enum + // Required: No + // Stability: stable + // Examples: 'wifi' + AttributeNetHostConnectionType = "net.host.connection.type" + // 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 + // Required: No + // Stability: stable + // Examples: 'LTE' + AttributeNetHostConnectionSubtype = "net.host.connection.subtype" + // The name of the mobile carrier. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'sprint' + AttributeNetHostCarrierName = "net.host.carrier.name" + // The mobile carrier country code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '310' + AttributeNetHostCarrierMcc = "net.host.carrier.mcc" + // The mobile carrier network code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '001' + AttributeNetHostCarrierMnc = "net.host.carrier.mnc" + // The ISO 3166-1 alpha-2 2-character country code associated with the mobile + // carrier network. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'DE' + AttributeNetHostCarrierIcc = "net.host.carrier.icc" +) + +const ( + // ip_tcp + AttributeNetTransportTCP = "ip_tcp" + // ip_udp + AttributeNetTransportUDP = "ip_udp" + // Another IP-based protocol + AttributeNetTransportIP = "ip" + // Unix Domain socket. See below + AttributeNetTransportUnix = "unix" + // Named or anonymous pipe. See note below + AttributeNetTransportPipe = "pipe" + // In-process communication + AttributeNetTransportInProc = "inproc" + // Something else (non IP-based) + AttributeNetTransportOther = "other" +) + +const ( + // wifi + AttributeNetHostConnectionTypeWifi = "wifi" + // wired + AttributeNetHostConnectionTypeWired = "wired" + // cell + AttributeNetHostConnectionTypeCell = "cell" + // unavailable + AttributeNetHostConnectionTypeUnavailable = "unavailable" + // unknown + AttributeNetHostConnectionTypeUnknown = "unknown" +) + +const ( + // GPRS + AttributeNetHostConnectionSubtypeGprs = "gprs" + // EDGE + AttributeNetHostConnectionSubtypeEdge = "edge" + // UMTS + AttributeNetHostConnectionSubtypeUmts = "umts" + // CDMA + AttributeNetHostConnectionSubtypeCdma = "cdma" + // EVDO Rel. 0 + AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" + // EVDO Rev. A + AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" + // CDMA2000 1XRTT + AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" + // HSDPA + AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" + // HSUPA + AttributeNetHostConnectionSubtypeHsupa = "hsupa" + // HSPA + AttributeNetHostConnectionSubtypeHspa = "hspa" + // IDEN + AttributeNetHostConnectionSubtypeIden = "iden" + // EVDO Rev. B + AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" + // LTE + AttributeNetHostConnectionSubtypeLte = "lte" + // EHRPD + AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" + // HSPAP + AttributeNetHostConnectionSubtypeHspap = "hspap" + // GSM + AttributeNetHostConnectionSubtypeGsm = "gsm" + // TD-SCDMA + AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" + // IWLAN + AttributeNetHostConnectionSubtypeIwlan = "iwlan" + // 5G NR (New Radio) + AttributeNetHostConnectionSubtypeNr = "nr" + // 5G NRNSA (New Radio Non-Standalone) + AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" + // LTE CA + AttributeNetHostConnectionSubtypeLteCa = "lte_ca" +) + +// Operations that access some remote service. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'AuthTokenCache' + AttributePeerService = "peer.service" +) + +// These attributes may be used for any operation with an authenticated and/or authorized enduser. +const ( + // Username or client_id extracted from the access token or Authorization header + // in the inbound request from outside the system. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'username' + AttributeEnduserID = "enduser.id" + // Actual/assumed role the client is making the request under extracted from token + // or application security context. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'admin' + AttributeEnduserRole = "enduser.role" + // Scopes or granted authorities the client currently possesses extracted from + // token or application security context. The value would come from the scope + // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 + // Assertion. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'read:message, write:files' + AttributeEnduserScope = "enduser.scope" +) + +// These attributes may be used for any operation to store information about a thread that started a span. +const ( + // Current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeThreadID = "thread.id" + // Current thread name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'main' + AttributeThreadName = "thread.name" +) + +// These attributes allow to report this unit of code and therefore to provide more context about the span. +const ( + // The method or function name, or equivalent (usually rightmost part of the code + // unit's name). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'serveRequest' + AttributeCodeFunction = "code.function" + // 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 + // Required: No + // Stability: stable + // Examples: 'com.example.MyHTTPService' + AttributeCodeNamespace = "code.namespace" + // The source code file name that identifies the code unit as uniquely as possible + // (preferably an absolute file path). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/usr/local/MyApplication/content_root/app/index.php' + AttributeCodeFilepath = "code.filepath" + // The line number in code.filepath best representing the operation. It SHOULD + // point within the code unit named in code.function. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeCodeLineNumber = "code.lineno" +) + +// This document defines semantic conventions for HTTP client and server Spans. +const ( + // HTTP request method. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'GET', 'POST', 'HEAD' + AttributeHTTPMethod = "http.method" + // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. + // Usually the fragment is not transmitted over HTTP, but if it is known, it + // should be included nevertheless. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' + // Note: http.url MUST NOT contain credentials passed via URL in form of + // https://username:password@www.example.com/. In such case the attribute's value + // should be https://www.example.com/. + AttributeHTTPURL = "http.url" + // The full request target as passed in a HTTP request line or equivalent. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/path/12314/?q=ddds#123' + AttributeHTTPTarget = "http.target" + // The value of the HTTP host header. An empty Host header should also be + // reported, see note. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'www.example.org' + // Note: When the header is present but empty the attribute SHOULD be set to the + // empty string. Note that this is a valid situation that is expected in certain + // cases, according the aforementioned section of RFC 7230. When the header is not + // set the attribute MUST NOT be set. + AttributeHTTPHost = "http.host" + // The URI scheme identifying the used protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'http', 'https' + AttributeHTTPScheme = "http.scheme" + // HTTP response status code. + // + // Type: int + // Required: If and only if one was received/sent. + // Stability: stable + // Examples: 200 + AttributeHTTPStatusCode = "http.status_code" + // Kind of HTTP protocol used. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: If net.transport is not specified, it can be assumed to be IP.TCP except + // if http.flavor is QUIC, in which case IP.UDP is assumed. + AttributeHTTPFlavor = "http.flavor" + // Value of the HTTP User-Agent header sent by the client. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + AttributeHTTPUserAgent = "http.user_agent" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPRequestContentLength = "http.request_content_length" + // The size of the uncompressed request payload body after transport decoding. Not + // set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPResponseContentLength = "http.response_content_length" + // The size of the uncompressed response payload body after transport decoding. + // Not set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" +) + +const ( + // HTTP 1.0 + AttributeHTTPFlavorHTTP10 = "1.0" + // HTTP 1.1 + AttributeHTTPFlavorHTTP11 = "1.1" + // HTTP 2 + AttributeHTTPFlavorHTTP20 = "2.0" + // SPDY protocol + AttributeHTTPFlavorSPDY = "SPDY" + // QUIC protocol + AttributeHTTPFlavorQUIC = "QUIC" +) + +// Semantic Convention for HTTP Server +const ( + // The primary server name of the matched virtual host. This should be obtained + // via configuration. If no such configuration can be obtained, this attribute + // MUST NOT be set ( net.host.name should be used instead). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + // Note: http.url is usually not readily available on the server side but would + // have to be assembled in a cumbersome and sometimes lossy process from other + // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus + // preferred to supply the raw data that is available. + AttributeHTTPServerName = "http.server_name" + // The matched route (path template). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/users/:userID?' + AttributeHTTPRoute = "http.route" + // The IP address of the original client behind all proxies, if known (e.g. from + // X-Forwarded-For). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '83.164.160.102' + // Note: This is not necessarily the same as net.peer.ip, which would + // identify the network-level peer, which may be a proxy.This attribute should be + // set when a source of information different + // from the one used for net.peer.ip, is available even if that other + // source just confirms the same value as net.peer.ip. + // Rationale: For net.peer.ip, one typically does not know if it + // comes from a proxy, reverse proxy, or the actual client. Setting + // http.client_ip when it's the same as net.peer.ip means that + // one is at least somewhat confident that the address is not that of + // the closest proxy. + AttributeHTTPClientIP = "http.client_ip" +) + +// Attributes that exist for multiple DynamoDB request types. +const ( + // The keys in the RequestItems object field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'Users', 'Cats' + AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" + // The JSON-serialized value of each item in the ConsumedCapacity response field. + // + // Type: string[] + // Required: No + // Stability: stable + // 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 }' + AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" + // The JSON-serialized value of the ItemCollectionMetrics response field. + // + // Type: string + // Required: No + // Stability: stable + // 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 ] } ] }' + AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" + // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" + // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" + // The value of the ConsistentRead request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" + // The value of the ProjectionExpression request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, + // ProductReviews' + AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" + // The value of the Limit request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" + // The value of the AttributesToGet request parameter. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'lives', 'id' + AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" + // The value of the IndexName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'name_to_group' + AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" + // The value of the Select request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ALL_ATTRIBUTES', 'COUNT' + AttributeAWSDynamoDBSelect = "aws.dynamodb.select" +) + +// DynamoDB.CreateTable +const ( + // The JSON-serialized value of each item of the GlobalSecondaryIndexes request + // field + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": + // number, "WriteCapacityUnits": number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" + // The JSON-serialized value of each item of the LocalSecondaryIndexes request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }' + AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" +) + +// DynamoDB.ListTables +const ( + // The value of the ExclusiveStartTableName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Users', 'CatsTable' + AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" + // The the number of items in the TableNames response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 20 + AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" +) + +// DynamoDB.Query +const ( + // The value of the ScanIndexForward request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" +) + +// DynamoDB.Scan +const ( + // The value of the Segment request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" + // The value of the TotalSegments request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 100 + AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" + // The value of the Count response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBCount = "aws.dynamodb.count" + // The value of the ScannedCount response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 50 + AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" +) + +// DynamoDB.UpdateTable +const ( + // The JSON-serialized value of each item in the AttributeDefinitions request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" + // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates + // request field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" +) + +// This document defines the attributes used in messaging systems. +const ( + // A string identifying the messaging system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' + AttributeMessagingSystem = "messaging.system" + // The message destination name. This might be equal to the span name but is + // required nevertheless. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'MyQueue', 'MyTopic' + AttributeMessagingDestination = "messaging.destination" + // The kind of message destination + // + // Type: Enum + // Required: Required only if the message destination is either a `queue` or + // `topic`. + // Stability: stable + AttributeMessagingDestinationKind = "messaging.destination_kind" + // A boolean that is true if the message destination is temporary. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingTempDestination = "messaging.temp_destination" + // The name of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'AMQP', 'MQTT' + AttributeMessagingProtocol = "messaging.protocol" + // The version of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.9.1' + AttributeMessagingProtocolVersion = "messaging.protocol_version" + // Connection string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tibjmsnaming://localhost:7222', + // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + AttributeMessagingURL = "messaging.url" + // A value used by the messaging system as an identifier for the message, + // represented as a string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + AttributeMessagingMessageID = "messaging.message_id" + // The conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MyConversationID' + AttributeMessagingConversationID = "messaging.conversation_id" + // The (uncompressed) size of the message payload in bytes. Also use this + // attribute if it is unknown whether the compressed or uncompressed payload size + // is reported. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2738 + AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" + // The compressed size of the message payload in bytes. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2048 + AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" +) + +const ( + // A message sent to a queue + AttributeMessagingDestinationKindQueue = "queue" + // A message sent to a topic + AttributeMessagingDestinationKindTopic = "topic" +) + +// Semantic convention for a consumer of messages received from a messaging system +const ( + // A string identifying the kind of message consumption as defined in the + // Operation names section above. If the operation is "send", this + // attribute MUST NOT be set, since the operation can be inferred from the span + // kind in that case. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingOperation = "messaging.operation" + // The identifier for the consumer receiving a message. For Kafka, set it to + // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are + // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ + // and Artemis, set it to the client_id of the client consuming the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'mygroup - client-6' + AttributeMessagingConsumerID = "messaging.consumer_id" +) + +const ( + // receive + AttributeMessagingOperationReceive = "receive" + // process + AttributeMessagingOperationProcess = "process" +) + +// Attributes for RabbitMQ +const ( + // RabbitMQ message routing key. + // + // Type: string + // Required: Unless it is empty. + // Stability: stable + // Examples: 'myKey' + AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" +) + +// Attributes for Apache Kafka +const ( + // 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 + // Required: No + // Stability: stable + // 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. + AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" + // Name of the Kafka Consumer Group that is handling the message. Only applies to + // consumers, not producers. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'my-group' + AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" + // Client ID for the Consumer or Producer that is handling the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'client-5' + AttributeMessagingKafkaClientID = "messaging.kafka.client_id" + // Partition the message is sent to. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2 + AttributeMessagingKafkaPartition = "messaging.kafka.partition" + // A boolean that is true if the message is a tombstone. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" +) + +// Attributes for Apache RocketMQ +const ( + // Namespace of RocketMQ resources, resources in different namespaces are + // individual. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myNamespace' + AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" + // Name of the RocketMQ producer/consumer group that is handling the message. The + // client type is identified by the SpanKind. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myConsumerGroup' + AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" + // The unique identifier for each client. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myhost@8742@s8083jm' + AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" + // Type of message. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" + // The secondary classifier of message besides topic. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tagA' + AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" + // Key(s) of message, another way to mark message besides message id. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'keyA', 'keyB' + AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" + // Model of message consumption. This only applies to consumer spans. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" +) + +const ( + // Normal message + AttributeMessagingRocketmqMessageTypeNormal = "normal" + // FIFO message + AttributeMessagingRocketmqMessageTypeFifo = "fifo" + // Delay message + AttributeMessagingRocketmqMessageTypeDelay = "delay" + // Transaction message + AttributeMessagingRocketmqMessageTypeTransaction = "transaction" +) + +const ( + // Clustering consumption model + AttributeMessagingRocketmqConsumptionModelClustering = "clustering" + // Broadcasting consumption model + AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" +) + +// This document defines semantic conventions for remote procedure calls. +const ( + // A string identifying the remoting system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'grpc', 'java_rmi', 'wcf' + AttributeRPCSystem = "rpc.system" + // The full (logical) name of the service being called, including its package + // name, if applicable. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCService = "rpc.service" + // The name of the (logical) method being called, must be equal to the $method + // part in the span name. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCMethod = "rpc.method" +) + +// Tech-specific attributes for gRPC. +const ( + // The numeric status code of the gRPC request. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" +) + +const ( + // OK + AttributeRPCGRPCStatusCodeOk = "0" + // CANCELLED + AttributeRPCGRPCStatusCodeCancelled = "1" + // UNKNOWN + AttributeRPCGRPCStatusCodeUnknown = "2" + // INVALID_ARGUMENT + AttributeRPCGRPCStatusCodeInvalidArgument = "3" + // DEADLINE_EXCEEDED + AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" + // NOT_FOUND + AttributeRPCGRPCStatusCodeNotFound = "5" + // ALREADY_EXISTS + AttributeRPCGRPCStatusCodeAlreadyExists = "6" + // PERMISSION_DENIED + AttributeRPCGRPCStatusCodePermissionDenied = "7" + // RESOURCE_EXHAUSTED + AttributeRPCGRPCStatusCodeResourceExhausted = "8" + // FAILED_PRECONDITION + AttributeRPCGRPCStatusCodeFailedPrecondition = "9" + // ABORTED + AttributeRPCGRPCStatusCodeAborted = "10" + // OUT_OF_RANGE + AttributeRPCGRPCStatusCodeOutOfRange = "11" + // UNIMPLEMENTED + AttributeRPCGRPCStatusCodeUnimplemented = "12" + // INTERNAL + AttributeRPCGRPCStatusCodeInternal = "13" + // UNAVAILABLE + AttributeRPCGRPCStatusCodeUnavailable = "14" + // DATA_LOSS + AttributeRPCGRPCStatusCodeDataLoss = "15" + // UNAUTHENTICATED + AttributeRPCGRPCStatusCodeUnauthenticated = "16" +) + +// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). +const ( + // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 + // does not specify this, the value can be omitted. + // + // Type: string + // Required: If missing, it is assumed to be "1.0". + // Stability: stable + // Examples: '2.0', '1.0' + AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" + // 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 + // Required: No + // Stability: stable + // Examples: '10', 'request-7', '' + AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" + // error.code property of response if it is an error response. + // + // Type: int + // Required: If missing, response is assumed to be successful. + // Stability: stable + // Examples: -32700, 100 + AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" + // error.message property of response if it is an error response. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Parse error', 'User already exists' + AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" +) + +// RPC received/sent message. +const ( + // Whether this is a received or sent message. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessageType = "message.type" + // MUST be calculated as two different counters starting from 1 one for sent + // messages and one for received message. + // + // Type: int + // Required: No + // Stability: stable + // Note: This way we guarantee that the values will be consistent between + // different implementations. + AttributeMessageID = "message.id" + // Compressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageCompressedSize = "message.compressed_size" + // Uncompressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageUncompressedSize = "message.uncompressed_size" +) + +const ( + // sent + AttributeMessageTypeSent = "SENT" + // received + AttributeMessageTypeReceived = "RECEIVED" +) + +func GetTraceSemanticConventionAttributeNames() []string { + return []string{ + AttributeAWSLambdaInvokedARN, + AttributeDBSystem, + AttributeDBConnectionString, + AttributeDBUser, + AttributeDBJDBCDriverClassname, + AttributeDBName, + AttributeDBStatement, + AttributeDBOperation, + AttributeDBMSSQLInstanceName, + AttributeDBCassandraPageSize, + AttributeDBCassandraConsistencyLevel, + AttributeDBCassandraTable, + AttributeDBCassandraIdempotence, + AttributeDBCassandraSpeculativeExecutionCount, + AttributeDBCassandraCoordinatorID, + AttributeDBCassandraCoordinatorDC, + AttributeDBRedisDBIndex, + AttributeDBMongoDBCollection, + AttributeDBSQLTable, + AttributeExceptionType, + AttributeExceptionMessage, + AttributeExceptionStacktrace, + AttributeExceptionEscaped, + AttributeFaaSTrigger, + AttributeFaaSExecution, + AttributeFaaSDocumentCollection, + AttributeFaaSDocumentOperation, + AttributeFaaSDocumentTime, + AttributeFaaSDocumentName, + AttributeFaaSTime, + AttributeFaaSCron, + AttributeFaaSColdstart, + AttributeFaaSInvokedName, + AttributeFaaSInvokedProvider, + AttributeFaaSInvokedRegion, + AttributeNetTransport, + AttributeNetPeerIP, + AttributeNetPeerPort, + AttributeNetPeerName, + AttributeNetHostIP, + AttributeNetHostPort, + AttributeNetHostName, + AttributeNetHostConnectionType, + AttributeNetHostConnectionSubtype, + AttributeNetHostCarrierName, + AttributeNetHostCarrierMcc, + AttributeNetHostCarrierMnc, + AttributeNetHostCarrierIcc, + AttributePeerService, + AttributeEnduserID, + AttributeEnduserRole, + AttributeEnduserScope, + AttributeThreadID, + AttributeThreadName, + AttributeCodeFunction, + AttributeCodeNamespace, + AttributeCodeFilepath, + AttributeCodeLineNumber, + AttributeHTTPMethod, + AttributeHTTPURL, + AttributeHTTPTarget, + AttributeHTTPHost, + AttributeHTTPScheme, + AttributeHTTPStatusCode, + AttributeHTTPFlavor, + AttributeHTTPUserAgent, + AttributeHTTPRequestContentLength, + AttributeHTTPRequestContentLengthUncompressed, + AttributeHTTPResponseContentLength, + AttributeHTTPResponseContentLengthUncompressed, + AttributeHTTPServerName, + AttributeHTTPRoute, + AttributeHTTPClientIP, + AttributeAWSDynamoDBTableNames, + AttributeAWSDynamoDBConsumedCapacity, + AttributeAWSDynamoDBItemCollectionMetrics, + AttributeAWSDynamoDBProvisionedReadCapacity, + AttributeAWSDynamoDBProvisionedWriteCapacity, + AttributeAWSDynamoDBConsistentRead, + AttributeAWSDynamoDBProjection, + AttributeAWSDynamoDBLimit, + AttributeAWSDynamoDBAttributesToGet, + AttributeAWSDynamoDBIndexName, + AttributeAWSDynamoDBSelect, + AttributeAWSDynamoDBGlobalSecondaryIndexes, + AttributeAWSDynamoDBLocalSecondaryIndexes, + AttributeAWSDynamoDBExclusiveStartTable, + AttributeAWSDynamoDBTableCount, + AttributeAWSDynamoDBScanForward, + AttributeAWSDynamoDBSegment, + AttributeAWSDynamoDBTotalSegments, + AttributeAWSDynamoDBCount, + AttributeAWSDynamoDBScannedCount, + AttributeAWSDynamoDBAttributeDefinitions, + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, + AttributeMessagingSystem, + AttributeMessagingDestination, + AttributeMessagingDestinationKind, + AttributeMessagingTempDestination, + AttributeMessagingProtocol, + AttributeMessagingProtocolVersion, + AttributeMessagingURL, + AttributeMessagingMessageID, + AttributeMessagingConversationID, + AttributeMessagingMessagePayloadSizeBytes, + AttributeMessagingMessagePayloadCompressedSizeBytes, + AttributeMessagingOperation, + AttributeMessagingConsumerID, + AttributeMessagingRabbitmqRoutingKey, + AttributeMessagingKafkaMessageKey, + AttributeMessagingKafkaConsumerGroup, + AttributeMessagingKafkaClientID, + AttributeMessagingKafkaPartition, + AttributeMessagingKafkaTombstone, + AttributeMessagingRocketmqNamespace, + AttributeMessagingRocketmqClientGroup, + AttributeMessagingRocketmqClientID, + AttributeMessagingRocketmqMessageType, + AttributeMessagingRocketmqMessageTag, + AttributeMessagingRocketmqMessageKeys, + AttributeMessagingRocketmqConsumptionModel, + AttributeRPCSystem, + AttributeRPCService, + AttributeRPCMethod, + AttributeRPCGRPCStatusCode, + AttributeRPCJsonrpcVersion, + AttributeRPCJsonrpcRequestID, + AttributeRPCJsonrpcErrorCode, + AttributeRPCJsonrpcErrorMessage, + AttributeMessageType, + AttributeMessageID, + AttributeMessageCompressedSize, + AttributeMessageUncompressedSize, + } +} diff --git a/semconv/v1.8.0/nonstandard.go b/semconv/v1.8.0/nonstandard.go new file mode 100644 index 000000000000..f5eceda76736 --- /dev/null +++ b/semconv/v1.8.0/nonstandard.go @@ -0,0 +1,22 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.8.0" + +const ( + OtelLibraryName = "otel.library.name" + OtelLibraryVersion = "otel.library.version" + OtelStatusCode = "otel.status_code" + OtelStatusDescription = "otel.status_description" +) diff --git a/semconv/v1.8.0/schema.go b/semconv/v1.8.0/schema.go new file mode 100644 index 000000000000..14586b884f73 --- /dev/null +++ b/semconv/v1.8.0/schema.go @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.8.0" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Conventions 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.8.0" diff --git a/semconv/v1.9.0/generated_resource.go b/semconv/v1.9.0/generated_resource.go new file mode 100644 index 000000000000..64718c0ae72b --- /dev/null +++ b/semconv/v1.9.0/generated_resource.go @@ -0,0 +1,1037 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// A cloud environment (e.g. GCP, Azure, AWS) +const ( + // Name of the cloud provider. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeCloudProvider = "cloud.provider" + // The cloud account ID the resource is assigned to. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '111111111111', 'opentelemetry' + AttributeCloudAccountID = "cloud.account.id" + // The geographical region the resource is running. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeCloudRegion = "cloud.region" + // 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 + // Required: No + // Stability: stable + // Examples: 'us-east-1c' + // Note: Availability zones are called "zones" on Alibaba Cloud and + // Google Cloud. + AttributeCloudAvailabilityZone = "cloud.availability_zone" + // The cloud platform in use. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The prefix of the service SHOULD match the one specified in + // cloud.provider. + AttributeCloudPlatform = "cloud.platform" +) + +const ( + // Alibaba Cloud + AttributeCloudProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeCloudProviderAWS = "aws" + // Microsoft Azure + AttributeCloudProviderAzure = "azure" + // Google Cloud Platform + AttributeCloudProviderGCP = "gcp" + // Tencent Cloud + AttributeCloudProviderTencentCloud = "tencent_cloud" +) + +const ( + // Alibaba Cloud Elastic Compute Service + AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" + // Alibaba Cloud Function Compute + AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" + // AWS Elastic Compute Cloud + AttributeCloudPlatformAWSEC2 = "aws_ec2" + // AWS Elastic Container Service + AttributeCloudPlatformAWSECS = "aws_ecs" + // AWS Elastic Kubernetes Service + AttributeCloudPlatformAWSEKS = "aws_eks" + // AWS Lambda + AttributeCloudPlatformAWSLambda = "aws_lambda" + // AWS Elastic Beanstalk + AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" + // AWS App Runner + AttributeCloudPlatformAWSAppRunner = "aws_app_runner" + // Azure Virtual Machines + AttributeCloudPlatformAzureVM = "azure_vm" + // Azure Container Instances + AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" + // Azure Kubernetes Service + AttributeCloudPlatformAzureAKS = "azure_aks" + // Azure Functions + AttributeCloudPlatformAzureFunctions = "azure_functions" + // Azure App Service + AttributeCloudPlatformAzureAppService = "azure_app_service" + // Google Cloud Compute Engine (GCE) + AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" + // Google Cloud Run + AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" + // Google Cloud Kubernetes Engine (GKE) + AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" + // Google Cloud Functions (GCF) + AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" + // Google Cloud App Engine (GAE) + AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" + // Tencent Cloud Cloud Virtual Machine (CVM) + AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" + // Tencent Cloud Elastic Kubernetes Service (EKS) + AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" + // Tencent Cloud Serverless Cloud Function (SCF) + AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" +) + +// Resources used by AWS Elastic Container Service (ECS). +const ( + // The Amazon Resource Name (ARN) of an ECS container instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' + AttributeAWSECSContainerARN = "aws.ecs.container.arn" + // The ARN of an ECS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" + // The launch type for an ECS task. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeAWSECSLaunchtype = "aws.ecs.launchtype" + // The ARN of an ECS task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us- + // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSECSTaskARN = "aws.ecs.task.arn" + // The task definition family this task definition is a member of. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-family' + AttributeAWSECSTaskFamily = "aws.ecs.task.family" + // The revision for this task definition. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '8', '26' + AttributeAWSECSTaskRevision = "aws.ecs.task.revision" +) + +const ( + // ec2 + AttributeAWSECSLaunchtypeEC2 = "ec2" + // fargate + AttributeAWSECSLaunchtypeFargate = "fargate" +) + +// Resources used by AWS Elastic Kubernetes Service (EKS). +const ( + // The ARN of an EKS cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' + AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" +) + +// Resources specific to Amazon Web Services. +const ( + // The name(s) of the AWS log group(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogGroupNames = "aws.log.group.names" + // The Amazon Resource Name(s) (ARN) of the AWS log group(s). + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' + // Note: See the log group ARN format documentation. + AttributeAWSLogGroupARNs = "aws.log.group.arns" + // The name(s) of the AWS log stream(s) an application is writing to. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' + AttributeAWSLogStreamNames = "aws.log.stream.names" + // The ARN(s) of the AWS log stream(s). + // + // Type: string[] + // Required: No + // Stability: stable + // 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. + AttributeAWSLogStreamARNs = "aws.log.stream.arns" +) + +// A container instance. +const ( + // Container name used by container runtime. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-autoconf' + AttributeContainerName = "container.name" + // Container ID. Usually a UUID, as for example used to identify Docker + // containers. The UUID might be abbreviated. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'a3bf90e006b2' + AttributeContainerID = "container.id" + // The container runtime managing this container. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'docker', 'containerd', 'rkt' + AttributeContainerRuntime = "container.runtime" + // Name of the image the container was built on. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'gcr.io/opentelemetry/operator' + AttributeContainerImageName = "container.image.name" + // Container image tag. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeContainerImageTag = "container.image.tag" +) + +// The software deployment. +const ( + // Name of the deployment environment (aka deployment tier). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'staging', 'production' + AttributeDeploymentEnvironment = "deployment.environment" +) + +// The device on which the process represented by this resource is running. +const ( + // A unique identifier representing the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceID = "device.id" + // The model identifier for the device + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelIdentifier = "device.model.identifier" + // The marketing name for the device model + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeDeviceModelName = "device.model.name" + // The name of the device manufacturer + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Apple', 'Samsung' + // Note: The Android OS provides this field via Build. iOS apps SHOULD hardcode + // the value Apple. + AttributeDeviceManufacturer = "device.manufacturer" +) + +// A serverless instance. +const ( + // The name of the single function that this runtime instance executes. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // 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). + AttributeFaaSName = "faas.name" + // The unique ID of the single function that this runtime instance executes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' + // Note: Depending on the cloud provider, use:
      + //
    • 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 invokable with multiple + // different aliases.
      + //
    • GCP: The URI of the resource
    • + //
    • Azure: The Fully Qualified Resource ID.
    • + //
    + // On some providers, it may not be possible to determine the full ID at startup, + // which is why this field cannot be made required. For example, on AWS the + // account ID + // part of the ARN is not available without calling another AWS API + // which may be deemed too slow for a short-running lambda function. + // As an alternative, consider setting faas.id as a span attribute instead. + AttributeFaaSID = "faas.id" + // The immutable version of the function being executed. + // + // Type: string + // Required: No + // Stability: stable + // 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: 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.
    • + //
    + AttributeFaaSVersion = "faas.version" + // The execution environment ID as a string, that will be potentially reused for + // other invocations to the same function/function version. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' + // Note:
      + //
    • AWS Lambda: Use the (full) log stream name.
    • + //
    + AttributeFaaSInstance = "faas.instance" + // The amount of memory available to the serverless function in MiB. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 128 + // 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. + AttributeFaaSMaxMemory = "faas.max_memory" +) + +// A host is defined as a general computing instance. +const ( + // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud + // provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostID = "host.id" + // 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 + // Required: No + // Stability: stable + // Examples: 'opentelemetry-test' + AttributeHostName = "host.name" + // Type of host. For Cloud, this must be the machine type. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'n1-standard-1' + AttributeHostType = "host.type" + // The CPU architecture the host system is running on. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeHostArch = "host.arch" + // Name of the VM image or OS install the host was instantiated from. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' + AttributeHostImageName = "host.image.name" + // VM image ID. For Cloud, this value is from the provider. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ami-07b06b442921831e5' + AttributeHostImageID = "host.image.id" + // The version string of the VM image as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.1' + AttributeHostImageVersion = "host.image.version" +) + +const ( + // AMD64 + AttributeHostArchAMD64 = "amd64" + // ARM32 + AttributeHostArchARM32 = "arm32" + // ARM64 + AttributeHostArchARM64 = "arm64" + // Itanium + AttributeHostArchIA64 = "ia64" + // 32-bit PowerPC + AttributeHostArchPPC32 = "ppc32" + // 64-bit PowerPC + AttributeHostArchPPC64 = "ppc64" + // IBM z/Architecture + AttributeHostArchS390x = "s390x" + // 32-bit x86 + AttributeHostArchX86 = "x86" +) + +// A Kubernetes Cluster. +const ( + // The name of the cluster. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-cluster' + AttributeK8SClusterName = "k8s.cluster.name" +) + +// A Kubernetes Node object. +const ( + // The name of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'node-1' + AttributeK8SNodeName = "k8s.node.name" + // The UID of the Node. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' + AttributeK8SNodeUID = "k8s.node.uid" +) + +// A Kubernetes Namespace. +const ( + // The name of the namespace that the pod is running in. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'default' + AttributeK8SNamespaceName = "k8s.namespace.name" +) + +// A Kubernetes Pod object. +const ( + // The UID of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SPodUID = "k8s.pod.uid" + // The name of the Pod. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry-pod-autoconf' + AttributeK8SPodName = "k8s.pod.name" +) + +// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'redis' + AttributeK8SContainerName = "k8s.container.name" + // 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 + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeK8SContainerRestartCount = "k8s.container.restart_count" +) + +// A Kubernetes ReplicaSet object. +const ( + // The UID of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SReplicaSetUID = "k8s.replicaset.uid" + // The name of the ReplicaSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SReplicaSetName = "k8s.replicaset.name" +) + +// A Kubernetes Deployment object. +const ( + // The UID of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDeploymentUID = "k8s.deployment.uid" + // The name of the Deployment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDeploymentName = "k8s.deployment.name" +) + +// A Kubernetes StatefulSet object. +const ( + // The UID of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SStatefulSetUID = "k8s.statefulset.uid" + // The name of the StatefulSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SStatefulSetName = "k8s.statefulset.name" +) + +// A Kubernetes DaemonSet object. +const ( + // The UID of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SDaemonSetUID = "k8s.daemonset.uid" + // The name of the DaemonSet. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SDaemonSetName = "k8s.daemonset.name" +) + +// A Kubernetes Job object. +const ( + // The UID of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SJobUID = "k8s.job.uid" + // The name of the Job. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SJobName = "k8s.job.name" +) + +// A Kubernetes CronJob object. +const ( + // The UID of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' + AttributeK8SCronJobUID = "k8s.cronjob.uid" + // The name of the CronJob. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeK8SCronJobName = "k8s.cronjob.name" +) + +// The operating system (OS) on which the process represented by this resource is running. +const ( + // The operating system type. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeOSType = "os.type" + // Human readable (not intended to be parsed) OS version information, like e.g. + // reported by ver or lsb_release -a commands. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' + AttributeOSDescription = "os.description" + // Human readable operating system name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'iOS', 'Android', 'Ubuntu' + AttributeOSName = "os.name" + // The version string of the operating system as defined in Version Attributes. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.2.1', '18.04.1' + AttributeOSVersion = "os.version" +) + +const ( + // Microsoft Windows + AttributeOSTypeWindows = "windows" + // Linux + AttributeOSTypeLinux = "linux" + // Apple Darwin + AttributeOSTypeDarwin = "darwin" + // FreeBSD + AttributeOSTypeFreeBSD = "freebsd" + // NetBSD + AttributeOSTypeNetBSD = "netbsd" + // OpenBSD + AttributeOSTypeOpenBSD = "openbsd" + // DragonFly BSD + AttributeOSTypeDragonflyBSD = "dragonflybsd" + // HP-UX (Hewlett Packard Unix) + AttributeOSTypeHPUX = "hpux" + // AIX (Advanced Interactive eXecutive) + AttributeOSTypeAIX = "aix" + // Oracle Solaris + AttributeOSTypeSolaris = "solaris" + // IBM z/OS + AttributeOSTypeZOS = "z_os" +) + +// An operating system process. +const ( + // Process identifier (PID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 1234 + AttributeProcessPID = "process.pid" + // 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 + // Required: See below + // Stability: stable + // Examples: 'otelcol' + AttributeProcessExecutableName = "process.executable.name" + // 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 + // Required: See below + // Stability: stable + // Examples: '/usr/bin/cmd/otelcol' + AttributeProcessExecutablePath = "process.executable.path" + // 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 + // Required: See below + // Stability: stable + // Examples: 'cmd/otelcol' + AttributeProcessCommand = "process.command" + // 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 + // Required: See below + // Stability: stable + // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' + AttributeProcessCommandLine = "process.command_line" + // 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[] + // Required: See below + // Stability: stable + // Examples: 'cmd/otecol', '--config=config.yaml' + AttributeProcessCommandArgs = "process.command_args" + // The username of the user that owns the process. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'root' + AttributeProcessOwner = "process.owner" +) + +// The single (language) runtime instance which is monitored. +const ( + // The name of the runtime of this process. For compiled native binaries, this + // SHOULD be the name of the compiler. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'OpenJDK Runtime Environment' + AttributeProcessRuntimeName = "process.runtime.name" + // The version of the runtime of this process, as returned by the runtime without + // modification. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '14.0.2' + AttributeProcessRuntimeVersion = "process.runtime.version" + // An additional description about the runtime of the process, for example a + // specific vendor customization of the runtime environment. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' + AttributeProcessRuntimeDescription = "process.runtime.description" +) + +// A service instance. +const ( + // Logical name of the service. + // + // Type: string + // Required: Always + // 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. + AttributeServiceName = "service.name" + // A namespace for service.name. + // + // Type: string + // Required: No + // Stability: stable + // 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. + AttributeServiceNamespace = "service.namespace" + // The string ID of the service instance. + // + // Type: string + // Required: No + // Stability: stable + // 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). It is + // preferable for the ID to be persistent and stay the same for the lifetime of + // the service instance, however it is acceptable that the ID is ephemeral and + // changes during important lifetime events for the service (e.g. service + // restarts). If the service has no inherent unique ID that can be used as the + // value of this attribute it is recommended to generate a random Version 1 or + // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use + // Version 5, see RFC 4122 for more recommendations). + AttributeServiceInstanceID = "service.instance.id" + // The version string of the service API or implementation. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '2.0.0' + AttributeServiceVersion = "service.version" +) + +// The telemetry SDK used to capture data recorded by the instrumentation libraries. +const ( + // The name of the telemetry SDK as defined above. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'opentelemetry' + AttributeTelemetrySDKName = "telemetry.sdk.name" + // The language of the telemetry SDK. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeTelemetrySDKLanguage = "telemetry.sdk.language" + // The version string of the telemetry SDK. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetrySDKVersion = "telemetry.sdk.version" + // The version string of the auto instrumentation agent, if used. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '1.2.3' + AttributeTelemetryAutoVersion = "telemetry.auto.version" +) + +const ( + // cpp + AttributeTelemetrySDKLanguageCPP = "cpp" + // dotnet + AttributeTelemetrySDKLanguageDotnet = "dotnet" + // erlang + AttributeTelemetrySDKLanguageErlang = "erlang" + // go + AttributeTelemetrySDKLanguageGo = "go" + // java + AttributeTelemetrySDKLanguageJava = "java" + // nodejs + AttributeTelemetrySDKLanguageNodejs = "nodejs" + // php + AttributeTelemetrySDKLanguagePHP = "php" + // python + AttributeTelemetrySDKLanguagePython = "python" + // ruby + AttributeTelemetrySDKLanguageRuby = "ruby" + // webjs + AttributeTelemetrySDKLanguageWebjs = "webjs" + // swift + AttributeTelemetrySDKLanguageSwift = "swift" +) + +// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. +const ( + // The name of the web engine. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'WildFly' + AttributeWebEngineName = "webengine.name" + // The version of the web engine. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '21.0.0' + AttributeWebEngineVersion = "webengine.version" + // Additional description of the web engine (e.g. detailed version and edition + // information). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' + AttributeWebEngineDescription = "webengine.description" +) + +func GetResourceSemanticConventionAttributeNames() []string { + return []string{ + AttributeCloudProvider, + AttributeCloudAccountID, + AttributeCloudRegion, + AttributeCloudAvailabilityZone, + AttributeCloudPlatform, + AttributeAWSECSContainerARN, + AttributeAWSECSClusterARN, + AttributeAWSECSLaunchtype, + AttributeAWSECSTaskARN, + AttributeAWSECSTaskFamily, + AttributeAWSECSTaskRevision, + AttributeAWSEKSClusterARN, + AttributeAWSLogGroupNames, + AttributeAWSLogGroupARNs, + AttributeAWSLogStreamNames, + AttributeAWSLogStreamARNs, + AttributeContainerName, + AttributeContainerID, + AttributeContainerRuntime, + AttributeContainerImageName, + AttributeContainerImageTag, + AttributeDeploymentEnvironment, + AttributeDeviceID, + AttributeDeviceModelIdentifier, + AttributeDeviceModelName, + AttributeDeviceManufacturer, + AttributeFaaSName, + AttributeFaaSID, + AttributeFaaSVersion, + AttributeFaaSInstance, + AttributeFaaSMaxMemory, + AttributeHostID, + AttributeHostName, + AttributeHostType, + AttributeHostArch, + AttributeHostImageName, + AttributeHostImageID, + AttributeHostImageVersion, + AttributeK8SClusterName, + AttributeK8SNodeName, + AttributeK8SNodeUID, + AttributeK8SNamespaceName, + AttributeK8SPodUID, + AttributeK8SPodName, + AttributeK8SContainerName, + AttributeK8SContainerRestartCount, + AttributeK8SReplicaSetUID, + AttributeK8SReplicaSetName, + AttributeK8SDeploymentUID, + AttributeK8SDeploymentName, + AttributeK8SStatefulSetUID, + AttributeK8SStatefulSetName, + AttributeK8SDaemonSetUID, + AttributeK8SDaemonSetName, + AttributeK8SJobUID, + AttributeK8SJobName, + AttributeK8SCronJobUID, + AttributeK8SCronJobName, + AttributeOSType, + AttributeOSDescription, + AttributeOSName, + AttributeOSVersion, + AttributeProcessPID, + AttributeProcessExecutableName, + AttributeProcessExecutablePath, + AttributeProcessCommand, + AttributeProcessCommandLine, + AttributeProcessCommandArgs, + AttributeProcessOwner, + AttributeProcessRuntimeName, + AttributeProcessRuntimeVersion, + AttributeProcessRuntimeDescription, + AttributeServiceName, + AttributeServiceNamespace, + AttributeServiceInstanceID, + AttributeServiceVersion, + AttributeTelemetrySDKName, + AttributeTelemetrySDKLanguage, + AttributeTelemetrySDKVersion, + AttributeTelemetryAutoVersion, + AttributeWebEngineName, + AttributeWebEngineVersion, + AttributeWebEngineDescription, + } +} diff --git a/semconv/v1.9.0/generated_trace.go b/semconv/v1.9.0/generated_trace.go new file mode 100644 index 000000000000..53eee61c3ae3 --- /dev/null +++ b/semconv/v1.9.0/generated_trace.go @@ -0,0 +1,1746 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated from semantic convention specification. DO NOT EDIT. + +package semconv + +// Span attributes used by AWS Lambda (in addition to general `faas` attributes). +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' + // Note: This may be different from faas.id if an alias is involved. + AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" +) + +// This document defines semantic conventions for the OpenTracing Shim +const ( + // Parent-child Reference type + // + // Type: Enum + // Required: No + // Stability: stable + // Note: The causal relationship between a child Span and a parent Span. + AttributeOpentracingRefType = "opentracing.ref_type" +) + +const ( + // The parent Span depends on the child Span in some capacity + AttributeOpentracingRefTypeChildOf = "child_of" + // The parent Span does not depend in any way on the result of the child Span + AttributeOpentracingRefTypeFollowsFrom = "follows_from" +) + +// This document defines the attributes used to perform database client calls. +const ( + // An identifier for the database management system (DBMS) product being used. See + // below for a list of well-known identifiers. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeDBSystem = "db.system" + // The connection string used to connect to the database. It is recommended to + // remove embedded credentials. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' + AttributeDBConnectionString = "db.connection_string" + // Username for accessing the database. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'readonly_user', 'reporting_user' + AttributeDBUser = "db.user" + // The fully-qualified class name of the Java Database Connectivity (JDBC) driver + // used to connect. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'org.postgresql.Driver', + // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' + AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" + // This attribute is used to report the name of the database being accessed. For + // commands that switch the database, this should be set to the target database + // (even if the command fails). + // + // Type: string + // Required: Required, if applicable. + // Stability: stable + // Examples: 'customers', 'main' + // Note: In some SQL databases, the database name to be used is called + // "schema name". In case there are multiple layers that could be + // considered for database name (e.g. Oracle instance name and schema name), the + // database name to be used is the more specific layer (e.g. Oracle schema name). + AttributeDBName = "db.name" + // The database statement being executed. + // + // Type: string + // Required: Required if applicable and not explicitly disabled via + // instrumentation configuration. + // Stability: stable + // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' + // Note: The value may be sanitized to exclude sensitive information. + AttributeDBStatement = "db.statement" + // The name of the operation being executed, e.g. the MongoDB command name such as + // findAndModify, or the SQL keyword. + // + // Type: string + // Required: Required, if `db.statement` is not applicable. + // Stability: stable + // Examples: 'findAndModify', 'HMSET', 'SELECT' + // Note: When setting this to an SQL keyword, it is not recommended to attempt any + // client-side parsing of db.statement just to get this property, but it should be + // set if the operation name is provided by the library being instrumented. If the + // SQL statement has an ambiguous operation, or performs more than one operation, + // this value may be omitted. + AttributeDBOperation = "db.operation" +) + +const ( + // Some other SQL database. Fallback only. See notes + AttributeDBSystemOtherSQL = "other_sql" + // Microsoft SQL Server + AttributeDBSystemMSSQL = "mssql" + // MySQL + AttributeDBSystemMySQL = "mysql" + // Oracle Database + AttributeDBSystemOracle = "oracle" + // IBM DB2 + AttributeDBSystemDB2 = "db2" + // PostgreSQL + AttributeDBSystemPostgreSQL = "postgresql" + // Amazon Redshift + AttributeDBSystemRedshift = "redshift" + // Apache Hive + AttributeDBSystemHive = "hive" + // Cloudscape + AttributeDBSystemCloudscape = "cloudscape" + // HyperSQL DataBase + AttributeDBSystemHSQLDB = "hsqldb" + // Progress Database + AttributeDBSystemProgress = "progress" + // SAP MaxDB + AttributeDBSystemMaxDB = "maxdb" + // SAP HANA + AttributeDBSystemHanaDB = "hanadb" + // Ingres + AttributeDBSystemIngres = "ingres" + // FirstSQL + AttributeDBSystemFirstSQL = "firstsql" + // EnterpriseDB + AttributeDBSystemEDB = "edb" + // InterSystems Caché + AttributeDBSystemCache = "cache" + // Adabas (Adaptable Database System) + AttributeDBSystemAdabas = "adabas" + // Firebird + AttributeDBSystemFirebird = "firebird" + // Apache Derby + AttributeDBSystemDerby = "derby" + // FileMaker + AttributeDBSystemFilemaker = "filemaker" + // Informix + AttributeDBSystemInformix = "informix" + // InstantDB + AttributeDBSystemInstantDB = "instantdb" + // InterBase + AttributeDBSystemInterbase = "interbase" + // MariaDB + AttributeDBSystemMariaDB = "mariadb" + // Netezza + AttributeDBSystemNetezza = "netezza" + // Pervasive PSQL + AttributeDBSystemPervasive = "pervasive" + // PointBase + AttributeDBSystemPointbase = "pointbase" + // SQLite + AttributeDBSystemSqlite = "sqlite" + // Sybase + AttributeDBSystemSybase = "sybase" + // Teradata + AttributeDBSystemTeradata = "teradata" + // Vertica + AttributeDBSystemVertica = "vertica" + // H2 + AttributeDBSystemH2 = "h2" + // ColdFusion IMQ + AttributeDBSystemColdfusion = "coldfusion" + // Apache Cassandra + AttributeDBSystemCassandra = "cassandra" + // Apache HBase + AttributeDBSystemHBase = "hbase" + // MongoDB + AttributeDBSystemMongoDB = "mongodb" + // Redis + AttributeDBSystemRedis = "redis" + // Couchbase + AttributeDBSystemCouchbase = "couchbase" + // CouchDB + AttributeDBSystemCouchDB = "couchdb" + // Microsoft Azure Cosmos DB + AttributeDBSystemCosmosDB = "cosmosdb" + // Amazon DynamoDB + AttributeDBSystemDynamoDB = "dynamodb" + // Neo4j + AttributeDBSystemNeo4j = "neo4j" + // Apache Geode + AttributeDBSystemGeode = "geode" + // Elasticsearch + AttributeDBSystemElasticsearch = "elasticsearch" + // Memcached + AttributeDBSystemMemcached = "memcached" + // CockroachDB + AttributeDBSystemCockroachdb = "cockroachdb" +) + +// Connection-level attributes for Microsoft SQL Server +const ( + // The Microsoft SQL Server instance name connecting to. This name is used to + // determine the port of a named instance. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MSSQLSERVER' + // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required + // (but still recommended if non-standard). + AttributeDBMSSQLInstanceName = "db.mssql.instance_name" +) + +// Call-level attributes for Cassandra +const ( + // The fetch size used for paging, i.e. how many rows will be returned at once. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5000 + AttributeDBCassandraPageSize = "db.cassandra.page_size" + // The consistency level of the query. Based on consistency values from CQL. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" + // The name of the primary table that the operation is acting upon, including the + // keyspace name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'mytable' + // Note: This mirrors the db.sql.table attribute but references cassandra rather + // than sql. It is not recommended to attempt any client-side parsing of + // db.statement just to get this property, but it should be set if it is provided + // by the library being instrumented. If the operation is acting upon an anonymous + // table, or more than one table, this value MUST NOT be set. + AttributeDBCassandraTable = "db.cassandra.table" + // Whether or not the query is idempotent. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeDBCassandraIdempotence = "db.cassandra.idempotence" + // The number of times a query was speculatively executed. Not set or 0 if the + // query was not executed speculatively. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 0, 2 + AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" + // The ID of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' + AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" + // The data center of the coordinating node for a query. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'us-west-2' + AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" +) + +const ( + // all + AttributeDBCassandraConsistencyLevelAll = "all" + // each_quorum + AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" + // quorum + AttributeDBCassandraConsistencyLevelQuorum = "quorum" + // local_quorum + AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" + // one + AttributeDBCassandraConsistencyLevelOne = "one" + // two + AttributeDBCassandraConsistencyLevelTwo = "two" + // three + AttributeDBCassandraConsistencyLevelThree = "three" + // local_one + AttributeDBCassandraConsistencyLevelLocalOne = "local_one" + // any + AttributeDBCassandraConsistencyLevelAny = "any" + // serial + AttributeDBCassandraConsistencyLevelSerial = "serial" + // local_serial + AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" +) + +// Call-level attributes for Redis +const ( + // The index of the database being accessed as used in the SELECT command, + // provided as an integer. To be used instead of the generic db.name attribute. + // + // Type: int + // Required: Required, if other than the default database (`0`). + // Stability: stable + // Examples: 0, 1, 15 + AttributeDBRedisDBIndex = "db.redis.database_index" +) + +// Call-level attributes for MongoDB +const ( + // The collection being accessed within the database stated in db.name. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'customers', 'products' + AttributeDBMongoDBCollection = "db.mongodb.collection" +) + +// Call-level attributes for SQL databases +const ( + // The name of the primary table that the operation is acting upon, including the + // database name (if applicable). + // + // Type: string + // Required: Recommended if available. + // Stability: stable + // Examples: 'public.users', 'customers' + // Note: It is not recommended to attempt any client-side parsing of db.statement + // just to get this property, but it should be set if it is provided by the + // library being instrumented. If the operation is acting upon an anonymous table, + // or more than one table, this value MUST NOT be set. + AttributeDBSQLTable = "db.sql.table" +) + +// This document defines the attributes used to report a single exception associated with a span. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'java.net.ConnectException', 'OSError' + AttributeExceptionType = "exception.type" + // The exception message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" + AttributeExceptionMessage = "exception.message" + // 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 + // Required: No + // 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)' + AttributeExceptionStacktrace = "exception.stacktrace" + // 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 + // Required: No + // Stability: stable + // 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 above.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. + AttributeExceptionEscaped = "exception.escaped" +) + +// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. +const ( + // Type of the trigger which caused this function execution. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: For the server/consumer span on the incoming side, + // faas.trigger MUST be set.Clients invoking FaaS instances usually cannot set + // faas.trigger, + // since they would typically need to look in the payload to determine + // the event type. If clients set it, it should be the same as the + // trigger that corresponding incoming would have (i.e., this has + // nothing to do with the underlying transport used to make the API + // call to invoke the lambda, which is often HTTP). + AttributeFaaSTrigger = "faas.trigger" + // The execution ID of the current function execution. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' + AttributeFaaSExecution = "faas.execution" +) + +const ( + // A response to some data source operation such as a database or filesystem read/write + AttributeFaaSTriggerDatasource = "datasource" + // To provide an answer to an inbound HTTP request + AttributeFaaSTriggerHTTP = "http" + // A function is set to be executed when messages are sent to a messaging system + AttributeFaaSTriggerPubsub = "pubsub" + // A function is scheduled to be executed regularly + AttributeFaaSTriggerTimer = "timer" + // If none of the others apply + AttributeFaaSTriggerOther = "other" +) + +// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. +const ( + // 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 + // Required: Always + // Stability: stable + // Examples: 'myBucketName', 'myDBName' + AttributeFaaSDocumentCollection = "faas.document.collection" + // Describes the type of the operation that was performed on the data. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeFaaSDocumentOperation = "faas.document.operation" + // A string containing the time when the data was accessed in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSDocumentTime = "faas.document.time" + // 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 + // Required: No + // Stability: stable + // Examples: 'myFile.txt', 'myTableName' + AttributeFaaSDocumentName = "faas.document.name" +) + +const ( + // When a new object is created + AttributeFaaSDocumentOperationInsert = "insert" + // When an object is modified + AttributeFaaSDocumentOperationEdit = "edit" + // When an object is deleted + AttributeFaaSDocumentOperationDelete = "delete" +) + +// Semantic Convention for FaaS scheduled to be executed regularly. +const ( + // A string containing the function invocation time in the ISO 8601 format + // expressed in UTC. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: '2020-01-23T13:47:06Z' + AttributeFaaSTime = "faas.time" + // A string containing the schedule period as Cron Expression. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0/5 * * * ? *' + AttributeFaaSCron = "faas.cron" +) + +// Contains additional attributes for incoming FaaS spans. +const ( + // A boolean that is true if the serverless function is executed for the first + // time (aka cold-start). + // + // Type: boolean + // Required: No + // Stability: stable + AttributeFaaSColdstart = "faas.coldstart" +) + +// Contains additional attributes for outgoing FaaS spans. +const ( + // The name of the invoked function. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'my-function' + // Note: SHOULD be equal to the faas.name resource attribute of the invoked + // function. + AttributeFaaSInvokedName = "faas.invoked_name" + // The cloud provider of the invoked function. + // + // Type: Enum + // Required: Always + // Stability: stable + // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked + // function. + AttributeFaaSInvokedProvider = "faas.invoked_provider" + // The cloud region of the invoked function. + // + // Type: string + // Required: For some cloud providers, like AWS or GCP, the region in which a + // function is hosted is essential to uniquely identify the function and also part + // of its endpoint. Since it's part of the endpoint being called, the region is + // always known to clients. In these cases, `faas.invoked_region` MUST be set + // accordingly. If the region is unknown to the client or not required for + // identifying the invoked function, setting `faas.invoked_region` is optional. + // Stability: stable + // Examples: 'eu-central-1' + // Note: SHOULD be equal to the cloud.region resource attribute of the invoked + // function. + AttributeFaaSInvokedRegion = "faas.invoked_region" +) + +const ( + // Alibaba Cloud + AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" + // Amazon Web Services + AttributeFaaSInvokedProviderAWS = "aws" + // Microsoft Azure + AttributeFaaSInvokedProviderAzure = "azure" + // Google Cloud Platform + AttributeFaaSInvokedProviderGCP = "gcp" + // Tencent Cloud + AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" +) + +// These attributes may be used for any network related operation. +const ( + // Transport protocol used. See note below. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeNetTransport = "net.transport" + // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) + // + // Type: string + // Required: No + // Stability: stable + // Examples: '127.0.0.1' + AttributeNetPeerIP = "net.peer.ip" + // Remote port number. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 80, 8080, 443 + AttributeNetPeerPort = "net.peer.port" + // Remote hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + AttributeNetPeerName = "net.peer.name" + // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '192.168.0.1' + AttributeNetHostIP = "net.host.ip" + // Like net.peer.port but for the host port. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 35555 + AttributeNetHostPort = "net.host.port" + // Local hostname or similar, see note below. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'localhost' + AttributeNetHostName = "net.host.name" + // The internet connection type currently being used by the host. + // + // Type: Enum + // Required: No + // Stability: stable + // Examples: 'wifi' + AttributeNetHostConnectionType = "net.host.connection.type" + // 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 + // Required: No + // Stability: stable + // Examples: 'LTE' + AttributeNetHostConnectionSubtype = "net.host.connection.subtype" + // The name of the mobile carrier. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'sprint' + AttributeNetHostCarrierName = "net.host.carrier.name" + // The mobile carrier country code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '310' + AttributeNetHostCarrierMcc = "net.host.carrier.mcc" + // The mobile carrier network code. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '001' + AttributeNetHostCarrierMnc = "net.host.carrier.mnc" + // The ISO 3166-1 alpha-2 2-character country code associated with the mobile + // carrier network. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'DE' + AttributeNetHostCarrierIcc = "net.host.carrier.icc" +) + +const ( + // ip_tcp + AttributeNetTransportTCP = "ip_tcp" + // ip_udp + AttributeNetTransportUDP = "ip_udp" + // Another IP-based protocol + AttributeNetTransportIP = "ip" + // Unix Domain socket. See below + AttributeNetTransportUnix = "unix" + // Named or anonymous pipe. See note below + AttributeNetTransportPipe = "pipe" + // In-process communication + AttributeNetTransportInProc = "inproc" + // Something else (non IP-based) + AttributeNetTransportOther = "other" +) + +const ( + // wifi + AttributeNetHostConnectionTypeWifi = "wifi" + // wired + AttributeNetHostConnectionTypeWired = "wired" + // cell + AttributeNetHostConnectionTypeCell = "cell" + // unavailable + AttributeNetHostConnectionTypeUnavailable = "unavailable" + // unknown + AttributeNetHostConnectionTypeUnknown = "unknown" +) + +const ( + // GPRS + AttributeNetHostConnectionSubtypeGprs = "gprs" + // EDGE + AttributeNetHostConnectionSubtypeEdge = "edge" + // UMTS + AttributeNetHostConnectionSubtypeUmts = "umts" + // CDMA + AttributeNetHostConnectionSubtypeCdma = "cdma" + // EVDO Rel. 0 + AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" + // EVDO Rev. A + AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" + // CDMA2000 1XRTT + AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" + // HSDPA + AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" + // HSUPA + AttributeNetHostConnectionSubtypeHsupa = "hsupa" + // HSPA + AttributeNetHostConnectionSubtypeHspa = "hspa" + // IDEN + AttributeNetHostConnectionSubtypeIden = "iden" + // EVDO Rev. B + AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" + // LTE + AttributeNetHostConnectionSubtypeLte = "lte" + // EHRPD + AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" + // HSPAP + AttributeNetHostConnectionSubtypeHspap = "hspap" + // GSM + AttributeNetHostConnectionSubtypeGsm = "gsm" + // TD-SCDMA + AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" + // IWLAN + AttributeNetHostConnectionSubtypeIwlan = "iwlan" + // 5G NR (New Radio) + AttributeNetHostConnectionSubtypeNr = "nr" + // 5G NRNSA (New Radio Non-Standalone) + AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" + // LTE CA + AttributeNetHostConnectionSubtypeLteCa = "lte_ca" +) + +// Operations that access some remote service. +const ( + // 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 + // Required: No + // Stability: stable + // Examples: 'AuthTokenCache' + AttributePeerService = "peer.service" +) + +// These attributes may be used for any operation with an authenticated and/or authorized enduser. +const ( + // Username or client_id extracted from the access token or Authorization header + // in the inbound request from outside the system. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'username' + AttributeEnduserID = "enduser.id" + // Actual/assumed role the client is making the request under extracted from token + // or application security context. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'admin' + AttributeEnduserRole = "enduser.role" + // Scopes or granted authorities the client currently possesses extracted from + // token or application security context. The value would come from the scope + // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 + // Assertion. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'read:message, write:files' + AttributeEnduserScope = "enduser.scope" +) + +// These attributes may be used for any operation to store information about a thread that started a span. +const ( + // Current "managed" thread ID (as opposed to OS thread ID). + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeThreadID = "thread.id" + // Current thread name. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'main' + AttributeThreadName = "thread.name" +) + +// These attributes allow to report this unit of code and therefore to provide more context about the span. +const ( + // The method or function name, or equivalent (usually rightmost part of the code + // unit's name). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'serveRequest' + AttributeCodeFunction = "code.function" + // 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 + // Required: No + // Stability: stable + // Examples: 'com.example.MyHTTPService' + AttributeCodeNamespace = "code.namespace" + // The source code file name that identifies the code unit as uniquely as possible + // (preferably an absolute file path). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/usr/local/MyApplication/content_root/app/index.php' + AttributeCodeFilepath = "code.filepath" + // The line number in code.filepath best representing the operation. It SHOULD + // point within the code unit named in code.function. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 42 + AttributeCodeLineNumber = "code.lineno" +) + +// This document defines semantic conventions for HTTP client and server Spans. +const ( + // HTTP request method. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'GET', 'POST', 'HEAD' + AttributeHTTPMethod = "http.method" + // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. + // Usually the fragment is not transmitted over HTTP, but if it is known, it + // should be included nevertheless. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' + // Note: http.url MUST NOT contain credentials passed via URL in form of + // https://username:password@www.example.com/. In such case the attribute's value + // should be https://www.example.com/. + AttributeHTTPURL = "http.url" + // The full request target as passed in a HTTP request line or equivalent. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/path/12314/?q=ddds#123' + AttributeHTTPTarget = "http.target" + // The value of the HTTP host header. An empty Host header should also be + // reported, see note. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'www.example.org' + // Note: When the header is present but empty the attribute SHOULD be set to the + // empty string. Note that this is a valid situation that is expected in certain + // cases, according the aforementioned section of RFC 7230. When the header is not + // set the attribute MUST NOT be set. + AttributeHTTPHost = "http.host" + // The URI scheme identifying the used protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'http', 'https' + AttributeHTTPScheme = "http.scheme" + // HTTP response status code. + // + // Type: int + // Required: If and only if one was received/sent. + // Stability: stable + // Examples: 200 + AttributeHTTPStatusCode = "http.status_code" + // Kind of HTTP protocol used. + // + // Type: Enum + // Required: No + // Stability: stable + // Note: If net.transport is not specified, it can be assumed to be IP.TCP except + // if http.flavor is QUIC, in which case IP.UDP is assumed. + AttributeHTTPFlavor = "http.flavor" + // Value of the HTTP User-Agent header sent by the client. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' + AttributeHTTPUserAgent = "http.user_agent" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPRequestContentLength = "http.request_content_length" + // The size of the uncompressed request payload body after transport decoding. Not + // set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" + // 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 + // Required: No + // Stability: stable + // Examples: 3495 + AttributeHTTPResponseContentLength = "http.response_content_length" + // The size of the uncompressed response payload body after transport decoding. + // Not set if transport encoding not used. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 5493 + AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" +) + +const ( + // HTTP 1.0 + AttributeHTTPFlavorHTTP10 = "1.0" + // HTTP 1.1 + AttributeHTTPFlavorHTTP11 = "1.1" + // HTTP 2 + AttributeHTTPFlavorHTTP20 = "2.0" + // SPDY protocol + AttributeHTTPFlavorSPDY = "SPDY" + // QUIC protocol + AttributeHTTPFlavorQUIC = "QUIC" +) + +// Semantic Convention for HTTP Server +const ( + // The primary server name of the matched virtual host. This should be obtained + // via configuration. If no such configuration can be obtained, this attribute + // MUST NOT be set ( net.host.name should be used instead). + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'example.com' + // Note: http.url is usually not readily available on the server side but would + // have to be assembled in a cumbersome and sometimes lossy process from other + // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus + // preferred to supply the raw data that is available. + AttributeHTTPServerName = "http.server_name" + // The matched route (path template). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '/users/:userID?' + AttributeHTTPRoute = "http.route" + // The IP address of the original client behind all proxies, if known (e.g. from + // X-Forwarded-For). + // + // Type: string + // Required: No + // Stability: stable + // Examples: '83.164.160.102' + // Note: This is not necessarily the same as net.peer.ip, which would + // identify the network-level peer, which may be a proxy.This attribute should be + // set when a source of information different + // from the one used for net.peer.ip, is available even if that other + // source just confirms the same value as net.peer.ip. + // Rationale: For net.peer.ip, one typically does not know if it + // comes from a proxy, reverse proxy, or the actual client. Setting + // http.client_ip when it's the same as net.peer.ip means that + // one is at least somewhat confident that the address is not that of + // the closest proxy. + AttributeHTTPClientIP = "http.client_ip" +) + +// Attributes that exist for multiple DynamoDB request types. +const ( + // The keys in the RequestItems object field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'Users', 'Cats' + AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" + // The JSON-serialized value of each item in the ConsumedCapacity response field. + // + // Type: string[] + // Required: No + // Stability: stable + // 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 }' + AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" + // The JSON-serialized value of the ItemCollectionMetrics response field. + // + // Type: string + // Required: No + // Stability: stable + // 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 ] } ] }' + AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" + // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" + // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. + // + // Type: double + // Required: No + // Stability: stable + // Examples: 1.0, 2.0 + AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" + // The value of the ConsistentRead request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" + // The value of the ProjectionExpression request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, + // ProductReviews' + AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" + // The value of the Limit request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" + // The value of the AttributesToGet request parameter. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'lives', 'id' + AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" + // The value of the IndexName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'name_to_group' + AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" + // The value of the Select request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'ALL_ATTRIBUTES', 'COUNT' + AttributeAWSDynamoDBSelect = "aws.dynamodb.select" +) + +// DynamoDB.CreateTable +const ( + // The JSON-serialized value of each item of the GlobalSecondaryIndexes request + // field + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": + // number, "WriteCapacityUnits": number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" + // The JSON-serialized value of each item of the LocalSecondaryIndexes request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": + // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", + // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], + // "ProjectionType": "string" } }' + AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" +) + +// DynamoDB.ListTables +const ( + // The value of the ExclusiveStartTableName request parameter. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Users', 'CatsTable' + AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" + // The the number of items in the TableNames response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 20 + AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" +) + +// DynamoDB.Query +const ( + // The value of the ScanIndexForward request parameter. + // + // Type: boolean + // Required: No + // Stability: stable + AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" +) + +// DynamoDB.Scan +const ( + // The value of the Segment request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" + // The value of the TotalSegments request parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 100 + AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" + // The value of the Count response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 10 + AttributeAWSDynamoDBCount = "aws.dynamodb.count" + // The value of the ScannedCount response parameter. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 50 + AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" +) + +// DynamoDB.UpdateTable +const ( + // The JSON-serialized value of each item in the AttributeDefinitions request + // field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' + AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" + // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates + // request field. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { + // "AttributeName": "string", "KeyType": "string" } ], "Projection": { + // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, + // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": + // number } }' + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" +) + +// This document defines the attributes used in messaging systems. +const ( + // A string identifying the messaging system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' + AttributeMessagingSystem = "messaging.system" + // The message destination name. This might be equal to the span name but is + // required nevertheless. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'MyQueue', 'MyTopic' + AttributeMessagingDestination = "messaging.destination" + // The kind of message destination + // + // Type: Enum + // Required: Required only if the message destination is either a `queue` or + // `topic`. + // Stability: stable + AttributeMessagingDestinationKind = "messaging.destination_kind" + // A boolean that is true if the message destination is temporary. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingTempDestination = "messaging.temp_destination" + // The name of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'AMQP', 'MQTT' + AttributeMessagingProtocol = "messaging.protocol" + // The version of the transport protocol. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '0.9.1' + AttributeMessagingProtocolVersion = "messaging.protocol_version" + // Connection string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tibjmsnaming://localhost:7222', + // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' + AttributeMessagingURL = "messaging.url" + // A value used by the messaging system as an identifier for the message, + // represented as a string. + // + // Type: string + // Required: No + // Stability: stable + // Examples: '452a7c7c7c7048c2f887f61572b18fc2' + AttributeMessagingMessageID = "messaging.message_id" + // The conversation ID identifying the conversation to which the message belongs, + // represented as a string. Sometimes called "Correlation ID". + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'MyConversationID' + AttributeMessagingConversationID = "messaging.conversation_id" + // The (uncompressed) size of the message payload in bytes. Also use this + // attribute if it is unknown whether the compressed or uncompressed payload size + // is reported. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2738 + AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" + // The compressed size of the message payload in bytes. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2048 + AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" +) + +const ( + // A message sent to a queue + AttributeMessagingDestinationKindQueue = "queue" + // A message sent to a topic + AttributeMessagingDestinationKindTopic = "topic" +) + +// Semantic convention for a consumer of messages received from a messaging system +const ( + // A string identifying the kind of message consumption as defined in the + // Operation names section above. If the operation is "send", this + // attribute MUST NOT be set, since the operation can be inferred from the span + // kind in that case. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingOperation = "messaging.operation" + // The identifier for the consumer receiving a message. For Kafka, set it to + // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are + // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ + // and Artemis, set it to the client_id of the client consuming the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'mygroup - client-6' + AttributeMessagingConsumerID = "messaging.consumer_id" +) + +const ( + // receive + AttributeMessagingOperationReceive = "receive" + // process + AttributeMessagingOperationProcess = "process" +) + +// Attributes for RabbitMQ +const ( + // RabbitMQ message routing key. + // + // Type: string + // Required: Unless it is empty. + // Stability: stable + // Examples: 'myKey' + AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" +) + +// Attributes for Apache Kafka +const ( + // 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 + // Required: No + // Stability: stable + // 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. + AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" + // Name of the Kafka Consumer Group that is handling the message. Only applies to + // consumers, not producers. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'my-group' + AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" + // Client ID for the Consumer or Producer that is handling the message. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'client-5' + AttributeMessagingKafkaClientID = "messaging.kafka.client_id" + // Partition the message is sent to. + // + // Type: int + // Required: No + // Stability: stable + // Examples: 2 + AttributeMessagingKafkaPartition = "messaging.kafka.partition" + // A boolean that is true if the message is a tombstone. + // + // Type: boolean + // Required: If missing, it is assumed to be false. + // Stability: stable + AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" +) + +// Attributes for Apache RocketMQ +const ( + // Namespace of RocketMQ resources, resources in different namespaces are + // individual. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myNamespace' + AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" + // Name of the RocketMQ producer/consumer group that is handling the message. The + // client type is identified by the SpanKind. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myConsumerGroup' + AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" + // The unique identifier for each client. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'myhost@8742@s8083jm' + AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" + // Type of message. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" + // The secondary classifier of message besides topic. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'tagA' + AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" + // Key(s) of message, another way to mark message besides message id. + // + // Type: string[] + // Required: No + // Stability: stable + // Examples: 'keyA', 'keyB' + AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" + // Model of message consumption. This only applies to consumer spans. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" +) + +const ( + // Normal message + AttributeMessagingRocketmqMessageTypeNormal = "normal" + // FIFO message + AttributeMessagingRocketmqMessageTypeFifo = "fifo" + // Delay message + AttributeMessagingRocketmqMessageTypeDelay = "delay" + // Transaction message + AttributeMessagingRocketmqMessageTypeTransaction = "transaction" +) + +const ( + // Clustering consumption model + AttributeMessagingRocketmqConsumptionModelClustering = "clustering" + // Broadcasting consumption model + AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" +) + +// This document defines semantic conventions for remote procedure calls. +const ( + // A string identifying the remoting system. + // + // Type: string + // Required: Always + // Stability: stable + // Examples: 'grpc', 'java_rmi', 'wcf' + AttributeRPCSystem = "rpc.system" + // The full (logical) name of the service being called, including its package + // name, if applicable. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCService = "rpc.service" + // The name of the (logical) method being called, must be equal to the $method + // part in the span name. + // + // Type: string + // Required: No, but recommended + // Stability: stable + // 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). + AttributeRPCMethod = "rpc.method" +) + +// Tech-specific attributes for gRPC. +const ( + // The numeric status code of the gRPC request. + // + // Type: Enum + // Required: Always + // Stability: stable + AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" +) + +const ( + // OK + AttributeRPCGRPCStatusCodeOk = "0" + // CANCELLED + AttributeRPCGRPCStatusCodeCancelled = "1" + // UNKNOWN + AttributeRPCGRPCStatusCodeUnknown = "2" + // INVALID_ARGUMENT + AttributeRPCGRPCStatusCodeInvalidArgument = "3" + // DEADLINE_EXCEEDED + AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" + // NOT_FOUND + AttributeRPCGRPCStatusCodeNotFound = "5" + // ALREADY_EXISTS + AttributeRPCGRPCStatusCodeAlreadyExists = "6" + // PERMISSION_DENIED + AttributeRPCGRPCStatusCodePermissionDenied = "7" + // RESOURCE_EXHAUSTED + AttributeRPCGRPCStatusCodeResourceExhausted = "8" + // FAILED_PRECONDITION + AttributeRPCGRPCStatusCodeFailedPrecondition = "9" + // ABORTED + AttributeRPCGRPCStatusCodeAborted = "10" + // OUT_OF_RANGE + AttributeRPCGRPCStatusCodeOutOfRange = "11" + // UNIMPLEMENTED + AttributeRPCGRPCStatusCodeUnimplemented = "12" + // INTERNAL + AttributeRPCGRPCStatusCodeInternal = "13" + // UNAVAILABLE + AttributeRPCGRPCStatusCodeUnavailable = "14" + // DATA_LOSS + AttributeRPCGRPCStatusCodeDataLoss = "15" + // UNAUTHENTICATED + AttributeRPCGRPCStatusCodeUnauthenticated = "16" +) + +// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). +const ( + // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 + // does not specify this, the value can be omitted. + // + // Type: string + // Required: If missing, it is assumed to be "1.0". + // Stability: stable + // Examples: '2.0', '1.0' + AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" + // 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 + // Required: No + // Stability: stable + // Examples: '10', 'request-7', '' + AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" + // error.code property of response if it is an error response. + // + // Type: int + // Required: If missing, response is assumed to be successful. + // Stability: stable + // Examples: -32700, 100 + AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" + // error.message property of response if it is an error response. + // + // Type: string + // Required: No + // Stability: stable + // Examples: 'Parse error', 'User already exists' + AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" +) + +// RPC received/sent message. +const ( + // Whether this is a received or sent message. + // + // Type: Enum + // Required: No + // Stability: stable + AttributeMessageType = "message.type" + // MUST be calculated as two different counters starting from 1 one for sent + // messages and one for received message. + // + // Type: int + // Required: No + // Stability: stable + // Note: This way we guarantee that the values will be consistent between + // different implementations. + AttributeMessageID = "message.id" + // Compressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageCompressedSize = "message.compressed_size" + // Uncompressed size of the message in bytes. + // + // Type: int + // Required: No + // Stability: stable + AttributeMessageUncompressedSize = "message.uncompressed_size" +) + +const ( + // sent + AttributeMessageTypeSent = "SENT" + // received + AttributeMessageTypeReceived = "RECEIVED" +) + +func GetTraceSemanticConventionAttributeNames() []string { + return []string{ + AttributeAWSLambdaInvokedARN, + AttributeOpentracingRefType, + AttributeDBSystem, + AttributeDBConnectionString, + AttributeDBUser, + AttributeDBJDBCDriverClassname, + AttributeDBName, + AttributeDBStatement, + AttributeDBOperation, + AttributeDBMSSQLInstanceName, + AttributeDBCassandraPageSize, + AttributeDBCassandraConsistencyLevel, + AttributeDBCassandraTable, + AttributeDBCassandraIdempotence, + AttributeDBCassandraSpeculativeExecutionCount, + AttributeDBCassandraCoordinatorID, + AttributeDBCassandraCoordinatorDC, + AttributeDBRedisDBIndex, + AttributeDBMongoDBCollection, + AttributeDBSQLTable, + AttributeExceptionType, + AttributeExceptionMessage, + AttributeExceptionStacktrace, + AttributeExceptionEscaped, + AttributeFaaSTrigger, + AttributeFaaSExecution, + AttributeFaaSDocumentCollection, + AttributeFaaSDocumentOperation, + AttributeFaaSDocumentTime, + AttributeFaaSDocumentName, + AttributeFaaSTime, + AttributeFaaSCron, + AttributeFaaSColdstart, + AttributeFaaSInvokedName, + AttributeFaaSInvokedProvider, + AttributeFaaSInvokedRegion, + AttributeNetTransport, + AttributeNetPeerIP, + AttributeNetPeerPort, + AttributeNetPeerName, + AttributeNetHostIP, + AttributeNetHostPort, + AttributeNetHostName, + AttributeNetHostConnectionType, + AttributeNetHostConnectionSubtype, + AttributeNetHostCarrierName, + AttributeNetHostCarrierMcc, + AttributeNetHostCarrierMnc, + AttributeNetHostCarrierIcc, + AttributePeerService, + AttributeEnduserID, + AttributeEnduserRole, + AttributeEnduserScope, + AttributeThreadID, + AttributeThreadName, + AttributeCodeFunction, + AttributeCodeNamespace, + AttributeCodeFilepath, + AttributeCodeLineNumber, + AttributeHTTPMethod, + AttributeHTTPURL, + AttributeHTTPTarget, + AttributeHTTPHost, + AttributeHTTPScheme, + AttributeHTTPStatusCode, + AttributeHTTPFlavor, + AttributeHTTPUserAgent, + AttributeHTTPRequestContentLength, + AttributeHTTPRequestContentLengthUncompressed, + AttributeHTTPResponseContentLength, + AttributeHTTPResponseContentLengthUncompressed, + AttributeHTTPServerName, + AttributeHTTPRoute, + AttributeHTTPClientIP, + AttributeAWSDynamoDBTableNames, + AttributeAWSDynamoDBConsumedCapacity, + AttributeAWSDynamoDBItemCollectionMetrics, + AttributeAWSDynamoDBProvisionedReadCapacity, + AttributeAWSDynamoDBProvisionedWriteCapacity, + AttributeAWSDynamoDBConsistentRead, + AttributeAWSDynamoDBProjection, + AttributeAWSDynamoDBLimit, + AttributeAWSDynamoDBAttributesToGet, + AttributeAWSDynamoDBIndexName, + AttributeAWSDynamoDBSelect, + AttributeAWSDynamoDBGlobalSecondaryIndexes, + AttributeAWSDynamoDBLocalSecondaryIndexes, + AttributeAWSDynamoDBExclusiveStartTable, + AttributeAWSDynamoDBTableCount, + AttributeAWSDynamoDBScanForward, + AttributeAWSDynamoDBSegment, + AttributeAWSDynamoDBTotalSegments, + AttributeAWSDynamoDBCount, + AttributeAWSDynamoDBScannedCount, + AttributeAWSDynamoDBAttributeDefinitions, + AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, + AttributeMessagingSystem, + AttributeMessagingDestination, + AttributeMessagingDestinationKind, + AttributeMessagingTempDestination, + AttributeMessagingProtocol, + AttributeMessagingProtocolVersion, + AttributeMessagingURL, + AttributeMessagingMessageID, + AttributeMessagingConversationID, + AttributeMessagingMessagePayloadSizeBytes, + AttributeMessagingMessagePayloadCompressedSizeBytes, + AttributeMessagingOperation, + AttributeMessagingConsumerID, + AttributeMessagingRabbitmqRoutingKey, + AttributeMessagingKafkaMessageKey, + AttributeMessagingKafkaConsumerGroup, + AttributeMessagingKafkaClientID, + AttributeMessagingKafkaPartition, + AttributeMessagingKafkaTombstone, + AttributeMessagingRocketmqNamespace, + AttributeMessagingRocketmqClientGroup, + AttributeMessagingRocketmqClientID, + AttributeMessagingRocketmqMessageType, + AttributeMessagingRocketmqMessageTag, + AttributeMessagingRocketmqMessageKeys, + AttributeMessagingRocketmqConsumptionModel, + AttributeRPCSystem, + AttributeRPCService, + AttributeRPCMethod, + AttributeRPCGRPCStatusCode, + AttributeRPCJsonrpcVersion, + AttributeRPCJsonrpcRequestID, + AttributeRPCJsonrpcErrorCode, + AttributeRPCJsonrpcErrorMessage, + AttributeMessageType, + AttributeMessageID, + AttributeMessageCompressedSize, + AttributeMessageUncompressedSize, + } +} diff --git a/semconv/v1.9.0/nonstandard.go b/semconv/v1.9.0/nonstandard.go new file mode 100644 index 000000000000..a631660793a9 --- /dev/null +++ b/semconv/v1.9.0/nonstandard.go @@ -0,0 +1,22 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.9.0" + +const ( + OtelLibraryName = "otel.library.name" + OtelLibraryVersion = "otel.library.version" + OtelStatusCode = "otel.status_code" + OtelStatusDescription = "otel.status_description" +) diff --git a/semconv/v1.9.0/schema.go b/semconv/v1.9.0/schema.go new file mode 100644 index 000000000000..dc2f0f95f063 --- /dev/null +++ b/semconv/v1.9.0/schema.go @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package semconv // import "go.opentelemetry.io/collector/semconv/v1.9.0" + +// SchemaURL is the schema URL that matches the version of the semantic conventions +// that this package defines. Conventions 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.9.0" diff --git a/service/telemetry.go b/service/telemetry.go index 69b4ce2231a1..0aa5ff3ffa49 100644 --- a/service/telemetry.go +++ b/service/telemetry.go @@ -35,8 +35,8 @@ import ( "go.opentelemetry.io/collector/config/configtelemetry" "go.opentelemetry.io/collector/internal/obsreportconfig" "go.opentelemetry.io/collector/internal/version" - semconv "go.opentelemetry.io/collector/model/semconv/v1.5.0" "go.opentelemetry.io/collector/processor/batchprocessor" + semconv "go.opentelemetry.io/collector/semconv/v1.5.0" "go.opentelemetry.io/collector/service/featuregate" telemetry2 "go.opentelemetry.io/collector/service/internal/telemetry" )