Skip to content
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

update generated semantic convention classes to v1.16.0 #5033

Merged
merged 1 commit into from Dec 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildscripts/semantic-convention/generate.sh
Expand Up @@ -4,7 +4,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="${SCRIPT_DIR}/../../"

# freeze the spec & generator tools versions to make SemanticAttributes generation reproducible
SEMCONV_VERSION=1.15.0
SEMCONV_VERSION=1.16.0
SPEC_VERSION=v$SEMCONV_VERSION
SCHEMA_URL=https://opentelemetry.io/schemas/$SEMCONV_VERSION
GENERATOR_VERSION=0.14.0
Expand Down
Expand Up @@ -18,7 +18,7 @@
@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.15.0";
public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.16.0";

/**
* Array of brand name and version separated by a space
Expand Down Expand Up @@ -404,7 +404,11 @@ public final class ResourceAttributes {
*/
public static final AttributeKey<Long> FAAS_MAX_MEMORY = longKey("faas.max_memory");

/** Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. */
/**
* Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For
* non-containerized Linux systems, the {@code machine-id} located in {@code /etc/machine-id} or
* {@code /var/lib/dbus/machine-id} may be used.
*/
public static final AttributeKey<String> HOST_ID = stringKey("host.id");

/**
Expand Down Expand Up @@ -672,6 +676,8 @@ public static final class CloudProviderValues {
public static final String AZURE = "azure";
/** Google Cloud Platform. */
public static final String GCP = "gcp";
/** IBM Cloud. */
public static final String IBM_CLOUD = "ibm_cloud";
/** Tencent Cloud. */
public static final String TENCENT_CLOUD = "tencent_cloud";

Expand All @@ -683,6 +689,8 @@ public static final class CloudPlatformValues {
public static final String ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs";
/** Alibaba Cloud Function Compute. */
public static final String ALIBABA_CLOUD_FC = "alibaba_cloud_fc";
/** Red Hat OpenShift on Alibaba Cloud. */
public static final String ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift";
/** AWS Elastic Compute Cloud. */
public static final String AWS_EC2 = "aws_ec2";
/** AWS Elastic Container Service. */
Expand All @@ -695,6 +703,8 @@ public static final class CloudPlatformValues {
public static final String AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk";
/** AWS App Runner. */
public static final String AWS_APP_RUNNER = "aws_app_runner";
/** Red Hat OpenShift on AWS (ROSA). */
public static final String AWS_OPENSHIFT = "aws_openshift";
/** Azure Virtual Machines. */
public static final String AZURE_VM = "azure_vm";
/** Azure Container Instances. */
Expand All @@ -705,6 +715,8 @@ public static final class CloudPlatformValues {
public static final String AZURE_FUNCTIONS = "azure_functions";
/** 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";
/** Google Cloud Compute Engine (GCE). */
public static final String GCP_COMPUTE_ENGINE = "gcp_compute_engine";
/** Google Cloud Run. */
Expand All @@ -715,6 +727,10 @@ public static final class CloudPlatformValues {
public static final String GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions";
/** Google Cloud App Engine (GAE). */
public static final String GCP_APP_ENGINE = "gcp_app_engine";
/** Red Hat OpenShift on Google Cloud. */
public static final String GOOGLE_CLOUD_OPENSHIFT = "google_cloud_openshift";
/** Red Hat OpenShift on IBM Cloud. */
public static final String IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift";
/** Tencent Cloud Cloud Virtual Machine (CVM). */
public static final String TENCENT_CLOUD_CVM = "tencent_cloud_cvm";
/** Tencent Cloud Elastic Kubernetes Service (EKS). */
Expand Down
Expand Up @@ -19,7 +19,7 @@
@SuppressWarnings("unused")
public final class SemanticAttributes {
/** The URL of the OpenTelemetry schema for these keys and values. */
public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.15.0";
public static final String SCHEMA_URL = "https://opentelemetry.io/schemas/1.16.0";

/**
* The type of the exception (its fully-qualified class name, if applicable). The dynamic type of
Expand All @@ -40,15 +40,13 @@ public final class SemanticAttributes {
public static final AttributeKey<String> EVENT_NAME = stringKey("event.name");

/**
* The domain identifies the context in which an event happened. An event name is unique only
* within a domain.
* The domain identifies the business context for the events.
*
* <p>Notes:
*
* <ul>
* <li>An {@code event.name} is supposed to be unique only in the context of an {@code
* event.domain}, so this allows for two events in different domains to have same {@code
* event.name}, yet be unrelated events.
* <li>Events across different domains may have same {@code event.name}, yet be unrelated
* events.
* </ul>
*/
public static final AttributeKey<String> EVENT_DOMAIN = stringKey("event.domain");
Expand Down Expand Up @@ -398,6 +396,31 @@ public final class SemanticAttributes {
*/
public static final AttributeKey<String> FAAS_INVOKED_REGION = stringKey("faas.invoked_region");

/** The unique identifier of the feature flag. */
public static final AttributeKey<String> FEATURE_FLAG_KEY = stringKey("feature_flag.key");

/** The name of the service provider that performs the flag evaluation. */
public static final AttributeKey<String> 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.
*
* <p>Notes:
*
* <ul>
* <li>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}.
* <li>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.
* </ul>
*/
public static final AttributeKey<String> FEATURE_FLAG_VARIANT = stringKey("feature_flag.variant");

/** Transport protocol used. See note below. */
public static final AttributeKey<String> NET_TRANSPORT = stringKey("net.transport");

Expand Down Expand Up @@ -867,6 +890,10 @@ public final class SemanticAttributes {
public static final AttributeKey<Long> MESSAGING_KAFKA_PARTITION =
longKey("messaging.kafka.partition");

/** The offset of a record in the corresponding Kafka partition. */
public static final AttributeKey<Long> MESSAGING_KAFKA_MESSAGE_OFFSET =
longKey("messaging.kafka.message.offset");

/** A boolean that is true if the message is a tombstone. */
public static final AttributeKey<Boolean> MESSAGING_KAFKA_TOMBSTONE =
booleanKey("messaging.kafka.tombstone");
Expand Down