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

semantic-conventions: don't annotate Enum values with Final #4085

Merged
merged 2 commits into from
Jul 26, 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Drop Final annotation from Enum in semantic conventions
([#4085](https://github.com/open-telemetry/opentelemetry-python/pull/4085))

## Version 1.26.0/0.47b0 (2024-07-25)

- Standardizing timeout calculation in measurement consumer collect to nanoseconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@


class AwsEcsLaunchtypeValues(Enum):
EC2: Final = "ec2"
EC2 = "ec2"
"""ec2."""
FARGATE: Final = "fargate"
FARGATE = "fargate"
"""fargate."""
Original file line number Diff line number Diff line change
Expand Up @@ -67,76 +67,76 @@


class CloudPlatformValues(Enum):
ALIBABA_CLOUD_ECS: Final = "alibaba_cloud_ecs"
ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs"
"""Alibaba Cloud Elastic Compute Service."""
ALIBABA_CLOUD_FC: Final = "alibaba_cloud_fc"
ALIBABA_CLOUD_FC = "alibaba_cloud_fc"
"""Alibaba Cloud Function Compute."""
ALIBABA_CLOUD_OPENSHIFT: Final = "alibaba_cloud_openshift"
ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift"
"""Red Hat OpenShift on Alibaba Cloud."""
AWS_EC2: Final = "aws_ec2"
AWS_EC2 = "aws_ec2"
"""AWS Elastic Compute Cloud."""
AWS_ECS: Final = "aws_ecs"
AWS_ECS = "aws_ecs"
"""AWS Elastic Container Service."""
AWS_EKS: Final = "aws_eks"
AWS_EKS = "aws_eks"
"""AWS Elastic Kubernetes Service."""
AWS_LAMBDA: Final = "aws_lambda"
AWS_LAMBDA = "aws_lambda"
"""AWS Lambda."""
AWS_ELASTIC_BEANSTALK: Final = "aws_elastic_beanstalk"
AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk"
"""AWS Elastic Beanstalk."""
AWS_APP_RUNNER: Final = "aws_app_runner"
AWS_APP_RUNNER = "aws_app_runner"
"""AWS App Runner."""
AWS_OPENSHIFT: Final = "aws_openshift"
AWS_OPENSHIFT = "aws_openshift"
"""Red Hat OpenShift on AWS (ROSA)."""
AZURE_VM: Final = "azure_vm"
AZURE_VM = "azure_vm"
"""Azure Virtual Machines."""
AZURE_CONTAINER_APPS: Final = "azure_container_apps"
AZURE_CONTAINER_APPS = "azure_container_apps"
"""Azure Container Apps."""
AZURE_CONTAINER_INSTANCES: Final = "azure_container_instances"
AZURE_CONTAINER_INSTANCES = "azure_container_instances"
"""Azure Container Instances."""
AZURE_AKS: Final = "azure_aks"
AZURE_AKS = "azure_aks"
"""Azure Kubernetes Service."""
AZURE_FUNCTIONS: Final = "azure_functions"
AZURE_FUNCTIONS = "azure_functions"
"""Azure Functions."""
AZURE_APP_SERVICE: Final = "azure_app_service"
AZURE_APP_SERVICE = "azure_app_service"
"""Azure App Service."""
AZURE_OPENSHIFT: Final = "azure_openshift"
AZURE_OPENSHIFT = "azure_openshift"
"""Azure Red Hat OpenShift."""
GCP_BARE_METAL_SOLUTION: Final = "gcp_bare_metal_solution"
GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution"
"""Google Bare Metal Solution (BMS)."""
GCP_COMPUTE_ENGINE: Final = "gcp_compute_engine"
GCP_COMPUTE_ENGINE = "gcp_compute_engine"
"""Google Cloud Compute Engine (GCE)."""
GCP_CLOUD_RUN: Final = "gcp_cloud_run"
GCP_CLOUD_RUN = "gcp_cloud_run"
"""Google Cloud Run."""
GCP_KUBERNETES_ENGINE: Final = "gcp_kubernetes_engine"
GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine"
"""Google Cloud Kubernetes Engine (GKE)."""
GCP_CLOUD_FUNCTIONS: Final = "gcp_cloud_functions"
GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions"
"""Google Cloud Functions (GCF)."""
GCP_APP_ENGINE: Final = "gcp_app_engine"
GCP_APP_ENGINE = "gcp_app_engine"
"""Google Cloud App Engine (GAE)."""
GCP_OPENSHIFT: Final = "gcp_openshift"
GCP_OPENSHIFT = "gcp_openshift"
"""Red Hat OpenShift on Google Cloud."""
IBM_CLOUD_OPENSHIFT: Final = "ibm_cloud_openshift"
IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift"
"""Red Hat OpenShift on IBM Cloud."""
TENCENT_CLOUD_CVM: Final = "tencent_cloud_cvm"
TENCENT_CLOUD_CVM = "tencent_cloud_cvm"
"""Tencent Cloud Cloud Virtual Machine (CVM)."""
TENCENT_CLOUD_EKS: Final = "tencent_cloud_eks"
TENCENT_CLOUD_EKS = "tencent_cloud_eks"
"""Tencent Cloud Elastic Kubernetes Service (EKS)."""
TENCENT_CLOUD_SCF: Final = "tencent_cloud_scf"
TENCENT_CLOUD_SCF = "tencent_cloud_scf"
"""Tencent Cloud Serverless Cloud Function (SCF)."""


class CloudProviderValues(Enum):
ALIBABA_CLOUD: Final = "alibaba_cloud"
ALIBABA_CLOUD = "alibaba_cloud"
"""Alibaba Cloud."""
AWS: Final = "aws"
AWS = "aws"
"""Amazon Web Services."""
AZURE: Final = "azure"
AZURE = "azure"
"""Microsoft Azure."""
GCP: Final = "gcp"
GCP = "gcp"
"""Google Cloud Platform."""
HEROKU: Final = "heroku"
HEROKU = "heroku"
"""Heroku Platform as a Service."""
IBM_CLOUD: Final = "ibm_cloud"
IBM_CLOUD = "ibm_cloud"
"""IBM Cloud."""
TENCENT_CLOUD: Final = "tencent_cloud"
TENCENT_CLOUD = "tencent_cloud"
"""Tencent Cloud."""
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@


class ContainerCpuStateValues(Enum):
USER: Final = "user"
USER = "user"
"""When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows)."""
SYSTEM: Final = "system"
SYSTEM = "system"
"""When CPU is used by the system (host OS)."""
KERNEL: Final = "kernel"
KERNEL = "kernel"
"""When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)."""
Loading