Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Jul 27, 2024
1 parent 010f2a5 commit fe50d95
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: Final = (
"aws.dynamodb.attribute_definitions"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

CLOUD_ACCOUNT_ID: Final = "cloud.account.id"
"""
The cloud account ID the resource is assigned to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

CONTAINER_COMMAND: Final = "container.command"
"""
The command used to run the container (i.e. the command name).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

DB_CASSANDRA_CONSISTENCY_LEVEL: Final = "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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

DISK_IO_DIRECTION: Final = "disk.io.direction"
"""
The disk IO operation direction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

FAAS_COLDSTART: Final = "faas.coldstart"
"""
A boolean that is true if the serverless function is executed for the first time (aka cold-start).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

GEN_AI_COMPLETION: Final = "gen_ai.completion"
"""
The full response received from the LLM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

GRAPHQL_DOCUMENT: Final = "graphql.document"
"""
The GraphQL document being executed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

HOST_ARCH: Final = "host.arch"
"""
The CPU architecture the host system is running on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

LOG_FILE_NAME: Final = "log.file.name"
"""
The basename of the file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

MESSAGING_BATCH_MESSAGE_COUNT: Final = "messaging.batch.message_count"
"""
The number of messages sent, received, or processed in the scope of the batching operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

OPENTRACING_REF_TYPE: Final = "opentracing.ref_type"
"""
Parent-child Reference type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

OS_BUILD_ID: Final = "os.build_id"
"""
Unique identifier for a particular build or compilation of the operating system.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

PROCESS_COMMAND: Final = "process.command"
"""
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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

RPC_CONNECT_RPC_ERROR_CODE: Final = "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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

TLS_CIPHER: Final = "tls.cipher"
"""
String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

ERROR_TYPE: Final = "error.type"
"""
Describes a class of error the operation ended with.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

HTTP_REQUEST_HEADER_TEMPLATE: Final = "http.request.header"
"""
HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

NETWORK_LOCAL_ADDRESS: Final = "network.local.address"
"""
Local address of the network connection - IP address or Unix domain socket name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

OTEL_SCOPE_NAME: Final = "otel.scope.name"
"""
The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from enum import Enum
from typing import Final

from deprecated import deprecated

TELEMETRY_SDK_LANGUAGE: Final = "telemetry.sdk.language"
"""
The language of the telemetry SDK.
Expand Down
2 changes: 1 addition & 1 deletion scripts/semconv/templates/registry/common.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{%- endmacro %}

{%- macro import_deprecated(semconv) -%}
{%- if (semconv | rejectattr("deprecated", "none") | list | count > 0) or (ctx.filter == "any" and semconv | selectattr("stability", "equalto", "stable") | list | count > 0) -%}
{%- if (semconv | selectattr("deprecated", "defined") | rejectattr("deprecated", "none") | list | count > 0) or (ctx.filter == "any" and semconv | selectattr("stability", "equalto", "stable") | list | count > 0) -%}
from deprecated import deprecated
{%- endif -%}
{%- endmacro-%}
Expand Down

0 comments on commit fe50d95

Please sign in to comment.