Update existing attributes in-place #18383
Unanswered
arielvalentin
asked this question in
Q&A
Replies: 1 comment
-
After a few attempts and incantations I found that I am able to use a subset of a regular expression match using transform:
trace_statements:
- context: span
statements:
- replace_pattern(attributes["http.target"], "\\?.*$", "?[REDACTED]")
- replace_pattern(attributes["http.url"], "\\?.*$", "?[REDACTED]")
The part that confuses me here is why I had to add additional escaping to the regular expression match. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to redact the query string
http.target
andhttp.url
attributes and the only success I have had so far has been to configureextract
,update
, anddelete
actions for each attribute like so:I there a more concise or efficient way to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions