From 72523f010e7694f1f31006c0fe72fa3b6f106c19 Mon Sep 17 00:00:00 2001 From: Jack Berg Date: Mon, 6 Jan 2025 14:53:27 -0600 Subject: [PATCH 1/4] Remove -alpha suffix from opentelemetry-semconv artifact --- build.gradle.kts | 23 ++++++---- .../otel.japicmp-conventions.gradle.kts | 42 +++++++++---------- .../otel.publish-conventions.gradle.kts | 2 + .../opentelemetry-semconv.txt | 2 + semconv-incubating/gradle.properties | 1 + semconv/build.gradle.kts | 2 - 6 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt create mode 100644 semconv-incubating/gradle.properties diff --git a/build.gradle.kts b/build.gradle.kts index b3540915..fc52e3a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,16 +22,21 @@ val schemaUrlVersions = listOf( "1.23.1", "1.22.0") -// Compute the artifact version, which includes the "-alpha" suffix and includes "-SNAPSHOT" suffix if not releasing -// Release example: version=1.21.0-alpha -// Snapshot example: version=1.21.0-alpha-SNAPSHOT -var releaseVersion = semanticConventionsVersion + "-alpha" -if (snapshot) { - releaseVersion += "-SNAPSHOT" -} - allprojects { - version = releaseVersion + // Compute the artifact version. + // Include the "-alpha" suffix if the artifact contains a gradle.properties file with contents "otel.release=alpha". + // Include the "-SNAPSHOT" suffix if not releasing. + // Release example: 1.21.0 OR 1.21.0-alpha + // Snapshot example: 1.21.0-SNAPSHOT OR 1.21.0-alpha-SNAPSHOT + var ver = semanticConventionsVersion + val release = findProperty("otel.release") + if (release != null) { + ver += "-" + release + } + if (snapshot) { + ver += "-SNAPSHOT" + } + version = ver } nexusPublishing { diff --git a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts index fc2331d6..1670fedc 100644 --- a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts @@ -1,15 +1,7 @@ -import japicmp.model.JApiChangeStatus -import japicmp.model.JApiClass -import japicmp.model.JApiCompatibility -import japicmp.model.JApiCompatibilityChange -import japicmp.model.JApiMethod +import japicmp.model.* import me.champeau.gradle.japicmp.JapicmpTask import me.champeau.gradle.japicmp.report.Violation -import me.champeau.gradle.japicmp.report.stdrules.AbstractRecordingSeenMembers -import me.champeau.gradle.japicmp.report.stdrules.BinaryIncompatibleRule -import me.champeau.gradle.japicmp.report.stdrules.RecordSeenMembersSetup -import me.champeau.gradle.japicmp.report.stdrules.SourceCompatibleRule -import me.champeau.gradle.japicmp.report.stdrules.UnchangedMemberRule +import me.champeau.gradle.japicmp.report.stdrules.* plugins { @@ -34,7 +26,7 @@ val latestReleasedVersion: String by lazy { class SourceIncompatibleRule : AbstractRecordingSeenMembers() { override fun maybeAddViolation(member: JApiCompatibility): Violation? { if (!member.isSourceCompatible()) { - return Violation.error(member, "Not source compatible") + return Violation.error(member, "Not source compatible: $member") } return null } @@ -52,7 +44,7 @@ fun findArtifact(version: String): File { val depModule = "io.opentelemetry.semconv:${base.archivesName.get()}:$version@jar" val depJar = "${base.archivesName.get()}-$version.jar" val configuration: Configuration = configurations.detachedConfiguration( - dependencies.create(depModule), + dependencies.create(depModule), ) return files(configuration.files).filter { it.name.equals(depJar) @@ -72,7 +64,7 @@ if (!project.hasProperty("otel.release")) { // the japicmp "new" version is either the user-specified one, or the locally built jar. val apiNewVersion: String? by project val newArtifact = apiNewVersion?.let { findArtifact(it) } - ?: file(getByName("jar").archiveFile) + ?: file(getByName("jar").archiveFile) newClasspath.from(files(newArtifact)) // only output changes, not everything @@ -82,19 +74,21 @@ if (!project.hasProperty("otel.release")) { val apiBaseVersion: String? by project val baselineVersion = apiBaseVersion ?: latestReleasedVersion oldClasspath.from( - try { - files(findArtifact(baselineVersion)) - } catch (e: Exception) { - // if we can't find the baseline artifact, this is probably one that's never been published before, - // so publish the whole API. We do that by flipping this flag, and comparing the current against nothing. - onlyModified.set(false) - files() - }, + try { + files(findArtifact(baselineVersion)) + } catch (e: Exception) { + // if we can't find the baseline artifact, this is probably one that's never been published before, + // so publish the whole API. We do that by flipping this flag, and comparing the current against nothing. + onlyModified.set(false) + files() + }, ) // Reproduce defaults from https://github.com/melix/japicmp-gradle-plugin/blob/09f52739ef1fccda6b4310cf3f4b19dc97377024/src/main/java/me/champeau/gradle/japicmp/report/ViolationsGenerator.java#L130 // with some changes. val exclusions = mutableListOf() + // Generics are not detected correctly + exclusions.add("CLASS_GENERIC_TEMPLATE_CHANGED") // Allow new default methods on interfaces exclusions.add("METHOD_NEW_DEFAULT") // Allow adding default implementations for default methods @@ -115,7 +109,11 @@ if (!project.hasProperty("otel.release")) { // this is needed so that we only consider the current artifact, and not dependencies ignoreMissingClasses.set(true) - packageExcludes.addAll("*.internal", "*.internal.*") + val baseVersionString = if (apiBaseVersion == null) "latest" else baselineVersion + txtOutputFile.set( + apiNewVersion?.let { file("$rootDir/docs/apidiffs/${apiNewVersion}_vs_$baselineVersion/${base.archivesName.get()}.txt") } + ?: file("$rootDir/docs/apidiffs/current_vs_$baseVersionString/${base.archivesName.get()}.txt"), + ) } // have the check task depend on the api comparison task, to make it more likely it will get used. named("check") { diff --git a/buildSrc/src/main/kotlin/otel.publish-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.publish-conventions.gradle.kts index 17ef5044..283cf5d1 100644 --- a/buildSrc/src/main/kotlin/otel.publish-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.publish-conventions.gradle.kts @@ -1,6 +1,8 @@ plugins { `maven-publish` signing + + id("otel.japicmp-conventions") } publishing { diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt new file mode 100644 index 00000000..d9c5c5ea --- /dev/null +++ b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt @@ -0,0 +1,2 @@ +Comparing source compatibility of opentelemetry-semconv-1.29.0-SNAPSHOT.jar against opentelemetry-semconv-1.29.0-alpha.jar +No changes. \ No newline at end of file diff --git a/semconv-incubating/gradle.properties b/semconv-incubating/gradle.properties new file mode 100644 index 00000000..4476ae57 --- /dev/null +++ b/semconv-incubating/gradle.properties @@ -0,0 +1 @@ +otel.release=alpha diff --git a/semconv/build.gradle.kts b/semconv/build.gradle.kts index 890c43f6..7c69df7d 100644 --- a/semconv/build.gradle.kts +++ b/semconv/build.gradle.kts @@ -1,8 +1,6 @@ plugins { id("otel.java-conventions") id("otel.publish-conventions") - // TODO: re-enable japicmp when artifact is stable - // id("otel.japicmp-conventions") id("otel.animalsniffer-conventions") } From fbe32335fbf3478b5f23292c28aad1f0d68b8016 Mon Sep 17 00:00:00 2001 From: Jack Berg Date: Mon, 6 Jan 2025 14:56:17 -0600 Subject: [PATCH 2/4] Remove deprecated ResourceAttributes, SemanticAttributes --- .../otel.japicmp-conventions.gradle.kts | 3 + .../semconv/ResourceAttributes.java | 2243 ---------- .../semconv/SemanticAttributes.java | 3910 ----------------- 3 files changed, 3 insertions(+), 6153 deletions(-) delete mode 100644 semconv/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java delete mode 100644 semconv/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java diff --git a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts index 1670fedc..2b9c13f3 100644 --- a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts @@ -109,6 +109,9 @@ if (!project.hasProperty("otel.release")) { // this is needed so that we only consider the current artifact, and not dependencies ignoreMissingClasses.set(true) + // TODO: remove exclusions after first stable release + classExcludes.add("io.opentelemetry.semconv.ResourceAttributes") + classExcludes.add("io.opentelemetry.semconv.SemanticAttributes") val baseVersionString = if (apiBaseVersion == null) "latest" else baselineVersion txtOutputFile.set( apiNewVersion?.let { file("$rootDir/docs/apidiffs/${apiNewVersion}_vs_$baselineVersion/${base.archivesName.get()}.txt") } diff --git a/semconv/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java b/semconv/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java deleted file mode 100644 index 145936ad..00000000 --- a/semconv/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java +++ /dev/null @@ -1,2243 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * SPDX-License-Identifier: Apache-2.0 - */ - -package io.opentelemetry.semconv; - -import static io.opentelemetry.api.common.AttributeKey.booleanKey; -import static io.opentelemetry.api.common.AttributeKey.longKey; -import static io.opentelemetry.api.common.AttributeKey.stringArrayKey; -import static io.opentelemetry.api.common.AttributeKey.stringKey; -import static io.opentelemetry.semconv.AttributeKeyTemplate.stringKeyTemplate; - -import io.opentelemetry.api.common.AttributeKey; -import java.util.List; - -/** - * @deprecated This class is deprecated and will be removed in a future release. It is only provided - * as a convenience to help migration to the new semantic conventions classes structure that was - * introduced in version 1.24.0. - */ -@Deprecated -@SuppressWarnings("unused") -public final class ResourceAttributes { - /** The URL of the OpenTelemetry schema for these keys and values. */ - @Deprecated public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.23.1"; - - /** - * The cloud account ID the resource is assigned to. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_ACCOUNT_ID} attribute. - */ - @Deprecated - public static final AttributeKey CLOUD_ACCOUNT_ID = stringKey("cloud.account.id"); - - /** - * Cloud regions often have multiple, isolated locations known as zones to increase availability. - * Availability zone represents the zone where the resource is running. - * - *

