From 669bdf8d3d3f187612ce62dc64bc991d19227427 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Thu, 6 Jun 2024 11:05:38 -0700 Subject: [PATCH] Try generating semconv with new naming rules (no _) --- .../_incubating/attributes/aws_attributes.py | 46 +++++++------ .../attributes/cloud_attributes.py | 66 +++++++++---------- .../attributes/cloudevents_attributes.py | 10 +-- .../attributes/container_attributes.py | 6 +- .../_incubating/attributes/db_attributes.py | 54 +++++++-------- .../_incubating/attributes/faas_attributes.py | 16 ++--- ...ttributes.py => featureflag_attributes.py} | 6 +- .../_incubating/attributes/gcp_attributes.py | 4 +- .../attributes/heroku_attributes.py | 2 +- .../_incubating/attributes/http_attributes.py | 28 ++++---- .../_incubating/attributes/k8s_attributes.py | 2 +- .../_incubating/attributes/log_attributes.py | 4 +- .../attributes/message_attributes.py | 4 +- .../attributes/messaging_attributes.py | 44 ++++++------- .../attributes/network_attributes.py | 12 ++-- .../attributes/opentracing_attributes.py | 8 +-- .../_incubating/attributes/otel_attributes.py | 12 ++-- .../attributes/process_attributes.py | 14 ++-- .../_incubating/attributes/rpc_attributes.py | 64 +++++++++--------- .../attributes/session_attributes.py | 2 +- .../attributes/system_attributes.py | 16 ++--- .../_incubating/attributes/tls_attributes.py | 18 ++--- .../_incubating/attributes/url_attributes.py | 4 +- ..._attributes.py => useragent_attributes.py} | 8 +-- .../semconv/_incubating/metrics/db_metrics.py | 8 +-- .../_incubating/metrics/faas_metrics.py | 10 +-- .../_incubating/metrics/http_metrics.py | 6 +- .../_incubating/metrics/process_metrics.py | 4 +- .../_incubating/metrics/rpc_metrics.py | 8 +-- .../_incubating/metrics/system_metrics.py | 4 +- .../semconv/attributes/http_attributes.py | 6 +- .../semconv/attributes/otel_attributes.py | 6 +- ..._attributes.py => useragent_attributes.py} | 2 +- scripts/semconv/generate.sh | 2 +- 34 files changed, 251 insertions(+), 255 deletions(-) rename opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/{feature_flag_attributes.py => featureflag_attributes.py} (90%) rename opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/{user_agent_attributes.py => useragent_attributes.py} (89%) rename opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/{user_agent_attributes.py => useragent_attributes.py} (94%) diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/aws_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/aws_attributes.py index f5edbbcb80..7eaede0422 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/aws_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/aws_attributes.py @@ -15,22 +15,22 @@ from enum import Enum -AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = "aws.dynamodb.attribute_definitions" +AWS_DYNAMODB_ATTRIBUTEDEFINITIONS = "aws.dynamodb.attribute_definitions" """ The JSON-serialized value of each item in the `AttributeDefinitions` request field. """ -AWS_DYNAMODB_ATTRIBUTES_TO_GET = "aws.dynamodb.attributes_to_get" +AWS_DYNAMODB_ATTRIBUTESTOGET = "aws.dynamodb.attributes_to_get" """ The value of the `AttributesToGet` request parameter. """ -AWS_DYNAMODB_CONSISTENT_READ = "aws.dynamodb.consistent_read" +AWS_DYNAMODB_CONSISTENTREAD = "aws.dynamodb.consistent_read" """ The value of the `ConsistentRead` request parameter. """ -AWS_DYNAMODB_CONSUMED_CAPACITY = "aws.dynamodb.consumed_capacity" +AWS_DYNAMODB_CONSUMEDCAPACITY = "aws.dynamodb.consumed_capacity" """ The JSON-serialized value of each item in the `ConsumedCapacity` response field. """ @@ -40,29 +40,29 @@ The value of the `Count` response parameter. """ -AWS_DYNAMODB_EXCLUSIVE_START_TABLE = "aws.dynamodb.exclusive_start_table" +AWS_DYNAMODB_EXCLUSIVESTARTTABLE = "aws.dynamodb.exclusive_start_table" """ The value of the `ExclusiveStartTableName` request parameter. """ -AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = ( +AWS_DYNAMODB_GLOBALSECONDARYINDEXUPDATES = ( "aws.dynamodb.global_secondary_index_updates" ) """ The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. """ -AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = "aws.dynamodb.global_secondary_indexes" +AWS_DYNAMODB_GLOBALSECONDARYINDEXES = "aws.dynamodb.global_secondary_indexes" """ The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. """ -AWS_DYNAMODB_INDEX_NAME = "aws.dynamodb.index_name" +AWS_DYNAMODB_INDEXNAME = "aws.dynamodb.index_name" """ The value of the `IndexName` request parameter. """ -AWS_DYNAMODB_ITEM_COLLECTION_METRICS = "aws.dynamodb.item_collection_metrics" +AWS_DYNAMODB_ITEMCOLLECTIONMETRICS = "aws.dynamodb.item_collection_metrics" """ The JSON-serialized value of the `ItemCollectionMetrics` response field. """ @@ -72,7 +72,7 @@ The value of the `Limit` request parameter. """ -AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = "aws.dynamodb.local_secondary_indexes" +AWS_DYNAMODB_LOCALSECONDARYINDEXES = "aws.dynamodb.local_secondary_indexes" """ The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. """ @@ -82,26 +82,24 @@ The value of the `ProjectionExpression` request parameter. """ -AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = ( - "aws.dynamodb.provisioned_read_capacity" -) +AWS_DYNAMODB_PROVISIONEDREADCAPACITY = "aws.dynamodb.provisioned_read_capacity" """ The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. """ -AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = ( +AWS_DYNAMODB_PROVISIONEDWRITECAPACITY = ( "aws.dynamodb.provisioned_write_capacity" ) """ The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. """ -AWS_DYNAMODB_SCAN_FORWARD = "aws.dynamodb.scan_forward" +AWS_DYNAMODB_SCANFORWARD = "aws.dynamodb.scan_forward" """ The value of the `ScanIndexForward` request parameter. """ -AWS_DYNAMODB_SCANNED_COUNT = "aws.dynamodb.scanned_count" +AWS_DYNAMODB_SCANNEDCOUNT = "aws.dynamodb.scanned_count" """ The value of the `ScannedCount` response parameter. """ @@ -116,17 +114,17 @@ The value of the `Select` request parameter. """ -AWS_DYNAMODB_TABLE_COUNT = "aws.dynamodb.table_count" +AWS_DYNAMODB_TABLECOUNT = "aws.dynamodb.table_count" """ The number of items in the `TableNames` response parameter. """ -AWS_DYNAMODB_TABLE_NAMES = "aws.dynamodb.table_names" +AWS_DYNAMODB_TABLENAMES = "aws.dynamodb.table_names" """ The keys in the `RequestItems` object field. """ -AWS_DYNAMODB_TOTAL_SEGMENTS = "aws.dynamodb.total_segments" +AWS_DYNAMODB_TOTALSEGMENTS = "aws.dynamodb.total_segments" """ The value of the `TotalSegments` request parameter. """ @@ -171,7 +169,7 @@ The ARN of an EKS cluster. """ -AWS_LAMBDA_INVOKED_ARN = "aws.lambda.invoked_arn" +AWS_LAMBDA_INVOKEDARN = "aws.lambda.invoked_arn" """ The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). Note: This may be different from `cloud.resource_id` if an alias is involved. @@ -200,7 +198,7 @@ The name(s) of the AWS log stream(s) an application is writing to. """ -AWS_REQUEST_ID = "aws.request_id" +AWS_REQUESTID = "aws.request_id" """ The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. """ @@ -212,7 +210,7 @@ This applies to almost all S3 operations except `list-buckets`. """ -AWS_S3_COPY_SOURCE = "aws.s3.copy_source" +AWS_S3_COPYSOURCE = "aws.s3.copy_source" """ The source object (in the form `bucket`/`key`) for the copy operation. Note: The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter @@ -252,7 +250,7 @@ - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html). """ -AWS_S3_PART_NUMBER = "aws.s3.part_number" +AWS_S3_PARTNUMBER = "aws.s3.part_number" """ The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. Note: The `part_number` attribute is only applicable to the [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) @@ -261,7 +259,7 @@ [upload-part operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html). """ -AWS_S3_UPLOAD_ID = "aws.s3.upload_id" +AWS_S3_UPLOADID = "aws.s3.upload_id" """ Upload ID that identifies the multipart upload. Note: The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py index 43e181e308..76fb2fc914 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py @@ -20,7 +20,7 @@ The cloud account ID the resource is assigned to. """ -CLOUD_AVAILABILITY_ZONE = "cloud.availability_zone" +CLOUD_AVAILABILITYZONE = "cloud.availability_zone" """ Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud. @@ -43,7 +43,7 @@ Note: 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). """ -CLOUD_RESOURCE_ID = "cloud.resource_id" +CLOUD_RESOURCEID = "cloud.resource_id" """ Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP). Note: On some cloud providers, it may not be possible to determine the full ID at startup, @@ -67,66 +67,66 @@ class CloudPlatformValues(Enum): - ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs" + ALIBABACLOUDECS = "alibaba_cloud_ecs" """Alibaba Cloud Elastic Compute Service.""" - ALIBABA_CLOUD_FC = "alibaba_cloud_fc" + ALIBABACLOUDFC = "alibaba_cloud_fc" """Alibaba Cloud Function Compute.""" - ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift" + ALIBABACLOUDOPENSHIFT = "alibaba_cloud_openshift" """Red Hat OpenShift on Alibaba Cloud.""" - AWS_EC2 = "aws_ec2" + AWSEC2 = "aws_ec2" """AWS Elastic Compute Cloud.""" - AWS_ECS = "aws_ecs" + AWSECS = "aws_ecs" """AWS Elastic Container Service.""" - AWS_EKS = "aws_eks" + AWSEKS = "aws_eks" """AWS Elastic Kubernetes Service.""" - AWS_LAMBDA = "aws_lambda" + AWSLAMBDA = "aws_lambda" """AWS Lambda.""" - AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk" + AWSELASTICBEANSTALK = "aws_elastic_beanstalk" """AWS Elastic Beanstalk.""" - AWS_APP_RUNNER = "aws_app_runner" + AWSAPPRUNNER = "aws_app_runner" """AWS App Runner.""" - AWS_OPENSHIFT = "aws_openshift" + AWSOPENSHIFT = "aws_openshift" """Red Hat OpenShift on AWS (ROSA).""" - AZURE_VM = "azure_vm" + AZUREVM = "azure_vm" """Azure Virtual Machines.""" - AZURE_CONTAINER_APPS = "azure_container_apps" + AZURECONTAINERAPPS = "azure_container_apps" """Azure Container Apps.""" - AZURE_CONTAINER_INSTANCES = "azure_container_instances" + AZURECONTAINERINSTANCES = "azure_container_instances" """Azure Container Instances.""" - AZURE_AKS = "azure_aks" + AZUREAKS = "azure_aks" """Azure Kubernetes Service.""" - AZURE_FUNCTIONS = "azure_functions" + AZUREFUNCTIONS = "azure_functions" """Azure Functions.""" - AZURE_APP_SERVICE = "azure_app_service" + AZUREAPPSERVICE = "azure_app_service" """Azure App Service.""" - AZURE_OPENSHIFT = "azure_openshift" + AZUREOPENSHIFT = "azure_openshift" """Azure Red Hat OpenShift.""" - GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution" + GCPBAREMETALSOLUTION = "gcp_bare_metal_solution" """Google Bare Metal Solution (BMS).""" - GCP_COMPUTE_ENGINE = "gcp_compute_engine" + GCPCOMPUTEENGINE = "gcp_compute_engine" """Google Cloud Compute Engine (GCE).""" - GCP_CLOUD_RUN = "gcp_cloud_run" + GCPCLOUDRUN = "gcp_cloud_run" """Google Cloud Run.""" - GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine" + GCPKUBERNETESENGINE = "gcp_kubernetes_engine" """Google Cloud Kubernetes Engine (GKE).""" - GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions" + GCPCLOUDFUNCTIONS = "gcp_cloud_functions" """Google Cloud Functions (GCF).""" - GCP_APP_ENGINE = "gcp_app_engine" + GCPAPPENGINE = "gcp_app_engine" """Google Cloud App Engine (GAE).""" - GCP_OPENSHIFT = "gcp_openshift" + GCPOPENSHIFT = "gcp_openshift" """Red Hat OpenShift on Google Cloud.""" - IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift" + IBMCLOUDOPENSHIFT = "ibm_cloud_openshift" """Red Hat OpenShift on IBM Cloud.""" - TENCENT_CLOUD_CVM = "tencent_cloud_cvm" + TENCENTCLOUDCVM = "tencent_cloud_cvm" """Tencent Cloud Cloud Virtual Machine (CVM).""" - TENCENT_CLOUD_EKS = "tencent_cloud_eks" + TENCENTCLOUDEKS = "tencent_cloud_eks" """Tencent Cloud Elastic Kubernetes Service (EKS).""" - TENCENT_CLOUD_SCF = "tencent_cloud_scf" + TENCENTCLOUDSCF = "tencent_cloud_scf" """Tencent Cloud Serverless Cloud Function (SCF).""" class CloudProviderValues(Enum): - ALIBABA_CLOUD = "alibaba_cloud" + ALIBABACLOUD = "alibaba_cloud" """Alibaba Cloud.""" AWS = "aws" """Amazon Web Services.""" @@ -136,7 +136,7 @@ class CloudProviderValues(Enum): """Google Cloud Platform.""" HEROKU = "heroku" """Heroku Platform as a Service.""" - IBM_CLOUD = "ibm_cloud" + IBMCLOUD = "ibm_cloud" """IBM Cloud.""" - TENCENT_CLOUD = "tencent_cloud" + TENCENTCLOUD = "tencent_cloud" """Tencent Cloud.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloudevents_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloudevents_attributes.py index 30fe19c74e..a365ba9a15 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloudevents_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloudevents_attributes.py @@ -13,27 +13,27 @@ # limitations under the License. -CLOUDEVENTS_EVENT_ID = "cloudevents.event_id" +CLOUDEVENTS_EVENTID = "cloudevents.event_id" """ The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. """ -CLOUDEVENTS_EVENT_SOURCE = "cloudevents.event_source" +CLOUDEVENTS_EVENTSOURCE = "cloudevents.event_source" """ The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. """ -CLOUDEVENTS_EVENT_SPEC_VERSION = "cloudevents.event_spec_version" +CLOUDEVENTS_EVENTSPECVERSION = "cloudevents.event_spec_version" """ The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. """ -CLOUDEVENTS_EVENT_SUBJECT = "cloudevents.event_subject" +CLOUDEVENTS_EVENTSUBJECT = "cloudevents.event_subject" """ The [subject](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject) of the event in the context of the event producer (identified by source). """ -CLOUDEVENTS_EVENT_TYPE = "cloudevents.event_type" +CLOUDEVENTS_EVENTTYPE = "cloudevents.event_type" """ The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/container_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/container_attributes.py index 03391d1114..149cd23745 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/container_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/container_attributes.py @@ -21,12 +21,12 @@ Note: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. """ -CONTAINER_COMMAND_ARGS = "container.command_args" +CONTAINER_COMMANDARGS = "container.command_args" """ All the command arguments (including the command/executable itself) run by the container. [2]. """ -CONTAINER_COMMAND_LINE = "container.command_line" +CONTAINER_COMMANDLINE = "container.command_line" """ The full command run by the container as a single string representing the full command. [2]. """ @@ -54,7 +54,7 @@ Name of the image the container was built on. """ -CONTAINER_IMAGE_REPO_DIGESTS = "container.image.repo_digests" +CONTAINER_IMAGE_REPODIGESTS = "container.image.repo_digests" """ Repo digests of the container image as provided by the container runtime. Note: [Docker](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field. diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/db_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/db_attributes.py index e1cf5e017d..9f6e97a2ac 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/db_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/db_attributes.py @@ -15,7 +15,7 @@ from enum import Enum -DB_CASSANDRA_CONSISTENCY_LEVEL = "db.cassandra.consistency_level" +DB_CASSANDRA_CONSISTENCYLEVEL = "db.cassandra.consistency_level" """ The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). """ @@ -35,12 +35,12 @@ Whether or not the query is idempotent. """ -DB_CASSANDRA_PAGE_SIZE = "db.cassandra.page_size" +DB_CASSANDRA_PAGESIZE = "db.cassandra.page_size" """ The fetch size used for paging, i.e. how many rows will be returned at once. """ -DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = ( +DB_CASSANDRA_SPECULATIVEEXECUTIONCOUNT = ( "db.cassandra.speculative_execution_count" ) """ @@ -53,17 +53,17 @@ Note: This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set. """ -DB_CONNECTION_STRING = "db.connection_string" +DB_CONNECTIONSTRING = "db.connection_string" """ Deprecated: "Replaced by `server.address` and `server.port`.". """ -DB_COSMOSDB_CLIENT_ID = "db.cosmosdb.client_id" +DB_COSMOSDB_CLIENTID = "db.cosmosdb.client_id" """ Unique Cosmos client instance id. """ -DB_COSMOSDB_CONNECTION_MODE = "db.cosmosdb.connection_mode" +DB_COSMOSDB_CONNECTIONMODE = "db.cosmosdb.connection_mode" """ Cosmos client connection mode. """ @@ -73,27 +73,27 @@ Cosmos DB container name. """ -DB_COSMOSDB_OPERATION_TYPE = "db.cosmosdb.operation_type" +DB_COSMOSDB_OPERATIONTYPE = "db.cosmosdb.operation_type" """ CosmosDB Operation Type. """ -DB_COSMOSDB_REQUEST_CHARGE = "db.cosmosdb.request_charge" +DB_COSMOSDB_REQUESTCHARGE = "db.cosmosdb.request_charge" """ RU consumed for that operation. """ -DB_COSMOSDB_REQUEST_CONTENT_LENGTH = "db.cosmosdb.request_content_length" +DB_COSMOSDB_REQUESTCONTENTLENGTH = "db.cosmosdb.request_content_length" """ Request payload size in bytes. """ -DB_COSMOSDB_STATUS_CODE = "db.cosmosdb.status_code" +DB_COSMOSDB_STATUSCODE = "db.cosmosdb.status_code" """ Cosmos DB status code. """ -DB_COSMOSDB_SUB_STATUS_CODE = "db.cosmosdb.sub_status_code" +DB_COSMOSDB_SUBSTATUSCODE = "db.cosmosdb.sub_status_code" """ Cosmos DB sub status code. """ @@ -108,7 +108,7 @@ Deprecated: Replaced by `db.instance.id`. """ -DB_ELASTICSEARCH_PATH_PARTS_TEMPLATE = "db.elasticsearch.path_parts" +DB_ELASTICSEARCH_PATHPARTS_TEMPLATE = "db.elasticsearch.path_parts" """ A dynamic value in the url path. Note: Many Elasticsearch url paths allow dynamic values. These SHOULD be recorded in span attributes in the format `db.elasticsearch.path_parts.`, where `` is the url path part name. The implementation SHOULD reference the [elasticsearch schema](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json) in order to map the path part values to their names. @@ -119,7 +119,7 @@ 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 `select @@hostname`. """ -DB_JDBC_DRIVER_CLASSNAME = "db.jdbc.driver_classname" +DB_JDBC_DRIVERCLASSNAME = "db.jdbc.driver_classname" """ Deprecated: Removed as not used. """ @@ -129,7 +129,7 @@ The MongoDB collection being accessed within the database stated in `db.name`. """ -DB_MSSQL_INSTANCE_NAME = "db.mssql.instance_name" +DB_MSSQL_INSTANCENAME = "db.mssql.instance_name" """ The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. Note: If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard). @@ -147,7 +147,7 @@ Note: When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted. """ -DB_REDIS_DATABASE_INDEX = "db.redis.database_index" +DB_REDIS_DATABASEINDEX = "db.redis.database_index" """ The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. """ @@ -174,14 +174,14 @@ """ -class DbCassandraConsistencyLevelValues(Enum): +class DbCassandraConsistencylevelValues(Enum): ALL = "all" """all.""" - EACH_QUORUM = "each_quorum" + EACHQUORUM = "each_quorum" """each_quorum.""" QUORUM = "quorum" """quorum.""" - LOCAL_QUORUM = "local_quorum" + LOCALQUORUM = "local_quorum" """local_quorum.""" ONE = "one" """one.""" @@ -189,24 +189,24 @@ class DbCassandraConsistencyLevelValues(Enum): """two.""" THREE = "three" """three.""" - LOCAL_ONE = "local_one" + LOCALONE = "local_one" """local_one.""" ANY = "any" """any.""" SERIAL = "serial" """serial.""" - LOCAL_SERIAL = "local_serial" + LOCALSERIAL = "local_serial" """local_serial.""" -class DbCosmosdbConnectionModeValues(Enum): +class DbCosmosdbConnectionmodeValues(Enum): GATEWAY = "gateway" """Gateway (HTTP) connections mode.""" DIRECT = "direct" """Direct connection.""" -class DbCosmosdbOperationTypeValues(Enum): +class DbCosmosdbOperationtypeValues(Enum): INVALID = "Invalid" """invalid.""" CREATE = "Create" @@ -215,7 +215,7 @@ class DbCosmosdbOperationTypeValues(Enum): """patch.""" READ = "Read" """read.""" - READ_FEED = "ReadFeed" + READFEED = "ReadFeed" """read_feed.""" DELETE = "Delete" """delete.""" @@ -227,20 +227,20 @@ class DbCosmosdbOperationTypeValues(Enum): """query.""" HEAD = "Head" """head.""" - HEAD_FEED = "HeadFeed" + HEADFEED = "HeadFeed" """head_feed.""" UPSERT = "Upsert" """upsert.""" BATCH = "Batch" """batch.""" - QUERY_PLAN = "QueryPlan" + QUERYPLAN = "QueryPlan" """query_plan.""" - EXECUTE_JAVASCRIPT = "ExecuteJavaScript" + EXECUTEJAVASCRIPT = "ExecuteJavaScript" """execute_javascript.""" class DbSystemValues(Enum): - OTHER_SQL = "other_sql" + OTHERSQL = "other_sql" """Some other SQL database. Fallback only. See notes.""" MSSQL = "mssql" """Microsoft SQL Server.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/faas_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/faas_attributes.py index f93a016414..b63182d56e 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/faas_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/faas_attributes.py @@ -51,30 +51,30 @@ Note: * **AWS Lambda:** Use the (full) log stream name. """ -FAAS_INVOCATION_ID = "faas.invocation_id" +FAAS_INVOCATIONID = "faas.invocation_id" """ The invocation ID of the current function invocation. """ -FAAS_INVOKED_NAME = "faas.invoked_name" +FAAS_INVOKEDNAME = "faas.invoked_name" """ The name of the invoked function. Note: SHOULD be equal to the `faas.name` resource attribute of the invoked function. """ -FAAS_INVOKED_PROVIDER = "faas.invoked_provider" +FAAS_INVOKEDPROVIDER = "faas.invoked_provider" """ The cloud provider of the invoked function. Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. """ -FAAS_INVOKED_REGION = "faas.invoked_region" +FAAS_INVOKEDREGION = "faas.invoked_region" """ The cloud region of the invoked function. Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked function. """ -FAAS_MAX_MEMORY = "faas.max_memory" +FAAS_MAXMEMORY = "faas.max_memory" """ The amount of memory available to the serverless function converted to Bytes. Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576). @@ -135,8 +135,8 @@ class FaasDocumentOperationValues(Enum): """When an object is deleted.""" -class FaasInvokedProviderValues(Enum): - ALIBABA_CLOUD = "alibaba_cloud" +class FaasInvokedproviderValues(Enum): + ALIBABACLOUD = "alibaba_cloud" """Alibaba Cloud.""" AWS = "aws" """Amazon Web Services.""" @@ -144,7 +144,7 @@ class FaasInvokedProviderValues(Enum): """Microsoft Azure.""" GCP = "gcp" """Google Cloud Platform.""" - TENCENT_CLOUD = "tencent_cloud" + TENCENTCLOUD = "tencent_cloud" """Tencent Cloud.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/featureflag_attributes.py similarity index 90% rename from opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py rename to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/featureflag_attributes.py index 8302f9666a..da52155180 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/featureflag_attributes.py @@ -13,17 +13,17 @@ # limitations under the License. -FEATURE_FLAG_KEY = "feature_flag.key" +FEATUREFLAG_KEY = "feature_flag.key" """ The unique identifier of the feature flag. """ -FEATURE_FLAG_PROVIDER_NAME = "feature_flag.provider_name" +FEATUREFLAG_PROVIDERNAME = "feature_flag.provider_name" """ The name of the service provider that performs the flag evaluation. """ -FEATURE_FLAG_VARIANT = "feature_flag.variant" +FEATUREFLAG_VARIANT = "feature_flag.variant" """ SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. Note: A semantic identifier, commonly referred to as a variant, provides a means diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/gcp_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/gcp_attributes.py index 0b5f6a0c96..1a80e6414c 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/gcp_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/gcp_attributes.py @@ -13,12 +13,12 @@ # limitations under the License. -GCP_CLOUD_RUN_JOB_EXECUTION = "gcp.cloud_run.job.execution" +GCP_CLOUDRUN_JOB_EXECUTION = "gcp.cloud_run.job.execution" """ The name of the Cloud Run [execution](https://cloud.google.com/run/docs/managing/job-executions) being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. """ -GCP_CLOUD_RUN_JOB_TASK_INDEX = "gcp.cloud_run.job.task_index" +GCP_CLOUDRUN_JOB_TASKINDEX = "gcp.cloud_run.job.task_index" """ The index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/heroku_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/heroku_attributes.py index 27ec50229e..6a223e30f4 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/heroku_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/heroku_attributes.py @@ -23,7 +23,7 @@ Commit hash for the current release. """ -HEROKU_RELEASE_CREATION_TIMESTAMP = "heroku.release.creation_timestamp" +HEROKU_RELEASE_CREATIONTIMESTAMP = "heroku.release.creation_timestamp" """ Time and date the release was created. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/http_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/http_attributes.py index 70e0e8d2f3..7ad17b539f 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/http_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/http_attributes.py @@ -47,14 +47,14 @@ Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_REQUEST_METHOD`. """ -HTTP_REQUEST_METHOD_ORIGINAL = "http.request.method_original" +HTTP_REQUEST_METHODORIGINAL = "http.request.method_original" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_REQUEST_METHOD_ORIGINAL`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_REQUEST_METHODORIGINAL`. """ -HTTP_REQUEST_RESEND_COUNT = "http.request.resend_count" +HTTP_REQUEST_RESENDCOUNT = "http.request.resend_count" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_REQUEST_RESEND_COUNT`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_REQUEST_RESENDCOUNT`. """ HTTP_REQUEST_SIZE = "http.request.size" @@ -62,7 +62,7 @@ The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. """ -HTTP_REQUEST_CONTENT_LENGTH = "http.request_content_length" +HTTP_REQUESTCONTENTLENGTH = "http.request_content_length" """ Deprecated: Replaced by `http.request.header.content-length`. """ @@ -82,12 +82,12 @@ The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. """ -HTTP_RESPONSE_STATUS_CODE = "http.response.status_code" +HTTP_RESPONSE_STATUSCODE = "http.response.status_code" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_RESPONSE_STATUS_CODE`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.http_attributes.HTTP_RESPONSE_STATUSCODE`. """ -HTTP_RESPONSE_CONTENT_LENGTH = "http.response_content_length" +HTTP_RESPONSECONTENTLENGTH = "http.response_content_length" """ Deprecated: Replaced by `http.response.header.content-length`. """ @@ -102,7 +102,7 @@ Deprecated: Replaced by `url.scheme` instead. """ -HTTP_STATUS_CODE = "http.status_code" +HTTP_STATUSCODE = "http.status_code" """ Deprecated: Replaced by `http.response.status_code`. """ @@ -117,7 +117,7 @@ Deprecated: Replaced by `url.full`. """ -HTTP_USER_AGENT = "http.user_agent" +HTTP_USERAGENT = "http.user_agent" """ Deprecated: Replaced by `user_agent.original`. """ @@ -134,13 +134,13 @@ class HttpConnectionStateValues(Enum): reason="The attribute http.flavor is deprecated - Replaced by `network.protocol.name`" ) class HttpFlavorValues(Enum): - HTTP_1_0 = "1.0" + HTTP10 = "1.0" """HTTP/1.0.""" - HTTP_1_1 = "1.1" + HTTP11 = "1.1" """HTTP/1.1.""" - HTTP_2_0 = "2.0" + HTTP20 = "2.0" """HTTP/2.""" - HTTP_3_0 = "3.0" + HTTP30 = "3.0" """HTTP/3.""" SPDY = "SPDY" """SPDY protocol.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/k8s_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/k8s_attributes.py index fcc1d0d8de..d7f1176752 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/k8s_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/k8s_attributes.py @@ -50,7 +50,7 @@ The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). """ -K8S_CONTAINER_RESTART_COUNT = "k8s.container.restart_count" +K8S_CONTAINER_RESTARTCOUNT = "k8s.container.restart_count" """ Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/log_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/log_attributes.py index ff94348558..54b3b77496 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/log_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/log_attributes.py @@ -20,7 +20,7 @@ The basename of the file. """ -LOG_FILE_NAME_RESOLVED = "log.file.name_resolved" +LOG_FILE_NAMERESOLVED = "log.file.name_resolved" """ The basename of the file, with symlinks resolved. """ @@ -30,7 +30,7 @@ The full path to the file. """ -LOG_FILE_PATH_RESOLVED = "log.file.path_resolved" +LOG_FILE_PATHRESOLVED = "log.file.path_resolved" """ The full path to the file, with symlinks resolved. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/message_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/message_attributes.py index dea3ba65ae..adddd75514 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/message_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/message_attributes.py @@ -15,7 +15,7 @@ from enum import Enum -MESSAGE_COMPRESSED_SIZE = "message.compressed_size" +MESSAGE_COMPRESSEDSIZE = "message.compressed_size" """ Compressed size of the message in bytes. """ @@ -31,7 +31,7 @@ Whether this is a received or sent message. """ -MESSAGE_UNCOMPRESSED_SIZE = "message.uncompressed_size" +MESSAGE_UNCOMPRESSEDSIZE = "message.uncompressed_size" """ Uncompressed size of the message in bytes. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/messaging_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/messaging_attributes.py index c3c7ce85c6..a431b3168f 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/messaging_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/messaging_attributes.py @@ -15,13 +15,13 @@ from enum import Enum -MESSAGING_BATCH_MESSAGE_COUNT = "messaging.batch.message_count" +MESSAGING_BATCH_MESSAGECOUNT = "messaging.batch.message_count" """ The number of messages sent, received, or processed in the scope of the batching operation. Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs. """ -MESSAGING_CLIENT_ID = "messaging.client_id" +MESSAGING_CLIENTID = "messaging.client_id" """ A unique identifier for the client that consumes or produces a message. """ @@ -54,14 +54,14 @@ A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. """ -MESSAGING_DESTINATION_PUBLISH_ANONYMOUS = ( +MESSAGING_DESTINATIONPUBLISH_ANONYMOUS = ( "messaging.destination_publish.anonymous" ) """ A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). """ -MESSAGING_DESTINATION_PUBLISH_NAME = "messaging.destination_publish.name" +MESSAGING_DESTINATIONPUBLISH_NAME = "messaging.destination_publish.name" """ The name of the original destination the message was published to. Note: The name SHOULD uniquely identify a specific queue, topic, or other entity within the broker. If @@ -73,14 +73,14 @@ The name of the consumer group the event consumer is associated with. """ -MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME = ( +MESSAGING_EVENTHUBS_MESSAGE_ENQUEUEDTIME = ( "messaging.eventhubs.message.enqueued_time" ) """ The UTC epoch seconds at which the message has been accepted and stored in the entity. """ -MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY = ( +MESSAGING_GCPPUBSUB_MESSAGE_ORDERINGKEY = ( "messaging.gcp_pubsub.message.ordering_key" ) """ @@ -120,7 +120,7 @@ body size should be used. """ -MESSAGING_MESSAGE_CONVERSATION_ID = "messaging.message.conversation_id" +MESSAGING_MESSAGE_CONVERSATIONID = "messaging.message.conversation_id" """ The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". """ @@ -143,38 +143,38 @@ Note: If a custom value is used, it MUST be of low cardinality. """ -MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY = ( +MESSAGING_RABBITMQ_DESTINATION_ROUTINGKEY = ( "messaging.rabbitmq.destination.routing_key" ) """ RabbitMQ message routing key. """ -MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG = ( +MESSAGING_RABBITMQ_MESSAGE_DELIVERYTAG = ( "messaging.rabbitmq.message.delivery_tag" ) """ RabbitMQ message delivery tag. """ -MESSAGING_ROCKETMQ_CLIENT_GROUP = "messaging.rocketmq.client_group" +MESSAGING_ROCKETMQ_CLIENTGROUP = "messaging.rocketmq.client_group" """ Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. """ -MESSAGING_ROCKETMQ_CONSUMPTION_MODEL = "messaging.rocketmq.consumption_model" +MESSAGING_ROCKETMQ_CONSUMPTIONMODEL = "messaging.rocketmq.consumption_model" """ Model of message consumption. This only applies to consumer spans. """ -MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL = ( +MESSAGING_ROCKETMQ_MESSAGE_DELAYTIMELEVEL = ( "messaging.rocketmq.message.delay_time_level" ) """ The delay time level for delay message, which determines the message delay time. """ -MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP = ( +MESSAGING_ROCKETMQ_MESSAGE_DELIVERYTIMESTAMP = ( "messaging.rocketmq.message.delivery_timestamp" ) """ @@ -206,28 +206,28 @@ Namespace of RocketMQ resources, resources in different namespaces are individual. """ -MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME = ( +MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTIONNAME = ( "messaging.servicebus.destination.subscription_name" ) """ The name of the subscription in the topic messages are received from. """ -MESSAGING_SERVICEBUS_DISPOSITION_STATUS = ( +MESSAGING_SERVICEBUS_DISPOSITIONSTATUS = ( "messaging.servicebus.disposition_status" ) """ Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). """ -MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT = ( +MESSAGING_SERVICEBUS_MESSAGE_DELIVERYCOUNT = ( "messaging.servicebus.message.delivery_count" ) """ Number of deliveries that have been attempted for this message. """ -MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME = ( +MESSAGING_SERVICEBUS_MESSAGE_ENQUEUEDTIME = ( "messaging.servicebus.message.enqueued_time" ) """ @@ -253,7 +253,7 @@ class MessagingOperationValues(Enum): """One or more messages are settled.""" -class MessagingRocketmqConsumptionModelValues(Enum): +class MessagingRocketmqConsumptionmodelValues(Enum): CLUSTERING = "clustering" """Clustering consumption model.""" BROADCASTING = "broadcasting" @@ -271,12 +271,12 @@ class MessagingRocketmqMessageTypeValues(Enum): """Transaction message.""" -class MessagingServicebusDispositionStatusValues(Enum): +class MessagingServicebusDispositionstatusValues(Enum): COMPLETE = "complete" """Message is completed.""" ABANDON = "abandon" """Message is abandoned.""" - DEAD_LETTER = "dead_letter" + DEADLETTER = "dead_letter" """Message is sent to dead letter queue.""" DEFER = "defer" """Message is deferred.""" @@ -285,7 +285,7 @@ class MessagingServicebusDispositionStatusValues(Enum): class MessagingSystemValues(Enum): ACTIVEMQ = "activemq" """Apache ActiveMQ.""" - AWS_SQS = "aws_sqs" + AWSSQS = "aws_sqs" """Amazon Simple Queue Service (SQS).""" EVENTGRID = "eventgrid" """Azure Event Grid.""" @@ -293,7 +293,7 @@ class MessagingSystemValues(Enum): """Azure Event Hubs.""" SERVICEBUS = "servicebus" """Azure Service Bus.""" - GCP_PUBSUB = "gcp_pubsub" + GCPPUBSUB = "gcp_pubsub" """Google Cloud Pub/Sub.""" JMS = "jms" """Java Message Service.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/network_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/network_attributes.py index d226ff311c..61c0ae6a0c 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/network_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/network_attributes.py @@ -102,11 +102,11 @@ class NetworkConnectionSubtypeValues(Enum): """UMTS.""" CDMA = "cdma" """CDMA.""" - EVDO_0 = "evdo_0" + EVDO0 = "evdo_0" """EVDO Rel. 0.""" - EVDO_A = "evdo_a" + EVDOA = "evdo_a" """EVDO Rev. A.""" - CDMA2000_1XRTT = "cdma2000_1xrtt" + CDMA20001XRTT = "cdma2000_1xrtt" """CDMA2000 1XRTT.""" HSDPA = "hsdpa" """HSDPA.""" @@ -116,7 +116,7 @@ class NetworkConnectionSubtypeValues(Enum): """HSPA.""" IDEN = "iden" """IDEN.""" - EVDO_B = "evdo_b" + EVDOB = "evdo_b" """EVDO Rev. B.""" LTE = "lte" """LTE.""" @@ -126,7 +126,7 @@ class NetworkConnectionSubtypeValues(Enum): """HSPAP.""" GSM = "gsm" """GSM.""" - TD_SCDMA = "td_scdma" + TDSCDMA = "td_scdma" """TD-SCDMA.""" IWLAN = "iwlan" """IWLAN.""" @@ -134,7 +134,7 @@ class NetworkConnectionSubtypeValues(Enum): """5G NR (New Radio).""" NRNSA = "nrnsa" """5G NRNSA (New Radio Non-Standalone).""" - LTE_CA = "lte_ca" + LTECA = "lte_ca" """LTE CA.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/opentracing_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/opentracing_attributes.py index 6c2f4143b9..258bc278f7 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/opentracing_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/opentracing_attributes.py @@ -15,15 +15,15 @@ from enum import Enum -OPENTRACING_REF_TYPE = "opentracing.ref_type" +OPENTRACING_REFTYPE = "opentracing.ref_type" """ Parent-child Reference type. Note: The causal relationship between a child Span and a parent Span. """ -class OpentracingRefTypeValues(Enum): - CHILD_OF = "child_of" +class OpentracingReftypeValues(Enum): + CHILDOF = "child_of" """The parent Span depends on the child Span in some capacity.""" - FOLLOWS_FROM = "follows_from" + FOLLOWSFROM = "follows_from" """The parent Span doesn't depend in any way on the result of the child Span.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/otel_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/otel_attributes.py index 9a04a2ac95..dd9f49fd83 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/otel_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/otel_attributes.py @@ -37,21 +37,21 @@ Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OTEL_SCOPE_VERSION`. """ -OTEL_STATUS_CODE = "otel.status_code" +OTEL_STATUSCODE = "otel.status_code" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OTEL_STATUS_CODE`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OTEL_STATUSCODE`. """ -OTEL_STATUS_DESCRIPTION = "otel.status_description" +OTEL_STATUSDESCRIPTION = "otel.status_description" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OTEL_STATUS_DESCRIPTION`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OTEL_STATUSDESCRIPTION`. """ @deprecated( - reason="Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OtelStatusCodeValues`." + reason="Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.otel_attributes.OtelStatuscodeValues`." ) -class OtelStatusCodeValues(Enum): +class OtelStatuscodeValues(Enum): OK = "OK" """The operation has been validated by an Application developer or Operator to have completed successfully.""" ERROR = "ERROR" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/process_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/process_attributes.py index 5ab7c72f49..3d1d0b542c 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/process_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/process_attributes.py @@ -20,17 +20,17 @@ The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. """ -PROCESS_COMMAND_ARGS = "process.command_args" +PROCESS_COMMANDARGS = "process.command_args" """ All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. """ -PROCESS_COMMAND_LINE = "process.command_line" +PROCESS_COMMANDLINE = "process.command_line" """ The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. """ -PROCESS_CONTEXT_SWITCH_TYPE = "process.context_switch_type" +PROCESS_CONTEXTSWITCHTYPE = "process.context_switch_type" """ Specifies whether the context switches for this data point were voluntary or involuntary. """ @@ -55,12 +55,12 @@ The username of the user that owns the process. """ -PROCESS_PAGING_FAULT_TYPE = "process.paging.fault_type" +PROCESS_PAGING_FAULTTYPE = "process.paging.fault_type" """ The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. """ -PROCESS_PARENT_PID = "process.parent_pid" +PROCESS_PARENTPID = "process.parent_pid" """ Parent Process identifier (PPID). """ @@ -86,7 +86,7 @@ """ -class ProcessContextSwitchTypeValues(Enum): +class ProcessContextswitchtypeValues(Enum): VOLUNTARY = "voluntary" """voluntary.""" INVOLUNTARY = "involuntary" @@ -102,7 +102,7 @@ class ProcessCpuStateValues(Enum): """wait.""" -class ProcessPagingFaultTypeValues(Enum): +class ProcessPagingFaulttypeValues(Enum): MAJOR = "major" """major.""" MINOR = "minor" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/rpc_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/rpc_attributes.py index 0d86cc211c..42d43c8ed3 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/rpc_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/rpc_attributes.py @@ -15,20 +15,18 @@ from enum import Enum -RPC_CONNECT_RPC_ERROR_CODE = "rpc.connect_rpc.error_code" +RPC_CONNECTRPC_ERRORCODE = "rpc.connect_rpc.error_code" """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. """ -RPC_CONNECT_RPC_REQUEST_METADATA_TEMPLATE = "rpc.connect_rpc.request.metadata" +RPC_CONNECTRPC_REQUEST_METADATA_TEMPLATE = "rpc.connect_rpc.request.metadata" """ Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. Note: Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. """ -RPC_CONNECT_RPC_RESPONSE_METADATA_TEMPLATE = ( - "rpc.connect_rpc.response.metadata" -) +RPC_CONNECTRPC_RESPONSE_METADATA_TEMPLATE = "rpc.connect_rpc.response.metadata" """ Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. Note: Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. @@ -46,22 +44,22 @@ Note: Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. """ -RPC_GRPC_STATUS_CODE = "rpc.grpc.status_code" +RPC_GRPC_STATUSCODE = "rpc.grpc.status_code" """ The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. """ -RPC_JSONRPC_ERROR_CODE = "rpc.jsonrpc.error_code" +RPC_JSONRPC_ERRORCODE = "rpc.jsonrpc.error_code" """ `error.code` property of response if it is an error response. """ -RPC_JSONRPC_ERROR_MESSAGE = "rpc.jsonrpc.error_message" +RPC_JSONRPC_ERRORMESSAGE = "rpc.jsonrpc.error_message" """ `error.message` property of response if it is an error response. """ -RPC_JSONRPC_REQUEST_ID = "rpc.jsonrpc.request_id" +RPC_JSONRPC_REQUESTID = "rpc.jsonrpc.request_id" """ `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. """ @@ -89,28 +87,28 @@ """ -class RpcConnectRpcErrorCodeValues(Enum): +class RpcConnectrpcErrorcodeValues(Enum): CANCELLED = "cancelled" """cancelled.""" UNKNOWN = "unknown" """unknown.""" - INVALID_ARGUMENT = "invalid_argument" + INVALIDARGUMENT = "invalid_argument" """invalid_argument.""" - DEADLINE_EXCEEDED = "deadline_exceeded" + DEADLINEEXCEEDED = "deadline_exceeded" """deadline_exceeded.""" - NOT_FOUND = "not_found" + NOTFOUND = "not_found" """not_found.""" - ALREADY_EXISTS = "already_exists" + ALREADYEXISTS = "already_exists" """already_exists.""" - PERMISSION_DENIED = "permission_denied" + PERMISSIONDENIED = "permission_denied" """permission_denied.""" - RESOURCE_EXHAUSTED = "resource_exhausted" + RESOURCEEXHAUSTED = "resource_exhausted" """resource_exhausted.""" - FAILED_PRECONDITION = "failed_precondition" + FAILEDPRECONDITION = "failed_precondition" """failed_precondition.""" ABORTED = "aborted" """aborted.""" - OUT_OF_RANGE = "out_of_range" + OUTOFRANGE = "out_of_range" """out_of_range.""" UNIMPLEMENTED = "unimplemented" """unimplemented.""" @@ -118,36 +116,36 @@ class RpcConnectRpcErrorCodeValues(Enum): """internal.""" UNAVAILABLE = "unavailable" """unavailable.""" - DATA_LOSS = "data_loss" + DATALOSS = "data_loss" """data_loss.""" UNAUTHENTICATED = "unauthenticated" """unauthenticated.""" -class RpcGrpcStatusCodeValues(Enum): +class RpcGrpcStatuscodeValues(Enum): OK = 0 """OK.""" CANCELLED = 1 """CANCELLED.""" UNKNOWN = 2 """UNKNOWN.""" - INVALID_ARGUMENT = 3 + INVALIDARGUMENT = 3 """INVALID_ARGUMENT.""" - DEADLINE_EXCEEDED = 4 + DEADLINEEXCEEDED = 4 """DEADLINE_EXCEEDED.""" - NOT_FOUND = 5 + NOTFOUND = 5 """NOT_FOUND.""" - ALREADY_EXISTS = 6 + ALREADYEXISTS = 6 """ALREADY_EXISTS.""" - PERMISSION_DENIED = 7 + PERMISSIONDENIED = 7 """PERMISSION_DENIED.""" - RESOURCE_EXHAUSTED = 8 + RESOURCEEXHAUSTED = 8 """RESOURCE_EXHAUSTED.""" - FAILED_PRECONDITION = 9 + FAILEDPRECONDITION = 9 """FAILED_PRECONDITION.""" ABORTED = 10 """ABORTED.""" - OUT_OF_RANGE = 11 + OUTOFRANGE = 11 """OUT_OF_RANGE.""" UNIMPLEMENTED = 12 """UNIMPLEMENTED.""" @@ -155,7 +153,7 @@ class RpcGrpcStatusCodeValues(Enum): """INTERNAL.""" UNAVAILABLE = 14 """UNAVAILABLE.""" - DATA_LOSS = 15 + DATALOSS = 15 """DATA_LOSS.""" UNAUTHENTICATED = 16 """UNAUTHENTICATED.""" @@ -164,11 +162,11 @@ class RpcGrpcStatusCodeValues(Enum): class RpcSystemValues(Enum): GRPC = "grpc" """gRPC.""" - JAVA_RMI = "java_rmi" + JAVARMI = "java_rmi" """Java RMI.""" - DOTNET_WCF = "dotnet_wcf" + DOTNETWCF = "dotnet_wcf" """.NET WCF.""" - APACHE_DUBBO = "apache_dubbo" + APACHEDUBBO = "apache_dubbo" """Apache Dubbo.""" - CONNECT_RPC = "connect_rpc" + CONNECTRPC = "connect_rpc" """Connect RPC.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/session_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/session_attributes.py index a0a9170aa3..af2e0683da 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/session_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/session_attributes.py @@ -18,7 +18,7 @@ A unique id to identify a session. """ -SESSION_PREVIOUS_ID = "session.previous_id" +SESSION_PREVIOUSID = "session.previous_id" """ The previous `session.id` for this user, when known. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/system_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/system_attributes.py index eef4116900..fbd28b9a5b 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/system_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/system_attributes.py @@ -17,7 +17,7 @@ from deprecated import deprecated -SYSTEM_CPU_LOGICAL_NUMBER = "system.cpu.logical_number" +SYSTEM_CPU_LOGICALNUMBER = "system.cpu.logical_number" """ The logical CPU number [0..n-1]. """ @@ -145,7 +145,7 @@ class SystemMemoryStateValues(Enum): class SystemNetworkStateValues(Enum): CLOSE = "close" """close.""" - CLOSE_WAIT = "close_wait" + CLOSEWAIT = "close_wait" """close_wait.""" CLOSING = "closing" """closing.""" @@ -153,19 +153,19 @@ class SystemNetworkStateValues(Enum): """delete.""" ESTABLISHED = "established" """established.""" - FIN_WAIT_1 = "fin_wait_1" + FINWAIT1 = "fin_wait_1" """fin_wait_1.""" - FIN_WAIT_2 = "fin_wait_2" + FINWAIT2 = "fin_wait_2" """fin_wait_2.""" - LAST_ACK = "last_ack" + LASTACK = "last_ack" """last_ack.""" LISTEN = "listen" """listen.""" - SYN_RECV = "syn_recv" + SYNRECV = "syn_recv" """syn_recv.""" - SYN_SENT = "syn_sent" + SYNSENT = "syn_sent" """syn_sent.""" - TIME_WAIT = "time_wait" + TIMEWAIT = "time_wait" """time_wait.""" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/tls_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/tls_attributes.py index 2abaa8cd60..006c46a182 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/tls_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/tls_attributes.py @@ -26,7 +26,7 @@ PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. """ -TLS_CLIENT_CERTIFICATE_CHAIN = "tls.client.certificate_chain" +TLS_CLIENT_CERTIFICATECHAIN = "tls.client.certificate_chain" """ Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. """ @@ -56,17 +56,17 @@ A hash that identifies clients based on how they perform an SSL/TLS handshake. """ -TLS_CLIENT_NOT_AFTER = "tls.client.not_after" +TLS_CLIENT_NOTAFTER = "tls.client.not_after" """ Date/Time indicating when client certificate is no longer considered valid. """ -TLS_CLIENT_NOT_BEFORE = "tls.client.not_before" +TLS_CLIENT_NOTBEFORE = "tls.client.not_before" """ Date/Time indicating when client certificate is first considered valid. """ -TLS_CLIENT_SERVER_NAME = "tls.client.server_name" +TLS_CLIENT_SERVERNAME = "tls.client.server_name" """ Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. """ @@ -76,7 +76,7 @@ Distinguished name of subject of the x.509 certificate presented by the client. """ -TLS_CLIENT_SUPPORTED_CIPHERS = "tls.client.supported_ciphers" +TLS_CLIENT_SUPPORTEDCIPHERS = "tls.client.supported_ciphers" """ Array of ciphers offered by the client during the client hello. """ @@ -91,7 +91,7 @@ Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. """ -TLS_NEXT_PROTOCOL = "tls.next_protocol" +TLS_NEXTPROTOCOL = "tls.next_protocol" """ String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. """ @@ -116,7 +116,7 @@ PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. """ -TLS_SERVER_CERTIFICATE_CHAIN = "tls.server.certificate_chain" +TLS_SERVER_CERTIFICATECHAIN = "tls.server.certificate_chain" """ Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. """ @@ -146,12 +146,12 @@ A hash that identifies servers based on how they perform an SSL/TLS handshake. """ -TLS_SERVER_NOT_AFTER = "tls.server.not_after" +TLS_SERVER_NOTAFTER = "tls.server.not_after" """ Date/Time indicating when server certificate is no longer considered valid. """ -TLS_SERVER_NOT_BEFORE = "tls.server.not_before" +TLS_SERVER_NOTBEFORE = "tls.server.not_before" """ Date/Time indicating when server certificate is first considered valid. """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/url_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/url_attributes.py index 6646f2e68d..bf9abc9bb3 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/url_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/url_attributes.py @@ -57,7 +57,7 @@ Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.url_attributes.URL_QUERY`. """ -URL_REGISTERED_DOMAIN = "url.registered_domain" +URL_REGISTEREDDOMAIN = "url.registered_domain" """ The highest registered url domain, stripped of the subdomain. Note: This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. @@ -74,7 +74,7 @@ Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. """ -URL_TOP_LEVEL_DOMAIN = "url.top_level_domain" +URL_TOPLEVELDOMAIN = "url.top_level_domain" """ The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. Note: This value can be determined precisely with the [public suffix list](http://publicsuffix.org). diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/user_agent_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/useragent_attributes.py similarity index 89% rename from opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/user_agent_attributes.py rename to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/useragent_attributes.py index 2237a2d3f1..4b237b46fc 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/user_agent_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/useragent_attributes.py @@ -13,18 +13,18 @@ # limitations under the License. -USER_AGENT_NAME = "user_agent.name" +USERAGENT_NAME = "user_agent.name" """ Name of the user-agent extracted from original. Usually refers to the browser's name. Note: [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version`. """ -USER_AGENT_ORIGINAL = "user_agent.original" +USERAGENT_ORIGINAL = "user_agent.original" """ -Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.user_agent_attributes.USER_AGENT_ORIGINAL`. +Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.user_agent_attributes.USERAGENT_ORIGINAL`. """ -USER_AGENT_VERSION = "user_agent.version" +USERAGENT_VERSION = "user_agent.version" """ Version of the user-agent extracted from original. Usually refers to the browser's version. Note: [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name`. diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/db_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/db_metrics.py index 63a86e91c1..4180dfbadb 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/db_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/db_metrics.py @@ -15,7 +15,7 @@ from opentelemetry.metrics import Counter, Histogram, Meter, UpDownCounter -DB_CLIENT_CONNECTIONS_CREATE_TIME = "db.client.connections.create_time" +DB_CLIENT_CONNECTIONS_CREATETIME = "db.client.connections.create_time" """ The time it took to create a new connection Instrument: histogram @@ -83,7 +83,7 @@ def create_db_client_connections_max(meter: Meter) -> UpDownCounter: ) -DB_CLIENT_CONNECTIONS_PENDING_REQUESTS = ( +DB_CLIENT_CONNECTIONS_PENDINGREQUESTS = ( "db.client.connections.pending_requests" ) """ @@ -138,7 +138,7 @@ def create_db_client_connections_usage(meter: Meter) -> UpDownCounter: ) -DB_CLIENT_CONNECTIONS_USE_TIME = "db.client.connections.use_time" +DB_CLIENT_CONNECTIONS_USETIME = "db.client.connections.use_time" """ The time between borrowing a connection and returning it to the pool Instrument: histogram @@ -155,7 +155,7 @@ def create_db_client_connections_use_time(meter: Meter) -> Histogram: ) -DB_CLIENT_CONNECTIONS_WAIT_TIME = "db.client.connections.wait_time" +DB_CLIENT_CONNECTIONS_WAITTIME = "db.client.connections.wait_time" """ The time it took to obtain an open connection from the pool Instrument: histogram diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/faas_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/faas_metrics.py index f93e707c00..ae786efe36 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/faas_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/faas_metrics.py @@ -32,7 +32,7 @@ def create_faas_coldstarts(meter: Meter) -> Counter: ) -FAAS_CPU_USAGE = "faas.cpu_usage" +FAAS_CPUUSAGE = "faas.cpu_usage" """ Distribution of CPU usage per invocation Instrument: histogram @@ -66,7 +66,7 @@ def create_faas_errors(meter: Meter) -> Counter: ) -FAAS_INIT_DURATION = "faas.init_duration" +FAAS_INITDURATION = "faas.init_duration" """ Measures the duration of the function's initialization, such as a cold start Instrument: histogram @@ -100,7 +100,7 @@ def create_faas_invocations(meter: Meter) -> Counter: ) -FAAS_INVOKE_DURATION = "faas.invoke_duration" +FAAS_INVOKEDURATION = "faas.invoke_duration" """ Measures the duration of the function's logic execution Instrument: histogram @@ -117,7 +117,7 @@ def create_faas_invoke_duration(meter: Meter) -> Histogram: ) -FAAS_MEM_USAGE = "faas.mem_usage" +FAAS_MEMUSAGE = "faas.mem_usage" """ Distribution of max memory usage per invocation Instrument: histogram @@ -134,7 +134,7 @@ def create_faas_mem_usage(meter: Meter) -> Histogram: ) -FAAS_NET_IO = "faas.net_io" +FAAS_NETIO = "faas.net_io" """ Distribution of net I/O usage per invocation Instrument: histogram diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/http_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/http_metrics.py index 7852a39587..d22a29b32c 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/http_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/http_metrics.py @@ -15,7 +15,7 @@ from opentelemetry.metrics import Histogram, Meter, UpDownCounter -HTTP_CLIENT_ACTIVE_REQUESTS = "http.client.active_requests" +HTTP_CLIENT_ACTIVEREQUESTS = "http.client.active_requests" """ Number of active HTTP requests Instrument: updowncounter @@ -49,7 +49,7 @@ def create_http_client_connection_duration(meter: Meter) -> Histogram: ) -HTTP_CLIENT_OPEN_CONNECTIONS = "http.client.open_connections" +HTTP_CLIENT_OPENCONNECTIONS = "http.client.open_connections" """ Number of outbound HTTP connections that are currently active or idle on the client Instrument: updowncounter @@ -117,7 +117,7 @@ def create_http_client_response_body_size(meter: Meter) -> Histogram: ) -HTTP_SERVER_ACTIVE_REQUESTS = "http.server.active_requests" +HTTP_SERVER_ACTIVEREQUESTS = "http.server.active_requests" """ Number of active HTTP server requests Instrument: updowncounter diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/process_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/process_metrics.py index 8d6e7fc75c..b7cd98b573 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/process_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/process_metrics.py @@ -22,7 +22,7 @@ UpDownCounter, ) -PROCESS_CONTEXT_SWITCHES = "process.context_switches" +PROCESS_CONTEXTSWITCHES = "process.context_switches" """ Number of times the process has been context switched Instrument: counter @@ -144,7 +144,7 @@ def create_process_network_io(meter: Meter) -> Counter: ) -PROCESS_OPEN_FILE_DESCRIPTOR_COUNT = "process.open_file_descriptor.count" +PROCESS_OPENFILEDESCRIPTOR_COUNT = "process.open_file_descriptor.count" """ Number of file descriptors in use by the process Instrument: updowncounter diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/rpc_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/rpc_metrics.py index eb2f5edd75..d59b55f290 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/rpc_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/rpc_metrics.py @@ -54,7 +54,7 @@ def create_rpc_client_request_size(meter: Meter) -> Histogram: ) -RPC_CLIENT_REQUESTS_PER_RPC = "rpc.client.requests_per_rpc" +RPC_CLIENT_REQUESTSPERRPC = "rpc.client.requests_per_rpc" """ Measures the number of messages received per RPC Instrument: histogram @@ -92,7 +92,7 @@ def create_rpc_client_response_size(meter: Meter) -> Histogram: ) -RPC_CLIENT_RESPONSES_PER_RPC = "rpc.client.responses_per_rpc" +RPC_CLIENT_RESPONSESPERRPC = "rpc.client.responses_per_rpc" """ Measures the number of messages sent per RPC Instrument: histogram @@ -151,7 +151,7 @@ def create_rpc_server_request_size(meter: Meter) -> Histogram: ) -RPC_SERVER_REQUESTS_PER_RPC = "rpc.server.requests_per_rpc" +RPC_SERVER_REQUESTSPERRPC = "rpc.server.requests_per_rpc" """ Measures the number of messages received per RPC Instrument: histogram @@ -189,7 +189,7 @@ def create_rpc_server_response_size(meter: Meter) -> Histogram: ) -RPC_SERVER_RESPONSES_PER_RPC = "rpc.server.responses_per_rpc" +RPC_SERVER_RESPONSESPERRPC = "rpc.server.responses_per_rpc" """ Measures the number of messages sent per RPC Instrument: histogram diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/system_metrics.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/system_metrics.py index 72fb32649c..35e7969d2f 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/system_metrics.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/system_metrics.py @@ -128,7 +128,7 @@ def create_system_disk_io(meter: Meter) -> Counter: ) -SYSTEM_DISK_IO_TIME = "system.disk.io_time" +SYSTEM_DISK_IOTIME = "system.disk.io_time" """ Time disk spent activated Instrument: counter @@ -166,7 +166,7 @@ def create_system_disk_merged(meter: Meter) -> Counter: ) -SYSTEM_DISK_OPERATION_TIME = "system.disk.operation_time" +SYSTEM_DISK_OPERATIONTIME = "system.disk.operation_time" """ Sum of the time each operation took to complete Instrument: counter diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/http_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/http_attributes.py index 337dbf06e2..de778919d4 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/http_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/http_attributes.py @@ -42,12 +42,12 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value. """ -HTTP_REQUEST_METHOD_ORIGINAL = "http.request.method_original" +HTTP_REQUEST_METHODORIGINAL = "http.request.method_original" """ Original HTTP method sent by the client in the request line. """ -HTTP_REQUEST_RESEND_COUNT = "http.request.resend_count" +HTTP_REQUEST_RESENDCOUNT = "http.request.resend_count" """ The ordinal number of request resending attempt (for any reason, including redirects). Note: The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). @@ -61,7 +61,7 @@ The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. """ -HTTP_RESPONSE_STATUS_CODE = "http.response.status_code" +HTTP_RESPONSE_STATUSCODE = "http.response.status_code" """ [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). """ diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/otel_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/otel_attributes.py index 1ccb108c3e..1f39a3638a 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/otel_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/otel_attributes.py @@ -25,18 +25,18 @@ The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). """ -OTEL_STATUS_CODE = "otel.status_code" +OTEL_STATUSCODE = "otel.status_code" """ Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. """ -OTEL_STATUS_DESCRIPTION = "otel.status_description" +OTEL_STATUSDESCRIPTION = "otel.status_description" """ Description of the Status if it has a value, otherwise not set. """ -class OtelStatusCodeValues(Enum): +class OtelStatuscodeValues(Enum): OK = "OK" """The operation has been validated by an Application developer or Operator to have completed successfully.""" ERROR = "ERROR" diff --git a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/user_agent_attributes.py b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/useragent_attributes.py similarity index 94% rename from opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/user_agent_attributes.py rename to opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/useragent_attributes.py index 41ea48eeea..2e2cb91386 100644 --- a/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/user_agent_attributes.py +++ b/opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/useragent_attributes.py @@ -13,7 +13,7 @@ # limitations under the License. -USER_AGENT_ORIGINAL = "user_agent.original" +USERAGENT_ORIGINAL = "user_agent.original" """ Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. """ diff --git a/scripts/semconv/generate.sh b/scripts/semconv/generate.sh index 57ae537bfe..606a5d1f08 100755 --- a/scripts/semconv/generate.sh +++ b/scripts/semconv/generate.sh @@ -39,7 +39,7 @@ generate() { -v ${SCRIPT_DIR}/semantic-conventions/model:/source \ -v ${SCRIPT_DIR}/templates:/templates \ -v ${ROOT_DIR}/opentelemetry-semantic-conventions/src/opentelemetry/semconv/:/output \ - otel/semconvgen:$OTEL_SEMCONV_GEN_IMG_VERSION \ + library/semconvgen1 \ -f /source \ --continue-on-validation-errors \ code \