Skip to content

Update to semconv 1.36.0 #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ val snapshot = true
// end

// The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes
var semanticConventionsVersion = "1.34.0"
var semanticConventionsVersion = "1.36.0"
val schemaUrlVersions = listOf(
semanticConventionsVersion,
"1.35.0",
"1.34.0",
"1.33.0",
"1.32.0",
"1.31.0",
Expand Down
4 changes: 1 addition & 3 deletions buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ tasks {
breakIterator(true)

addBooleanOption("html5", true)
// TODO (trask) remove "-html" after next semconv release
// (see https://github.com/open-telemetry/semantic-conventions/pull/2304)
addBooleanOption("Xdoclint:all,-missing,-html", true)
addBooleanOption("Xdoclint:all,-missing", true)
// non-standard option to fail on warnings, see https://bugs.openjdk.java.net/browse/JDK-8200363
addStringOption("Xwerror", "-quiet")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@
@SuppressWarnings("unused")
public final class AzIncubatingAttributes {
/**
* <a
* href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure
* Resource Provider Namespace</a> as recognized by the client.
* Deprecated, use {@code azure.resource_provider.namespace} instead.
*
* @deprecated Replaced by {@code azure.resource_provider.namespace}.
*/
public static final AttributeKey<String> AZ_NAMESPACE = stringKey("az.namespace");
@Deprecated public static final AttributeKey<String> AZ_NAMESPACE = stringKey("az.namespace");

/**
* The unique identifier of the service request. It's generated by the Azure service and returned
* with the response.
* Deprecated, use {@code azure.service.request.id} instead.
*
* @deprecated Replaced by {@code azure.service.request.id}.
*/
@Deprecated
public static final AttributeKey<String> AZ_SERVICE_REQUEST_ID =
stringKey("az.service_request_id");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ public final class AzureIncubatingAttributes {
public static final AttributeKey<Long> AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE =
longKey("azure.cosmosdb.response.sub_status_code");

/**
* <a
* href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure
* Resource Provider Namespace</a> as recognized by the client.
*/
public static final AttributeKey<String> AZURE_RESOURCE_PROVIDER_NAMESPACE =
stringKey("azure.resource_provider.namespace");

/**
* The unique identifier of the service request. It's generated by the Azure service and returned
* with the response.
*/
public static final AttributeKey<String> AZURE_SERVICE_REQUEST_ID =
stringKey("azure.service.request.id");

// Enum definitions

/** Values for {@link #AZURE_COSMOSDB_CONNECTION_MODE}. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final class CloudIncubatingAttributes {
* <li><strong>GCP:</strong> The <a
* href="https://cloud.google.com/iam/docs/full-resource-names">URI of the resource</a>
* <li><strong>Azure:</strong> The <a
* href="https://docs.microsoft.com/rest/api/resources/resources/get-by-id">Fully Qualified
* href="https://learn.microsoft.com/rest/api/resources/resources/get-by-id">Fully Qualified
* Resource ID</a> of the invoked function, <em>not</em> the function app, having the form
* {@code
* /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>}.
Expand Down Expand Up @@ -126,25 +126,25 @@ public static final class CloudPlatformIncubatingValues {
public static final String AWS_OPENSHIFT = "aws_openshift";

/** Azure Virtual Machines */
public static final String AZURE_VM = "azure_vm";
public static final String AZURE_VM = "azure.vm";

/** Azure Container Apps */
public static final String AZURE_CONTAINER_APPS = "azure_container_apps";
public static final String AZURE_CONTAINER_APPS = "azure.container_apps";

/** Azure Container Instances */
public static final String AZURE_CONTAINER_INSTANCES = "azure_container_instances";
public static final String AZURE_CONTAINER_INSTANCES = "azure.container_instances";

/** Azure Kubernetes Service */
public static final String AZURE_AKS = "azure_aks";
public static final String AZURE_AKS = "azure.aks";

/** Azure Functions */
public static final String AZURE_FUNCTIONS = "azure_functions";
public static final String AZURE_FUNCTIONS = "azure.functions";

/** Azure App Service */
public static final String AZURE_APP_SERVICE = "azure_app_service";
public static final String AZURE_APP_SERVICE = "azure.app_service";

/** Azure Red Hat OpenShift */
public static final String AZURE_OPENSHIFT = "azure_openshift";
public static final String AZURE_OPENSHIFT = "azure.openshift";

/** Google Bare Metal Solution (BMS) */
public static final String GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@

package io.opentelemetry.semconv.incubating;

import static io.opentelemetry.api.common.AttributeKey.stringArrayKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;

import io.opentelemetry.api.common.AttributeKey;
import java.util.List;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DnsIncubatingAttributes {
/** The list of IPv4 or IPv6 addresses resolved during DNS lookup. */
public static final AttributeKey<List<String>> DNS_ANSWERS = stringArrayKey("dns.answers");

/**
* The name being queried.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,17 @@ public static final class GenAiSystemIncubatingValues {
/** Cohere */
public static final String COHERE = "cohere";

/** Azure AI Inference */
public static final String AZURE_AI_INFERENCE = "azure.ai.inference";

/** Azure OpenAI */
public static final String AZURE_AI_OPENAI = "azure.ai.openai";

/** Azure AI Inference */
public static final String AZ_AI_INFERENCE = "az.ai.inference";

/** Azure OpenAI */
public static final String AZ_AI_OPENAI = "az.ai.openai";
public static final String AZ_AI_OPENAI = "azure.ai.openai";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


/** IBM Watsonx AI */
public static final String IBM_WATSONX_AI = "ibm.watsonx.ai";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public final class HttpIncubatingAttributes {
/**
* Deprecated, use {@code http.response.header.content-length} instead.
*
* @deprecated hp.response.header.content-length
* @deprecated Replaced by {@code http.response.header.content-length}.
*/
@Deprecated
public static final AttributeKey<Long> HTTP_RESPONSE_CONTENT_LENGTH =
Expand Down
Loading
Loading