Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions gdi/opentelemetry/components/attributes-processor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,18 @@ The following example shows how to remove a token attribute, hash an email, and

.. code-block:: yaml


attributes/log_body_regexp:
include:
match_type: regexp
log_bodies: ["AUTH.*"]
actions:
- key: password
action: update
value: "Redacted"
- key: apitoken
action: delete
- key: email
action: hash
attributes/log_body_regexp:
include:
match_type: regexp
log_bodies: ["AUTH.*"]
actions:
- key: password
action: update
value: "Redacted"
- key: apitoken
action: delete
- key: email
action: hash

Create a new attribute based on the value of another
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -164,14 +163,13 @@ The following example shows how to create a new attribute based on the value of

.. code-block:: yaml


attributes/createattributes:
actions:
# Creates four new attributes (defined in pattern) from the
# value of the http.url attribute
- key: "http.url"
pattern: ^(?P<http_protocol>.*):\\/\\/(?P<http_domain>.*)\\/(?P<http_path>.*)(\\?|\\&)(?P<http_query_params>.*)
action: extract
attributes/createattributes:
actions:
# Creates four new attributes (defined in pattern) from the
# value of the http.url attribute
- key: "http.url"
pattern: ^(?P<http_protocol>.*):\\/\\/(?P<http_domain>.*)\\/(?P<http_path>.*)(\\?|\\&)(?P<http_query_params>.*)
action: extract

Backfill spans that are missing an attribute
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down