-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Feature]attributesprocessor supports keeping only the matching fields #36620
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@tttoad have you considered |
You mean |
@tttoad wouldn't something like following work, using include feature? attributes:
include:
match_type: strict
attributes:
- key: abc |
@VihasMakwana Error: attributes: missing required field "actions". |
Oh! I misunderstood the configs. Anyway, can you take a look at https://github.com/codeboten/opentelemetry-collector-contrib/tree/main/processor/transformprocessor? It has |
@tttoad does that help resolve the issue you were having? |
Yes, it can work. Thank you. |
Component(s)
processor/attributes
Is your feature request related to a problem? Please describe.
I want to keep only some of the fields in the attribute, such as those starting with ‘abc’ or ‘def’.
Describe the solution you'd like
attributesprocessor supports reserved actions, reserved fields by regular matching.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: