From ab7d580af18bdd39d52ea6451622216971336aaf Mon Sep 17 00:00:00 2001 From: Anna Urbiztondo Date: Tue, 8 Apr 2025 10:59:42 +0200 Subject: [PATCH] Fixes --- .../components/attributes-processor.rst | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/gdi/opentelemetry/components/attributes-processor.rst b/gdi/opentelemetry/components/attributes-processor.rst index 6647c2250..b7268fe44 100644 --- a/gdi/opentelemetry/components/attributes-processor.rst +++ b/gdi/opentelemetry/components/attributes-processor.rst @@ -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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -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.*):\\/\\/(?P.*)\\/(?P.*)(\\?|\\&)(?P.*) - 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.*):\\/\\/(?P.*)\\/(?P.*)(\\?|\\&)(?P.*) + action: extract Backfill spans that are missing an attribute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^