Skip to content

Commit

Permalink
Bump to semconv 1.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed Feb 9, 2024
1 parent 34ad318 commit 683099c
Show file tree
Hide file tree
Showing 29 changed files with 1,094 additions and 144 deletions.
7 changes: 5 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ val snapshot = true
// end

// The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes
var semanticConventionsVersion = "1.23.1"
val schemaUrlVersions = listOf(semanticConventionsVersion, "1.22.0")
var semanticConventionsVersion = "1.24.0"
val schemaUrlVersions = listOf(
semanticConventionsVersion,
"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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

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

import io.opentelemetry.api.common.AttributeKey;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class AspnetcoreAttributes {

/** ASP.NET Core exception middleware handling result */
public static final AttributeKey<String> ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT =
stringKey("aspnetcore.diagnostics.exception.result");

/**
* Full type name of the <a
* href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler">{@code
* IExceptionHandler}</a> implementation that handled the exception.
*/
public static final AttributeKey<String> ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE =
stringKey("aspnetcore.diagnostics.handler.type");

/** Rate limiting policy name. */
public static final AttributeKey<String> ASPNETCORE_RATE_LIMITING_POLICY =
stringKey("aspnetcore.rate_limiting.policy");

/** Rate-limiting result, shows whether the lease was acquired or contains a rejection reason */
public static final AttributeKey<String> ASPNETCORE_RATE_LIMITING_RESULT =
stringKey("aspnetcore.rate_limiting.result");

/** Flag indicating if request was handled by the application pipeline. */
public static final AttributeKey<Boolean> ASPNETCORE_REQUEST_IS_UNHANDLED =
booleanKey("aspnetcore.request.is_unhandled");

/** A value that indicates whether the matched route is a fallback route. */
public static final AttributeKey<Boolean> ASPNETCORE_ROUTING_IS_FALLBACK =
booleanKey("aspnetcore.routing.is_fallback");

/** Match result - success or failure */
public static final AttributeKey<String> ASPNETCORE_ROUTING_MATCH_STATUS =
stringKey("aspnetcore.routing.match_status");

// Enum definitions
public static final class AspnetcoreDiagnosticsExceptionResultValues {
/** Exception was handled by the exception handling middleware. */
public static final String HANDLED = "handled";

/** Exception was not handled by the exception handling middleware. */
public static final String UNHANDLED = "unhandled";

/** Exception handling was skipped because the response had started. */
public static final String SKIPPED = "skipped";

/** Exception handling didn&#39;t run because the request was aborted. */
public static final String ABORTED = "aborted";

private AspnetcoreDiagnosticsExceptionResultValues() {}
}

public static final class AspnetcoreRateLimitingResultValues {
/** Lease was acquired. */
public static final String ACQUIRED = "acquired";

/** Lease request was rejected by the endpoint limiter. */
public static final String ENDPOINT_LIMITER = "endpoint_limiter";

/** Lease request was rejected by the global limiter. */
public static final String GLOBAL_LIMITER = "global_limiter";

/** Lease request was canceled. */
public static final String REQUEST_CANCELED = "request_canceled";

private AspnetcoreRateLimitingResultValues() {}
}

public static final class AspnetcoreRoutingMatchStatusValues {
/** Match succeeded. */
public static final String SUCCESS = "success";

/** Match failed. */
public static final String FAILURE = "failure";

private AspnetcoreRoutingMatchStatusValues() {}
}

private AspnetcoreAttributes() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

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

import io.opentelemetry.api.common.AttributeKey;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class AspnetcoreIncubatingAttributes {

/** ASP.NET Core exception middleware handling result */
public static final AttributeKey<String> ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT =
stringKey("aspnetcore.diagnostics.exception.result");

/**
* Full type name of the <a
* href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler">{@code
* IExceptionHandler}</a> implementation that handled the exception.
*/
public static final AttributeKey<String> ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE =
stringKey("aspnetcore.diagnostics.handler.type");

/** Rate limiting policy name. */
public static final AttributeKey<String> ASPNETCORE_RATE_LIMITING_POLICY =
stringKey("aspnetcore.rate_limiting.policy");

/** Rate-limiting result, shows whether the lease was acquired or contains a rejection reason */
public static final AttributeKey<String> ASPNETCORE_RATE_LIMITING_RESULT =
stringKey("aspnetcore.rate_limiting.result");

/** Flag indicating if request was handled by the application pipeline. */
public static final AttributeKey<Boolean> ASPNETCORE_REQUEST_IS_UNHANDLED =
booleanKey("aspnetcore.request.is_unhandled");

/** A value that indicates whether the matched route is a fallback route. */
public static final AttributeKey<Boolean> ASPNETCORE_ROUTING_IS_FALLBACK =
booleanKey("aspnetcore.routing.is_fallback");

/** Match result - success or failure */
public static final AttributeKey<String> ASPNETCORE_ROUTING_MATCH_STATUS =
stringKey("aspnetcore.routing.match_status");

// Enum definitions
public static final class AspnetcoreDiagnosticsExceptionResultValues {
/** Exception was handled by the exception handling middleware. */
public static final String HANDLED = "handled";

/** Exception was not handled by the exception handling middleware. */
public static final String UNHANDLED = "unhandled";

/** Exception handling was skipped because the response had started. */
public static final String SKIPPED = "skipped";

/** Exception handling didn&#39;t run because the request was aborted. */
public static final String ABORTED = "aborted";

private AspnetcoreDiagnosticsExceptionResultValues() {}
}

public static final class AspnetcoreRateLimitingResultValues {
/** Lease was acquired. */
public static final String ACQUIRED = "acquired";

/** Lease request was rejected by the endpoint limiter. */
public static final String ENDPOINT_LIMITER = "endpoint_limiter";

/** Lease request was rejected by the global limiter. */
public static final String GLOBAL_LIMITER = "global_limiter";

/** Lease request was canceled. */
public static final String REQUEST_CANCELED = "request_canceled";

private AspnetcoreRateLimitingResultValues() {}
}

public static final class AspnetcoreRoutingMatchStatusValues {
/** Match succeeded. */
public static final String SUCCESS = "success";

/** Match failed. */
public static final String FAILURE = "failure";

private AspnetcoreRoutingMatchStatusValues() {}
}

private AspnetcoreIncubatingAttributes() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public final class CodeIncubatingAttributes {
*/
public static final AttributeKey<String> CODE_NAMESPACE = stringKey("code.namespace");

/**
* 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.
*/
public static final AttributeKey<String> CODE_STACKTRACE = stringKey("code.stacktrace");

// Enum definitions

private CodeIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public final class DbIncubatingAttributes {
longKey("db.cassandra.speculative_execution_count");

/**
* The name of the primary table that the operation is acting upon, including the keyspace name
* (if applicable).
* The name of the primary Cassandra table that the operation is acting upon, including the
* keyspace name (if applicable).
*
* <p>Notes:
*
Expand Down Expand Up @@ -128,6 +128,15 @@ public final class DbIncubatingAttributes {
public static final AttributeKeyTemplate<String> DB_ELASTICSEARCH_PATH_PARTS =
stringKeyTemplate("db.elasticsearch.path_parts");

/**
* An identifier (address, unique name, or any other identifier) of the database instance that is
* executing queries or mutations on the current connection. This is useful in cases where the
* database is running in a clustered environment and the instrumentation is able to record the
* node executing the query. The client may obtain this value in databases like MySQL using
* queries like {@code select @@hostname}.
*/
public static final AttributeKey<String> DB_INSTANCE_ID = stringKey("db.instance.id");

/**
* The fully-qualified class name of the <a
* href="https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/">Java Database Connectivity
Expand All @@ -136,7 +145,7 @@ public final class DbIncubatingAttributes {
public static final AttributeKey<String> DB_JDBC_DRIVER_CLASSNAME =
stringKey("db.jdbc.driver_classname");

/** The collection being accessed within the database stated in {@code db.name}. */
/** The MongoDB collection being accessed within the database stated in {@code db.name}. */
public static final AttributeKey<String> DB_MONGODB_COLLECTION =
stringKey("db.mongodb.collection");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ public final class DeploymentIncubatingAttributes {
/**
* Name of the <a href="https://wikipedia.org/wiki/Deployment_environment">deployment
* environment</a> (aka deployment tier).
*
* <p>Notes:
*
* <ul>
* <li>{@code deployment.environment} does not affect the uniqueness constraints defined through
* the {@code service.namespace}, {@code service.name} and {@code service.instance.id}
* resource attributes. This implies that resources carrying the following attribute
* combinations MUST be considered to be identifying the same service:
* <li>{@code service.name=frontend}, {@code deployment.environment=production}
* <li>{@code service.name=frontend}, {@code deployment.environment=staging}.
* </ul>
*/
public static final AttributeKey<String> DEPLOYMENT_ENVIRONMENT =
stringKey("deployment.environment");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class DeviceIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>It's recommended this value represents a machine readable version of the model identifier
* <li>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.
* </ul>
*/
Expand All @@ -67,8 +67,8 @@ public final class DeviceIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>It's recommended this value represents a human readable version of the device model
* rather than a machine readable alternative.
* <li>It's recommended this value represents a human-readable version of the device model
* rather than a machine-readable alternative.
* </ul>
*/
public static final AttributeKey<String> DEVICE_MODEL_NAME = stringKey("device.model.name");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

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

import io.opentelemetry.api.common.AttributeKey;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DiskAttributes {

/** The disk IO operation direction. */
public static final AttributeKey<String> DISK_IO_DIRECTION = stringKey("disk.io.direction");

// Enum definitions
public static final class DiskIoDirectionValues {
/** read. */
public static final String READ = "read";

/** write. */
public static final String WRITE = "write";

private DiskIoDirectionValues() {}
}

private DiskAttributes() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

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

import io.opentelemetry.api.common.AttributeKey;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DiskIncubatingAttributes {

/** The disk IO operation direction. */
public static final AttributeKey<String> DISK_IO_DIRECTION = stringKey("disk.io.direction");

// Enum definitions
public static final class DiskIoDirectionValues {
/** read. */
public static final String READ = "read";

/** write. */
public static final String WRITE = "write";

private DiskIoDirectionValues() {}
}

private DiskIncubatingAttributes() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

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

import io.opentelemetry.api.common.AttributeKey;

// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DnsAttributes {

/**
* The name being queried.
*
* <p>Notes:
*
* <ul>
* <li>The name being queried. If the name field contains non-printable characters (below 32 or
* above 126), those characters should be represented as escaped base 10 integers (\DDD).
* Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should
* be converted to \t, \r, and \n respectively.
* </ul>
*/
public static final AttributeKey<String> DNS_QUESTION_NAME = stringKey("dns.question.name");

// Enum definitions

private DnsAttributes() {}
}
Loading

0 comments on commit 683099c

Please sign in to comment.