Skip to content

Commit 5420608

Browse files
Merge pull request #2732 from splunk/urbiz-DG29035-attribute-px-fix
[DG29035]: Attributes processor fixes
2 parents 3df8005 + ab7d580 commit 5420608

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

gdi/opentelemetry/components/attributes-processor.rst

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,18 @@ The following example shows how to remove a token attribute, hash an email, and
143143

144144
.. code-block:: yaml
145145
146-
147-
attributes/log_body_regexp:
148-
include:
149-
match_type: regexp
150-
log_bodies: ["AUTH.*"]
151-
actions:
152-
- key: password
153-
action: update
154-
value: "Redacted"
155-
- key: apitoken
156-
action: delete
157-
- key: email
158-
action: hash
146+
attributes/log_body_regexp:
147+
include:
148+
match_type: regexp
149+
log_bodies: ["AUTH.*"]
150+
actions:
151+
- key: password
152+
action: update
153+
value: "Redacted"
154+
- key: apitoken
155+
action: delete
156+
- key: email
157+
action: hash
159158
160159
Create a new attribute based on the value of another
161160
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -164,14 +163,13 @@ The following example shows how to create a new attribute based on the value of
164163

165164
.. code-block:: yaml
166165
167-
168-
attributes/createattributes:
169-
actions:
170-
# Creates four new attributes (defined in pattern) from the
171-
# value of the http.url attribute
172-
- key: "http.url"
173-
pattern: ^(?P<http_protocol>.*):\\/\\/(?P<http_domain>.*)\\/(?P<http_path>.*)(\\?|\\&)(?P<http_query_params>.*)
174-
action: extract
166+
attributes/createattributes:
167+
actions:
168+
# Creates four new attributes (defined in pattern) from the
169+
# value of the http.url attribute
170+
- key: "http.url"
171+
pattern: ^(?P<http_protocol>.*):\\/\\/(?P<http_domain>.*)\\/(?P<http_path>.*)(\\?|\\&)(?P<http_query_params>.*)
172+
action: extract
175173
176174
Backfill spans that are missing an attribute
177175
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)