From a58db82e2b282429314c2df96705a8cf6a23a468 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Thu, 12 Oct 2023 16:36:03 -0700 Subject: [PATCH 1/5] Update to semconv 1.22.0 --- build.gradle.kts | 4 +- .../semconv/ResourceAttributes.java | 565 +++-- .../semconv/SemanticAttributes.java | 2166 ++++++++++------- 3 files changed, 1604 insertions(+), 1131 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index aac6f02..bcb4451 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ val snapshot = true // end // The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes -var semanticConventionsVersion = "1.21.0" +var semanticConventionsVersion = "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 @@ -66,7 +66,7 @@ dependencies { } // start - define tasks to download, unzip, and generate from opentelemetry/semantic-conventions -var generatorVersion = "0.18.0" +var generatorVersion = "0.22.0" val semanticConventionsRepoZip = "https://github.com/open-telemetry/semantic-conventions/archive/v$semanticConventionsVersion.zip" val schemaUrl = "https://opentelemetry.io/schemas/$semanticConventionsVersion" diff --git a/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java b/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java index 8e3ebe6..954b19d 100644 --- a/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java +++ b/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java @@ -18,7 +18,14 @@ @SuppressWarnings("unused") public final class ResourceAttributes { /** The URL of the OpenTelemetry schema for these keys and values. */ - public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.21.0"; + public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.22.0"; + + /** + * Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the + * android operating system. More information can be found here. + */ + public static final AttributeKey ANDROID_OS_API_LEVEL = stringKey("android.os.api_level"); /** * Array of brand name and version separated by a space @@ -33,6 +40,30 @@ public final class ResourceAttributes { */ 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}. + *
+ */ + 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. + *
+ */ + public static final AttributeKey BROWSER_MOBILE = booleanKey("browser.mobile"); + /** * The platform on which the browser is running * @@ -53,36 +84,36 @@ public final class ResourceAttributes { */ public static final AttributeKey BROWSER_PLATFORM = stringKey("browser.platform"); + /** The cloud account ID the resource is assigned to. */ + public static final AttributeKey CLOUD_ACCOUNT_ID = stringKey("cloud.account.id"); + /** - * A boolean that is true if the browser is running on a mobile device + * Cloud regions often have multiple, isolated locations known as zones to increase availability. + * Availability zone represents the zone where the resource is running. * *

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. + *
  • Availability zones are called "zones" on Alibaba Cloud and Google Cloud. *
*/ - public static final AttributeKey BROWSER_MOBILE = booleanKey("browser.mobile"); + public static final AttributeKey CLOUD_AVAILABILITY_ZONE = + stringKey("cloud.availability_zone"); /** - * Preferred language of the user using the browser + * The cloud platform in use. * *

Notes: * *

    - *
  • This value is intended to be taken from the Navigator API {@code navigator.language}. + *
  • The prefix of the service SHOULD match the one specified in {@code cloud.provider}. *
*/ - public static final AttributeKey BROWSER_LANGUAGE = stringKey("browser.language"); + public static final AttributeKey CLOUD_PLATFORM = stringKey("cloud.platform"); /** Name of the cloud provider. */ public static final AttributeKey CLOUD_PROVIDER = stringKey("cloud.provider"); - /** The cloud account ID the resource is assigned to. */ - public static final AttributeKey CLOUD_ACCOUNT_ID = stringKey("cloud.account.id"); - /** * The geographical region the resource is running. * @@ -136,28 +167,11 @@ public final class ResourceAttributes { public static final AttributeKey CLOUD_RESOURCE_ID = stringKey("cloud.resource_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. - *
- */ - 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}. - *
+ * The ARN of an ECS + * cluster. */ - public static final AttributeKey CLOUD_PLATFORM = stringKey("cloud.platform"); + public static final AttributeKey AWS_ECS_CLUSTER_ARN = stringKey("aws.ecs.cluster.arn"); /** * The Amazon Resource Name (ARN) of an AWS_ECS_CONTAINER_ARN = stringKey("aws.ecs.container.arn"); - /** - * The ARN of an ECS - * cluster. - */ - public static final AttributeKey AWS_ECS_CLUSTER_ARN = stringKey("aws.ecs.cluster.arn"); - /** * The launch @@ -199,35 +206,31 @@ public final class ResourceAttributes { public static final AttributeKey AWS_EKS_CLUSTER_ARN = stringKey("aws.eks.cluster.arn"); /** - * The name(s) of the AWS log group(s) an application is writing to. + * The Amazon Resource Name(s) (ARN) of the AWS log group(s). * *

Notes: * *

*/ - public static final AttributeKey> AWS_LOG_GROUP_NAMES = - stringArrayKey("aws.log.group.names"); + public static final AttributeKey> AWS_LOG_GROUP_ARNS = + stringArrayKey("aws.log.group.arns"); /** - * The Amazon Resource Name(s) (ARN) of the AWS log group(s). + * The name(s) of the AWS log group(s) an application is writing to. * *

Notes: * *

    - *
  • See the log - * group ARN format documentation. + *
  • 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. *
*/ - public static final AttributeKey> AWS_LOG_GROUP_ARNS = - stringArrayKey("aws.log.group.arns"); - - /** The name(s) of the AWS log stream(s) an application is writing to. */ - public static final AttributeKey> AWS_LOG_STREAM_NAMES = - stringArrayKey("aws.log.stream.names"); + public static final AttributeKey> AWS_LOG_GROUP_NAMES = + stringArrayKey("aws.log.group.names"); /** * The ARN(s) of the AWS log stream(s). @@ -244,6 +247,10 @@ public final class ResourceAttributes { 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. */ + public static final AttributeKey> AWS_LOG_STREAM_NAMES = + stringArrayKey("aws.log.stream.names"); + /** * The name of the Cloud Run execution being run for @@ -262,6 +269,13 @@ public final class ResourceAttributes { 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. + */ + 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 @@ -272,26 +286,38 @@ public final class ResourceAttributes { public static final AttributeKey GCP_GCE_INSTANCE_NAME = stringKey("gcp.gce.instance.name"); - /** - * The hostname of a GCE instance. This is the full value of the default or custom hostname. - */ - public static final AttributeKey GCP_GCE_INSTANCE_HOSTNAME = - stringKey("gcp.gce.instance.hostname"); + /** Unique identifier for the application */ + public static final AttributeKey HEROKU_APP_ID = stringKey("heroku.app.id"); + + /** Commit hash for the current release */ + public static final AttributeKey HEROKU_RELEASE_COMMIT = + stringKey("heroku.release.commit"); /** Time and date the release was created */ public static final AttributeKey HEROKU_RELEASE_CREATION_TIMESTAMP = stringKey("heroku.release.creation_timestamp"); - /** Commit hash for the current release */ - public static final AttributeKey HEROKU_RELEASE_COMMIT = - stringKey("heroku.release.commit"); + /** + * 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. + *
+ */ + public static final AttributeKey CONTAINER_COMMAND = stringKey("container.command"); - /** Unique identifier for the application */ - public static final AttributeKey HEROKU_APP_ID = stringKey("heroku.app.id"); + /** + * All the command arguments (including the command/executable itself) run by the container. [2] + */ + public static final AttributeKey> CONTAINER_COMMAND_ARGS = + stringArrayKey("container.command_args"); - /** Container name used by container runtime. */ - public static final AttributeKey CONTAINER_NAME = stringKey("container.name"); + /** The full command run by the container as a single string representing the full command. [2] */ + public static final AttributeKey CONTAINER_COMMAND_LINE = + stringKey("container.command_line"); /** * Container ID. Usually a UUID, as for example used to CONTAINER_ID = stringKey("container.id"); - /** The container runtime managing this container. */ - public static final AttributeKey CONTAINER_RUNTIME = stringKey("container.runtime"); - - /** Name of the image the container was built on. */ - public static final AttributeKey CONTAINER_IMAGE_NAME = stringKey("container.image.name"); - - /** Container image tag. */ - public static final AttributeKey CONTAINER_IMAGE_TAG = stringKey("container.image.tag"); - /** * Runtime specific image identifier. Usually a hash algorithm followed by a UUID. * @@ -321,32 +338,46 @@ public final class ResourceAttributes { * endpoint. K8s defines a link to the container registry repository with digest {@code * "imageID": "registry.azurecr.io * /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"}. - * OCI defines a digest of manifest. + * 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. * */ public static final AttributeKey CONTAINER_IMAGE_ID = stringKey("container.image.id"); + /** Name of the image the container was built on. */ + public static final AttributeKey CONTAINER_IMAGE_NAME = stringKey("container.image.name"); + /** - * The command used to run the container (i.e. the command name). + * Repo digests of the container image as provided by the container runtime. * *

Notes: * *

*/ - public static final AttributeKey CONTAINER_COMMAND = stringKey("container.command"); - - /** The full command run by the container as a single string representing the full command. [2] */ - public static final AttributeKey CONTAINER_COMMAND_LINE = - stringKey("container.command_line"); + public static final AttributeKey> CONTAINER_IMAGE_REPO_DIGESTS = + stringArrayKey("container.image.repo_digests"); /** - * All the command arguments (including the command/executable itself) run by the container. [2] + * 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:}. */ - public static final AttributeKey> CONTAINER_COMMAND_ARGS = - stringArrayKey("container.command_args"); + public static final AttributeKey> CONTAINER_IMAGE_TAGS = + stringArrayKey("container.image.tags"); + + /** Container name used by container runtime. */ + public static final AttributeKey CONTAINER_NAME = stringKey("container.name"); + + /** The container runtime managing this container. */ + public static final AttributeKey CONTAINER_RUNTIME = stringKey("container.runtime"); /** * Name of the deployment @@ -376,6 +407,19 @@ public final class ResourceAttributes { */ public static final AttributeKey DEVICE_ID = stringKey("device.id"); + /** + * The name of the device manufacturer + * + *

Notes: + * + *

+ */ + public static final AttributeKey DEVICE_MANUFACTURER = stringKey("device.manufacturer"); + /** * The model identifier for the device * @@ -402,17 +446,30 @@ public final class ResourceAttributes { public static final AttributeKey DEVICE_MODEL_NAME = stringKey("device.model.name"); /** - * The name of the device manufacturer + * The execution environment ID as a string, that will be potentially reused for other invocations + * to the same function/function version. * *

Notes: * *

    - *
  • The Android OS provides this field via Build. - * iOS apps SHOULD hardcode the value {@code Apple}. + *
  • AWS Lambda: Use the (full) log stream name. *
*/ - public static final AttributeKey DEVICE_MANUFACTURER = stringKey("device.manufacturer"); + 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). + *
+ */ + public static final AttributeKey FAAS_MAX_MEMORY = longKey("faas.max_memory"); /** * The name of the single function that this runtime instance executes. @@ -422,8 +479,8 @@ public final class ResourceAttributes { * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link SemanticAttributes#JVM_MEMORY_POOL_NAME} instead. + * @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"); @@ -698,7 +698,7 @@ public final class {{class}} { *
  • This value may be a host name, a fully qualified domain name, or another host naming * format. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @deprecated This item has been removed in 1.22.0 of the semantic conventions. */ @Deprecated public static final AttributeKey SOURCE_DOMAIN = stringKey("source.domain"); @@ -708,7 +708,7 @@ public final class {{class}} { * 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 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 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 = @@ -718,7 +718,7 @@ public final class {{class}} { * 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 renamed in 1.22.0 of the semantic conventions. Use {@link SemanticAttributes#MESSAGING_MESSAGE_BODY_SIZE} instead. + * @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 = @@ -727,7 +727,7 @@ public final class {{class}} { /** * The domain name of the destination system. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @deprecated This item has been removed in 1.22.0 of the semantic conventions. */ @Deprecated public static final AttributeKey DESTINATION_DOMAIN = stringKey("destination.domain"); @@ -735,7 +735,7 @@ public final class {{class}} { /** * The compressed size of the message payload in bytes. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @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 = @@ -751,7 +751,7 @@ public final class {{class}} { * domain name. * * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @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"); @@ -759,7 +759,7 @@ public final class {{class}} { /** * The type of memory. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link SemanticAttributes#JVM_MEMORY_TYPE} instead. + * @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"); @@ -767,7 +767,7 @@ public final class {{class}} { /** * Physical server port. * - * @deprecated This item has 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 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"); @@ -775,14 +775,14 @@ public final class {{class}} { /** * Immediate client peer address - unix domain socket name, IPv4 or IPv6 address. * - * @deprecated This item has 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 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 removed as of 1.21.0 of the semantic conventions. Use {@link JvmMemoryTypeValues} instead. + * @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 { @@ -854,7 +854,7 @@ public final class {{class}} { /** * The version string of the auto instrumentation agent, if used. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link ResourceAttributes#TELEMETRY_DISTRO_VERSION} instead. + * @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"); @@ -862,7 +862,7 @@ public final class {{class}} { /** * Container image tag. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link ResourceAttributes#CONTAINER_IMAGE_TAGS} instead. + * @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"); diff --git a/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java b/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java index 1553cba..3a1ca0b 100644 --- a/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java +++ b/src/main/java/io/opentelemetry/semconv/ResourceAttributes.java @@ -1203,7 +1203,7 @@ private TelemetrySdkLanguageValues() {} /** * The version string of the auto instrumentation agent, if used. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link + * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link * ResourceAttributes#TELEMETRY_DISTRO_VERSION} instead. */ @Deprecated @@ -1213,7 +1213,7 @@ private TelemetrySdkLanguageValues() {} /** * Container image tag. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link + * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link * ResourceAttributes#CONTAINER_IMAGE_TAGS} instead. */ @Deprecated diff --git a/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java b/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java index bfd31f9..24a2ad2 100644 --- a/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java +++ b/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java @@ -3263,8 +3263,9 @@ private NetHostConnectionSubtypeValues() {} /** * Immediate client peer port number. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_PEER_PORT} instead. + * @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"); @@ -3279,7 +3280,7 @@ private NetHostConnectionSubtypeValues() {} * href="https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()">MemoryPoolMXBean#getName(). * * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link + * @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"); @@ -3294,7 +3295,7 @@ private NetHostConnectionSubtypeValues() {} * format. * * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @deprecated This item has been removed in 1.22.0 of the semantic conventions. */ @Deprecated public static final AttributeKey SOURCE_DOMAIN = stringKey("source.domain"); @@ -3303,8 +3304,9 @@ private NetHostConnectionSubtypeValues() {} * 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 renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_LOCAL_ADDRESS} instead. + * @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 = @@ -3314,7 +3316,7 @@ private NetHostConnectionSubtypeValues() {} * 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 renamed in 1.22.0 of the semantic conventions. Use {@link + * @deprecated This item has been renamed in 1.22.0 of the semantic conventions. Use {@link * SemanticAttributes#MESSAGING_MESSAGE_BODY_SIZE} instead. */ @Deprecated @@ -3324,7 +3326,7 @@ private NetHostConnectionSubtypeValues() {} /** * The domain name of the destination system. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @deprecated This item has been removed in 1.22.0 of the semantic conventions. */ @Deprecated public static final AttributeKey DESTINATION_DOMAIN = stringKey("destination.domain"); @@ -3332,7 +3334,7 @@ private NetHostConnectionSubtypeValues() {} /** * The compressed size of the message payload in bytes. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @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 = @@ -3348,7 +3350,7 @@ private NetHostConnectionSubtypeValues() {} * domain name. * * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. + * @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"); @@ -3356,7 +3358,7 @@ private NetHostConnectionSubtypeValues() {} /** * The type of memory. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link + * @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"); @@ -3364,8 +3366,9 @@ private NetHostConnectionSubtypeValues() {} /** * Physical server port. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_LOCAL_PORT} instead. + * @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"); @@ -3373,15 +3376,16 @@ private NetHostConnectionSubtypeValues() {} /** * Immediate client peer address - unix domain socket name, IPv4 or IPv6 address. * - * @deprecated This item has renamed in 1.22.0 of the semantic conventions. Use {@link - * SemanticAttributes#NETWORK_PEER_ADDRESS} instead. + * @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 removed as of 1.21.0 of the semantic conventions. Use {@link + * @deprecated This item has been renamed as of 1.21.0 of the semantic conventions. Use {@link * JvmMemoryTypeValues} instead. */ @Deprecated