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

Include Incubating prefix on enum inner class names #83

Merged
merged 3 commits into from
Sep 23, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ public final class {{ my_class_name }} {
/** Values for {@link #{{ attribute.name | screaming_snake_case }}}. */
{%- endif -%}
{% if attribute is stable or attribute is deprecated %}@Deprecated{% endif %}
public static final class {{ attribute.name | pascal_case }}Values {
public static final class {{ attribute.name | pascal_case }}IncubatingValues {
{%- for member in attribute.type.members %}
{{ [member.brief or (member.id ~ '.')] | comment(indent=4) }}
public static final {{ attribute.type | instantiated_type | map_text("java_enum_type") }} {{ member.id | screaming_snake_case }} = {{ member.value | print_member_value }};
{%- endfor %}
private {{ attribute.name | pascal_case }}Values() {}
private {{ attribute.name | pascal_case }}IncubatingValues() {}
}
{% endfor %}

private {{ my_class_name }}() {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class AndroidIncubatingAttributes {

// Enum definitions
/** Values for {@link #ANDROID_STATE}. */
public static final class AndroidStateValues {
public static final class AndroidStateIncubatingValues {
/**
* 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 All @@ -53,7 +53,7 @@ public static final class AndroidStateValues {
*/
public static final String FOREGROUND = "foreground";

private AndroidStateValues() {}
private AndroidStateIncubatingValues() {}
}

private AndroidIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ public final class AwsIncubatingAttributes {

// Enum definitions
/** Values for {@link #AWS_ECS_LAUNCHTYPE}. */
public static final class AwsEcsLaunchtypeValues {
public static final class AwsEcsLaunchtypeIncubatingValues {
/** ec2. */
public static final String EC2 = "ec2";

/** fargate. */
public static final String FARGATE = "fargate";

private AwsEcsLaunchtypeValues() {}
private AwsEcsLaunchtypeIncubatingValues() {}
}

private AwsIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class CicdIncubatingAttributes {

// Enum definitions
/** Values for {@link #CICD_PIPELINE_TASK_TYPE}. */
public static final class CicdPipelineTaskTypeValues {
public static final class CicdPipelineTaskTypeIncubatingValues {
/** build */
public static final String BUILD = "build";

Expand All @@ -54,7 +54,7 @@ public static final class CicdPipelineTaskTypeValues {
/** deploy */
public static final String DEPLOY = "deploy";

private CicdPipelineTaskTypeValues() {}
private CicdPipelineTaskTypeIncubatingValues() {}
}

private CicdIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public final class CloudIncubatingAttributes {

// Enum definitions
/** Values for {@link #CLOUD_PLATFORM}. */
public static final class CloudPlatformValues {
public static final class CloudPlatformIncubatingValues {
/** Alibaba Cloud Elastic Compute Service */
public static final String ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs";

Expand Down Expand Up @@ -178,11 +178,11 @@ public static final class CloudPlatformValues {
/** Tencent Cloud Serverless Cloud Function (SCF) */
public static final String TENCENT_CLOUD_SCF = "tencent_cloud_scf";

private CloudPlatformValues() {}
private CloudPlatformIncubatingValues() {}
}

/** Values for {@link #CLOUD_PROVIDER}. */
public static final class CloudProviderValues {
public static final class CloudProviderIncubatingValues {
/** Alibaba Cloud */
public static final String ALIBABA_CLOUD = "alibaba_cloud";

Expand All @@ -204,7 +204,7 @@ public static final class CloudProviderValues {
/** Tencent Cloud */
public static final String TENCENT_CLOUD = "tencent_cloud";

private CloudProviderValues() {}
private CloudProviderIncubatingValues() {}
}

private CloudIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public final class ContainerIncubatingAttributes {
* @deprecated Replaced by {@code cpu.mode}
*/
@Deprecated
public static final class ContainerCpuStateValues {
public static final class ContainerCpuStateIncubatingValues {
/**
* When tasks of the cgroup are in user mode (Linux). When all container processes are in user
* mode (Windows).
Expand All @@ -141,7 +141,7 @@ public static final class ContainerCpuStateValues {
*/
public static final String KERNEL = "kernel";

private ContainerCpuStateValues() {}
private ContainerCpuStateIncubatingValues() {}
}

private ContainerIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class CpuIncubatingAttributes {

// Enum definitions
/** Values for {@link #CPU_MODE}. */
public static final class CpuModeValues {
public static final class CpuModeIncubatingValues {
/** user. */
public static final String USER = "user";

Expand All @@ -43,7 +43,7 @@ public static final class CpuModeValues {
/** kernel. */
public static final String KERNEL = "kernel";

private CpuModeValues() {}
private CpuModeIncubatingValues() {}
}

private CpuIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public final class DbIncubatingAttributes {

// Enum definitions
/** Values for {@link #DB_CASSANDRA_CONSISTENCY_LEVEL}. */
public static final class DbCassandraConsistencyLevelValues {
public static final class DbCassandraConsistencyLevelIncubatingValues {
/** all. */
public static final String ALL = "all";

Expand Down Expand Up @@ -406,18 +406,18 @@ public static final class DbCassandraConsistencyLevelValues {
/** local_serial. */
public static final String LOCAL_SERIAL = "local_serial";

private DbCassandraConsistencyLevelValues() {}
private DbCassandraConsistencyLevelIncubatingValues() {}
}

/** Values for {@link #DB_CLIENT_CONNECTION_STATE}. */
public static final class DbClientConnectionStateValues {
public static final class DbClientConnectionStateIncubatingValues {
/** idle. */
public static final String IDLE = "idle";

/** used. */
public static final String USED = "used";

private DbClientConnectionStateValues() {}
private DbClientConnectionStateIncubatingValues() {}
}

/**
Expand All @@ -426,29 +426,29 @@ private DbClientConnectionStateValues() {}
* @deprecated Replaced by {@code db.client.connection.state}.
*/
@Deprecated
public static final class DbClientConnectionsStateValues {
public static final class DbClientConnectionsStateIncubatingValues {
/** idle. */
public static final String IDLE = "idle";

/** used. */
public static final String USED = "used";

private DbClientConnectionsStateValues() {}
private DbClientConnectionsStateIncubatingValues() {}
}

/** Values for {@link #DB_COSMOSDB_CONNECTION_MODE}. */
public static final class DbCosmosdbConnectionModeValues {
public static final class DbCosmosdbConnectionModeIncubatingValues {
/** Gateway (HTTP) connections mode */
public static final String GATEWAY = "gateway";

/** Direct connection. */
public static final String DIRECT = "direct";

private DbCosmosdbConnectionModeValues() {}
private DbCosmosdbConnectionModeIncubatingValues() {}
}

/** Values for {@link #DB_COSMOSDB_OPERATION_TYPE}. */
public static final class DbCosmosdbOperationTypeValues {
public static final class DbCosmosdbOperationTypeIncubatingValues {
/** invalid. */
public static final String INVALID = "Invalid";

Expand Down Expand Up @@ -494,11 +494,11 @@ public static final class DbCosmosdbOperationTypeValues {
/** execute_javascript. */
public static final String EXECUTE_JAVASCRIPT = "ExecuteJavaScript";

private DbCosmosdbOperationTypeValues() {}
private DbCosmosdbOperationTypeIncubatingValues() {}
}

/** Values for {@link #DB_SYSTEM}. */
public static final class DbSystemValues {
public static final class DbSystemIncubatingValues {
/** Some other SQL database. Fallback only. See notes. */
public static final String OTHER_SQL = "other_sql";

Expand Down Expand Up @@ -661,7 +661,7 @@ public static final class DbSystemValues {
/** Vertica */
public static final String VERTICA = "vertica";

private DbSystemValues() {}
private DbSystemIncubatingValues() {}
}

private DbIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public final class DeploymentIncubatingAttributes {

// Enum definitions
/** Values for {@link #DEPLOYMENT_STATUS}. */
public static final class DeploymentStatusValues {
public static final class DeploymentStatusIncubatingValues {
/** failed */
public static final String FAILED = "failed";

/** succeeded */
public static final String SUCCEEDED = "succeeded";

private DeploymentStatusValues() {}
private DeploymentStatusIncubatingValues() {}
}

private DeploymentIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public final class DiskIncubatingAttributes {

// Enum definitions
/** Values for {@link #DISK_IO_DIRECTION}. */
public static final class DiskIoDirectionValues {
public static final class DiskIoDirectionIncubatingValues {
/** read. */
public static final String READ = "read";

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

private DiskIoDirectionValues() {}
private DiskIoDirectionIncubatingValues() {}
}

private DiskIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public final class ErrorIncubatingAttributes {
* io.opentelemetry.semconv.ErrorAttributes.ErrorTypeValues}.
*/
@Deprecated
public static final class ErrorTypeValues {
public static final class ErrorTypeIncubatingValues {
/** A fallback error value to be used when the instrumentation doesn't define a custom value. */
public static final String OTHER = "_OTHER";

private ErrorTypeValues() {}
private ErrorTypeIncubatingValues() {}
}

private ErrorIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public final class FaasIncubatingAttributes {

// Enum definitions
/** Values for {@link #FAAS_DOCUMENT_OPERATION}. */
public static final class FaasDocumentOperationValues {
public static final class FaasDocumentOperationIncubatingValues {
/** When a new object is created. */
public static final String INSERT = "insert";

Expand All @@ -181,11 +181,11 @@ public static final class FaasDocumentOperationValues {
/** When an object is deleted. */
public static final String DELETE = "delete";

private FaasDocumentOperationValues() {}
private FaasDocumentOperationIncubatingValues() {}
}

/** Values for {@link #FAAS_INVOKED_PROVIDER}. */
public static final class FaasInvokedProviderValues {
public static final class FaasInvokedProviderIncubatingValues {
/** Alibaba Cloud */
public static final String ALIBABA_CLOUD = "alibaba_cloud";

Expand All @@ -201,11 +201,11 @@ public static final class FaasInvokedProviderValues {
/** Tencent Cloud */
public static final String TENCENT_CLOUD = "tencent_cloud";

private FaasInvokedProviderValues() {}
private FaasInvokedProviderIncubatingValues() {}
}

/** Values for {@link #FAAS_TRIGGER}. */
public static final class FaasTriggerValues {
public static final class FaasTriggerIncubatingValues {
/** A response to some data source operation such as a database or filesystem read/write */
public static final String DATASOURCE = "datasource";

Expand All @@ -221,7 +221,7 @@ public static final class FaasTriggerValues {
/** If none of the others apply */
public static final String OTHER = "other";

private FaasTriggerValues() {}
private FaasTriggerIncubatingValues() {}
}

private FaasIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public final class GenAiIncubatingAttributes {

// Enum definitions
/** Values for {@link #GEN_AI_OPERATION_NAME}. */
public static final class GenAiOperationNameValues {
public static final class GenAiOperationNameIncubatingValues {
/**
* Chat completion operation such as <a
* href="https://platform.openai.com/docs/api-reference/chat">OpenAI Chat API</a>
Expand All @@ -159,11 +159,11 @@ public static final class GenAiOperationNameValues {
*/
public static final String TEXT_COMPLETION = "text_completion";

private GenAiOperationNameValues() {}
private GenAiOperationNameIncubatingValues() {}
}

/** Values for {@link #GEN_AI_SYSTEM}. */
public static final class GenAiSystemValues {
public static final class GenAiSystemIncubatingValues {
/** OpenAI */
public static final String OPENAI = "openai";

Expand All @@ -176,18 +176,18 @@ public static final class GenAiSystemValues {
/** Cohere */
public static final String COHERE = "cohere";

private GenAiSystemValues() {}
private GenAiSystemIncubatingValues() {}
}

/** Values for {@link #GEN_AI_TOKEN_TYPE}. */
public static final class GenAiTokenTypeValues {
public static final class GenAiTokenTypeIncubatingValues {
/** Input tokens (prompt, input, etc.) */
public static final String INPUT = "input";

/** Output tokens (completion, response, etc.) */
public static final String COMPLETION = "output";

private GenAiTokenTypeValues() {}
private GenAiTokenTypeIncubatingValues() {}
}

private GenAiIncubatingAttributes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class GoIncubatingAttributes {

// Enum definitions
/** Values for {@link #GO_MEMORY_TYPE}. */
public static final class GoMemoryTypeValues {
public static final class GoMemoryTypeIncubatingValues {
/**
* Memory allocated from the heap that is reserved for stack space, whether or not it is
* currently in-use.
Expand All @@ -31,7 +31,7 @@ public static final class GoMemoryTypeValues {
*/
public static final String OTHER = "other";

private GoMemoryTypeValues() {}
private GoMemoryTypeIncubatingValues() {}
}

private GoIncubatingAttributes() {}
Expand Down
Loading
Loading