Notes: - * - *

    - *
  • Availability zones are called "zones" on Alibaba Cloud and Google Cloud. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_AVAILABILITY_ZONE} - * attribute. - */ - @Deprecated - public static final AttributeKey CLOUD_AVAILABILITY_ZONE = - stringKey("cloud.availability_zone"); - - /** - * The cloud platform in use. - * - *

Notes: - * - *

    - *
  • The prefix of the service SHOULD match the one specified in {@code cloud.provider}. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_PLATFORM} attribute. - */ - @Deprecated public static final AttributeKey CLOUD_PLATFORM = stringKey("cloud.platform"); - - /** - * Name of the cloud provider. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_PROVIDER} attribute. - */ - @Deprecated public static final AttributeKey CLOUD_PROVIDER = stringKey("cloud.provider"); - - /** - * The geographical region the resource is running. - * - *

Notes: - * - *

- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_REGION} attribute. - */ - @Deprecated public static final AttributeKey CLOUD_REGION = stringKey("cloud.region"); - - /** - * Cloud provider-specific native identifier of the monitored cloud resource (e.g. an ARN on - * AWS, a fully - * qualified resource ID on Azure, a full resource - * name on GCP) - * - *

Notes: - * - *

    - *
  • On some cloud providers, it may not be possible to determine the full ID at startup, so - * it may be necessary to set {@code cloud.resource_id} as a span attribute instead. - *
  • The exact value to use for {@code cloud.resource_id} depends on the cloud provider. The - * following well-known definitions MUST be used if you set this attribute and they apply: - *
  • AWS Lambda: The function ARN. - * Take care not to use the "invoked ARN" directly but replace any alias - * suffix with the resolved function version, as the same runtime instance may be - * invokable with multiple different aliases. - *
  • GCP: The URI of the resource - *
  • Azure: The Fully Qualified - * Resource ID of the invoked function, not the function app, having the form - * {@code - * /subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/}. - * This means that a span attribute MUST be used, as an Azure function app can host multiple - * functions that would usually share a TracerProvider. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#CLOUD_RESOURCE_ID} attribute. - */ - @Deprecated - public static final AttributeKey CLOUD_RESOURCE_ID = stringKey("cloud.resource_id"); - - /** - * The command used to run the container (i.e. the command name). - * - *

Notes: - * - *

    - *
  • If using embedded credentials or sensitive data, it is recommended to remove them to - * prevent potential leakage. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_COMMAND} - * attribute. - */ - @Deprecated - public static final AttributeKey CONTAINER_COMMAND = stringKey("container.command"); - - /** - * All the command arguments (including the command/executable itself) run by the container. [2] - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_COMMAND_ARGS} - * attribute. - */ - @Deprecated - public static final AttributeKey> CONTAINER_COMMAND_ARGS = - stringArrayKey("container.command_args"); - - /** - * The full command run by the container as a single string representing the full command. [2] - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_COMMAND_LINE} - * attribute. - */ - @Deprecated - public static final AttributeKey CONTAINER_COMMAND_LINE = - stringKey("container.command_line"); - - /** - * Container ID. Usually a UUID, as for example used to identify Docker - * containers. The UUID might be abbreviated. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_ID} attribute. - */ - @Deprecated public static final AttributeKey CONTAINER_ID = stringKey("container.id"); - - /** - * Runtime specific image identifier. Usually a hash algorithm followed by a UUID. - * - *

Notes: - * - *

    - *
  • Docker defines a sha256 of the image id; {@code container.image.id} corresponds to the - * {@code Image} field from the Docker container inspect API - * endpoint. K8s defines a link to the container registry repository with digest {@code - * "imageID": "registry.azurecr.io - * /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"}. - * The ID is assinged by the container runtime and can vary in different environments. - * Consider using {@code oci.manifest.digest} if it is important to identify the same image - * in different environments/runtimes. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_IMAGE_ID} - * attribute. - */ - @Deprecated - public static final AttributeKey CONTAINER_IMAGE_ID = stringKey("container.image.id"); - - /** - * Name of the image the container was built on. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_IMAGE_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey CONTAINER_IMAGE_NAME = stringKey("container.image.name"); - - /** - * Repo digests of the container image as provided by the container runtime. - * - *

Notes: - * - *

    - *
  • Docker - * and CRI - * report those under the {@code RepoDigests} field. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_IMAGE_REPO_DIGESTS} - * attribute. - */ - @Deprecated - public static final AttributeKey> CONTAINER_IMAGE_REPO_DIGESTS = - stringArrayKey("container.image.repo_digests"); - - /** - * Container image tags. An example can be found in Docker Image - * Inspect. Should be only the {@code } section of the full name for example from {@code - * registry.example.com/my-org/my-image:}. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_IMAGE_TAGS} - * attribute. - */ - @Deprecated - public static final AttributeKey> CONTAINER_IMAGE_TAGS = - stringArrayKey("container.image.tags"); - - /** - * Container name used by container runtime. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_NAME} - * attribute. - */ - @Deprecated public static final AttributeKey CONTAINER_NAME = stringKey("container.name"); - - /** - * The container runtime managing this container. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_RUNTIME} - * attribute. - */ - @Deprecated - public static final AttributeKey CONTAINER_RUNTIME = stringKey("container.runtime"); - - /** - * The digest of the OCI image manifest. For container images specifically is the digest by which - * the container image is known. - * - *

Notes: - * - *

- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OciIncubatingAttributes#OCI_MANIFEST_DIGEST} attribute. - */ - @Deprecated - public static final AttributeKey OCI_MANIFEST_DIGEST = stringKey("oci.manifest.digest"); - - /** - * Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the - * android operating system. More information can be found here. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AndroidIncubatingAttributes#ANDROID_OS_API_LEVEL} - * attribute. - */ - @Deprecated - public static final AttributeKey ANDROID_OS_API_LEVEL = stringKey("android.os.api_level"); - - /** - * Array of brand name and version separated by a space - * - *

Notes: - * - *

    - *
  • This value is intended to be taken from the UA client hints API ({@code - * navigator.userAgentData.brands}). - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.BrowserIncubatingAttributes#BROWSER_BRANDS} attribute. - */ - @Deprecated - public static final AttributeKey> BROWSER_BRANDS = stringArrayKey("browser.brands"); - - /** - * Preferred language of the user using the browser - * - *

Notes: - * - *

    - *
  • This value is intended to be taken from the Navigator API {@code navigator.language}. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.BrowserIncubatingAttributes#BROWSER_LANGUAGE} - * attribute. - */ - @Deprecated - public static final AttributeKey BROWSER_LANGUAGE = stringKey("browser.language"); - - /** - * A boolean that is true if the browser is running on a mobile device - * - *

Notes: - * - *

    - *
  • This value is intended to be taken from the UA client hints API ({@code - * navigator.userAgentData.mobile}). If unavailable, this attribute SHOULD be left unset. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.BrowserIncubatingAttributes#BROWSER_MOBILE} attribute. - */ - @Deprecated - public static final AttributeKey BROWSER_MOBILE = booleanKey("browser.mobile"); - - /** - * The platform on which the browser is running - * - *

Notes: - * - *

    - *
  • This value is intended to be taken from the UA client hints API ({@code - * navigator.userAgentData.platform}). If unavailable, the legacy {@code navigator.platform} - * API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the - * values to be consistent. The list of possible values is defined in the W3C User-Agent Client - * Hints specification. Note that some (but not all) of these values can overlap with - * values in the {@code os.type} and {@code os.name} attributes. - * However, for consistency, the values in the {@code browser.platform} attribute should - * capture the exact value that the user agent provides. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.BrowserIncubatingAttributes#BROWSER_PLATFORM} - * attribute. - */ - @Deprecated - public static final AttributeKey BROWSER_PLATFORM = stringKey("browser.platform"); - - /** - * The ARN of an ECS - * cluster. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_CLUSTER_ARN} attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_CLUSTER_ARN = stringKey("aws.ecs.cluster.arn"); - - /** - * The Amazon Resource Name (ARN) of an ECS - * container instance. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_CONTAINER_ARN} - * attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_CONTAINER_ARN = - stringKey("aws.ecs.container.arn"); - - /** - * The launch - * type for an ECS task. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_LAUNCHTYPE} attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_LAUNCHTYPE = stringKey("aws.ecs.launchtype"); - - /** - * The ARN of an ECS - * task definition. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_TASK_ARN} attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_TASK_ARN = stringKey("aws.ecs.task.arn"); - - /** - * The task definition family this task definition is a member of. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_TASK_FAMILY} attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_TASK_FAMILY = stringKey("aws.ecs.task.family"); - - /** - * The revision for this task definition. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_ECS_TASK_REVISION} - * attribute. - */ - @Deprecated - public static final AttributeKey AWS_ECS_TASK_REVISION = - stringKey("aws.ecs.task.revision"); - - /** - * The ARN of an EKS cluster. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_EKS_CLUSTER_ARN} attribute. - */ - @Deprecated - public static final AttributeKey AWS_EKS_CLUSTER_ARN = stringKey("aws.eks.cluster.arn"); - - /** - * The Amazon Resource Name(s) (ARN) of the AWS log group(s). - * - *

Notes: - * - *

- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_LOG_GROUP_ARNS} attribute. - */ - @Deprecated - public static final AttributeKey> AWS_LOG_GROUP_ARNS = - stringArrayKey("aws.log.group.arns"); - - /** - * The name(s) of the AWS log group(s) an application is writing to. - * - *

Notes: - * - *

    - *
  • 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 deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_LOG_GROUP_NAMES} attribute. - */ - @Deprecated - public static final AttributeKey> AWS_LOG_GROUP_NAMES = - stringArrayKey("aws.log.group.names"); - - /** - * The ARN(s) of the AWS log stream(s). - * - *

Notes: - * - *

- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_LOG_STREAM_ARNS} attribute. - */ - @Deprecated - public static final AttributeKey> AWS_LOG_STREAM_ARNS = - stringArrayKey("aws.log.stream.arns"); - - /** - * The name(s) of the AWS log stream(s) an application is writing to. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes#AWS_LOG_STREAM_NAMES} - * attribute. - */ - @Deprecated - public static final AttributeKey> AWS_LOG_STREAM_NAMES = - stringArrayKey("aws.log.stream.names"); - - /** - * The name of the Cloud Run execution being run for - * the Job, as set by the {@code - * CLOUD_RUN_EXECUTION} environment variable. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.GcpIncubatingAttributes#GCP_CLOUD_RUN_JOB_EXECUTION} - * attribute. - */ - @Deprecated - public static final AttributeKey GCP_CLOUD_RUN_JOB_EXECUTION = - stringKey("gcp.cloud_run.job.execution"); - - /** - * The index for a task within an execution as provided by the {@code - * CLOUD_RUN_TASK_INDEX} environment variable. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.GcpIncubatingAttributes#GCP_CLOUD_RUN_JOB_TASK_INDEX} - * attribute. - */ - @Deprecated - public static final AttributeKey GCP_CLOUD_RUN_JOB_TASK_INDEX = - longKey("gcp.cloud_run.job.task_index"); - - /** - * The hostname of a GCE instance. This is the full value of the default or custom hostname. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.GcpIncubatingAttributes#GCP_GCE_INSTANCE_HOSTNAME} - * attribute. - */ - @Deprecated - public static final AttributeKey GCP_GCE_INSTANCE_HOSTNAME = - stringKey("gcp.gce.instance.hostname"); - - /** - * The instance name of a GCE instance. This is the value provided by {@code host.name}, the - * visible name of the instance in the Cloud Console UI, and the prefix for the default hostname - * of the instance as defined by the default - * internal DNS name. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.GcpIncubatingAttributes#GCP_GCE_INSTANCE_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey GCP_GCE_INSTANCE_NAME = - stringKey("gcp.gce.instance.name"); - - /** - * Unique identifier for the application - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HerokuIncubatingAttributes#HEROKU_APP_ID} attribute. - */ - @Deprecated public static final AttributeKey HEROKU_APP_ID = stringKey("heroku.app.id"); - - /** - * Commit hash for the current release - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HerokuIncubatingAttributes#HEROKU_RELEASE_COMMIT} - * attribute. - */ - @Deprecated - public static final AttributeKey HEROKU_RELEASE_COMMIT = - stringKey("heroku.release.commit"); - - /** - * Time and date the release was created - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HerokuIncubatingAttributes#HEROKU_RELEASE_CREATION_TIMESTAMP} - * attribute. - */ - @Deprecated - public static final AttributeKey HEROKU_RELEASE_CREATION_TIMESTAMP = - stringKey("heroku.release.creation_timestamp"); - - /** - * Name of the deployment - * environment (aka deployment tier). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.DeploymentIncubatingAttributes#DEPLOYMENT_ENVIRONMENT} - * attribute. - */ - @Deprecated - public static final AttributeKey DEPLOYMENT_ENVIRONMENT = - stringKey("deployment.environment"); - - /** - * A unique identifier representing the device - * - *

Notes: - * - *

    - *
  • 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. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.DeviceIncubatingAttributes#DEVICE_ID} attribute. - */ - @Deprecated public static final AttributeKey DEVICE_ID = stringKey("device.id"); - - /** - * The name of the device manufacturer - * - *

Notes: - * - *

    - *
  • The Android OS provides this field via Build. - * iOS apps SHOULD hardcode the value {@code Apple}. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.DeviceIncubatingAttributes#DEVICE_MANUFACTURER} - * attribute. - */ - @Deprecated - public static final AttributeKey DEVICE_MANUFACTURER = stringKey("device.manufacturer"); - - /** - * The model identifier for the device - * - *

Notes: - * - *

    - *
  • 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 deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.DeviceIncubatingAttributes#DEVICE_MODEL_IDENTIFIER} - * attribute. - */ - @Deprecated - public static final AttributeKey DEVICE_MODEL_IDENTIFIER = - stringKey("device.model.identifier"); - - /** - * The marketing name for the device model - * - *

Notes: - * - *

    - *
  • It's recommended this value represents a human readable version of the device model - * rather than a machine readable alternative. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.DeviceIncubatingAttributes#DEVICE_MODEL_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey DEVICE_MODEL_NAME = stringKey("device.model.name"); - - /** - * The execution environment ID as a string, that will be potentially reused for other invocations - * to the same function/function version. - * - *

Notes: - * - *

    - *
  • AWS Lambda: Use the (full) log stream name. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.FaasIncubatingAttributes#FAAS_INSTANCE} attribute. - */ - @Deprecated public static final AttributeKey FAAS_INSTANCE = stringKey("faas.instance"); - - /** - * The amount of memory available to the serverless function converted to Bytes. - * - *

Notes: - * - *

    - *
  • 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 - * {@code AWS_LAMBDA_FUNCTION_MEMORY_SIZE} provides this information (which must be - * multiplied by 1,048,576). - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.FaasIncubatingAttributes#FAAS_MAX_MEMORY} attribute. - */ - @Deprecated public static final AttributeKey FAAS_MAX_MEMORY = longKey("faas.max_memory"); - - /** - * The name of the single function that this runtime instance executes. - * - *

Notes: - * - *

    - *
  • 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 code.namespace}/{@code - * code.function} span attributes). - *
  • For some cloud providers, the above definition is ambiguous. The following definition of - * function name MUST be used for this attribute (and consequently the span name) for the - * listed cloud providers/products: - *
  • Azure: The full name {@code /}, i.e., function app name - * followed by a forward slash followed by the function name (this form can also be seen in - * the resource JSON for the function). This means that a span attribute MUST be used, as an - * Azure function app can host multiple functions that would usually share a TracerProvider - * (see also the {@code cloud.resource_id} attribute). - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.FaasIncubatingAttributes#FAAS_NAME} attribute. - */ - @Deprecated public static final AttributeKey FAAS_NAME = stringKey("faas.name"); - - /** - * The immutable version of the function being executed. - * - *

Notes: - * - *

    - *
  • Depending on the cloud provider and platform, use: - *
  • AWS Lambda: The function - * version (an integer represented as a decimal string). - *
  • Google Cloud Run (Services): The revision (i.e., the - * function name plus the revision suffix). - *
  • Google Cloud Functions: The value of the {@code - * K_REVISION} environment variable. - *
  • Azure Functions: Not applicable. Do not set this attribute. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.FaasIncubatingAttributes#FAAS_VERSION} attribute. - */ - @Deprecated public static final AttributeKey FAAS_VERSION = stringKey("faas.version"); - - /** - * The CPU architecture the host system is running on. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_ARCH} attribute. - */ - @Deprecated public static final AttributeKey HOST_ARCH = stringKey("host.arch"); - - /** - * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For - * non-containerized systems, this should be the {@code machine-id}. See the table below for the - * sources to use to determine the {@code machine-id} based on operating system. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_ID} attribute. - */ - @Deprecated public static final AttributeKey HOST_ID = stringKey("host.id"); - - /** - * VM image ID or host OS image ID. For Cloud, this value is from the provider. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_IMAGE_ID} attribute. - */ - @Deprecated public static final AttributeKey HOST_IMAGE_ID = stringKey("host.image.id"); - - /** - * Name of the VM image or OS install the host was instantiated from. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_IMAGE_NAME} attribute. - */ - @Deprecated - public static final AttributeKey HOST_IMAGE_NAME = stringKey("host.image.name"); - - /** - * The version string of the VM image or host OS as defined in Version Attributes. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_IMAGE_VERSION} attribute. - */ - @Deprecated - public static final AttributeKey HOST_IMAGE_VERSION = stringKey("host.image.version"); - - /** - * Available IP addresses of the host, excluding loopback interfaces. - * - *

Notes: - * - *

    - *
  • IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses MUST be - * specified in the RFC 5952 - * format. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_IP} attribute. - */ - @Deprecated public static final AttributeKey> HOST_IP = stringArrayKey("host.ip"); - - /** - * Available MAC addresses of the host, excluding loopback interfaces. - * - *

Notes: - * - *

    - *
  • MAC Addresses MUST be represented in IEEE - * RA hexadecimal form: as hyphen-separated octets in uppercase hexadecimal form from - * most to least significant. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_MAC} attribute. - */ - @Deprecated public static final AttributeKey> HOST_MAC = stringArrayKey("host.mac"); - - /** - * 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. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_NAME} attribute. - */ - @Deprecated public static final AttributeKey HOST_NAME = stringKey("host.name"); - - /** - * Type of host. For Cloud, this must be the machine type. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_TYPE} attribute. - */ - @Deprecated public static final AttributeKey HOST_TYPE = stringKey("host.type"); - - /** - * The amount of level 2 memory cache available to the processor (in Bytes). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_CACHE_L2_SIZE} - * attribute. - */ - @Deprecated - public static final AttributeKey HOST_CPU_CACHE_L2_SIZE = longKey("host.cpu.cache.l2.size"); - - /** - * Numeric value specifying the family or generation of the CPU. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_FAMILY} attribute. - */ - @Deprecated public static final AttributeKey HOST_CPU_FAMILY = longKey("host.cpu.family"); - - /** - * Model identifier. It provides more granular information about the CPU, distinguishing it from - * other CPUs within the same family. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_MODEL_ID} attribute. - */ - @Deprecated - public static final AttributeKey HOST_CPU_MODEL_ID = longKey("host.cpu.model.id"); - - /** - * Model designation of the processor. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_MODEL_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey HOST_CPU_MODEL_NAME = stringKey("host.cpu.model.name"); - - /** - * Stepping or core revisions. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_STEPPING} attribute. - */ - @Deprecated - public static final AttributeKey HOST_CPU_STEPPING = longKey("host.cpu.stepping"); - - /** - * Processor manufacturer identifier. A maximum 12-character string. - * - *

Notes: - * - *

    - *
  • CPUID command returns the vendor ID string in - * EBX, EDX and ECX registers. Writing these to memory in this order results in a - * 12-character string. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes#HOST_CPU_VENDOR_ID} attribute. - */ - @Deprecated - public static final AttributeKey HOST_CPU_VENDOR_ID = stringKey("host.cpu.vendor.id"); - - /** - * The name of the cluster. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CLUSTER_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_CLUSTER_NAME = stringKey("k8s.cluster.name"); - - /** - * A pseudo-ID for the cluster, set to the UID of the {@code kube-system} namespace. - * - *

Notes: - * - *

    - *
  • K8s doesn't have support for obtaining a cluster ID. If this is ever added, we will - * recommend collecting the {@code k8s.cluster.uid} through the official APIs. In the - * meantime, we are able to use the {@code uid} of the {@code kube-system} namespace as a - * proxy for cluster ID. Read on for the rationale. - *
  • Every object created in a K8s cluster is assigned a distinct UID. The {@code kube-system} - * namespace is used by Kubernetes itself and will exist for the lifetime of the cluster. - * Using the {@code uid} of the {@code kube-system} namespace is a reasonable proxy for the - * K8s ClusterID as it will only change if the cluster is rebuilt. Furthermore, Kubernetes - * UIDs are UUIDs as standardized by ISO/IEC 9834-8 and ITU-T - * X.667. Which states: - *
  • If generated according to one of the mechanisms defined in Rec. ITU-T X.667 | ISO/IEC - * 9834-8, a UUID is either guaranteed to be different from all other UUIDs generated before - * 3603 A.D., or is extremely likely to be different (depending on the mechanism chosen). - *
  • Therefore, UIDs between clusters should be extremely unlikely to conflict. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CLUSTER_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_CLUSTER_UID = stringKey("k8s.cluster.uid"); - - /** - * The name of the Node. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_NODE_NAME} attribute. - */ - @Deprecated public static final AttributeKey K8S_NODE_NAME = stringKey("k8s.node.name"); - - /** - * The UID of the Node. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_NODE_UID} attribute. - */ - @Deprecated public static final AttributeKey K8S_NODE_UID = stringKey("k8s.node.uid"); - - /** - * The name of the namespace that the pod is running in. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_NAMESPACE_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_NAMESPACE_NAME = stringKey("k8s.namespace.name"); - - /** - * The name of the Pod. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_POD_NAME} attribute. - */ - @Deprecated public static final AttributeKey K8S_POD_NAME = stringKey("k8s.pod.name"); - - /** - * The UID of the Pod. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_POD_UID} attribute. - */ - @Deprecated public static final AttributeKey K8S_POD_UID = stringKey("k8s.pod.uid"); - - /** - * The name of the Container from Pod specification, must be unique within a Pod. Container - * runtime usually uses different globally unique name ({@code container.name}). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CONTAINER_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_CONTAINER_NAME = stringKey("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. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CONTAINER_RESTART_COUNT} - * attribute. - */ - @Deprecated - public static final AttributeKey K8S_CONTAINER_RESTART_COUNT = - longKey("k8s.container.restart_count"); - - /** - * The name of the ReplicaSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_REPLICASET_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_REPLICASET_NAME = stringKey("k8s.replicaset.name"); - - /** - * The UID of the ReplicaSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_REPLICASET_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_REPLICASET_UID = stringKey("k8s.replicaset.uid"); - - /** - * The name of the Deployment. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_DEPLOYMENT_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_DEPLOYMENT_NAME = stringKey("k8s.deployment.name"); - - /** - * The UID of the Deployment. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_DEPLOYMENT_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_DEPLOYMENT_UID = stringKey("k8s.deployment.uid"); - - /** - * The name of the StatefulSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_STATEFULSET_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey K8S_STATEFULSET_NAME = stringKey("k8s.statefulset.name"); - - /** - * The UID of the StatefulSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_STATEFULSET_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_STATEFULSET_UID = stringKey("k8s.statefulset.uid"); - - /** - * The name of the DaemonSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_DAEMONSET_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_DAEMONSET_NAME = stringKey("k8s.daemonset.name"); - - /** - * The UID of the DaemonSet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_DAEMONSET_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_DAEMONSET_UID = stringKey("k8s.daemonset.uid"); - - /** - * The name of the Job. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_JOB_NAME} attribute. - */ - @Deprecated public static final AttributeKey K8S_JOB_NAME = stringKey("k8s.job.name"); - - /** - * The UID of the Job. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_JOB_UID} attribute. - */ - @Deprecated public static final AttributeKey K8S_JOB_UID = stringKey("k8s.job.uid"); - - /** - * The name of the CronJob. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CRONJOB_NAME} attribute. - */ - @Deprecated - public static final AttributeKey K8S_CRONJOB_NAME = stringKey("k8s.cronjob.name"); - - /** - * The UID of the CronJob. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.K8sIncubatingAttributes#K8S_CRONJOB_UID} attribute. - */ - @Deprecated - public static final AttributeKey K8S_CRONJOB_UID = stringKey("k8s.cronjob.uid"); - - /** - * Unique identifier for a particular build or compilation of the operating system. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes#OS_BUILD_ID} attribute. - */ - @Deprecated public static final AttributeKey OS_BUILD_ID = stringKey("os.build_id"); - - /** - * Human readable (not intended to be parsed) OS version information, like e.g. reported by {@code - * ver} or {@code lsb_release -a} commands. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes#OS_DESCRIPTION} attribute. - */ - @Deprecated public static final AttributeKey OS_DESCRIPTION = stringKey("os.description"); - - /** - * Human readable operating system name. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes#OS_NAME} attribute. - */ - @Deprecated public static final AttributeKey OS_NAME = stringKey("os.name"); - - /** - * The operating system type. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes#OS_TYPE} attribute. - */ - @Deprecated public static final AttributeKey OS_TYPE = stringKey("os.type"); - - /** - * The version string of the operating system as defined in Version Attributes. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes#OS_VERSION} attribute. - */ - @Deprecated public static final AttributeKey OS_VERSION = stringKey("os.version"); - - /** - * The command used to launch the process (i.e. the command name). On Linux based systems, can be - * set to the zeroth string in {@code proc/[pid]/cmdline}. On Windows, can be set to the first - * parameter extracted from {@code GetCommandLineW}. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_COMMAND} attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_COMMAND = stringKey("process.command"); - - /** - * 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 {@code proc/[pid]/cmdline}. For libc-based - * executables, this would be the full argv vector passed to {@code main}. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_COMMAND_ARGS} - * attribute. - */ - @Deprecated - public static final AttributeKey> PROCESS_COMMAND_ARGS = - stringArrayKey("process.command_args"); - - /** - * 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 {@code GetCommandLineW}. Do not set this if you have to - * assemble it just for monitoring; use {@code process.command_args} instead. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_COMMAND_LINE} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_COMMAND_LINE = stringKey("process.command_line"); - - /** - * The name of the process executable. On Linux based systems, can be set to the {@code Name} in - * {@code proc/[pid]/status}. On Windows, can be set to the base name of {@code - * GetProcessImageFileNameW}. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_EXECUTABLE_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_EXECUTABLE_NAME = - stringKey("process.executable.name"); - - /** - * The full path to the process executable. On Linux based systems, can be set to the target of - * {@code proc/[pid]/exe}. On Windows, can be set to the result of {@code - * GetProcessImageFileNameW}. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_EXECUTABLE_PATH} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_EXECUTABLE_PATH = - stringKey("process.executable.path"); - - /** - * The username of the user that owns the process. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_OWNER} attribute. - */ - @Deprecated public static final AttributeKey PROCESS_OWNER = stringKey("process.owner"); - - /** - * Parent Process identifier (PID). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_PARENT_PID} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_PARENT_PID = longKey("process.parent_pid"); - - /** - * Process identifier (PID). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_PID} attribute. - */ - @Deprecated public static final AttributeKey PROCESS_PID = longKey("process.pid"); - - /** - * An additional description about the runtime of the process, for example a specific vendor - * customization of the runtime environment. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_RUNTIME_DESCRIPTION} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_RUNTIME_DESCRIPTION = - stringKey("process.runtime.description"); - - /** - * The name of the runtime of this process. For compiled native binaries, this SHOULD be the name - * of the compiler. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_RUNTIME_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_RUNTIME_NAME = stringKey("process.runtime.name"); - - /** - * The version of the runtime of this process, as returned by the runtime without modification. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ProcessIncubatingAttributes#PROCESS_RUNTIME_VERSION} - * attribute. - */ - @Deprecated - public static final AttributeKey PROCESS_RUNTIME_VERSION = - stringKey("process.runtime.version"); - - /** - * Logical name of the service. - * - *

Notes: - * - *

    - *
  • MUST be the same for all instances of horizontally scaled services. If the value was not - * specified, SDKs MUST fallback to {@code unknown_service:} concatenated with {@code process.executable.name}, e.g. {@code - * unknown_service:bash}. If {@code process.executable.name} is not available, the value - * MUST be set to {@code unknown_service}. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes#SERVICE_NAME} attribute. - */ - @Deprecated public static final AttributeKey SERVICE_NAME = stringKey("service.name"); - - /** - * The version string of the service API or implementation. The format is not defined by these - * conventions. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes#SERVICE_VERSION} attribute. - */ - @Deprecated - public static final AttributeKey SERVICE_VERSION = stringKey("service.version"); - - /** - * The string ID of the service instance. - * - *

Notes: - * - *

    - *
  • MUST be unique for each instance of the same {@code service.namespace,service.name} pair - * (in other words {@code 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). - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes#SERVICE_INSTANCE_ID} - * attribute. - */ - @Deprecated - public static final AttributeKey SERVICE_INSTANCE_ID = stringKey("service.instance.id"); - - /** - * A namespace for {@code service.name}. - * - *

Notes: - * - *

    - *
  • 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. {@code service.name} is expected to - * be unique within the same namespace. If {@code service.namespace} is not specified in the - * Resource then {@code 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. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes#SERVICE_NAMESPACE} - * attribute. - */ - @Deprecated - public static final AttributeKey SERVICE_NAMESPACE = stringKey("service.namespace"); - - /** - * The language of the telemetry SDK. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes#TELEMETRY_SDK_LANGUAGE} - * attribute. - */ - @Deprecated - public static final AttributeKey TELEMETRY_SDK_LANGUAGE = - stringKey("telemetry.sdk.language"); - - /** - * The name of the telemetry SDK as defined above. - * - *

Notes: - * - *

    - *
  • The OpenTelemetry SDK MUST set the {@code telemetry.sdk.name} attribute to {@code - * opentelemetry}. If another SDK, like a fork or a vendor-provided implementation, is used, - * this SDK MUST set the {@code telemetry.sdk.name} attribute to the fully-qualified class - * or module name of this SDK's main entry point or another suitable identifier depending on - * the language. The identifier {@code opentelemetry} is reserved and MUST NOT be used in - * this case. All custom identifiers SHOULD be stable across different versions of an - * implementation. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes#TELEMETRY_SDK_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey TELEMETRY_SDK_NAME = stringKey("telemetry.sdk.name"); - - /** - * The version string of the telemetry SDK. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes#TELEMETRY_SDK_VERSION} - * attribute. - */ - @Deprecated - public static final AttributeKey TELEMETRY_SDK_VERSION = - stringKey("telemetry.sdk.version"); - - /** - * The name of the auto instrumentation agent or distribution, if used. - * - *

Notes: - * - *

    - *
  • Official auto instrumentation agents and distributions SHOULD set the {@code - * telemetry.distro.name} attribute to a string starting with {@code opentelemetry-}, e.g. - * {@code opentelemetry-java-instrumentation}. - *
- * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes#TELEMETRY_DISTRO_NAME} - * attribute. - */ - @Deprecated - public static final AttributeKey TELEMETRY_DISTRO_NAME = - stringKey("telemetry.distro.name"); - - /** - * The version string of the auto instrumentation agent or distribution, if used. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes#TELEMETRY_DISTRO_VERSION} - * attribute. - */ - @Deprecated - public static final AttributeKey TELEMETRY_DISTRO_VERSION = - stringKey("telemetry.distro.version"); - - /** - * Additional description of the web engine (e.g. detailed version and edition information). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.WebengineIncubatingAttributes#WEBENGINE_DESCRIPTION} - * attribute. - */ - @Deprecated - public static final AttributeKey WEBENGINE_DESCRIPTION = - stringKey("webengine.description"); - - /** - * The name of the web engine. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.WebengineIncubatingAttributes#WEBENGINE_NAME} - * attribute. - */ - @Deprecated public static final AttributeKey WEBENGINE_NAME = stringKey("webengine.name"); - - /** - * The version of the web engine. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.WebengineIncubatingAttributes#WEBENGINE_VERSION} - * attribute. - */ - @Deprecated - public static final AttributeKey WEBENGINE_VERSION = stringKey("webengine.version"); - - /** - * The name of the instrumentation scope - ({@code InstrumentationScope.Name} in OTLP). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OtelIncubatingAttributes#OTEL_SCOPE_NAME} attribute. - */ - @Deprecated - public static final AttributeKey OTEL_SCOPE_NAME = stringKey("otel.scope.name"); - - /** - * The version of the instrumentation scope - ({@code InstrumentationScope.Version} in OTLP). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OtelIncubatingAttributes#OTEL_SCOPE_VERSION} attribute. - */ - @Deprecated - public static final AttributeKey OTEL_SCOPE_VERSION = stringKey("otel.scope.version"); - - /** - * Deprecated, use the {@code otel.scope.name} attribute. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OtelIncubatingAttributes#OTEL_LIBRARY_NAME} attribute. - */ - @Deprecated - public static final AttributeKey OTEL_LIBRARY_NAME = stringKey("otel.library.name"); - - /** - * Deprecated, use the {@code otel.scope.version} attribute. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OtelIncubatingAttributes#OTEL_LIBRARY_VERSION} - * attribute. - */ - @Deprecated - public static final AttributeKey OTEL_LIBRARY_VERSION = stringKey("otel.library.version"); - - /** - * Container labels, {@code } being the label name, the value being the label value. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes#CONTAINER_LABELS} - * attribute. - */ - @Deprecated - public static final AttributeKeyTemplate CONTAINER_LABELS = - stringKeyTemplate("container.labels"); - - // Enum definitions - @Deprecated - public static final class CloudPlatformValues { - /** - * Alibaba Cloud Elastic Compute Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#ALIBABA_CLOUD_ECS} - * attribute. - */ - @Deprecated public static final String ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs"; - - /** - * Alibaba Cloud Function Compute. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#ALIBABA_CLOUD_FC} - * attribute. - */ - @Deprecated public static final String ALIBABA_CLOUD_FC = "alibaba_cloud_fc"; - - /** - * Red Hat OpenShift on Alibaba Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#ALIBABA_CLOUD_OPENSHIFT} - * attribute. - */ - @Deprecated public static final String ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift"; - - /** - * AWS Elastic Compute Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_EC2} - * attribute. - */ - @Deprecated public static final String AWS_EC2 = "aws_ec2"; - - /** - * AWS Elastic Container Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_ECS} - * attribute. - */ - @Deprecated public static final String AWS_ECS = "aws_ecs"; - - /** - * AWS Elastic Kubernetes Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_EKS} - * attribute. - */ - @Deprecated public static final String AWS_EKS = "aws_eks"; - - /** - * AWS Lambda. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_LAMBDA} - * attribute. - */ - @Deprecated public static final String AWS_LAMBDA = "aws_lambda"; - - /** - * AWS Elastic Beanstalk. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_ELASTIC_BEANSTALK} - * attribute. - */ - @Deprecated public static final String AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk"; - - /** - * AWS App Runner. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_APP_RUNNER} - * attribute. - */ - @Deprecated public static final String AWS_APP_RUNNER = "aws_app_runner"; - - /** - * Red Hat OpenShift on AWS (ROSA). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AWS_OPENSHIFT} - * attribute. - */ - @Deprecated public static final String AWS_OPENSHIFT = "aws_openshift"; - - /** - * Azure Virtual Machines. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_VM} - * attribute. - */ - @Deprecated public static final String AZURE_VM = "azure_vm"; - - /** - * Azure Container Instances. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_CONTAINER_INSTANCES} - * attribute. - */ - @Deprecated public static final String AZURE_CONTAINER_INSTANCES = "azure_container_instances"; - - /** - * Azure Kubernetes Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_AKS} - * attribute. - */ - @Deprecated public static final String AZURE_AKS = "azure_aks"; - - /** - * Azure Functions. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_FUNCTIONS} - * attribute. - */ - @Deprecated public static final String AZURE_FUNCTIONS = "azure_functions"; - - /** - * Azure App Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_APP_SERVICE} - * attribute. - */ - @Deprecated public static final String AZURE_APP_SERVICE = "azure_app_service"; - - /** - * Azure Red Hat OpenShift. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#AZURE_OPENSHIFT} - * attribute. - */ - @Deprecated public static final String AZURE_OPENSHIFT = "azure_openshift"; - - /** - * Google Bare Metal Solution (BMS). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_BARE_METAL_SOLUTION} - * attribute. - */ - @Deprecated public static final String GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution"; - - /** - * Google Cloud Compute Engine (GCE). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_COMPUTE_ENGINE} - * attribute. - */ - @Deprecated public static final String GCP_COMPUTE_ENGINE = "gcp_compute_engine"; - - /** - * Google Cloud Run. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_CLOUD_RUN} - * attribute. - */ - @Deprecated public static final String GCP_CLOUD_RUN = "gcp_cloud_run"; - - /** - * Google Cloud Kubernetes Engine (GKE). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_KUBERNETES_ENGINE} - * attribute. - */ - @Deprecated public static final String GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine"; - - /** - * Google Cloud Functions (GCF). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_CLOUD_FUNCTIONS} - * attribute. - */ - @Deprecated public static final String GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions"; - - /** - * Google Cloud App Engine (GAE). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_APP_ENGINE} - * attribute. - */ - @Deprecated public static final String GCP_APP_ENGINE = "gcp_app_engine"; - - /** - * Red Hat OpenShift on Google Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#GCP_OPENSHIFT} - * attribute. - */ - @Deprecated public static final String GCP_OPENSHIFT = "gcp_openshift"; - - /** - * Red Hat OpenShift on IBM Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#IBM_CLOUD_OPENSHIFT} - * attribute. - */ - @Deprecated public static final String IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift"; - - /** - * Tencent Cloud Cloud Virtual Machine (CVM). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#TENCENT_CLOUD_CVM} - * attribute. - */ - @Deprecated public static final String TENCENT_CLOUD_CVM = "tencent_cloud_cvm"; - - /** - * Tencent Cloud Elastic Kubernetes Service (EKS). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#TENCENT_CLOUD_EKS} - * attribute. - */ - @Deprecated public static final String TENCENT_CLOUD_EKS = "tencent_cloud_eks"; - - /** - * Tencent Cloud Serverless Cloud Function (SCF). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudPlatformIncubatingValues#TENCENT_CLOUD_SCF} - * attribute. - */ - @Deprecated public static final String TENCENT_CLOUD_SCF = "tencent_cloud_scf"; - - private CloudPlatformValues() {} - } - - @Deprecated - public static final class CloudProviderValues { - /** - * Alibaba Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#ALIBABA_CLOUD} - * attribute. - */ - @Deprecated public static final String ALIBABA_CLOUD = "alibaba_cloud"; - - /** - * Amazon Web Services. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#AWS} - * attribute. - */ - @Deprecated public static final String AWS = "aws"; - - /** - * Microsoft Azure. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#AZURE} - * attribute. - */ - @Deprecated public static final String AZURE = "azure"; - - /** - * Google Cloud Platform. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#GCP} - * attribute. - */ - @Deprecated public static final String GCP = "gcp"; - - /** - * Heroku Platform as a Service. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#HEROKU} - * attribute. - */ - @Deprecated public static final String HEROKU = "heroku"; - - /** - * IBM Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#IBM_CLOUD} - * attribute. - */ - @Deprecated public static final String IBM_CLOUD = "ibm_cloud"; - - /** - * Tencent Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CloudProviderIncubatingValues#TENCENT_CLOUD} - * attribute. - */ - @Deprecated public static final String TENCENT_CLOUD = "tencent_cloud"; - - private CloudProviderValues() {} - } - - @Deprecated - public static final class AwsEcsLaunchtypeValues { - /** - * ec2. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes.AwsEcsLaunchtypeIncubatingValues#EC2} - * attribute. - */ - @Deprecated public static final String EC2 = "ec2"; - - /** - * fargate. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.AwsIncubatingAttributes.AwsEcsLaunchtypeIncubatingValues#FARGATE} - * attribute. - */ - @Deprecated public static final String FARGATE = "fargate"; - - private AwsEcsLaunchtypeValues() {} - } - - @Deprecated - public static final class HostArchValues { - /** - * AMD64. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#AMD64} - * attribute. - */ - @Deprecated public static final String AMD64 = "amd64"; - - /** - * ARM32. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#ARM32} - * attribute. - */ - @Deprecated public static final String ARM32 = "arm32"; - - /** - * ARM64. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#ARM64} - * attribute. - */ - @Deprecated public static final String ARM64 = "arm64"; - - /** - * Itanium. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#IA64} - * attribute. - */ - @Deprecated public static final String IA64 = "ia64"; - - /** - * 32-bit PowerPC. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#PPC32} - * attribute. - */ - @Deprecated public static final String PPC32 = "ppc32"; - - /** - * 64-bit PowerPC. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#PPC64} - * attribute. - */ - @Deprecated public static final String PPC64 = "ppc64"; - - /** - * IBM z/Architecture. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#S390X} - * attribute. - */ - @Deprecated public static final String S390X = "s390x"; - - /** - * 32-bit x86. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.HostIncubatingAttributes.HostArchIncubatingValues#X86} - * attribute. - */ - @Deprecated public static final String X86 = "x86"; - - private HostArchValues() {} - } - - @Deprecated - public static final class OsTypeValues { - /** - * Microsoft Windows. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#WINDOWS} - * attribute. - */ - @Deprecated public static final String WINDOWS = "windows"; - - /** - * Linux. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#LINUX} - * attribute. - */ - @Deprecated public static final String LINUX = "linux"; - - /** - * Apple Darwin. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#DARWIN} - * attribute. - */ - @Deprecated public static final String DARWIN = "darwin"; - - /** - * FreeBSD. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#FREEBSD} - * attribute. - */ - @Deprecated public static final String FREEBSD = "freebsd"; - - /** - * NetBSD. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#NETBSD} - * attribute. - */ - @Deprecated public static final String NETBSD = "netbsd"; - - /** - * OpenBSD. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#OPENBSD} - * attribute. - */ - @Deprecated public static final String OPENBSD = "openbsd"; - - /** - * DragonFly BSD. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#DRAGONFLYBSD} - * attribute. - */ - @Deprecated public static final String DRAGONFLYBSD = "dragonflybsd"; - - /** - * HP-UX (Hewlett Packard Unix). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#HPUX} - * attribute. - */ - @Deprecated public static final String HPUX = "hpux"; - - /** - * AIX (Advanced Interactive eXecutive). - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#AIX} - * attribute. - */ - @Deprecated public static final String AIX = "aix"; - - /** - * SunOS, Oracle Solaris. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#SOLARIS} - * attribute. - */ - @Deprecated public static final String SOLARIS = "solaris"; - - /** - * IBM z/OS. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.OsIncubatingAttributes.OsTypeIncubatingValues#Z_OS} - * attribute. - */ - @Deprecated public static final String Z_OS = "z_os"; - - private OsTypeValues() {} - } - - @Deprecated - public static final class TelemetrySdkLanguageValues { - /** - * cpp. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#CPP} - * attribute. - */ - @Deprecated public static final String CPP = "cpp"; - - /** - * dotnet. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#DOTNET} - * attribute. - */ - @Deprecated public static final String DOTNET = "dotnet"; - - /** - * erlang. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#ERLANG} - * attribute. - */ - @Deprecated public static final String ERLANG = "erlang"; - - /** - * go. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#GO} - * attribute. - */ - @Deprecated public static final String GO = "go"; - - /** - * java. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#JAVA} - * attribute. - */ - @Deprecated public static final String JAVA = "java"; - - /** - * nodejs. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#NODEJS} - * attribute. - */ - @Deprecated public static final String NODEJS = "nodejs"; - - /** - * php. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#PHP} - * attribute. - */ - @Deprecated public static final String PHP = "php"; - - /** - * python. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#PYTHON} - * attribute. - */ - @Deprecated public static final String PYTHON = "python"; - - /** - * ruby. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#RUBY} - * attribute. - */ - @Deprecated public static final String RUBY = "ruby"; - - /** - * rust. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#RUST} - * attribute. - */ - @Deprecated public static final String RUST = "rust"; - - /** - * swift. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#SWIFT} - * attribute. - */ - @Deprecated public static final String SWIFT = "swift"; - - /** - * webjs. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.TelemetryIncubatingAttributes.TelemetrySdkLanguageIncubatingValues#WEBJS} - * attribute. - */ - @Deprecated public static final String WEBJS = "webjs"; - - private TelemetrySdkLanguageValues() {} - } - - /** - * Red Hat OpenShift on Google Cloud. - * - * @deprecated deprecated in favor of {@see - * io.opentelemetry.semconv.incubating.CloudIncubatingAttributes#GCP_OPENSHIFT} attribute. - */ - @Deprecated public static final String GCP_OPENSHIFT = "gcp_openshift"; - - /** - * Full user-agent string provided by the browser - * - *

