-
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
allow to use hash and convert on attribute values (also if retrieved from env var) #30192
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @cforce, apologies for the delayed response. I'm a bit unsure what your specific request is. I believe step 1 is already possible, so is your request simply to be able to add a |
I want to hash the attribute deviceid and then use the hashed attribute value of deviceid inline in another attribute tags as array element
|
You can do this using the transform processor. If you're doing this on metrics you can use the datapoint context to have access to attributes (this works for traces and logs too, you just have to use the right context). The processor uses OTTL which has a hash function. You could then use an OTTL function like set or concat to add the value to your preferred destination. More information on those functions can be found here. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
processor/attributes
Is your feature request related to a problem? Please describe.
1.) I read and env var as attribute value and want to apply the attribute processor hash or convert method on it.
2.) I want to apply hash/convert on value(env var ) and use this new value inside a array element value of an attribute value
Describe the solution you'd like
1.)
2.) ${attribute:deviceid} allows to read data from attribute's namespace (even if converted or hased before) and reuse it in any substring of another value
Describe alternatives you've considered
None. Open for alternatives ideas
Additional context
No response
The text was updated successfully, but these errors were encountered: