Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add telemetry processors masking feature #1977

Merged
merged 12 commits into from
Dec 27, 2021
Merged

Add telemetry processors masking feature #1977

merged 12 commits into from
Dec 27, 2021

Conversation

kryalama
Copy link
Contributor

@kryalama kryalama commented Nov 24, 2021

Added a new telemetry processor action "mask". This feature makes it easier for the customers to mask span or log attributes based on the attribute value regex.
Ex:

       "type": "attribute",
       "actions": [
         {
           "key": "http.url",
           "pattern": "^(?<uriNoCard>.*\\/cardid\\/)(?<cardStart>[0-9]{6})[0-9]{6}(?<cardEnd>[0-9]{4,6}).*",
           "replace": "${uriNoCard}****${cardEnd}",
           "action": "mask"
         }
       ],
       "id": "attributes/mask"
     }

Before Telemetry Processors:
http.url: http://example.com/cardid/1234562222227899

After Telemetry Processors:
http.url: http://example.com/cardid/****7899

TODO: Update documentation

@kryalama kryalama requested review from trask and removed request for xiao-lix December 15, 2021 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants