Skip to content

Commit

Permalink
Use weaver for codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed Aug 5, 2024
1 parent 14f03db commit f045f41
Show file tree
Hide file tree
Showing 62 changed files with 1,171 additions and 1,809 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,35 @@
import io.opentelemetry.api.common.AttributeKey;

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

/**
* Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the
* android operating system. More information can be found <a
* Uniquely identifies the framework API revision offered by a version (<code>os.version</code>)
* of the android operating system. More information can be found <a
* href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">here</a>.
*/
public static final AttributeKey<String> ANDROID_OS_API_LEVEL = stringKey("android.os.api_level");

/**
* Deprecated use the {@code device.app.lifecycle} event definition including {@code
* android.state} as a payload field instead.
* Deprecated use the <code>device.app.lifecycle</code> event definition including <code>
* android.state</code> as a payload field instead.
*
* <p>Notes:
*
* <ul>
* <li>The Android lifecycle states are defined in <a
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived.
* <li>The Android lifecycle states are defined in [Activity lifecycle
* callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc),
* and from which the `OS identifiers` are derived.
* </ul>
*/
public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");

// Enum definitions
/** Values for {@link #ANDROID_STATE}. */
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.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.List;

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

Expand All @@ -23,9 +23,9 @@ public final class BrowserIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>This value is intended to be taken from the <a
* href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> ({@code
* navigator.userAgentData.brands}).
* <li>This value is intended to be taken from the [UA client hints
* API](https://wicg.github.io/ua-client-hints/#interface)
* (`navigator.userAgentData.brands`).
* </ul>
*/
public static final AttributeKey<List<String>> BROWSER_BRANDS = stringArrayKey("browser.brands");
Expand All @@ -36,7 +36,7 @@ public final class BrowserIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>This value is intended to be taken from the Navigator API {@code navigator.language}.
* <li>This value is intended to be taken from the Navigator API `navigator.language`.
* </ul>
*/
public static final AttributeKey<String> BROWSER_LANGUAGE = stringKey("browser.language");
Expand All @@ -47,9 +47,9 @@ public final class BrowserIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>This value is intended to be taken from the <a
* href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> ({@code
* navigator.userAgentData.mobile}). If unavailable, this attribute SHOULD be left unset.
* <li>This value is intended to be taken from the [UA client hints
* API](https://wicg.github.io/ua-client-hints/#interface)
* (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset.
* </ul>
*/
public static final AttributeKey<Boolean> BROWSER_MOBILE = booleanKey("browser.mobile");
Expand All @@ -60,16 +60,15 @@ public final class BrowserIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>This value is intended to be taken from the <a
* href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> ({@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 <a
* href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform">W3C User-Agent Client
* Hints specification</a>. Note that some (but not all) of these values can overlap with
* values in the <a href="./os.md">{@code os.type} and {@code os.name} attributes</a>.
* However, for consistency, the values in the {@code browser.platform} attribute should
* capture the exact value that the user agent provides.
* <li>This value is intended to be taken from the [UA client hints
* API](https://wicg.github.io/ua-client-hints/#interface)
* (`navigator.userAgentData.platform`). If unavailable, the legacy `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](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform).
* Note that some (but not all) of these values can overlap with values in the [`os.type`
* and `os.name` attributes](./os.md). However, for consistency, the values in the
* `browser.platform` attribute should capture the exact value that the user agent provides.
* </ul>
*/
public static final AttributeKey<String> BROWSER_PLATFORM = stringKey("browser.platform");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import io.opentelemetry.api.common.AttributeKey;

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

Expand All @@ -24,7 +24,7 @@ public final class CloudIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>Availability zones are called &quot;zones&quot; on Alibaba Cloud and Google Cloud.
* <li>Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
* </ul>
*/
public static final AttributeKey<String> CLOUD_AVAILABILITY_ZONE =
Expand All @@ -36,7 +36,7 @@ public final class CloudIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>The prefix of the service SHOULD match the one specified in {@code cloud.provider}.
* <li>The prefix of the service SHOULD match the one specified in `cloud.provider`.
* </ul>
*/
public static final AttributeKey<String> CLOUD_PLATFORM = stringKey("cloud.platform");
Expand All @@ -50,13 +50,12 @@ public final class CloudIncubatingAttributes {
* <p>Notes:
*
* <ul>
* <li>Refer to your provider's docs to see the available regions, for example <a
* href="https://www.alibabacloud.com/help/doc-detail/40654.htm">Alibaba Cloud regions</a>,
* <a href="https://aws.amazon.com/about-aws/global-infrastructure/regions_az/">AWS
* regions</a>, <a
* href="https://azure.microsoft.com/global-infrastructure/geographies/">Azure regions</a>,
* <a href="https://cloud.google.com/about/locations">Google Cloud regions</a>, or <a
* href="https://www.tencentcloud.com/document/product/213/6091">Tencent Cloud regions</a>.
* <li>Refer to your provider's docs to see the available regions, for example [Alibaba Cloud
* regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS
* regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure
* regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud
* regions](https://cloud.google.com/about/locations), or [Tencent Cloud
* regions](https://www.tencentcloud.com/document/product/213/6091).
* </ul>
*/
public static final AttributeKey<String> CLOUD_REGION = stringKey("cloud.region");
Expand All @@ -73,22 +72,19 @@ public final class CloudIncubatingAttributes {
*
* <ul>
* <li>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.
* <li>The exact value to use for {@code cloud.resource_id} depends on the cloud provider. The
* it may be necessary to set `cloud.resource_id` as a span attribute instead.
* <p>The exact value to use for `cloud.resource_id` depends on the cloud provider. The
* following well-known definitions MUST be used if you set this attribute and they apply:
* <li><strong>AWS Lambda:</strong> The function <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>.
* Take care not to use the &quot;invoked ARN&quot; directly but replace any <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias
* suffix</a> with the resolved function version, as the same runtime instance may be
* invokable with multiple different aliases.
* <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
* Resource ID</a> of the invoked function, <em>not</em> the function app, having the form
* {@code
* /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>}.
* <p>**AWS Lambda:** The function
* [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). Take
* care not to use the "invoked ARN" directly but replace any [alias
* suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the
* resolved function version, as the same runtime instance may be invokable with multiple
* different aliases. **GCP:** The [URI of the
* resource](https://cloud.google.com/iam/docs/full-resource-names) **Azure:** The [Fully
* Qualified Resource ID](https://docs.microsoft.com/rest/api/resources/resources/get-by-id)
* of the invoked function, not* the function app, having the form
* `/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`.
* This means that a span attribute MUST be used, as an Azure function app can host multiple
* functions that would usually share a TracerProvider.
* </ul>
Expand All @@ -98,114 +94,117 @@ public final class CloudIncubatingAttributes {
// Enum definitions
/** Values for {@link #CLOUD_PLATFORM}. */
public static final class CloudPlatformValues {
/** Alibaba Cloud Elastic Compute Service. */

/** Alibaba Cloud Elastic Compute Service */
public static final String ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs";

/** Alibaba Cloud Function Compute. */
/** Alibaba Cloud Function Compute */
public static final String ALIBABA_CLOUD_FC = "alibaba_cloud_fc";

/** Red Hat OpenShift on Alibaba Cloud. */
/** Red Hat OpenShift on Alibaba Cloud */
public static final String ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift";

/** AWS Elastic Compute Cloud. */
/** AWS Elastic Compute Cloud */
public static final String AWS_EC2 = "aws_ec2";

/** AWS Elastic Container Service. */
/** AWS Elastic Container Service */
public static final String AWS_ECS = "aws_ecs";

/** AWS Elastic Kubernetes Service. */
/** AWS Elastic Kubernetes Service */
public static final String AWS_EKS = "aws_eks";

/** AWS Lambda. */
/** AWS Lambda */
public static final String AWS_LAMBDA = "aws_lambda";

/** AWS Elastic Beanstalk. */
/** AWS Elastic Beanstalk */
public static final String AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk";

/** AWS App Runner. */
/** AWS App Runner */
public static final String AWS_APP_RUNNER = "aws_app_runner";

/** Red Hat OpenShift on AWS (ROSA). */
/** Red Hat OpenShift on AWS (ROSA) */
public static final String AWS_OPENSHIFT = "aws_openshift";

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

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

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

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

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

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

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

/** Google Bare Metal Solution (BMS). */
/** Google Bare Metal Solution (BMS) */
public static final String GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution";

/** Google Cloud Compute Engine (GCE). */
/** Google Cloud Compute Engine (GCE) */
public static final String GCP_COMPUTE_ENGINE = "gcp_compute_engine";

/** Google Cloud Run. */
/** Google Cloud Run */
public static final String GCP_CLOUD_RUN = "gcp_cloud_run";

/** Google Cloud Kubernetes Engine (GKE). */
/** Google Cloud Kubernetes Engine (GKE) */
public static final String GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine";

/** Google Cloud Functions (GCF). */
/** Google Cloud Functions (GCF) */
public static final String GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions";

/** Google Cloud App Engine (GAE). */
/** Google Cloud App Engine (GAE) */
public static final String GCP_APP_ENGINE = "gcp_app_engine";

/** Red Hat OpenShift on Google Cloud. */
/** Red Hat OpenShift on Google Cloud */
public static final String GCP_OPENSHIFT = "gcp_openshift";

/** Red Hat OpenShift on IBM Cloud. */
/** Red Hat OpenShift on IBM Cloud */
public static final String IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift";

/** Tencent Cloud Cloud Virtual Machine (CVM). */
/** Tencent Cloud Cloud Virtual Machine (CVM) */
public static final String TENCENT_CLOUD_CVM = "tencent_cloud_cvm";

/** Tencent Cloud Elastic Kubernetes Service (EKS). */
/** Tencent Cloud Elastic Kubernetes Service (EKS) */
public static final String TENCENT_CLOUD_EKS = "tencent_cloud_eks";

/** Tencent Cloud Serverless Cloud Function (SCF). */
/** Tencent Cloud Serverless Cloud Function (SCF) */
public static final String TENCENT_CLOUD_SCF = "tencent_cloud_scf";

private CloudPlatformValues() {}
}

// Enum definitions
/** Values for {@link #CLOUD_PROVIDER}. */
public static final class CloudProviderValues {
/** Alibaba Cloud. */

/** Alibaba Cloud */
public static final String ALIBABA_CLOUD = "alibaba_cloud";

/** Amazon Web Services. */
/** Amazon Web Services */
public static final String AWS = "aws";

/** Microsoft Azure. */
/** Microsoft Azure */
public static final String AZURE = "azure";

/** Google Cloud Platform. */
/** Google Cloud Platform */
public static final String GCP = "gcp";

/** Heroku Platform as a Service. */
/** Heroku Platform as a Service */
public static final String HEROKU = "heroku";

/** IBM Cloud. */
/** IBM Cloud */
public static final String IBM_CLOUD = "ibm_cloud";

/** Tencent Cloud. */
/** Tencent Cloud */
public static final String TENCENT_CLOUD = "tencent_cloud";

private CloudProviderValues() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import io.opentelemetry.api.common.AttributeKey;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import io.opentelemetry.api.common.AttributeKey;

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

/**
* The column number in {@code code.filepath} best representing the operation. It SHOULD point
* within the code unit named in {@code code.function}.
* The column number in <code>code.filepath</code> best representing the operation. It SHOULD
* point within the code unit named in <code>code.function</code>.
*/
public static final AttributeKey<Long> CODE_COLUMN = longKey("code.column");

Expand All @@ -33,15 +33,15 @@ public final class CodeIncubatingAttributes {
public static final AttributeKey<String> 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}.
* The line number in <code>code.filepath</code> best representing the operation. It SHOULD point
* within the code unit named in <code>code.function</code>.
*/
public static final AttributeKey<Long> CODE_LINENO = longKey("code.lineno");

/**
* The &quot;namespace&quot; 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.
* The &quot;namespace&quot; within which <code>code.function</code> is defined. Usually the
* qualified class or module name, such that <code>code.namespace</code> + some separator + <code>
* code.function</code> form a unique identifier for the code unit.
*/
public static final AttributeKey<String> CODE_NAMESPACE = stringKey("code.namespace");

Expand Down
Loading

0 comments on commit f045f41

Please sign in to comment.