Skip to content

Commit

Permalink
whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Jun 13, 2024
1 parent 04e2833 commit 8c85727
Show file tree
Hide file tree
Showing 73 changed files with 545 additions and 632 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Final





from enum import Enum
from typing import Final

AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: Final = "aws.dynamodb.attribute_definitions"
AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: Final = (
"aws.dynamodb.attribute_definitions"
)
"""
The JSON-serialized value of each item in the `AttributeDefinitions` request field.
"""
Expand All @@ -45,17 +42,23 @@
The value of the `Count` response parameter.
"""

AWS_DYNAMODB_EXCLUSIVE_START_TABLE: Final = "aws.dynamodb.exclusive_start_table"
AWS_DYNAMODB_EXCLUSIVE_START_TABLE: Final = (
"aws.dynamodb.exclusive_start_table"
)
"""
The value of the `ExclusiveStartTableName` request parameter.
"""

AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES: Final = "aws.dynamodb.global_secondary_index_updates"
AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES: Final = (
"aws.dynamodb.global_secondary_index_updates"
)
"""
The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.
"""

AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES: Final = "aws.dynamodb.global_secondary_indexes"
AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES: Final = (
"aws.dynamodb.global_secondary_indexes"
)
"""
The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.
"""
Expand All @@ -65,7 +68,9 @@
The value of the `IndexName` request parameter.
"""

AWS_DYNAMODB_ITEM_COLLECTION_METRICS: Final = "aws.dynamodb.item_collection_metrics"
AWS_DYNAMODB_ITEM_COLLECTION_METRICS: Final = (
"aws.dynamodb.item_collection_metrics"
)
"""
The JSON-serialized value of the `ItemCollectionMetrics` response field.
"""
Expand All @@ -75,7 +80,9 @@
The value of the `Limit` request parameter.
"""

AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES: Final = "aws.dynamodb.local_secondary_indexes"
AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES: Final = (
"aws.dynamodb.local_secondary_indexes"
)
"""
The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.
"""
Expand All @@ -85,12 +92,16 @@
The value of the `ProjectionExpression` request parameter.
"""

AWS_DYNAMODB_PROVISIONED_READ_CAPACITY: Final = "aws.dynamodb.provisioned_read_capacity"
AWS_DYNAMODB_PROVISIONED_READ_CAPACITY: Final = (
"aws.dynamodb.provisioned_read_capacity"
)
"""
The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
"""

AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY: Final = "aws.dynamodb.provisioned_write_capacity"
AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY: Final = (
"aws.dynamodb.provisioned_write_capacity"
)
"""
The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.
"""
Expand Down Expand Up @@ -279,4 +290,4 @@ class AwsEcsLaunchtypeValues(Enum):
EC2: Final = "ec2"
"""ec2."""
FARGATE: Final = "fargate"
"""fargate."""
"""fargate."""
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





BROWSER_BRANDS: Final = "browser.brands"
"""
Array of brand name and version separated by a space.
Expand All @@ -42,4 +38,3 @@
Note: This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent.
The list of possible values is defined in the [W3C User-Agent Client Hints specification](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform). Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes](./os.md). However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





CLIENT_ADDRESS: Final = "client.address"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.client_attributes.CLIENT_ADDRESS`.
Expand All @@ -27,4 +23,3 @@
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.client_attributes.CLIENT_PORT`.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Final





from enum import Enum
from typing import Final

CLOUD_ACCOUNT_ID: Final = "cloud.account.id"
"""
Expand Down Expand Up @@ -128,6 +123,8 @@ class CloudPlatformValues(Enum):
"""Tencent Cloud Elastic Kubernetes Service (EKS)."""
TENCENT_CLOUD_SCF: Final = "tencent_cloud_scf"
"""Tencent Cloud Serverless Cloud Function (SCF)."""


class CloudProviderValues(Enum):
ALIBABA_CLOUD: Final = "alibaba_cloud"
"""Alibaba Cloud."""
Expand All @@ -142,4 +139,4 @@ class CloudProviderValues(Enum):
IBM_CLOUD: Final = "ibm_cloud"
"""IBM Cloud."""
TENCENT_CLOUD: Final = "tencent_cloud"
"""Tencent Cloud."""
"""Tencent Cloud."""
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