Notes: - * - *

    - *
  • The user-agent value SHOULD be provided only from browsers that do not have a mechanism - * to retrieve brands and platform individually from the User-Agent Client Hints API. To - * retrieve the value, the legacy {@code navigator.userAgent} API can be used. - *
- * - * @deprecated This item has been renamed in 1.19.0 version of the semantic conventions. Use - * {@link io.opentelemetry.semconv.SemanticAttributes#USER_AGENT_ORIGINAL} instead. - */ - @Deprecated - public static final AttributeKey BROWSER_USER_AGENT = stringKey("browser.user_agent"); - - /** - * The unique ID of the single function that this runtime instance executes. - * - *

Notes: - * - *

    - *
  • On some cloud providers, it may not be possible to determine the full ID at startup, so - * consider setting {@code faas.id} as a span attribute instead. - *
  • The exact value to use for {@code faas.id} depends on the cloud provider: - *
  • 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 of the invoked function, not the function app, having - * the form {@code - * /subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/}. - * This means that a span attribute MUST be used, as an Azure function app can host multiple - * functions that would usually share a TracerProvider. - *
- * - * @deprecated This item has been removed in 1.19.0 version of the semantic conventions. Use - * {@link ResourceAttributes#CLOUD_RESOURCE_ID} instead. - */ - @Deprecated public static final AttributeKey FAAS_ID = stringKey("faas.id"); - - /** - * The version string of the auto instrumentation agent, if used. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * ResourceAttributes#TELEMETRY_DISTRO_VERSION} instead. - */ - @Deprecated - public static final AttributeKey TELEMETRY_AUTO_VERSION = - stringKey("telemetry.auto.version"); - - /** - * Container image tag. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * ResourceAttributes#CONTAINER_IMAGE_TAGS} instead. - */ - @Deprecated - public static final AttributeKey CONTAINER_IMAGE_TAG = stringKey("container.image.tag"); - - private ResourceAttributes() {} -} diff --git a/semconv/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java b/semconv/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java deleted file mode 100644 index d25e1067..00000000 --- a/semconv/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java +++ /dev/null @@ -1,3910 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * SPDX-License-Identifier: Apache-2.0 - */ - -package io.opentelemetry.semconv; - -import static io.opentelemetry.api.common.AttributeKey.booleanKey; -import static io.opentelemetry.api.common.AttributeKey.doubleKey; -import static io.opentelemetry.api.common.AttributeKey.longKey; -import static io.opentelemetry.api.common.AttributeKey.stringArrayKey; -import static io.opentelemetry.api.common.AttributeKey.stringKey; -import static io.opentelemetry.semconv.AttributeKeyTemplate.stringArrayKeyTemplate; -import static io.opentelemetry.semconv.AttributeKeyTemplate.stringKeyTemplate; - -import io.opentelemetry.api.common.AttributeKey; -import java.util.List; - -/** - * @deprecated This class is deprecated and will be removed in a future release. It is only provided - * as a convenience to help migration to the new semantic conventions classes structure that was - * introduced in version 1.24.0. - */ -@Deprecated -@SuppressWarnings("unused") -public final class SemanticAttributes { - /** The URL of the OpenTelemetry schema for these keys and values. */ - @Deprecated public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.23.1"; - - /** - * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or - * Unix domain socket name. - * - *

Notes: - * - *

    - *
  • When observed from the server side, and when communicating through an intermediary, - * {@code client.address} SHOULD represent the client address behind any intermediaries, for - * example proxies, if it's available. - *
- */ - @Deprecated public static final AttributeKey CLIENT_ADDRESS = stringKey("client.address"); - - /** - * Client port number. - * - *

Notes: - * - *

    - *
  • When observed from the server side, and when communicating through an intermediary, - * {@code client.port} SHOULD represent the client port behind any intermediaries, for - * example proxies, if it's available. - *
- */ - @Deprecated public static final AttributeKey CLIENT_PORT = longKey("client.port"); - - /** - * Destination address - domain name if available without reverse DNS lookup; otherwise, IP - * address or Unix domain socket name. - * - *

Notes: - * - *

    - *
  • When observed from the source side, and when communicating through an intermediary, - * {@code destination.address} SHOULD represent the destination address behind any - * intermediaries, for example proxies, if it's available. - *
- */ - @Deprecated - public static final AttributeKey DESTINATION_ADDRESS = stringKey("destination.address"); - - /** Destination port number */ - @Deprecated public static final AttributeKey DESTINATION_PORT = longKey("destination.port"); - - /** - * Describes a class of error the operation ended with. - * - *

Notes: - * - *

    - *
  • The {@code error.type} SHOULD be predictable and SHOULD have low cardinality. - * Instrumentations SHOULD document the list of errors they report. - *
  • The cardinality of {@code error.type} within one instrumentation library SHOULD be low. - * Telemetry consumers that aggregate data from multiple instrumentation libraries and - * applications should be prepared for {@code error.type} to have high cardinality at query - * time when no additional filters are applied. - *
  • If the operation has completed successfully, instrumentations SHOULD NOT set {@code - * error.type}. - *
  • If a specific domain defines its own set of error identifiers (such as HTTP or gRPC - * status codes), it's RECOMMENDED to: - *
  • Use a domain-specific attribute - *
  • Set {@code error.type} to capture all errors, regardless of whether they are defined - * within the domain-specific set or not. - *
- */ - @Deprecated public static final AttributeKey ERROR_TYPE = stringKey("error.type"); - - /** The exception message. */ - @Deprecated - public static final AttributeKey EXCEPTION_MESSAGE = stringKey("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. - */ - @Deprecated - public static final AttributeKey EXCEPTION_STACKTRACE = stringKey("exception.stacktrace"); - - /** - * 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. - */ - @Deprecated public static final AttributeKey EXCEPTION_TYPE = stringKey("exception.type"); - - /** - * The name of the invoked function. - * - *

Notes: - * - *

    - *
  • SHOULD be equal to the {@code faas.name} resource attribute of the invoked function. - *
- */ - @Deprecated - public static final AttributeKey FAAS_INVOKED_NAME = stringKey("faas.invoked_name"); - - /** - * The cloud provider of the invoked function. - * - *

Notes: - * - *

    - *
  • SHOULD be equal to the {@code cloud.provider} resource attribute of the invoked function. - *
- */ - @Deprecated - public static final AttributeKey FAAS_INVOKED_PROVIDER = - stringKey("faas.invoked_provider"); - - /** - * The cloud region of the invoked function. - * - *

Notes: - * - *

    - *
  • SHOULD be equal to the {@code cloud.region} resource attribute of the invoked function. - *
- */ - @Deprecated - public static final AttributeKey FAAS_INVOKED_REGION = stringKey("faas.invoked_region"); - - /** Type of the trigger which caused this function invocation. */ - @Deprecated public static final AttributeKey FAAS_TRIGGER = stringKey("faas.trigger"); - - /** - * The {@code service.name} of the remote service. - * SHOULD be equal to the actual {@code service.name} resource attribute of the remote service if - * any. - */ - @Deprecated public static final AttributeKey PEER_SERVICE = stringKey("peer.service"); - - /** - * Username or client_id extracted from the access token or Authorization header in the inbound - * request from outside the system. - */ - @Deprecated public static final AttributeKey ENDUSER_ID = stringKey("enduser.id"); - - /** - * Actual/assumed role the client is making the request under extracted from token or application - * security context. - */ - @Deprecated public static final AttributeKey ENDUSER_ROLE = stringKey("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. - */ - @Deprecated public static final AttributeKey ENDUSER_SCOPE = stringKey("enduser.scope"); - - /** - * The domain identifies the business context for the events. - * - *

Notes: - * - *

    - *
  • Events across different domains may have same {@code event.name}, yet be unrelated - * events. - *
- */ - @Deprecated public static final AttributeKey EVENT_DOMAIN = stringKey("event.domain"); - - /** The name identifies the event. */ - @Deprecated public static final AttributeKey EVENT_NAME = stringKey("event.name"); - - /** - * A unique identifier for the Log Record. - * - *

Notes: - * - *

    - *
  • If an id is provided, other log records with the same id will be considered duplicates - * and can be removed safely. This means, that two distinguishable log records MUST have - * different values. The id MAY be an Universally - * Unique Lexicographically Sortable Identifier (ULID), but other identifiers (e.g. - * UUID) may be used as needed. - *
- */ - @Deprecated public static final AttributeKey LOG_RECORD_UID = stringKey("log.record.uid"); - - /** The stream associated with the log. See below for a list of well-known values. */ - @Deprecated public static final AttributeKey LOG_IOSTREAM = stringKey("log.iostream"); - - /** The basename of the file. */ - @Deprecated public static final AttributeKey LOG_FILE_NAME = stringKey("log.file.name"); - - /** The basename of the file, with symlinks resolved. */ - @Deprecated - public static final AttributeKey LOG_FILE_NAME_RESOLVED = - stringKey("log.file.name_resolved"); - - /** The full path to the file. */ - @Deprecated public static final AttributeKey LOG_FILE_PATH = stringKey("log.file.path"); - - /** The full path to the file, with symlinks resolved. */ - @Deprecated - public static final AttributeKey LOG_FILE_PATH_RESOLVED = - stringKey("log.file.path_resolved"); - - /** - * This attribute represents the state the application has transitioned into at the occurrence of - * the event. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey IOS_STATE = stringKey("ios.state"); - - /** - * This attribute represents the state the application has transitioned into at the occurrence of - * the event. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey ANDROID_STATE = stringKey("android.state"); - - /** - * The name of the connection pool; unique within the instrumented application. In case the - * connection pool implementation doesn't provide a name, then the db.connection_string - * should be used - */ - @Deprecated public static final AttributeKey POOL_NAME = stringKey("pool.name"); - - /** The state of a connection in the pool */ - @Deprecated public static final AttributeKey STATE = stringKey("state"); - - /** - * Name of the buffer pool. - * - *

Notes: - * - *

- */ - @Deprecated - public static final AttributeKey JVM_BUFFER_POOL_NAME = stringKey("jvm.buffer.pool.name"); - - /** - * Name of the memory pool. - * - *

Notes: - * - *

- */ - @Deprecated - public static final AttributeKey JVM_MEMORY_POOL_NAME = stringKey("jvm.memory.pool.name"); - - /** The type of memory. */ - @Deprecated - public static final AttributeKey JVM_MEMORY_TYPE = stringKey("jvm.memory.type"); - - /** - * Name of the garbage collector action. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey JVM_GC_ACTION = stringKey("jvm.gc.action"); - - /** - * Name of the garbage collector. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey JVM_GC_NAME = stringKey("jvm.gc.name"); - - /** Whether the thread is daemon or not. */ - @Deprecated - public static final AttributeKey JVM_THREAD_DAEMON = booleanKey("jvm.thread.daemon"); - - /** State of the thread. */ - @Deprecated - public static final AttributeKey JVM_THREAD_STATE = stringKey("jvm.thread.state"); - - /** The device identifier */ - @Deprecated public static final AttributeKey SYSTEM_DEVICE = stringKey("system.device"); - - /** The logical CPU number [0..n-1] */ - @Deprecated - public static final AttributeKey SYSTEM_CPU_LOGICAL_NUMBER = - longKey("system.cpu.logical_number"); - - /** The state of the CPU */ - @Deprecated - public static final AttributeKey SYSTEM_CPU_STATE = stringKey("system.cpu.state"); - - /** The memory state */ - @Deprecated - public static final AttributeKey SYSTEM_MEMORY_STATE = stringKey("system.memory.state"); - - /** The paging access direction */ - @Deprecated - public static final AttributeKey SYSTEM_PAGING_DIRECTION = - stringKey("system.paging.direction"); - - /** The memory paging state */ - @Deprecated - public static final AttributeKey SYSTEM_PAGING_STATE = stringKey("system.paging.state"); - - /** The memory paging type */ - @Deprecated - public static final AttributeKey SYSTEM_PAGING_TYPE = stringKey("system.paging.type"); - - /** The disk operation direction */ - @Deprecated - public static final AttributeKey SYSTEM_DISK_DIRECTION = - stringKey("system.disk.direction"); - - /** The filesystem mode */ - @Deprecated - public static final AttributeKey SYSTEM_FILESYSTEM_MODE = - stringKey("system.filesystem.mode"); - - /** The filesystem mount path */ - @Deprecated - public static final AttributeKey SYSTEM_FILESYSTEM_MOUNTPOINT = - stringKey("system.filesystem.mountpoint"); - - /** The filesystem state */ - @Deprecated - public static final AttributeKey SYSTEM_FILESYSTEM_STATE = - stringKey("system.filesystem.state"); - - /** The filesystem type */ - @Deprecated - public static final AttributeKey SYSTEM_FILESYSTEM_TYPE = - stringKey("system.filesystem.type"); - - /** */ - @Deprecated - public static final AttributeKey SYSTEM_NETWORK_DIRECTION = - stringKey("system.network.direction"); - - /** A stateless protocol MUST NOT set this attribute */ - @Deprecated - public static final AttributeKey SYSTEM_NETWORK_STATE = stringKey("system.network.state"); - - /** - * The process state, e.g., Linux Process State - * Codes - */ - @Deprecated - public static final AttributeKey SYSTEM_PROCESSES_STATUS = - stringKey("system.processes.status"); - - /** - * The column number in {@code code.filepath} best representing the operation. It SHOULD point - * within the code unit named in {@code code.function}. - */ - @Deprecated public static final AttributeKey CODE_COLUMN = longKey("code.column"); - - /** - * The source code file name that identifies the code unit as uniquely as possible (preferably an - * absolute file path). - */ - @Deprecated public static final AttributeKey CODE_FILEPATH = stringKey("code.filepath"); - - /** - * The method or function name, or equivalent (usually rightmost part of the code unit's name). - */ - @Deprecated public static final AttributeKey CODE_FUNCTION = stringKey("code.function"); - - /** - * The line number in {@code code.filepath} best representing the operation. It SHOULD point - * within the code unit named in {@code code.function}. - */ - @Deprecated public static final AttributeKey CODE_LINENO = longKey("code.lineno"); - - /** - * The "namespace" within which {@code code.function} is defined. Usually the qualified - * class or module name, such that {@code code.namespace} + some separator + {@code code.function} - * form a unique identifier for the code unit. - */ - @Deprecated public static final AttributeKey CODE_NAMESPACE = stringKey("code.namespace"); - - /** - * Deprecated, use {@code http.request.method} instead. - * - * @deprecated Deprecated, use `http.request.method` instead. - */ - @Deprecated public static final AttributeKey HTTP_METHOD = stringKey("http.method"); - - /** - * Deprecated, use {@code http.request.header.content-length} instead. - * - * @deprecated Deprecated, use `http.request.header.content-length` instead. - */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_CONTENT_LENGTH = - longKey("http.request_content_length"); - - /** - * Deprecated, use {@code http.response.header.content-length} instead. - * - * @deprecated Deprecated, use `http.response.header.content-length` instead. - */ - @Deprecated - public static final AttributeKey HTTP_RESPONSE_CONTENT_LENGTH = - longKey("http.response_content_length"); - - /** - * Deprecated, use {@code url.scheme} instead. - * - * @deprecated Deprecated, use `url.scheme` instead. - */ - @Deprecated public static final AttributeKey HTTP_SCHEME = stringKey("http.scheme"); - - /** - * Deprecated, use {@code http.response.status_code} instead. - * - * @deprecated Deprecated, use `http.response.status_code` instead. - */ - @Deprecated public static final AttributeKey HTTP_STATUS_CODE = longKey("http.status_code"); - - /** - * Deprecated, use {@code url.path} and {@code url.query} instead. - * - * @deprecated Deprecated, use `url.path` and `url.query` instead. - */ - @Deprecated public static final AttributeKey HTTP_TARGET = stringKey("http.target"); - - /** - * Deprecated, use {@code url.full} instead. - * - * @deprecated Deprecated, use `url.full` instead. - */ - @Deprecated public static final AttributeKey HTTP_URL = stringKey("http.url"); - - /** - * Deprecated, use {@code server.address}. - * - * @deprecated Deprecated, use `server.address`. - */ - @Deprecated public static final AttributeKey NET_HOST_NAME = stringKey("net.host.name"); - - /** - * Deprecated, use {@code server.port}. - * - * @deprecated Deprecated, use `server.port`. - */ - @Deprecated public static final AttributeKey NET_HOST_PORT = longKey("net.host.port"); - - /** - * Deprecated, use {@code server.address} on client spans and {@code client.address} on server - * spans. - * - * @deprecated Deprecated, use `server.address` on client spans and `client.address` on server - * spans. - */ - @Deprecated public static final AttributeKey NET_PEER_NAME = stringKey("net.peer.name"); - - /** - * Deprecated, use {@code server.port} on client spans and {@code client.port} on server spans. - * - * @deprecated Deprecated, use `server.port` on client spans and `client.port` on server spans. - */ - @Deprecated public static final AttributeKey NET_PEER_PORT = longKey("net.peer.port"); - - /** - * Deprecated, use {@code network.protocol.name}. - * - * @deprecated Deprecated, use `network.protocol.name`. - */ - @Deprecated - public static final AttributeKey NET_PROTOCOL_NAME = stringKey("net.protocol.name"); - - /** - * Deprecated, use {@code network.protocol.version}. - * - * @deprecated Deprecated, use `network.protocol.version`. - */ - @Deprecated - public static final AttributeKey NET_PROTOCOL_VERSION = stringKey("net.protocol.version"); - - /** - * Deprecated, use {@code network.transport} and {@code network.type}. - * - * @deprecated Deprecated, use `network.transport` and `network.type`. - */ - @Deprecated - public static final AttributeKey NET_SOCK_FAMILY = stringKey("net.sock.family"); - - /** - * Deprecated, use {@code network.local.address}. - * - * @deprecated Deprecated, use `network.local.address`. - */ - @Deprecated - public static final AttributeKey NET_SOCK_HOST_ADDR = stringKey("net.sock.host.addr"); - - /** - * Deprecated, use {@code network.local.port}. - * - * @deprecated Deprecated, use `network.local.port`. - */ - @Deprecated - public static final AttributeKey NET_SOCK_HOST_PORT = longKey("net.sock.host.port"); - - /** - * Deprecated, use {@code network.peer.address}. - * - * @deprecated Deprecated, use `network.peer.address`. - */ - @Deprecated - public static final AttributeKey NET_SOCK_PEER_ADDR = stringKey("net.sock.peer.addr"); - - /** - * Deprecated, no replacement at this time. - * - * @deprecated Deprecated, no replacement at this time. - */ - @Deprecated - public static final AttributeKey NET_SOCK_PEER_NAME = stringKey("net.sock.peer.name"); - - /** - * Deprecated, use {@code network.peer.port}. - * - * @deprecated Deprecated, use `network.peer.port`. - */ - @Deprecated - public static final AttributeKey NET_SOCK_PEER_PORT = longKey("net.sock.peer.port"); - - /** - * Deprecated, use {@code network.transport}. - * - * @deprecated Deprecated, use `network.transport`. - */ - @Deprecated public static final AttributeKey NET_TRANSPORT = stringKey("net.transport"); - - /** - * 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. - */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_BODY_SIZE = longKey("http.request.body.size"); - - /** - * HTTP request method. - * - *

Notes: - * - *

    - *
  • HTTP request method value SHOULD be "known" to the instrumentation. By default, - * this convention defines "known" methods as the ones listed in RFC9110 and the PATCH - * method defined in RFC5789. - *
  • If the HTTP request method is not known to instrumentation, it MUST set the {@code - * http.request.method} attribute to {@code _OTHER}. - *
  • If the HTTP instrumentation could end up converting valid HTTP request methods to {@code - * _OTHER}, then it MUST provide a way to override the list of known HTTP methods. If this - * override is done via environment variable, then the environment variable MUST be named - * OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of - * case-sensitive known HTTP methods (this list MUST be a full override of the default known - * method, it is not a list of known methods in addition to the defaults). - *
  • HTTP method names are case-sensitive and {@code http.request.method} attribute value MUST - * match a known HTTP method name exactly. Instrumentations for specific web frameworks that - * consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. - * Tracing instrumentations that do so, MUST also set {@code http.request.method_original} - * to the original value. - *
- */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_METHOD = stringKey("http.request.method"); - - /** Original HTTP method sent by the client in the request line. */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_METHOD_ORIGINAL = - stringKey("http.request.method_original"); - - /** - * The ordinal number of request resending attempt (for any reason, including redirects). - * - *

Notes: - * - *

    - *
  • The resend count SHOULD be updated each time an HTTP request gets resent by the client, - * regardless of what was the cause of the resending (e.g. redirection, authorization - * failure, 503 Server Unavailable, network issues, or any other). - *
- */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_RESEND_COUNT = - longKey("http.request.resend_count"); - - /** - * 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. - */ - @Deprecated - public static final AttributeKey HTTP_RESPONSE_BODY_SIZE = - longKey("http.response.body.size"); - - /** HTTP response status code. */ - @Deprecated - public static final AttributeKey HTTP_RESPONSE_STATUS_CODE = - longKey("http.response.status_code"); - - /** - * The matched route, that is, the path template in the format used by the respective server - * framework. - * - *

Notes: - * - *

    - *
  • MUST NOT be populated when this is not supported by the HTTP server framework as the - * route attribute should have low-cardinality and the URI path can NOT substitute it. - * SHOULD include the application - * root if there is one. - *
- */ - @Deprecated public static final AttributeKey HTTP_ROUTE = stringKey("http.route"); - - /** - * The number of messages sent, received, or processed in the scope of the batching operation. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD NOT set {@code messaging.batch.message_count} on spans that - * operate with a single message. When a messaging client library supports both batch and - * single-message API for the same operation, instrumentations SHOULD use {@code - * messaging.batch.message_count} for batching APIs and SHOULD NOT use it for single-message - * APIs. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_BATCH_MESSAGE_COUNT = - longKey("messaging.batch.message_count"); - - /** A unique identifier for the client that consumes or produces a message. */ - @Deprecated - public static final AttributeKey MESSAGING_CLIENT_ID = stringKey("messaging.client_id"); - - /** - * A boolean that is true if the message destination is anonymous (could be unnamed or have - * auto-generated name). - */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_ANONYMOUS = - booleanKey("messaging.destination.anonymous"); - - /** - * The message destination name - * - *

Notes: - * - *

    - *
  • Destination name SHOULD uniquely identify a specific queue, topic or other entity within - * the broker. If the broker doesn't have such notion, the destination name SHOULD uniquely - * identify the broker. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_NAME = - stringKey("messaging.destination.name"); - - /** - * Low cardinality representation of the messaging destination name - * - *

Notes: - * - *

    - *
  • Destination names could be constructed from templates. An example would be a destination - * name involving a user name or product id. Although the destination name in this case is - * of high cardinality, the underlying template is of low cardinality and can be effectively - * used for grouping and aggregation. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_TEMPLATE = - stringKey("messaging.destination.template"); - - /** - * A boolean that is true if the message destination is temporary and might not exist anymore - * after messages are processed. - */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_TEMPORARY = - booleanKey("messaging.destination.temporary"); - - /** - * A boolean that is true if the publish message destination is anonymous (could be unnamed or - * have auto-generated name). - */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_PUBLISH_ANONYMOUS = - booleanKey("messaging.destination_publish.anonymous"); - - /** - * The name of the original destination the message was published to - * - *

Notes: - * - *

    - *
  • The name SHOULD uniquely identify a specific queue, topic, or other entity within the - * broker. If the broker doesn't have such notion, the original destination name SHOULD - * uniquely identify the broker. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_PUBLISH_NAME = - stringKey("messaging.destination_publish.name"); - - /** - * Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not - * producers. - */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_CONSUMER_GROUP = - stringKey("messaging.kafka.consumer.group"); - - /** Partition the message is sent to. */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_DESTINATION_PARTITION = - longKey("messaging.kafka.destination.partition"); - - /** - * Message keys in Kafka are used for grouping alike messages to ensure they're processed on the - * same partition. They differ from {@code messaging.message.id} in that they're not unique. If - * the key is {@code null}, the attribute MUST NOT be set. - * - *

Notes: - * - *

    - *
  • 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 - public static final AttributeKey MESSAGING_KAFKA_MESSAGE_KEY = - stringKey("messaging.kafka.message.key"); - - /** The offset of a record in the corresponding Kafka partition. */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_MESSAGE_OFFSET = - longKey("messaging.kafka.message.offset"); - - /** A boolean that is true if the message is a tombstone. */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_MESSAGE_TOMBSTONE = - booleanKey("messaging.kafka.message.tombstone"); - - /** - * The size of the message body in bytes. - * - *

Notes: - * - *

    - *
  • This can refer to both the compressed or uncompressed body size. If both sizes are known, - * the uncompressed body size should be used. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_BODY_SIZE = - longKey("messaging.message.body.size"); - - /** - * The conversation ID identifying the conversation to which the message belongs, represented as a - * string. Sometimes called "Correlation ID". - */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_CONVERSATION_ID = - stringKey("messaging.message.conversation_id"); - - /** - * The size of the message body and metadata in bytes. - * - *

Notes: - * - *

    - *
  • This can refer to both the compressed or uncompressed size. If both sizes are known, the - * uncompressed size should be used. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_ENVELOPE_SIZE = - longKey("messaging.message.envelope.size"); - - /** - * A value used by the messaging system as an identifier for the message, represented as a string. - */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_ID = stringKey("messaging.message.id"); - - /** - * A string identifying the kind of messaging operation. - * - *

Notes: - * - *

    - *
  • If a custom value is used, it MUST be of low cardinality. - *
- */ - @Deprecated - public static final AttributeKey MESSAGING_OPERATION = stringKey("messaging.operation"); - - /** RabbitMQ message routing key. */ - @Deprecated - public static final AttributeKey MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY = - stringKey("messaging.rabbitmq.destination.routing_key"); - - /** - * Name of the RocketMQ producer/consumer group that is handling the message. The client type is - * identified by the SpanKind. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_CLIENT_GROUP = - stringKey("messaging.rocketmq.client_group"); - - /** Model of message consumption. This only applies to consumer spans. */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_CONSUMPTION_MODEL = - stringKey("messaging.rocketmq.consumption_model"); - - /** The delay time level for delay message, which determines the message delay time. */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL = - longKey("messaging.rocketmq.message.delay_time_level"); - - /** - * The timestamp in milliseconds that the delay message is expected to be delivered to consumer. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP = - longKey("messaging.rocketmq.message.delivery_timestamp"); - - /** - * It is essential for FIFO message. Messages that belong to the same message group are always - * processed one by one within the same consumer group. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_MESSAGE_GROUP = - stringKey("messaging.rocketmq.message.group"); - - /** Key(s) of message, another way to mark message besides message id. */ - @Deprecated - public static final AttributeKey> MESSAGING_ROCKETMQ_MESSAGE_KEYS = - stringArrayKey("messaging.rocketmq.message.keys"); - - /** The secondary classifier of message besides topic. */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_MESSAGE_TAG = - stringKey("messaging.rocketmq.message.tag"); - - /** Type of message. */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_MESSAGE_TYPE = - stringKey("messaging.rocketmq.message.type"); - - /** Namespace of RocketMQ resources, resources in different namespaces are individual. */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_NAMESPACE = - stringKey("messaging.rocketmq.namespace"); - - /** A string identifying the messaging system. */ - @Deprecated - public static final AttributeKey MESSAGING_SYSTEM = stringKey("messaging.system"); - - /** The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. */ - @Deprecated - public static final AttributeKey NETWORK_CARRIER_ICC = stringKey("network.carrier.icc"); - - /** The mobile carrier country code. */ - @Deprecated - public static final AttributeKey NETWORK_CARRIER_MCC = stringKey("network.carrier.mcc"); - - /** The mobile carrier network code. */ - @Deprecated - public static final AttributeKey NETWORK_CARRIER_MNC = stringKey("network.carrier.mnc"); - - /** The name of the mobile carrier. */ - @Deprecated - public static final AttributeKey NETWORK_CARRIER_NAME = stringKey("network.carrier.name"); - - /** - * 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. - */ - @Deprecated - public static final AttributeKey NETWORK_CONNECTION_SUBTYPE = - stringKey("network.connection.subtype"); - - /** The internet connection type. */ - @Deprecated - public static final AttributeKey NETWORK_CONNECTION_TYPE = - stringKey("network.connection.type"); - - /** Local address of the network connection - IP address or Unix domain socket name. */ - @Deprecated - public static final AttributeKey NETWORK_LOCAL_ADDRESS = - stringKey("network.local.address"); - - /** Local port number of the network connection. */ - @Deprecated - public static final AttributeKey NETWORK_LOCAL_PORT = longKey("network.local.port"); - - /** Peer address of the network connection - IP address or Unix domain socket name. */ - @Deprecated - public static final AttributeKey NETWORK_PEER_ADDRESS = stringKey("network.peer.address"); - - /** Peer port number of the network connection. */ - @Deprecated - public static final AttributeKey NETWORK_PEER_PORT = longKey("network.peer.port"); - - /** - * OSI application layer or non-OSI - * equivalent. - * - *

Notes: - * - *

    - *
  • The value SHOULD be normalized to lowercase. - *
- */ - @Deprecated - public static final AttributeKey NETWORK_PROTOCOL_NAME = - stringKey("network.protocol.name"); - - /** - * Version of the protocol specified in {@code network.protocol.name}. - * - *

Notes: - * - *

    - *
  • {@code network.protocol.version} refers to the version of the protocol used and might be - * different from the protocol client's version. If the HTTP client has a version of {@code - * 0.27.2}, but sends HTTP version {@code 1.1}, this attribute should be set to {@code 1.1}. - *
- */ - @Deprecated - public static final AttributeKey NETWORK_PROTOCOL_VERSION = - stringKey("network.protocol.version"); - - /** - * OSI transport layer or inter-process communication - * method. - * - *

Notes: - * - *

    - *
  • The value SHOULD be normalized to lowercase. - *
  • Consider always setting the transport when setting a port number, since a port number is - * ambiguous without knowing the transport. For example different processes could be - * listening on TCP port 12345 and UDP port 12345. - *
- */ - @Deprecated - public static final AttributeKey NETWORK_TRANSPORT = stringKey("network.transport"); - - /** - * OSI network layer or non-OSI equivalent. - * - *

Notes: - * - *

    - *
  • The value SHOULD be normalized to lowercase. - *
- */ - @Deprecated public static final AttributeKey NETWORK_TYPE = stringKey("network.type"); - - /** - * The error codes of the Connect - * request. Error codes are always string values. - */ - @Deprecated - public static final AttributeKey RPC_CONNECT_RPC_ERROR_CODE = - stringKey("rpc.connect_rpc.error_code"); - - /** - * The numeric status - * code of the gRPC request. - */ - @Deprecated - public static final AttributeKey RPC_GRPC_STATUS_CODE = longKey("rpc.grpc.status_code"); - - /** {@code error.code} property of response if it is an error response. */ - @Deprecated - public static final AttributeKey RPC_JSONRPC_ERROR_CODE = longKey("rpc.jsonrpc.error_code"); - - /** {@code error.message} property of response if it is an error response. */ - @Deprecated - public static final AttributeKey RPC_JSONRPC_ERROR_MESSAGE = - stringKey("rpc.jsonrpc.error_message"); - - /** - * {@code id} property of request or response. Since protocol allows id to be int, string, {@code - * null} or missing (for notifications), value is expected to be cast to string for simplicity. - * Use empty string in case of {@code null} value. Omit entirely if this is a notification. - */ - @Deprecated - public static final AttributeKey RPC_JSONRPC_REQUEST_ID = - stringKey("rpc.jsonrpc.request_id"); - - /** - * Protocol version as in {@code jsonrpc} property of request/response. Since JSON-RPC 1.0 doesn't - * specify this, the value can be omitted. - */ - @Deprecated - public static final AttributeKey RPC_JSONRPC_VERSION = stringKey("rpc.jsonrpc.version"); - - /** - * The name of the (logical) method being called, must be equal to the $method part in the span - * name. - * - *

Notes: - * - *

    - *
  • 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 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 public static final AttributeKey RPC_METHOD = stringKey("rpc.method"); - - /** - * The full (logical) name of the service being called, including its package name, if applicable. - * - *

Notes: - * - *

    - *
  • 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 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). - *
- */ - @Deprecated public static final AttributeKey RPC_SERVICE = stringKey("rpc.service"); - - /** A string identifying the remoting system. See below for a list of well-known identifiers. */ - @Deprecated public static final AttributeKey RPC_SYSTEM = stringKey("rpc.system"); - - /** Current "managed" thread ID (as opposed to OS thread ID). */ - @Deprecated public static final AttributeKey THREAD_ID = longKey("thread.id"); - - /** Current thread name. */ - @Deprecated public static final AttributeKey THREAD_NAME = stringKey("thread.name"); - - /** The URI fragment component */ - @Deprecated public static final AttributeKey URL_FRAGMENT = stringKey("url.fragment"); - - /** - * Absolute URL describing a network resource according to RFC3986 - * - *

Notes: - * - *

    - *
  • For network calls, URL usually has {@code scheme://host[:port][path][?query][#fragment]} - * format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be - * included nevertheless. {@code url.full} MUST NOT contain credentials passed via URL in - * form of {@code https://username:password@www.example.com/}. In such case username and - * password SHOULD be redacted and attribute's value SHOULD be {@code - * https://REDACTED:REDACTED@www.example.com/}. {@code url.full} SHOULD capture the absolute - * URL when it is available (or can be reconstructed) and SHOULD NOT be validated or - * modified except for sanitizing purposes. - *
- */ - @Deprecated public static final AttributeKey URL_FULL = stringKey("url.full"); - - /** The URI path component */ - @Deprecated public static final AttributeKey URL_PATH = stringKey("url.path"); - - /** - * The URI query component - * - *

Notes: - * - *

    - *
  • Sensitive content provided in query string SHOULD be scrubbed when instrumentations can - * identify it. - *
- */ - @Deprecated public static final AttributeKey URL_QUERY = stringKey("url.query"); - - /** - * The URI scheme component - * identifying the used protocol. - */ - @Deprecated public static final AttributeKey URL_SCHEME = stringKey("url.scheme"); - - /** - * Value of the HTTP - * User-Agent header sent by the client. - */ - @Deprecated - public static final AttributeKey USER_AGENT_ORIGINAL = stringKey("user_agent.original"); - - /** - * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix - * domain socket name. - * - *

Notes: - * - *

    - *
  • When observed from the client side, and when communicating through an intermediary, - * {@code server.address} SHOULD represent the server address behind any intermediaries, for - * example proxies, if it's available. - *
- */ - @Deprecated public static final AttributeKey SERVER_ADDRESS = stringKey("server.address"); - - /** - * Server port number. - * - *

Notes: - * - *

    - *
  • When observed from the client side, and when communicating through an intermediary, - * {@code server.port} SHOULD represent the server port behind any intermediaries, for - * example proxies, if it's available. - *
- */ - @Deprecated public static final AttributeKey SERVER_PORT = longKey("server.port"); - - /** A unique id to identify a session. */ - @Deprecated public static final AttributeKey SESSION_ID = stringKey("session.id"); - - /** The previous {@code session.id} for this user, when known. */ - @Deprecated - public static final AttributeKey SESSION_PREVIOUS_ID = stringKey("session.previous_id"); - - /** - * Source address - domain name if available without reverse DNS lookup; otherwise, IP address or - * Unix domain socket name. - * - *

Notes: - * - *

    - *
  • When observed from the destination side, and when communicating through an intermediary, - * {@code source.address} SHOULD represent the source address behind any intermediaries, for - * example proxies, if it's available. - *
- */ - @Deprecated public static final AttributeKey SOURCE_ADDRESS = stringKey("source.address"); - - /** Source port number */ - @Deprecated public static final AttributeKey SOURCE_PORT = longKey("source.port"); - - /** - * The full invoked ARN as provided on the {@code Context} passed to the function ({@code - * Lambda-Runtime-Invoked-Function-Arn} header on the {@code /runtime/invocation/next} - * applicable). - * - *

Notes: - * - *

    - *
  • This may be different from {@code cloud.resource_id} if an alias is involved. - *
- */ - @Deprecated - public static final AttributeKey AWS_LAMBDA_INVOKED_ARN = - stringKey("aws.lambda.invoked_arn"); - - /** - * The event_id - * uniquely identifies the event. - */ - @Deprecated - public static final AttributeKey CLOUDEVENTS_EVENT_ID = stringKey("cloudevents.event_id"); - - /** - * The source - * identifies the context in which an event happened. - */ - @Deprecated - public static final AttributeKey CLOUDEVENTS_EVENT_SOURCE = - stringKey("cloudevents.event_source"); - - /** - * The version - * of the CloudEvents specification which the event uses. - */ - @Deprecated - public static final AttributeKey CLOUDEVENTS_EVENT_SPEC_VERSION = - stringKey("cloudevents.event_spec_version"); - - /** - * The subject - * of the event in the context of the event producer (identified by source). - */ - @Deprecated - public static final AttributeKey CLOUDEVENTS_EVENT_SUBJECT = - stringKey("cloudevents.event_subject"); - - /** - * The event_type - * contains a value describing the type of event related to the originating occurrence. - */ - @Deprecated - public static final AttributeKey CLOUDEVENTS_EVENT_TYPE = - stringKey("cloudevents.event_type"); - - /** - * Parent-child Reference type - * - *

Notes: - * - *

    - *
  • The causal relationship between a child Span and a parent Span. - *
- */ - @Deprecated - public static final AttributeKey OPENTRACING_REF_TYPE = stringKey("opentracing.ref_type"); - - /** - * The connection string used to connect to the database. It is recommended to remove embedded - * credentials. - */ - @Deprecated - public static final AttributeKey DB_CONNECTION_STRING = stringKey("db.connection_string"); - - /** - * The fully-qualified class name of the Java Database Connectivity - * (JDBC) driver used to connect. - */ - @Deprecated - public static final AttributeKey DB_JDBC_DRIVER_CLASSNAME = - stringKey("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). - * - *

Notes: - * - *

    - *
  • 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). - *
- */ - @Deprecated public static final AttributeKey DB_NAME = stringKey("db.name"); - - /** - * The name of the operation being executed, e.g. the MongoDB command - * name such as {@code findAndModify}, or the SQL keyword. - * - *

Notes: - * - *

    - *
  • When setting this to an SQL keyword, it is not recommended to attempt any client-side - * parsing of {@code 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. - *
- */ - @Deprecated public static final AttributeKey DB_OPERATION = stringKey("db.operation"); - - /** The database statement being executed. */ - @Deprecated public static final AttributeKey DB_STATEMENT = stringKey("db.statement"); - - /** - * An identifier for the database management system (DBMS) product being used. See below for a - * list of well-known identifiers. - */ - @Deprecated public static final AttributeKey DB_SYSTEM = stringKey("db.system"); - - /** Username for accessing the database. */ - @Deprecated public static final AttributeKey DB_USER = stringKey("db.user"); - - /** - * The Microsoft SQL Server instance - * name connecting to. This name is used to determine the port of a named instance. - * - *

Notes: - * - *

    - *
  • If setting a {@code db.mssql.instance_name}, {@code server.port} is no longer required - * (but still recommended if non-standard). - *
- */ - @Deprecated - public static final AttributeKey DB_MSSQL_INSTANCE_NAME = - stringKey("db.mssql.instance_name"); - - /** - * The consistency level of the query. Based on consistency values from CQL. - */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_CONSISTENCY_LEVEL = - stringKey("db.cassandra.consistency_level"); - - /** The data center of the coordinating node for a query. */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_COORDINATOR_DC = - stringKey("db.cassandra.coordinator.dc"); - - /** The ID of the coordinating node for a query. */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_COORDINATOR_ID = - stringKey("db.cassandra.coordinator.id"); - - /** Whether or not the query is idempotent. */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_IDEMPOTENCE = - booleanKey("db.cassandra.idempotence"); - - /** The fetch size used for paging, i.e. how many rows will be returned at once. */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_PAGE_SIZE = longKey("db.cassandra.page_size"); - - /** - * The number of times a query was speculatively executed. Not set or {@code 0} if the query was - * not executed speculatively. - */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = - longKey("db.cassandra.speculative_execution_count"); - - /** - * The name of the primary table that the operation is acting upon, including the keyspace name - * (if applicable). - * - *

Notes: - * - *

    - *
  • This mirrors the db.sql.table attribute but references cassandra rather than sql. It is - * not recommended to attempt any client-side parsing of {@code 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 - public static final AttributeKey DB_CASSANDRA_TABLE = stringKey("db.cassandra.table"); - - /** - * The index of the database being accessed as used in the {@code SELECT} command, provided as an integer. To - * be used instead of the generic {@code db.name} attribute. - */ - @Deprecated - public static final AttributeKey DB_REDIS_DATABASE_INDEX = - longKey("db.redis.database_index"); - - /** The collection being accessed within the database stated in {@code db.name}. */ - @Deprecated - public static final AttributeKey DB_MONGODB_COLLECTION = - stringKey("db.mongodb.collection"); - - /** Represents the identifier of an Elasticsearch cluster. */ - @Deprecated - public static final AttributeKey DB_ELASTICSEARCH_CLUSTER_NAME = - stringKey("db.elasticsearch.cluster.name"); - - /** - * Represents the human-readable identifier of the node/instance to which a request was routed. - */ - @Deprecated - public static final AttributeKey DB_ELASTICSEARCH_NODE_NAME = - stringKey("db.elasticsearch.node.name"); - - /** - * The name of the primary table that the operation is acting upon, including the database name - * (if applicable). - * - *

Notes: - * - *

    - *
  • It is not recommended to attempt any client-side parsing of {@code 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 public static final AttributeKey DB_SQL_TABLE = stringKey("db.sql.table"); - - /** Unique Cosmos client instance id. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_CLIENT_ID = - stringKey("db.cosmosdb.client_id"); - - /** Cosmos client connection mode. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_CONNECTION_MODE = - stringKey("db.cosmosdb.connection_mode"); - - /** Cosmos DB container name. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_CONTAINER = - stringKey("db.cosmosdb.container"); - - /** CosmosDB Operation Type. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_OPERATION_TYPE = - stringKey("db.cosmosdb.operation_type"); - - /** RU consumed for that operation */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_REQUEST_CHARGE = - doubleKey("db.cosmosdb.request_charge"); - - /** Request payload size in bytes */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_REQUEST_CONTENT_LENGTH = - longKey("db.cosmosdb.request_content_length"); - - /** Cosmos DB status code. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_STATUS_CODE = - longKey("db.cosmosdb.status_code"); - - /** Cosmos DB sub status code. */ - @Deprecated - public static final AttributeKey DB_COSMOSDB_SUB_STATUS_CODE = - longKey("db.cosmosdb.sub_status_code"); - - /** - * Name of the code, either "OK" or "ERROR". MUST NOT be set if the status - * code is UNSET. - */ - @Deprecated - public static final AttributeKey OTEL_STATUS_CODE = stringKey("otel.status_code"); - - /** Description of the Status if it has a value, otherwise not set. */ - @Deprecated - public static final AttributeKey OTEL_STATUS_DESCRIPTION = - stringKey("otel.status_description"); - - /** The invocation ID of the current function invocation. */ - @Deprecated - public static final AttributeKey FAAS_INVOCATION_ID = stringKey("faas.invocation_id"); - - /** - * 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. - */ - @Deprecated - public static final AttributeKey FAAS_DOCUMENT_COLLECTION = - stringKey("faas.document.collection"); - - /** - * 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. - */ - @Deprecated - public static final AttributeKey FAAS_DOCUMENT_NAME = stringKey("faas.document.name"); - - /** Describes the type of the operation that was performed on the data. */ - @Deprecated - public static final AttributeKey FAAS_DOCUMENT_OPERATION = - stringKey("faas.document.operation"); - - /** - * A string containing the time when the data was accessed in the ISO 8601 format expressed in - * UTC. - */ - @Deprecated - public static final AttributeKey FAAS_DOCUMENT_TIME = stringKey("faas.document.time"); - - /** - * A string containing the schedule period as Cron - * Expression. - */ - @Deprecated public static final AttributeKey FAAS_CRON = stringKey("faas.cron"); - - /** - * A string containing the function invocation time in the ISO 8601 format expressed in - * UTC. - */ - @Deprecated public static final AttributeKey FAAS_TIME = stringKey("faas.time"); - - /** - * A boolean that is true if the serverless function is executed for the first time (aka - * cold-start). - */ - @Deprecated - public static final AttributeKey FAAS_COLDSTART = booleanKey("faas.coldstart"); - - /** The unique identifier of the feature flag. */ - @Deprecated - public static final AttributeKey FEATURE_FLAG_KEY = stringKey("feature_flag.key"); - - /** The name of the service provider that performs the flag evaluation. */ - @Deprecated - public static final AttributeKey FEATURE_FLAG_PROVIDER_NAME = - stringKey("feature_flag.provider_name"); - - /** - * SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of - * the value can be used. - * - *

Notes: - * - *

    - *
  • A semantic identifier, commonly referred to as a variant, provides a means for referring - * to a value without including the value itself. This can provide additional context for - * understanding the meaning behind a value. For example, the variant {@code red} maybe be - * used for the value {@code #c05543}. - *
  • A stringified version of the value can be used in situations where a semantic identifier - * is unavailable. String representation of the value should be determined by the - * implementer. - *
- */ - @Deprecated - public static final AttributeKey FEATURE_FLAG_VARIANT = stringKey("feature_flag.variant"); - - /** - * The AWS request ID as returned in the response headers {@code x-amz-request-id} or {@code - * x-amz-requestid}. - */ - @Deprecated public static final AttributeKey AWS_REQUEST_ID = stringKey("aws.request_id"); - - /** The value of the {@code AttributesToGet} request parameter. */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_ATTRIBUTES_TO_GET = - stringArrayKey("aws.dynamodb.attributes_to_get"); - - /** The value of the {@code ConsistentRead} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_CONSISTENT_READ = - booleanKey("aws.dynamodb.consistent_read"); - - /** The JSON-serialized value of each item in the {@code ConsumedCapacity} response field. */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_CONSUMED_CAPACITY = - stringArrayKey("aws.dynamodb.consumed_capacity"); - - /** The value of the {@code IndexName} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_INDEX_NAME = - stringKey("aws.dynamodb.index_name"); - - /** The JSON-serialized value of the {@code ItemCollectionMetrics} response field. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_ITEM_COLLECTION_METRICS = - stringKey("aws.dynamodb.item_collection_metrics"); - - /** The value of the {@code Limit} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_LIMIT = longKey("aws.dynamodb.limit"); - - /** The value of the {@code ProjectionExpression} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_PROJECTION = - stringKey("aws.dynamodb.projection"); - - /** The value of the {@code ProvisionedThroughput.ReadCapacityUnits} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = - doubleKey("aws.dynamodb.provisioned_read_capacity"); - - /** The value of the {@code ProvisionedThroughput.WriteCapacityUnits} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = - doubleKey("aws.dynamodb.provisioned_write_capacity"); - - /** The value of the {@code Select} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_SELECT = stringKey("aws.dynamodb.select"); - - /** The keys in the {@code RequestItems} object field. */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_TABLE_NAMES = - stringArrayKey("aws.dynamodb.table_names"); - - /** The JSON-serialized value of each item of the {@code GlobalSecondaryIndexes} request field */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = - stringArrayKey("aws.dynamodb.global_secondary_indexes"); - - /** The JSON-serialized value of each item of the {@code LocalSecondaryIndexes} request field. */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = - stringArrayKey("aws.dynamodb.local_secondary_indexes"); - - /** The value of the {@code ExclusiveStartTableName} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_EXCLUSIVE_START_TABLE = - stringKey("aws.dynamodb.exclusive_start_table"); - - /** The the number of items in the {@code TableNames} response parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_TABLE_COUNT = - longKey("aws.dynamodb.table_count"); - - /** The value of the {@code ScanIndexForward} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_SCAN_FORWARD = - booleanKey("aws.dynamodb.scan_forward"); - - /** The value of the {@code Count} response parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_COUNT = longKey("aws.dynamodb.count"); - - /** The value of the {@code ScannedCount} response parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_SCANNED_COUNT = - longKey("aws.dynamodb.scanned_count"); - - /** The value of the {@code Segment} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_SEGMENT = longKey("aws.dynamodb.segment"); - - /** The value of the {@code TotalSegments} request parameter. */ - @Deprecated - public static final AttributeKey AWS_DYNAMODB_TOTAL_SEGMENTS = - longKey("aws.dynamodb.total_segments"); - - /** The JSON-serialized value of each item in the {@code AttributeDefinitions} request field. */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = - stringArrayKey("aws.dynamodb.attribute_definitions"); - - /** - * The JSON-serialized value of each item in the the {@code GlobalSecondaryIndexUpdates} request - * field. - */ - @Deprecated - public static final AttributeKey> AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = - stringArrayKey("aws.dynamodb.global_secondary_index_updates"); - - /** - * The S3 bucket name the request refers to. Corresponds to the {@code --bucket} parameter of the - * S3 API - * operations. - * - *

Notes: - * - *

    - *
  • The {@code bucket} attribute is applicable to all S3 operations that reference a bucket, - * i.e. that require the bucket name as a mandatory parameter. This applies to almost all S3 - * operations except {@code list-buckets}. - *
- */ - @Deprecated public static final AttributeKey AWS_S3_BUCKET = stringKey("aws.s3.bucket"); - - /** - * The source object (in the form {@code bucket}/{@code key}) for the copy operation. - * - *

Notes: - * - *

- */ - @Deprecated - public static final AttributeKey AWS_S3_COPY_SOURCE = stringKey("aws.s3.copy_source"); - - /** - * The delete request container that specifies the objects to be deleted. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey AWS_S3_DELETE = stringKey("aws.s3.delete"); - - /** - * The S3 object key the request refers to. Corresponds to the {@code --key} parameter of the S3 API operations. - * - *

Notes: - * - *

- */ - @Deprecated public static final AttributeKey AWS_S3_KEY = stringKey("aws.s3.key"); - - /** - * The part number of the part being uploaded in a multipart-upload operation. This is a positive - * integer between 1 and 10,000. - * - *

Notes: - * - *

- */ - @Deprecated - public static final AttributeKey AWS_S3_PART_NUMBER = longKey("aws.s3.part_number"); - - /** - * Upload ID that identifies the multipart upload. - * - *

Notes: - * - *

- */ - @Deprecated - public static final AttributeKey AWS_S3_UPLOAD_ID = stringKey("aws.s3.upload_id"); - - /** - * The GraphQL document being executed. - * - *

Notes: - * - *

    - *
  • The value may be sanitized to exclude sensitive information. - *
- */ - @Deprecated - public static final AttributeKey GRAPHQL_DOCUMENT = stringKey("graphql.document"); - - /** The name of the operation being executed. */ - @Deprecated - public static final AttributeKey GRAPHQL_OPERATION_NAME = - stringKey("graphql.operation.name"); - - /** The type of the operation being executed. */ - @Deprecated - public static final AttributeKey GRAPHQL_OPERATION_TYPE = - stringKey("graphql.operation.type"); - - /** Compressed size of the message in bytes. */ - @Deprecated - public static final AttributeKey MESSAGE_COMPRESSED_SIZE = - longKey("message.compressed_size"); - - /** - * MUST be calculated as two different counters starting from {@code 1} one for sent messages and - * one for received message. - * - *

Notes: - * - *

    - *
  • This way we guarantee that the values will be consistent between different - * implementations. - *
- */ - @Deprecated public static final AttributeKey MESSAGE_ID = longKey("message.id"); - - /** Whether this is a received or sent message. */ - @Deprecated public static final AttributeKey MESSAGE_TYPE = stringKey("message.type"); - - /** Uncompressed size of the message in bytes. */ - @Deprecated - public static final AttributeKey MESSAGE_UNCOMPRESSED_SIZE = - longKey("message.uncompressed_size"); - - /** - * 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. - * - *

Notes: - * - *

    - *
  • 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 {@code __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 {@code - * 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 - public static final AttributeKey EXCEPTION_ESCAPED = booleanKey("exception.escaped"); - - /** - * HTTP request headers, {@code } being the normalized HTTP Header name (lowercase), the - * value being the header values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which headers are to be - * captured. Including all request headers can be a security risk - explicit configuration - * helps avoid leaking sensitive information. The {@code User-Agent} header is already - * captured in the {@code user_agent.original} attribute. Users MAY explicitly configure - * instrumentations to capture them even though it is not recommended. The attribute value - * MUST consist of either multiple header values as an array of strings or a single-item - * array containing a possibly comma-concatenated string, depending on the way the HTTP - * library provides access to headers. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> HTTP_REQUEST_HEADER = - stringArrayKeyTemplate("http.request.header"); - - /** - * HTTP response headers, {@code } being the normalized HTTP Header name (lowercase), the - * value being the header values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which headers are to be - * captured. Including all response headers can be a security risk - explicit configuration - * helps avoid leaking sensitive information. Users MAY explicitly configure - * instrumentations to capture them even though it is not recommended. The attribute value - * MUST consist of either multiple header values as an array of strings or a single-item - * array containing a possibly comma-concatenated string, depending on the way the HTTP - * library provides access to headers. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> HTTP_RESPONSE_HEADER = - stringArrayKeyTemplate("http.response.header"); - - /** - * Connect request metadata, {@code } being the normalized Connect Metadata key (lowercase), - * the value being the metadata values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which metadata values are to - * be captured. Including all request metadata values can be a security risk - explicit - * configuration helps avoid leaking sensitive information. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> RPC_CONNECT_RPC_REQUEST_METADATA = - stringArrayKeyTemplate("rpc.connect_rpc.request.metadata"); - - /** - * Connect response metadata, {@code } being the normalized Connect Metadata key (lowercase), - * the value being the metadata values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which metadata values are to - * be captured. Including all response metadata values can be a security risk - explicit - * configuration helps avoid leaking sensitive information. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> RPC_CONNECT_RPC_RESPONSE_METADATA = - stringArrayKeyTemplate("rpc.connect_rpc.response.metadata"); - - /** - * gRPC request metadata, {@code } being the normalized gRPC Metadata key (lowercase), the - * value being the metadata values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which metadata values are to - * be captured. Including all request metadata values can be a security risk - explicit - * configuration helps avoid leaking sensitive information. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> RPC_GRPC_REQUEST_METADATA = - stringArrayKeyTemplate("rpc.grpc.request.metadata"); - - /** - * gRPC response metadata, {@code } being the normalized gRPC Metadata key (lowercase), the - * value being the metadata values. - * - *

Notes: - * - *

    - *
  • Instrumentations SHOULD require an explicit configuration of which metadata values are to - * be captured. Including all response metadata values can be a security risk - explicit - * configuration helps avoid leaking sensitive information. - *
- */ - @Deprecated - public static final AttributeKeyTemplate> RPC_GRPC_RESPONSE_METADATA = - stringArrayKeyTemplate("rpc.grpc.response.metadata"); - - /** - * A dynamic value in the url path. - * - *

Notes: - * - *

    - *
  • Many Elasticsearch url paths allow dynamic values. These SHOULD be recorded in span - * attributes in the format {@code db.elasticsearch.path_parts.}, where {@code } - * is the url path part name. The implementation SHOULD reference the elasticsearch - * schema in order to map the path part values to their names. - *
- */ - @Deprecated - public static final AttributeKeyTemplate DB_ELASTICSEARCH_PATH_PARTS = - stringKeyTemplate("db.elasticsearch.path_parts"); - - // Enum definitions - @Deprecated - public static final class ErrorTypeValues { - /** - * A fallback error value to be used when the instrumentation doesn't define a custom value. - */ - @Deprecated public static final String OTHER = "_OTHER"; - - private ErrorTypeValues() {} - } - - @Deprecated - public static final class FaasInvokedProviderValues { - /** Alibaba Cloud. */ - @Deprecated public static final String ALIBABA_CLOUD = "alibaba_cloud"; - - /** Amazon Web Services. */ - @Deprecated public static final String AWS = "aws"; - - /** Microsoft Azure. */ - @Deprecated public static final String AZURE = "azure"; - - /** Google Cloud Platform. */ - @Deprecated public static final String GCP = "gcp"; - - /** Tencent Cloud. */ - @Deprecated public static final String TENCENT_CLOUD = "tencent_cloud"; - - private FaasInvokedProviderValues() {} - } - - @Deprecated - public static final class FaasTriggerValues { - /** A response to some data source operation such as a database or filesystem read/write. */ - @Deprecated public static final String DATASOURCE = "datasource"; - - /** To provide an answer to an inbound HTTP request. */ - @Deprecated public static final String HTTP = "http"; - - /** A function is set to be executed when messages are sent to a messaging system. */ - @Deprecated public static final String PUBSUB = "pubsub"; - - /** A function is scheduled to be executed regularly. */ - @Deprecated public static final String TIMER = "timer"; - - /** If none of the others apply. */ - @Deprecated public static final String OTHER = "other"; - - private FaasTriggerValues() {} - } - - @Deprecated - public static final class EventDomainValues { - /** Events from browser apps. */ - @Deprecated public static final String BROWSER = "browser"; - - /** Events from mobile apps. */ - @Deprecated public static final String DEVICE = "device"; - - /** Events from Kubernetes. */ - @Deprecated public static final String K8S = "k8s"; - - private EventDomainValues() {} - } - - @Deprecated - public static final class LogIostreamValues { - /** Logs from stdout stream. */ - @Deprecated public static final String STDOUT = "stdout"; - - /** Events from stderr stream. */ - @Deprecated public static final String STDERR = "stderr"; - - private LogIostreamValues() {} - } - - @Deprecated - public static final class IosStateValues { - /** - * The app has become `active`. Associated with UIKit notification `applicationDidBecomeActive`. - */ - @Deprecated public static final String ACTIVE = "active"; - - /** - * The app is now `inactive`. Associated with UIKit notification `applicationWillResignActive`. - */ - @Deprecated public static final String INACTIVE = "inactive"; - - /** - * The app is now in the background. This value is associated with UIKit notification - * `applicationDidEnterBackground`. - */ - @Deprecated public static final String BACKGROUND = "background"; - - /** - * The app is now in the foreground. This value is associated with UIKit notification - * `applicationWillEnterForeground`. - */ - @Deprecated public static final String FOREGROUND = "foreground"; - - /** - * The app is about to terminate. Associated with UIKit notification `applicationWillTerminate`. - */ - @Deprecated public static final String TERMINATE = "terminate"; - - private IosStateValues() {} - } - - @Deprecated - public static final class AndroidStateValues { - /** - * Any time before Activity.onResume() or, if the app has no Activity, Context.startService() - * has been called in the app for the first time. - */ - @Deprecated public static final String CREATED = "created"; - - /** - * Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has - * been called when the app was in the foreground state. - */ - @Deprecated public static final String BACKGROUND = "background"; - - /** - * Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has - * been called when the app was in either the created or background states. - */ - @Deprecated public static final String FOREGROUND = "foreground"; - - private AndroidStateValues() {} - } - - @Deprecated - public static final class StateValues { - /** idle. */ - @Deprecated public static final String IDLE = "idle"; - - /** used. */ - @Deprecated public static final String USED = "used"; - - private StateValues() {} - } - - @Deprecated - public static final class JvmMemoryTypeValues { - /** Heap memory. */ - @Deprecated public static final String HEAP = "heap"; - - /** Non-heap memory. */ - @Deprecated public static final String NON_HEAP = "non_heap"; - - private JvmMemoryTypeValues() {} - } - - @Deprecated - public static final class JvmThreadStateValues { - /** A thread that has not yet started is in this state. */ - @Deprecated public static final String NEW = "new"; - - /** A thread executing in the Java virtual machine is in this state. */ - @Deprecated public static final String RUNNABLE = "runnable"; - - /** A thread that is blocked waiting for a monitor lock is in this state. */ - @Deprecated public static final String BLOCKED = "blocked"; - - /** - * A thread that is waiting indefinitely for another thread to perform a particular action is in - * this state. - */ - @Deprecated public static final String WAITING = "waiting"; - - /** - * A thread that is waiting for another thread to perform an action for up to a specified - * waiting time is in this state. - */ - @Deprecated public static final String TIMED_WAITING = "timed_waiting"; - - /** A thread that has exited is in this state. */ - @Deprecated public static final String TERMINATED = "terminated"; - - private JvmThreadStateValues() {} - } - - @Deprecated - public static final class SystemCpuStateValues { - /** user. */ - @Deprecated public static final String USER = "user"; - - /** system. */ - @Deprecated public static final String SYSTEM = "system"; - - /** nice. */ - @Deprecated public static final String NICE = "nice"; - - /** idle. */ - @Deprecated public static final String IDLE = "idle"; - - /** iowait. */ - @Deprecated public static final String IOWAIT = "iowait"; - - /** interrupt. */ - @Deprecated public static final String INTERRUPT = "interrupt"; - - /** steal. */ - @Deprecated public static final String STEAL = "steal"; - - private SystemCpuStateValues() {} - } - - @Deprecated - public static final class SystemMemoryStateValues { - /** used. */ - @Deprecated public static final String USED = "used"; - - /** free. */ - @Deprecated public static final String FREE = "free"; - - /** shared. */ - @Deprecated public static final String SHARED = "shared"; - - /** buffers. */ - @Deprecated public static final String BUFFERS = "buffers"; - - /** cached. */ - @Deprecated public static final String CACHED = "cached"; - - /** - * total. - * - * @deprecated this value has been removed as of 1.23.1 of the semantic conventions. - */ - @Deprecated public static final String TOTAL = "total"; - - private SystemMemoryStateValues() {} - } - - @Deprecated - public static final class SystemPagingDirectionValues { - /** in. */ - @Deprecated public static final String IN = "in"; - - /** out. */ - @Deprecated public static final String OUT = "out"; - - private SystemPagingDirectionValues() {} - } - - @Deprecated - public static final class SystemPagingStateValues { - /** used. */ - @Deprecated public static final String USED = "used"; - - /** free. */ - @Deprecated public static final String FREE = "free"; - - private SystemPagingStateValues() {} - } - - @Deprecated - public static final class SystemPagingTypeValues { - /** major. */ - @Deprecated public static final String MAJOR = "major"; - - /** minor. */ - @Deprecated public static final String MINOR = "minor"; - - private SystemPagingTypeValues() {} - } - - @Deprecated - public static final class SystemDiskDirectionValues { - /** read. */ - @Deprecated public static final String READ = "read"; - - /** write. */ - @Deprecated public static final String WRITE = "write"; - - private SystemDiskDirectionValues() {} - } - - @Deprecated - public static final class SystemFilesystemStateValues { - /** used. */ - @Deprecated public static final String USED = "used"; - - /** free. */ - @Deprecated public static final String FREE = "free"; - - /** reserved. */ - @Deprecated public static final String RESERVED = "reserved"; - - private SystemFilesystemStateValues() {} - } - - @Deprecated - public static final class SystemFilesystemTypeValues { - /** fat32. */ - @Deprecated public static final String FAT32 = "fat32"; - - /** exfat. */ - @Deprecated public static final String EXFAT = "exfat"; - - /** ntfs. */ - @Deprecated public static final String NTFS = "ntfs"; - - /** refs. */ - @Deprecated public static final String REFS = "refs"; - - /** hfsplus. */ - @Deprecated public static final String HFSPLUS = "hfsplus"; - - /** ext4. */ - @Deprecated public static final String EXT4 = "ext4"; - - private SystemFilesystemTypeValues() {} - } - - @Deprecated - public static final class SystemNetworkDirectionValues { - /** transmit. */ - @Deprecated public static final String TRANSMIT = "transmit"; - - /** receive. */ - @Deprecated public static final String RECEIVE = "receive"; - - private SystemNetworkDirectionValues() {} - } - - @Deprecated - public static final class SystemNetworkStateValues { - /** close. */ - @Deprecated public static final String CLOSE = "close"; - - /** close_wait. */ - @Deprecated public static final String CLOSE_WAIT = "close_wait"; - - /** closing. */ - @Deprecated public static final String CLOSING = "closing"; - - /** delete. */ - @Deprecated public static final String DELETE = "delete"; - - /** established. */ - @Deprecated public static final String ESTABLISHED = "established"; - - /** fin_wait_1. */ - @Deprecated public static final String FIN_WAIT_1 = "fin_wait_1"; - - /** fin_wait_2. */ - @Deprecated public static final String FIN_WAIT_2 = "fin_wait_2"; - - /** last_ack. */ - @Deprecated public static final String LAST_ACK = "last_ack"; - - /** listen. */ - @Deprecated public static final String LISTEN = "listen"; - - /** syn_recv. */ - @Deprecated public static final String SYN_RECV = "syn_recv"; - - /** syn_sent. */ - @Deprecated public static final String SYN_SENT = "syn_sent"; - - /** time_wait. */ - @Deprecated public static final String TIME_WAIT = "time_wait"; - - private SystemNetworkStateValues() {} - } - - @Deprecated - public static final class SystemProcessesStatusValues { - /** running. */ - @Deprecated public static final String RUNNING = "running"; - - /** sleeping. */ - @Deprecated public static final String SLEEPING = "sleeping"; - - /** stopped. */ - @Deprecated public static final String STOPPED = "stopped"; - - /** defunct. */ - @Deprecated public static final String DEFUNCT = "defunct"; - - private SystemProcessesStatusValues() {} - } - - @Deprecated - public static final class NetSockFamilyValues { - /** IPv4 address. */ - @Deprecated public static final String INET = "inet"; - - /** IPv6 address. */ - @Deprecated public static final String INET6 = "inet6"; - - /** Unix domain socket path. */ - @Deprecated public static final String UNIX = "unix"; - - private NetSockFamilyValues() {} - } - - @Deprecated - public static final class NetTransportValues { - /** ip_tcp. */ - @Deprecated public static final String IP_TCP = "ip_tcp"; - - /** ip_udp. */ - @Deprecated public static final String IP_UDP = "ip_udp"; - - /** Named or anonymous pipe. */ - @Deprecated public static final String PIPE = "pipe"; - - /** In-process communication. */ - @Deprecated public static final String INPROC = "inproc"; - - /** Something else (non IP-based). */ - @Deprecated public static final String OTHER = "other"; - - private NetTransportValues() {} - } - - @Deprecated - public static final class HttpRequestMethodValues { - /** CONNECT method. */ - @Deprecated public static final String CONNECT = "CONNECT"; - - /** DELETE method. */ - @Deprecated public static final String DELETE = "DELETE"; - - /** GET method. */ - @Deprecated public static final String GET = "GET"; - - /** HEAD method. */ - @Deprecated public static final String HEAD = "HEAD"; - - /** OPTIONS method. */ - @Deprecated public static final String OPTIONS = "OPTIONS"; - - /** PATCH method. */ - @Deprecated public static final String PATCH = "PATCH"; - - /** POST method. */ - @Deprecated public static final String POST = "POST"; - - /** PUT method. */ - @Deprecated public static final String PUT = "PUT"; - - /** TRACE method. */ - @Deprecated public static final String TRACE = "TRACE"; - - /** Any HTTP method that the instrumentation has no prior knowledge of. */ - @Deprecated public static final String OTHER = "_OTHER"; - - private HttpRequestMethodValues() {} - } - - @Deprecated - public static final class MessagingOperationValues { - /** - * One or more messages are provided for publishing to an intermediary. If a single message is - * published, the context of the "Publish" span can be used as the creation context and - * no "Create" span needs to be created. - */ - @Deprecated public static final String PUBLISH = "publish"; - - /** - * A message is created. "Create" spans always refer to a single message and are used to - * provide a unique creation context for messages in batch publishing scenarios. - */ - @Deprecated public static final String CREATE = "create"; - - /** - * One or more messages are requested by a consumer. This operation refers to pull-based - * scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. - */ - @Deprecated public static final String RECEIVE = "receive"; - - /** - * One or more messages are passed to a consumer. This operation refers to push-based scenarios, - * where consumer register callbacks which get called by messaging SDKs. - */ - @Deprecated public static final String DELIVER = "deliver"; - - /** - * process. - * - * @deprecated this value has been removed as of 1.23.1 of the semantic conventions. - */ - @Deprecated public static final String PROCESS = "process"; - - private MessagingOperationValues() {} - } - - @Deprecated - public static final class MessagingRocketmqConsumptionModelValues { - /** Clustering consumption model. */ - @Deprecated public static final String CLUSTERING = "clustering"; - - /** Broadcasting consumption model. */ - @Deprecated public static final String BROADCASTING = "broadcasting"; - - private MessagingRocketmqConsumptionModelValues() {} - } - - @Deprecated - public static final class MessagingRocketmqMessageTypeValues { - /** Normal message. */ - @Deprecated public static final String NORMAL = "normal"; - - /** FIFO message. */ - @Deprecated public static final String FIFO = "fifo"; - - /** Delay message. */ - @Deprecated public static final String DELAY = "delay"; - - /** Transaction message. */ - @Deprecated public static final String TRANSACTION = "transaction"; - - private MessagingRocketmqMessageTypeValues() {} - } - - @Deprecated - public static final class NetworkConnectionSubtypeValues { - /** GPRS. */ - @Deprecated public static final String GPRS = "gprs"; - - /** EDGE. */ - @Deprecated public static final String EDGE = "edge"; - - /** UMTS. */ - @Deprecated public static final String UMTS = "umts"; - - /** CDMA. */ - @Deprecated public static final String CDMA = "cdma"; - - /** EVDO Rel. 0. */ - @Deprecated public static final String EVDO_0 = "evdo_0"; - - /** EVDO Rev. A. */ - @Deprecated public static final String EVDO_A = "evdo_a"; - - /** CDMA2000 1XRTT. */ - @Deprecated public static final String CDMA2000_1XRTT = "cdma2000_1xrtt"; - - /** HSDPA. */ - @Deprecated public static final String HSDPA = "hsdpa"; - - /** HSUPA. */ - @Deprecated public static final String HSUPA = "hsupa"; - - /** HSPA. */ - @Deprecated public static final String HSPA = "hspa"; - - /** IDEN. */ - @Deprecated public static final String IDEN = "iden"; - - /** EVDO Rev. B. */ - @Deprecated public static final String EVDO_B = "evdo_b"; - - /** LTE. */ - @Deprecated public static final String LTE = "lte"; - - /** EHRPD. */ - @Deprecated public static final String EHRPD = "ehrpd"; - - /** HSPAP. */ - @Deprecated public static final String HSPAP = "hspap"; - - /** GSM. */ - @Deprecated public static final String GSM = "gsm"; - - /** TD-SCDMA. */ - @Deprecated public static final String TD_SCDMA = "td_scdma"; - - /** IWLAN. */ - @Deprecated public static final String IWLAN = "iwlan"; - - /** 5G NR (New Radio). */ - @Deprecated public static final String NR = "nr"; - - /** 5G NRNSA (New Radio Non-Standalone). */ - @Deprecated public static final String NRNSA = "nrnsa"; - - /** LTE CA. */ - @Deprecated public static final String LTE_CA = "lte_ca"; - - private NetworkConnectionSubtypeValues() {} - } - - @Deprecated - public static final class NetworkConnectionTypeValues { - /** wifi. */ - @Deprecated public static final String WIFI = "wifi"; - - /** wired. */ - @Deprecated public static final String WIRED = "wired"; - - /** cell. */ - @Deprecated public static final String CELL = "cell"; - - /** unavailable. */ - @Deprecated public static final String UNAVAILABLE = "unavailable"; - - /** unknown. */ - @Deprecated public static final String UNKNOWN = "unknown"; - - private NetworkConnectionTypeValues() {} - } - - @Deprecated - public static final class NetworkTransportValues { - /** TCP. */ - @Deprecated public static final String TCP = "tcp"; - - /** UDP. */ - @Deprecated public static final String UDP = "udp"; - - /** Named or anonymous pipe. */ - @Deprecated public static final String PIPE = "pipe"; - - /** Unix domain socket. */ - @Deprecated public static final String UNIX = "unix"; - - private NetworkTransportValues() {} - } - - @Deprecated - public static final class NetworkTypeValues { - /** IPv4. */ - @Deprecated public static final String IPV4 = "ipv4"; - - /** IPv6. */ - @Deprecated public static final String IPV6 = "ipv6"; - - private NetworkTypeValues() {} - } - - @Deprecated - public static final class RpcConnectRpcErrorCodeValues { - /** cancelled. */ - @Deprecated public static final String CANCELLED = "cancelled"; - - /** unknown. */ - @Deprecated public static final String UNKNOWN = "unknown"; - - /** invalid_argument. */ - @Deprecated public static final String INVALID_ARGUMENT = "invalid_argument"; - - /** deadline_exceeded. */ - @Deprecated public static final String DEADLINE_EXCEEDED = "deadline_exceeded"; - - /** not_found. */ - @Deprecated public static final String NOT_FOUND = "not_found"; - - /** already_exists. */ - @Deprecated public static final String ALREADY_EXISTS = "already_exists"; - - /** permission_denied. */ - @Deprecated public static final String PERMISSION_DENIED = "permission_denied"; - - /** resource_exhausted. */ - @Deprecated public static final String RESOURCE_EXHAUSTED = "resource_exhausted"; - - /** failed_precondition. */ - @Deprecated public static final String FAILED_PRECONDITION = "failed_precondition"; - - /** aborted. */ - @Deprecated public static final String ABORTED = "aborted"; - - /** out_of_range. */ - @Deprecated public static final String OUT_OF_RANGE = "out_of_range"; - - /** unimplemented. */ - @Deprecated public static final String UNIMPLEMENTED = "unimplemented"; - - /** internal. */ - @Deprecated public static final String INTERNAL = "internal"; - - /** unavailable. */ - @Deprecated public static final String UNAVAILABLE = "unavailable"; - - /** data_loss. */ - @Deprecated public static final String DATA_LOSS = "data_loss"; - - /** unauthenticated. */ - @Deprecated public static final String UNAUTHENTICATED = "unauthenticated"; - - private RpcConnectRpcErrorCodeValues() {} - } - - @Deprecated - public static final class RpcGrpcStatusCodeValues { - /** OK. */ - @Deprecated public static final long OK = 0; - - /** CANCELLED. */ - @Deprecated public static final long CANCELLED = 1; - - /** UNKNOWN. */ - @Deprecated public static final long UNKNOWN = 2; - - /** INVALID_ARGUMENT. */ - @Deprecated public static final long INVALID_ARGUMENT = 3; - - /** DEADLINE_EXCEEDED. */ - @Deprecated public static final long DEADLINE_EXCEEDED = 4; - - /** NOT_FOUND. */ - @Deprecated public static final long NOT_FOUND = 5; - - /** ALREADY_EXISTS. */ - @Deprecated public static final long ALREADY_EXISTS = 6; - - /** PERMISSION_DENIED. */ - @Deprecated public static final long PERMISSION_DENIED = 7; - - /** RESOURCE_EXHAUSTED. */ - @Deprecated public static final long RESOURCE_EXHAUSTED = 8; - - /** FAILED_PRECONDITION. */ - @Deprecated public static final long FAILED_PRECONDITION = 9; - - /** ABORTED. */ - @Deprecated public static final long ABORTED = 10; - - /** OUT_OF_RANGE. */ - @Deprecated public static final long OUT_OF_RANGE = 11; - - /** UNIMPLEMENTED. */ - @Deprecated public static final long UNIMPLEMENTED = 12; - - /** INTERNAL. */ - @Deprecated public static final long INTERNAL = 13; - - /** UNAVAILABLE. */ - @Deprecated public static final long UNAVAILABLE = 14; - - /** DATA_LOSS. */ - @Deprecated public static final long DATA_LOSS = 15; - - /** UNAUTHENTICATED. */ - @Deprecated public static final long UNAUTHENTICATED = 16; - - private RpcGrpcStatusCodeValues() {} - } - - @Deprecated - public static final class RpcSystemValues { - /** gRPC. */ - @Deprecated public static final String GRPC = "grpc"; - - /** Java RMI. */ - @Deprecated public static final String JAVA_RMI = "java_rmi"; - - /** .NET WCF. */ - @Deprecated public static final String DOTNET_WCF = "dotnet_wcf"; - - /** Apache Dubbo. */ - @Deprecated public static final String APACHE_DUBBO = "apache_dubbo"; - - /** Connect RPC. */ - @Deprecated public static final String CONNECT_RPC = "connect_rpc"; - - private RpcSystemValues() {} - } - - @Deprecated - public static final class OpentracingRefTypeValues { - /** The parent Span depends on the child Span in some capacity. */ - @Deprecated public static final String CHILD_OF = "child_of"; - - /** The parent Span doesn't depend in any way on the result of the child Span. */ - @Deprecated public static final String FOLLOWS_FROM = "follows_from"; - - private OpentracingRefTypeValues() {} - } - - @Deprecated - public static final class DbSystemValues { - /** Some other SQL database. Fallback only. See notes. */ - @Deprecated public static final String OTHER_SQL = "other_sql"; - - /** Microsoft SQL Server. */ - @Deprecated public static final String MSSQL = "mssql"; - - /** Microsoft SQL Server Compact. */ - @Deprecated public static final String MSSQLCOMPACT = "mssqlcompact"; - - /** MySQL. */ - @Deprecated public static final String MYSQL = "mysql"; - - /** Oracle Database. */ - @Deprecated public static final String ORACLE = "oracle"; - - /** IBM Db2. */ - @Deprecated public static final String DB2 = "db2"; - - /** PostgreSQL. */ - @Deprecated public static final String POSTGRESQL = "postgresql"; - - /** Amazon Redshift. */ - @Deprecated public static final String REDSHIFT = "redshift"; - - /** Apache Hive. */ - @Deprecated public static final String HIVE = "hive"; - - /** Cloudscape. */ - @Deprecated public static final String CLOUDSCAPE = "cloudscape"; - - /** HyperSQL DataBase. */ - @Deprecated public static final String HSQLDB = "hsqldb"; - - /** Progress Database. */ - @Deprecated public static final String PROGRESS = "progress"; - - /** SAP MaxDB. */ - @Deprecated public static final String MAXDB = "maxdb"; - - /** SAP HANA. */ - @Deprecated public static final String HANADB = "hanadb"; - - /** Ingres. */ - @Deprecated public static final String INGRES = "ingres"; - - /** FirstSQL. */ - @Deprecated public static final String FIRSTSQL = "firstsql"; - - /** EnterpriseDB. */ - @Deprecated public static final String EDB = "edb"; - - /** InterSystems Caché. */ - @Deprecated public static final String CACHE = "cache"; - - /** Adabas (Adaptable Database System). */ - @Deprecated public static final String ADABAS = "adabas"; - - /** Firebird. */ - @Deprecated public static final String FIREBIRD = "firebird"; - - /** Apache Derby. */ - @Deprecated public static final String DERBY = "derby"; - - /** FileMaker. */ - @Deprecated public static final String FILEMAKER = "filemaker"; - - /** Informix. */ - @Deprecated public static final String INFORMIX = "informix"; - - /** InstantDB. */ - @Deprecated public static final String INSTANTDB = "instantdb"; - - /** InterBase. */ - @Deprecated public static final String INTERBASE = "interbase"; - - /** MariaDB. */ - @Deprecated public static final String MARIADB = "mariadb"; - - /** Netezza. */ - @Deprecated public static final String NETEZZA = "netezza"; - - /** Pervasive PSQL. */ - @Deprecated public static final String PERVASIVE = "pervasive"; - - /** PointBase. */ - @Deprecated public static final String POINTBASE = "pointbase"; - - /** SQLite. */ - @Deprecated public static final String SQLITE = "sqlite"; - - /** Sybase. */ - @Deprecated public static final String SYBASE = "sybase"; - - /** Teradata. */ - @Deprecated public static final String TERADATA = "teradata"; - - /** Vertica. */ - @Deprecated public static final String VERTICA = "vertica"; - - /** H2. */ - @Deprecated public static final String H2 = "h2"; - - /** ColdFusion IMQ. */ - @Deprecated public static final String COLDFUSION = "coldfusion"; - - /** Apache Cassandra. */ - @Deprecated public static final String CASSANDRA = "cassandra"; - - /** Apache HBase. */ - @Deprecated public static final String HBASE = "hbase"; - - /** MongoDB. */ - @Deprecated public static final String MONGODB = "mongodb"; - - /** Redis. */ - @Deprecated public static final String REDIS = "redis"; - - /** Couchbase. */ - @Deprecated public static final String COUCHBASE = "couchbase"; - - /** CouchDB. */ - @Deprecated public static final String COUCHDB = "couchdb"; - - /** Microsoft Azure Cosmos DB. */ - @Deprecated public static final String COSMOSDB = "cosmosdb"; - - /** Amazon DynamoDB. */ - @Deprecated public static final String DYNAMODB = "dynamodb"; - - /** Neo4j. */ - @Deprecated public static final String NEO4J = "neo4j"; - - /** Apache Geode. */ - @Deprecated public static final String GEODE = "geode"; - - /** Elasticsearch. */ - @Deprecated public static final String ELASTICSEARCH = "elasticsearch"; - - /** Memcached. */ - @Deprecated public static final String MEMCACHED = "memcached"; - - /** CockroachDB. */ - @Deprecated public static final String COCKROACHDB = "cockroachdb"; - - /** OpenSearch. */ - @Deprecated public static final String OPENSEARCH = "opensearch"; - - /** ClickHouse. */ - @Deprecated public static final String CLICKHOUSE = "clickhouse"; - - /** Cloud Spanner. */ - @Deprecated public static final String SPANNER = "spanner"; - - /** Trino. */ - @Deprecated public static final String TRINO = "trino"; - - private DbSystemValues() {} - } - - @Deprecated - public static final class DbCassandraConsistencyLevelValues { - /** all. */ - @Deprecated public static final String ALL = "all"; - - /** each_quorum. */ - @Deprecated public static final String EACH_QUORUM = "each_quorum"; - - /** quorum. */ - @Deprecated public static final String QUORUM = "quorum"; - - /** local_quorum. */ - @Deprecated public static final String LOCAL_QUORUM = "local_quorum"; - - /** one. */ - @Deprecated public static final String ONE = "one"; - - /** two. */ - @Deprecated public static final String TWO = "two"; - - /** three. */ - @Deprecated public static final String THREE = "three"; - - /** local_one. */ - @Deprecated public static final String LOCAL_ONE = "local_one"; - - /** any. */ - @Deprecated public static final String ANY = "any"; - - /** serial. */ - @Deprecated public static final String SERIAL = "serial"; - - /** local_serial. */ - @Deprecated public static final String LOCAL_SERIAL = "local_serial"; - - private DbCassandraConsistencyLevelValues() {} - } - - @Deprecated - public static final class DbCosmosdbConnectionModeValues { - /** Gateway (HTTP) connections mode. */ - @Deprecated public static final String GATEWAY = "gateway"; - - /** Direct connection. */ - @Deprecated public static final String DIRECT = "direct"; - - private DbCosmosdbConnectionModeValues() {} - } - - @Deprecated - public static final class DbCosmosdbOperationTypeValues { - /** invalid. */ - @Deprecated public static final String INVALID = "Invalid"; - - /** create. */ - @Deprecated public static final String CREATE = "Create"; - - /** patch. */ - @Deprecated public static final String PATCH = "Patch"; - - /** read. */ - @Deprecated public static final String READ = "Read"; - - /** read_feed. */ - @Deprecated public static final String READ_FEED = "ReadFeed"; - - /** delete. */ - @Deprecated public static final String DELETE = "Delete"; - - /** replace. */ - @Deprecated public static final String REPLACE = "Replace"; - - /** execute. */ - @Deprecated public static final String EXECUTE = "Execute"; - - /** query. */ - @Deprecated public static final String QUERY = "Query"; - - /** head. */ - @Deprecated public static final String HEAD = "Head"; - - /** head_feed. */ - @Deprecated public static final String HEAD_FEED = "HeadFeed"; - - /** upsert. */ - @Deprecated public static final String UPSERT = "Upsert"; - - /** batch. */ - @Deprecated public static final String BATCH = "Batch"; - - /** query_plan. */ - @Deprecated public static final String QUERY_PLAN = "QueryPlan"; - - /** execute_javascript. */ - @Deprecated public static final String EXECUTE_JAVASCRIPT = "ExecuteJavaScript"; - - private DbCosmosdbOperationTypeValues() {} - } - - @Deprecated - public static final class OtelStatusCodeValues { - /** - * The operation has been validated by an Application developer or Operator to have completed - * successfully. - */ - @Deprecated public static final String OK = "OK"; - - /** The operation contains an error. */ - @Deprecated public static final String ERROR = "ERROR"; - - private OtelStatusCodeValues() {} - } - - @Deprecated - public static final class FaasDocumentOperationValues { - /** When a new object is created. */ - @Deprecated public static final String INSERT = "insert"; - - /** When an object is modified. */ - @Deprecated public static final String EDIT = "edit"; - - /** When an object is deleted. */ - @Deprecated public static final String DELETE = "delete"; - - private FaasDocumentOperationValues() {} - } - - @Deprecated - public static final class GraphqlOperationTypeValues { - /** GraphQL query. */ - @Deprecated public static final String QUERY = "query"; - - /** GraphQL mutation. */ - @Deprecated public static final String MUTATION = "mutation"; - - /** GraphQL subscription. */ - @Deprecated public static final String SUBSCRIPTION = "subscription"; - - private GraphqlOperationTypeValues() {} - } - - @Deprecated - public static final class MessageTypeValues { - /** sent. */ - @Deprecated public static final String SENT = "SENT"; - - /** received. */ - @Deprecated public static final String RECEIVED = "RECEIVED"; - - private MessageTypeValues() {} - } - - // Manually defined and not YET in the YAML - /** - * The name of an event describing an exception. - * - *

Typically an event with that name should not be manually created. Instead {@link - * io.opentelemetry.api.trace.Span#recordException(Throwable)} should be used. - */ - @Deprecated public static final String EXCEPTION_EVENT_NAME = "exception"; - - /** - * The name of the keyspace being accessed. - * - * @deprecated this item has been removed as of 1.8.0 of the semantic conventions. Please use - * {@link SemanticAttributes#DB_NAME} instead. - */ - @Deprecated - public static final AttributeKey DB_CASSANDRA_KEYSPACE = - stringKey("db.cassandra.keyspace"); - - /** - * The HBase namespace being accessed. - * - * @deprecated this item has been removed as of 1.8.0 of the semantic conventions. Please use - * {@link SemanticAttributes#DB_NAME} instead. - */ - @Deprecated - public static final AttributeKey DB_HBASE_NAMESPACE = stringKey("db.hbase.namespace"); - - /** - * The size of the uncompressed request payload body after transport decoding. Not set if - * transport encoding not used. - * - * @deprecated this item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#HTTP_REQUEST_CONTENT_LENGTH} instead. - */ - @Deprecated - public static final AttributeKey HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = - longKey("http.request_content_length_uncompressed"); - - /** - * @deprecated This item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#HTTP_RESPONSE_CONTENT_LENGTH} instead. - */ - @Deprecated - public static final AttributeKey HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = - longKey("http.response_content_length_uncompressed"); - - /** - * @deprecated This item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#NET_HOST_NAME} instead. - */ - @Deprecated - public static final AttributeKey HTTP_SERVER_NAME = stringKey("http.server_name"); - - /** - * @deprecated This item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#NET_HOST_NAME} instead. - */ - @Deprecated public static final AttributeKey HTTP_HOST = stringKey("http.host"); - - /** - * @deprecated This item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#NET_SOCK_PEER_ADDR} instead. - */ - @Deprecated public static final AttributeKey NET_PEER_IP = stringKey("net.peer.ip"); - - /** - * @deprecated This item has been removed as of 1.13.0 of the semantic conventions. Please use - * {@link SemanticAttributes#NET_SOCK_HOST_ADDR} instead. - */ - @Deprecated public static final AttributeKey NET_HOST_IP = stringKey("net.host.ip"); - - /** - * The ordinal number of request re-sending attempt. - * - * @deprecated This item has been removed as of 1.15.0 of the semantic conventions. Use {@link - * SemanticAttributes#HTTP_RESEND_COUNT} instead. - */ - @Deprecated public static final AttributeKey HTTP_RETRY_COUNT = longKey("http.retry_count"); - - /** - * A string identifying the messaging system. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_DESTINATION_NAME} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION = - stringKey("messaging.destination"); - - /** - * A boolean that is true if the message destination is temporary. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_DESTINATION_TEMPORARY} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_TEMP_DESTINATION = - booleanKey("messaging.temp_destination"); - - /** - * The name of the transport protocol. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#NET_PROTOCOL_NAME} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_PROTOCOL = stringKey("messaging.protocol"); - - /** - * The version of the transport protocol. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#NET_PROTOCOL_VERSION} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_PROTOCOL_VERSION = - stringKey("messaging.protocol_version"); - - /** - * Connection string. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. There is no - * replacement. - */ - @Deprecated public static final AttributeKey MESSAGING_URL = stringKey("messaging.url"); - - /** - * The conversation ID identifying the conversation to which the - * message belongs, represented as a string. Sometimes called "Correlation ID". - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_MESSAGE_CONVERSATION_ID} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_CONVERSATION_ID = - stringKey("messaging.conversation_id"); - - /** - * RabbitMQ message routing key. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_RABBITMQ_ROUTING_KEY = - stringKey("messaging.rabbitmq.routing_key"); - - /** - * Partition the message is received from. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_KAFKA_SOURCE_PARTITION} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_PARTITION = - longKey("messaging.kafka.partition"); - - /** - * A boolean that is true if the message is a tombstone. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_KAFKA_MESSAGE_TOMBSTONE} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_TOMBSTONE = - booleanKey("messaging.kafka.tombstone"); - - /** - * The timestamp in milliseconds that the delay message is expected to be delivered to consumer. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_DELIVERY_TIMESTAMP = - longKey("messaging.rocketmq.delivery_timestamp"); - - /** - * The delay time level for delay message, which determines the message delay time. - * - * @deprecated This item has been removed as of 1.17.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_DELAY_TIME_LEVEL = - longKey("messaging.rocketmq.delay_time_level"); - - /** - * The name of the instrumentation scope - ({@code InstrumentationScope.Name} in OTLP). - * - * @deprecated This item has been moved, use {@link - * io.opentelemetry.semconv.ResourceAttributes#OTEL_SCOPE_NAME} instead. - */ - @Deprecated - public static final AttributeKey OTEL_SCOPE_NAME = stringKey("otel.scope.name"); - - /** - * The version of the instrumentation scope - ({@code InstrumentationScope.Version} in OTLP). - * - * @deprecated This item has been moved, use {@link - * io.opentelemetry.semconv.ResourceAttributes#OTEL_SCOPE_VERSION} instead. - */ - @Deprecated - public static final AttributeKey OTEL_SCOPE_VERSION = stringKey("otel.scope.version"); - - /** - * The execution ID of the current function execution. - * - * @deprecated This item has been renamed in 1.19.0 version of the semantic conventions. Use - * {@link SemanticAttributes#FAAS_INVOCATION_ID} instead. - */ - @Deprecated public static final AttributeKey FAAS_EXECUTION = stringKey("faas.execution"); - - /** - * Value of the HTTP - * User-Agent header sent by the client. - * - * @deprecated This item has been renamed in 1.19.0 version of the semantic conventions. Use - * {@link SemanticAttributes#USER_AGENT_ORIGINAL} instead. - */ - @Deprecated - public static final AttributeKey HTTP_USER_AGENT = stringKey("http.user_agent"); - - /** - * Deprecated. - * - * @deprecated Deprecated, use the {@link - * io.opentelemetry.semconv.ResourceAttributes#OTEL_SCOPE_NAME} attribute. - */ - @Deprecated - public static final AttributeKey OTEL_LIBRARY_NAME = stringKey("otel.library.name"); - - /** - * Deprecated. - * - * @deprecated Deprecated, use the {@link - * io.opentelemetry.semconv.ResourceAttributes#OTEL_SCOPE_VERSION} attribute. - */ - @Deprecated - public static final AttributeKey OTEL_LIBRARY_VERSION = stringKey("otel.library.version"); - - /** - * Kind of HTTP protocol used. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated public static final AttributeKey HTTP_FLAVOR = stringKey("http.flavor"); - - /** - * Enum definitions for {@link #HTTP_FLAVOR}. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated - public static final class HttpFlavorValues { - /** HTTP/1.0. */ - @Deprecated public static final String HTTP_1_0 = "1.0"; - - /** HTTP/1.1. */ - @Deprecated public static final String HTTP_1_1 = "1.1"; - - /** HTTP/2. */ - @Deprecated public static final String HTTP_2_0 = "2.0"; - - /** HTTP/3. */ - @Deprecated public static final String HTTP_3_0 = "3.0"; - - /** SPDY protocol. */ - @Deprecated public static final String SPDY = "SPDY"; - - /** QUIC protocol. */ - @Deprecated public static final String QUIC = "QUIC"; - - private HttpFlavorValues() {} - } - - /** - * Application layer protocol used. The value SHOULD be normalized to lowercase. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. Use {@link - * SemanticAttributes#NET_PROTOCOL_NAME} instead. - */ - @Deprecated - public static final AttributeKey NET_APP_PROTOCOL_NAME = - stringKey("net.app.protocol.name"); - - /** - * Version of the application layer protocol used. See note below. - * - *

Notes: - * - *

    - *
  • {@code net.app.protocol.version} refers to the version of the protocol used and might be - * different from the protocol client's version. If the HTTP client used has a version of - * {@code 0.27.2}, but sends HTTP version {@code 1.1}, this attribute should be set to - * {@code 1.1}. - *
- * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. Use {@link - * SemanticAttributes#NET_PROTOCOL_VERSION} instead. - */ - @Deprecated - public static final AttributeKey NET_APP_PROTOCOL_VERSION = - stringKey("net.app.protocol.version"); - - /** - * The kind of message destination. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_DESTINATION_KIND = - stringKey("messaging.destination.kind"); - - /** - * Enum values for {@link #MESSAGING_DESTINATION_KIND}. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated - public static final class MessagingDestinationKindValues { - /** A message sent to a queue. */ - @Deprecated public static final String QUEUE = "queue"; - - /** A message sent to a topic. */ - @Deprecated public static final String TOPIC = "topic"; - - private MessagingDestinationKindValues() {} - } - - /** - * The kind of message source. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_SOURCE_KIND = - stringKey("messaging.source.kind"); - - /** - * Enum values for {@link #MESSAGING_SOURCE_KIND}. - * - * @deprecated This item has been removed as of 1.20.0 of the semantic conventions. - */ - @Deprecated - public static final class MessagingSourceKindValues { - /** A message received from a queue. */ - @Deprecated public static final String QUEUE = "queue"; - - /** A message received from a topic. */ - @Deprecated public static final String TOPIC = "topic"; - - private MessagingSourceKindValues() {} - } - - /** - * The internet connection type currently being used by the host. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CONNECTION_TYPE} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CONNECTION_TYPE = - stringKey("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. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CONNECTION_SUBTYPE} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CONNECTION_SUBTYPE = - stringKey("net.host.connection.subtype"); - - /** - * The name of the mobile carrier. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CARRIER_NAME} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CARRIER_NAME = - stringKey("net.host.carrier.name"); - - /** - * The mobile carrier country code. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CARRIER_MCC} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CARRIER_MCC = stringKey("net.host.carrier.mcc"); - - /** - * The mobile carrier network code. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CARRIER_MNC} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CARRIER_MNC = stringKey("net.host.carrier.mnc"); - - /** - * The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#NETWORK_CARRIER_ICC} instead. - */ - @Deprecated - public static final AttributeKey NET_HOST_CARRIER_ICC = stringKey("net.host.carrier.icc"); - - /** - * The IP address of the original client behind all proxies, if known (e.g. from X-Forwarded-For). - * - *

Notes: - * - *

    - *
  • This is not necessarily the same as {@code net.sock.peer.addr}, 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 - * {@code net.sock.peer.addr}, is available even if that other source just confirms the same - * value as {@code net.sock.peer.addr}. Rationale: For {@code net.sock.peer.addr}, one - * typically does not know if it comes from a proxy, reverse proxy, or the actual client. - * Setting {@code http.client_ip} when it's the same as {@code net.sock.peer.addr} means - * that one is at least somewhat confident that the address is not that of the closest - * proxy. - *
- * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. Use - * {@link SemanticAttributes#CLIENT_ADDRESS} instead. - */ - @Deprecated public static final AttributeKey HTTP_CLIENT_IP = stringKey("http.client_ip"); - - /** - * The message source name. - * - *

Notes: - * - *

    - *
  • Source name SHOULD uniquely identify a specific queue, topic, or other entity within the - * broker. If the broker does not have such notion, the source name SHOULD uniquely identify - * the broker. - *
- * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_SOURCE_NAME = - stringKey("messaging.source.name"); - - /** - * Low cardinality representation of the messaging source name. - * - *

Notes: - * - *

    - *
  • Source names could be constructed from templates. An example would be a source name - * involving a user name or product id. Although the source name in this case is of high - * cardinality, the underlying template is of low cardinality and can be effectively used - * for grouping and aggregation. - *
- * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_SOURCE_TEMPLATE = - stringKey("messaging.source.template"); - - /** - * A boolean that is true if the message source is temporary and might not exist anymore after - * messages are processed. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_SOURCE_TEMPORARY = - booleanKey("messaging.source.temporary"); - - /** - * A boolean that is true if the message source is anonymous (could be unnamed or have - * auto-generated name). - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_SOURCE_ANONYMOUS = - booleanKey("messaging.source.anonymous"); - - /** - * The identifier for the consumer receiving a message. For Kafka, set it to {@code - * {messaging.kafka.consumer.group} - {messaging.kafka.client_id}}, if both are present, or only - * {@code messaging.kafka.consumer.group}. For brokers, such as RabbitMQ and Artemis, set it to - * the {@code client_id} of the client consuming the message. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. See - * {@link SemanticAttributes#MESSAGING_CLIENT_ID}. - */ - @Deprecated - public static final AttributeKey MESSAGING_CONSUMER_ID = - stringKey("messaging.consumer.id"); - - /** - * Client Id for the Consumer or Producer that is handling the message. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. See - * {@link SemanticAttributes#MESSAGING_CLIENT_ID}. - */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_CLIENT_ID = - stringKey("messaging.kafka.client_id"); - - /** - * Partition the message is received from. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_KAFKA_SOURCE_PARTITION = - longKey("messaging.kafka.source.partition"); - - /** - * The unique identifier for each client. - * - * @deprecated This item has been removed in 1.21.0 version of the semantic conventions. See - * {@link SemanticAttributes#MESSAGING_CLIENT_ID}. - */ - @Deprecated - public static final AttributeKey MESSAGING_ROCKETMQ_CLIENT_ID = - stringKey("messaging.rocketmq.client_id"); - - /** - * Enum values for {@link #NET_HOST_CONNECTION_TYPE}. - * - * @deprecated This item has been removed as of 1.21.0 of the semantic conventions. Use {@link - * NetworkConnectionTypeValues} instead. - */ - @Deprecated - public static final class NetHostConnectionTypeValues { - /** wifi. */ - @Deprecated public static final String WIFI = "wifi"; - - /** wired. */ - @Deprecated public static final String WIRED = "wired"; - - /** cell. */ - @Deprecated public static final String CELL = "cell"; - - /** unavailable. */ - @Deprecated public static final String UNAVAILABLE = "unavailable"; - - /** unknown. */ - @Deprecated public static final String UNKNOWN = "unknown"; - - private NetHostConnectionTypeValues() {} - } - - /** - * Enum values for {@link #NET_HOST_CONNECTION_SUBTYPE}. - * - * @deprecated This item has been removed as of 1.21.0 of the semantic conventions. Use {@link - * NetworkConnectionSubtypeValues} instead. - */ - @Deprecated - public static final class NetHostConnectionSubtypeValues { - /** GPRS. */ - @Deprecated public static final String GPRS = "gprs"; - - /** EDGE. */ - @Deprecated public static final String EDGE = "edge"; - - /** UMTS. */ - @Deprecated public static final String UMTS = "umts"; - - /** CDMA. */ - @Deprecated public static final String CDMA = "cdma"; - - /** EVDO Rel. 0. */ - @Deprecated public static final String EVDO_0 = "evdo_0"; - - /** EVDO Rev. A. */ - @Deprecated public static final String EVDO_A = "evdo_a"; - - /** CDMA2000 1XRTT. */ - @Deprecated public static final String CDMA2000_1XRTT = "cdma2000_1xrtt"; - - /** HSDPA. */ - @Deprecated public static final String HSDPA = "hsdpa"; - - /** HSUPA. */ - @Deprecated public static final String HSUPA = "hsupa"; - - /** HSPA. */ - @Deprecated public static final String HSPA = "hspa"; - - /** IDEN. */ - @Deprecated public static final String IDEN = "iden"; - - /** EVDO Rev. B. */ - @Deprecated public static final String EVDO_B = "evdo_b"; - - /** LTE. */ - @Deprecated public static final String LTE = "lte"; - - /** EHRPD. */ - @Deprecated public static final String EHRPD = "ehrpd"; - - /** HSPAP. */ - @Deprecated public static final String HSPAP = "hspap"; - - /** GSM. */ - @Deprecated public static final String GSM = "gsm"; - - /** TD-SCDMA. */ - @Deprecated public static final String TD_SCDMA = "td_scdma"; - - /** IWLAN. */ - @Deprecated public static final String IWLAN = "iwlan"; - - /** 5G NR (New Radio). */ - @Deprecated public static final String NR = "nr"; - - /** 5G NRNSA (New Radio Non-Standalone). */ - @Deprecated public static final String NRNSA = "nrnsa"; - - /** LTE CA. */ - @Deprecated public static final String LTE_CA = "lte_ca"; - - private NetHostConnectionSubtypeValues() {} - } - - /** - * Immediate client peer port number. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_PEER_PORT} on server telemetry and {@link - * SemanticAttributes#NETWORK_LOCAL_PORT} on client telemetry instead. - */ - @Deprecated - public static final AttributeKey CLIENT_SOCKET_PORT = longKey("client.socket.port"); - - /** - * Name of the memory pool. - * - *

Notes: - * - *

- * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#JVM_MEMORY_POOL_NAME} instead. - */ - @Deprecated public static final AttributeKey POOL = stringKey("pool"); - - /** - * The domain name of the source system. - * - *

Notes: - * - *

    - *
  • This value may be a host name, a fully qualified domain name, or another host naming - * format. - *
- * - * @deprecated This item has been removed in 1.22.0 of the semantic conventions. - */ - @Deprecated public static final AttributeKey SOURCE_DOMAIN = stringKey("source.domain"); - - /** - * Physical server IP address or Unix socket address. If set from the client, should simply use - * the socket's peer address, and not attempt to find any actual server IP (i.e., if set from - * client, this may represent some proxy server instead of the logical server). - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_LOCAL_ADDRESS} on server telemetry and {@link - * SemanticAttributes#NETWORK_PEER_ADDRESS} on client telemetry instead. - */ - @Deprecated - public static final AttributeKey SERVER_SOCKET_ADDRESS = - stringKey("server.socket.address"); - - /** - * 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. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#MESSAGING_MESSAGE_BODY_SIZE} instead. - */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES = - longKey("messaging.message.payload_size_bytes"); - - /** - * The domain name of the destination system. - * - * @deprecated This item has been removed in 1.22.0 of the semantic conventions. - */ - @Deprecated - public static final AttributeKey DESTINATION_DOMAIN = stringKey("destination.domain"); - - /** - * The compressed size of the message payload in bytes. - * - * @deprecated This item has been removed in 1.22.0 of the semantic conventions. - */ - @Deprecated - public static final AttributeKey MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES = - longKey("messaging.message.payload_compressed_size_bytes"); - - /** - * The domain name of an immediate peer. - * - *

Notes: - * - *

    - *
  • Typically observed from the client side, and represents a proxy or other intermediary - * domain name. - *
- * - * @deprecated This item has been removed in 1.22.0 of the semantic conventions. - */ - @Deprecated - public static final AttributeKey SERVER_SOCKET_DOMAIN = stringKey("server.socket.domain"); - - /** - * The type of memory. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#JVM_MEMORY_TYPE} instead. - */ - @Deprecated public static final AttributeKey TYPE = stringKey("type"); - - /** - * Physical server port. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_LOCAL_PORT} on server telemetry and {@link - * SemanticAttributes#NETWORK_PEER_PORT} on client telemetry instead. - */ - @Deprecated - public static final AttributeKey SERVER_SOCKET_PORT = longKey("server.socket.port"); - - /** - * Immediate client peer address - unix domain socket name, IPv4 or IPv6 address. - * - * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_PEER_ADDRESS} on server telemetry and {@link - * SemanticAttributes#NETWORK_LOCAL_ADDRESS} on client telemetry instead. - */ - @Deprecated - public static final AttributeKey CLIENT_SOCKET_ADDRESS = - stringKey("client.socket.address"); - - /** - * @deprecated This item has been renamed as of 1.21.0 of the semantic conventions. Use {@link - * JvmMemoryTypeValues} instead. - */ - @Deprecated - public static final class TypeValues { - /** Heap memory. */ - @Deprecated public static final String HEAP = "heap"; - - /** Non-heap memory. */ - @Deprecated public static final String NON_HEAP = "non_heap"; - - private TypeValues() {} - } - - /** - * Whether the thread is daemon or not. - * - * @deprecated This item has been renamed in 1.23.1 of the semantic conventions. Use {@link - * SemanticAttributes#JVM_THREAD_DAEMON} instead. - */ - @Deprecated public static final AttributeKey THREAD_DAEMON = booleanKey("thread.daemon"); - - /** - * The ordinal number of request resending attempt (for any reason, including redirects). - * - *

Notes: - * - *

    - *
  • The resend count SHOULD be updated each time an HTTP request gets resent by the client, - * regardless of what was the cause of the resending (e.g. redirection, authorization - * failure, 503 Server Unavailable, network issues, or any other). - *
- * - * @deprecated This item has been renamed in 1.23.1 of the semantic conventions. Use {@link - * SemanticAttributes#HTTP_REQUEST_RESEND_COUNT} instead. - */ - @Deprecated - public static final AttributeKey HTTP_RESEND_COUNT = longKey("http.resend_count"); - - private SemanticAttributes() {} -} From 9f75aba21451d1127fafc573d871a097fca2b56f Mon Sep 17 00:00:00 2001 From: Jack Berg Date: Mon, 6 Jan 2025 15:00:09 -0600 Subject: [PATCH 3/4] Update japicmp to generate diff for first release --- .../otel.japicmp-conventions.gradle.kts | 21 ++- .../opentelemetry-semconv.txt | 172 +++++++++++++++++- 2 files changed, 181 insertions(+), 12 deletions(-) diff --git a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts index 2b9c13f3..d94949f5 100644 --- a/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts @@ -73,16 +73,17 @@ if (!project.hasProperty("otel.release")) { // the japicmp "old" version is either the user-specified one, or the latest release. val apiBaseVersion: String? by project val baselineVersion = apiBaseVersion ?: latestReleasedVersion - oldClasspath.from( - try { - files(findArtifact(baselineVersion)) - } catch (e: Exception) { - // if we can't find the baseline artifact, this is probably one that's never been published before, - // so publish the whole API. We do that by flipping this flag, and comparing the current against nothing. - onlyModified.set(false) - files() - }, - ) + // TODO: uncomment after first stable release + // oldClasspath.from( + // try { + // files(findArtifact(baselineVersion)) + // } catch (e: Exception) { + // // if we can't find the baseline artifact, this is probably one that's never been published before, + // // so publish the whole API. We do that by flipping this flag, and comparing the current against nothing. + // onlyModified.set(false) + // files() + // }, + // ) // Reproduce defaults from https://github.com/melix/japicmp-gradle-plugin/blob/09f52739ef1fccda6b4310cf3f4b19dc97377024/src/main/java/me/champeau/gradle/japicmp/report/ViolationsGenerator.java#L130 // with some changes. diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt index d9c5c5ea..fbe961d3 100644 --- a/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt +++ b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt @@ -1,2 +1,170 @@ -Comparing source compatibility of opentelemetry-semconv-1.29.0-SNAPSHOT.jar against opentelemetry-semconv-1.29.0-alpha.jar -No changes. \ No newline at end of file +Comparing source compatibility of opentelemetry-semconv-1.29.0-SNAPSHOT.jar against ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.AttributeKeyTemplate (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + GENERIC TEMPLATES: +++ T:java.lang.Object + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate> booleanArrayKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate booleanKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate> doubleArrayKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate doubleKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) io.opentelemetry.api.common.AttributeKey getAttributeKey(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate> longArrayKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate longKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate> stringArrayKeyTemplate(java.lang.String) + +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.semconv.AttributeKeyTemplate stringKeyTemplate(java.lang.String) ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.ClientAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey CLIENT_ADDRESS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey CLIENT_PORT ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.ErrorAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey ERROR_TYPE ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.ErrorAttributes$ErrorTypeValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String OTHER ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.ExceptionAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_TYPE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_ESCAPED + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_STACKTRACE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_MESSAGE ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.HttpAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey HTTP_ROUTE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey HTTP_REQUEST_METHOD + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey HTTP_RESPONSE_STATUS_CODE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey HTTP_REQUEST_RESEND_COUNT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.AttributeKeyTemplate> HTTP_REQUEST_HEADER + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey HTTP_REQUEST_METHOD_ORIGINAL + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.AttributeKeyTemplate> HTTP_RESPONSE_HEADER ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.HttpAttributes$HttpRequestMethodValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String TRACE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String OTHER + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HEAD + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String DELETE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String POST + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String GET + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String CONNECT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String OPTIONS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String PATCH + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String PUT ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.JvmAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_MEMORY_TYPE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_MEMORY_POOL_NAME + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_THREAD_STATE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_GC_NAME + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_THREAD_DAEMON + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey JVM_GC_ACTION ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.JvmAttributes$JvmMemoryTypeValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String NON_HEAP + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HEAP ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.JvmAttributes$JvmThreadStateValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String NEW + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String TERMINATED + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String RUNNABLE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String BLOCKED + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String WAITING + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String TIMED_WAITING ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.NetworkAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_LOCAL_ADDRESS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_PEER_ADDRESS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_TYPE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_PROTOCOL_VERSION + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_LOCAL_PORT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_PEER_PORT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_TRANSPORT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey NETWORK_PROTOCOL_NAME ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.NetworkAttributes$NetworkTransportValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String TCP + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String UDP + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String QUIC + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String PIPE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String UNIX ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.NetworkAttributes$NetworkTypeValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String IPV6 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String IPV4 ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.OtelAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey OTEL_SCOPE_NAME + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey OTEL_STATUS_DESCRIPTION + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey OTEL_STATUS_CODE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey OTEL_SCOPE_VERSION ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.OtelAttributes$OtelStatusCodeValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String ERROR + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String OK ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.SchemaUrls (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_24_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_23_1 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_22_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_29_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_28_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_27_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_26_0 + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_25_0 ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.ServerAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey SERVER_PORT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey SERVER_ADDRESS ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.ServiceAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey SERVICE_NAME + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey SERVICE_VERSION ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.TelemetryAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey TELEMETRY_SDK_LANGUAGE + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey TELEMETRY_SDK_VERSION + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey TELEMETRY_SDK_NAME ++++ NEW CLASS: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.semconv.TelemetryAttributes$TelemetrySdkLanguageValues (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JAVA + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String CPP + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String RUST + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String WEBJS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String GO + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String NODEJS + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String PHP + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String SWIFT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String RUBY + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String PYTHON + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String DOTNET + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String ERLANG ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.UrlAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey URL_FULL + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey URL_QUERY + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey URL_PATH + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey URL_FRAGMENT + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey URL_SCHEME ++++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.UserAgentAttributes (not serializable) + +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. + +++ NEW SUPERCLASS: java.lang.Object + +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey USER_AGENT_ORIGINAL From fbe4e8b6b9cc4a1920052dd0de2476aaab80a783 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jan 2025 09:45:05 -0800 Subject: [PATCH 4/4] jApiCmp --- docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt index fbe961d3..8b0e83ad 100644 --- a/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt +++ b/docs/apidiffs/current_vs_latest/opentelemetry-semconv.txt @@ -29,7 +29,6 @@ Comparing source compatibility of opentelemetry-semconv-1.29.0-SNAPSHOT.jar agai +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. +++ NEW SUPERCLASS: java.lang.Object +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_TYPE - +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_ESCAPED +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_STACKTRACE +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) io.opentelemetry.api.common.AttributeKey EXCEPTION_MESSAGE +++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.HttpAttributes (not serializable) @@ -118,8 +117,6 @@ Comparing source compatibility of opentelemetry-semconv-1.29.0-SNAPSHOT.jar agai +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. +++ NEW SUPERCLASS: java.lang.Object +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_24_0 - +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_23_1 - +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_22_0 +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_29_0 +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_28_0 +++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_27_0