Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 14, 2023
1 parent 7ede9dd commit 9176ade
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class HttpAttributes:


HTTP_REQUEST_HEADER_template = "http.request.header"
HTTP_REQUEST_HEADER_TEMPLATE = "http.request.header"

"""
HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
Expand Down Expand Up @@ -66,7 +66,7 @@ class HttpAttributes:
"""


HTTP_RESPONSE_HEADER_template = "http.response.header"
HTTP_RESPONSE_HEADER_TEMPLATE = "http.response.header"

"""
HTTP response 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 @@ -81,7 +81,7 @@ class ContainerAttributes:
"""


CONTAINER_LABELS_template = "container.labels"
CONTAINER_LABELS_TEMPLATE = "container.labels"

"""
Container labels, `<key>` being the label name, the value being the label value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class DbAttributes:
"""


DB_ELASTICSEARCH_PATH_PARTS_template = "db.elasticsearch.path_parts"
DB_ELASTICSEARCH_PATH_PARTS_TEMPLATE = "db.elasticsearch.path_parts"

"""
A dynamic value in the url path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ class RpcAttributes:
"""


RPC_CONNECT_RPC_REQUEST_METADATA_template = "rpc.connect_rpc.request.metadata"
RPC_CONNECT_RPC_REQUEST_METADATA_TEMPLATE = "rpc.connect_rpc.request.metadata"

"""
Connect request metadata, `<key>` 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_CONNECT_RPC_RESPONSE_METADATA_TEMPLATE = "rpc.connect_rpc.response.metadata"

"""
Connect response metadata, `<key>` 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.
"""


RPC_GRPC_REQUEST_METADATA_template = "rpc.grpc.request.metadata"
RPC_GRPC_REQUEST_METADATA_TEMPLATE = "rpc.grpc.request.metadata"

"""
gRPC request metadata, `<key>` being the normalized gRPC 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_GRPC_RESPONSE_METADATA_template = "rpc.grpc.response.metadata"
RPC_GRPC_RESPONSE_METADATA_TEMPLATE = "rpc.grpc.response.metadata"

"""
gRPC response metadata, `<key>` being the normalized gRPC Metadata key (lowercase), the value being the metadata values.
Expand Down
2 changes: 1 addition & 1 deletion scripts/semconv/templates/semantic_attributes.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class {{ root_namespace | to_camelcase(True) }}Attributes:
{%- for attribute in filtered_attributes %}

{% if attribute | is_template %}
{{attribute.fqn | to_const_name}}_template = "{{attribute.fqn}}"
{{attribute.fqn | to_const_name}}_TEMPLATE = "{{attribute.fqn}}"
{% else %}
{{attribute.fqn | to_const_name}} = "{{attribute.fqn}}"
{% endif %}
Expand Down

0 comments on commit 9176ade

Please sign in to comment.