CLOUDEVENTS_EVENT_ID: Final = "cloudevents.event_id"
"""
The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event.
Expand All @@ -42,4 +38,3 @@
"""
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.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





CODE_COLUMN: Final = "code.column"
"""
The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
Expand Down Expand Up @@ -47,4 +43,3 @@
"""
A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Final





from enum import Enum
from typing import Final

CONTAINER_COMMAND: Final = "container.command"
"""
Expand Down Expand Up @@ -97,4 +92,4 @@ class ContainerCpuStateValues(Enum):
SYSTEM: Final = "system"
"""When CPU is used by the system (host OS)."""
KERNEL: Final = "kernel"
"""When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)."""
"""When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)."""
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Final





from enum import Enum
from typing import Final

DB_CASSANDRA_CONSISTENCY_LEVEL: Final = "db.cassandra.consistency_level"
"""
Expand All @@ -45,7 +40,9 @@
The fetch size used for paging, i.e. how many rows will be returned at once.
"""

DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT: Final = "db.cassandra.speculative_execution_count"
DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT: Final = (
"db.cassandra.speculative_execution_count"
)
"""
The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively.
"""
Expand Down Expand Up @@ -86,7 +83,9 @@
RU consumed for that operation.
"""

DB_COSMOSDB_REQUEST_CONTENT_LENGTH: Final = "db.cosmosdb.request_content_length"
DB_COSMOSDB_REQUEST_CONTENT_LENGTH: Final = (
"db.cosmosdb.request_content_length"
)
"""
Request payload size in bytes.
"""
Expand Down Expand Up @@ -200,11 +199,15 @@ class DbCassandraConsistencyLevelValues(Enum):
"""serial."""
LOCAL_SERIAL: Final = "local_serial"
"""local_serial."""


class DbCosmosdbConnectionModeValues(Enum):
GATEWAY: Final = "gateway"
"""Gateway (HTTP) connections mode."""
DIRECT: Final = "direct"
"""Direct connection."""


class DbCosmosdbOperationTypeValues(Enum):
INVALID: Final = "Invalid"
"""invalid."""
Expand Down Expand Up @@ -236,6 +239,8 @@ class DbCosmosdbOperationTypeValues(Enum):
"""query_plan."""
EXECUTE_JAVASCRIPT: Final = "ExecuteJavaScript"
"""execute_javascript."""


class DbSystemValues(Enum):
OTHER_SQL: Final = "other_sql"
"""Some other SQL database. Fallback only. See notes."""
Expand Down Expand Up @@ -340,4 +345,4 @@ class DbSystemValues(Enum):
SPANNER: Final = "spanner"
"""Cloud Spanner."""
TRINO: Final = "trino"
"""Trino."""
"""Trino."""
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





DEPLOYMENT_ENVIRONMENT: Final = "deployment.environment"
"""
Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
Expand All @@ -29,4 +25,3 @@
* `service.name=frontend`, `deployment.environment=production`
* `service.name=frontend`, `deployment.environment=staging`.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





DESTINATION_ADDRESS: Final = "destination.address"
"""
Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
Expand All @@ -28,4 +24,3 @@
"""
Destination port number.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





DEVICE_ID: Final = "device.id"
"""
A unique identifier representing the device.
Expand All @@ -41,4 +37,3 @@
The marketing name for the device model.
Note: It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Final





from enum import Enum
from typing import Final

DISK_IO_DIRECTION: Final = "disk.io.direction"
"""
Expand All @@ -30,4 +25,4 @@ class DiskIoDirectionValues(Enum):
READ: Final = "read"
"""read."""
WRITE: Final = "write"
"""write."""
"""write."""
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@

from typing import Final





DNS_QUESTION_NAME: Final = "dns.question.name"
"""
The name being queried.
Note: If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \\t, \\r, and \\n respectively.
"""

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

from typing import Final





ENDUSER_ID: Final = "enduser.id"
"""
Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system.
Expand All @@ -32,4 +28,3 @@
"""
Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html).
"""

Loading

0 comments on commit 8c85727

Please sign in to comment.