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
feat: Add config option to set additional attributes on all events #259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! My only thought... naming is hard. I'm thinking we may want something like ADDITIONAL_ATTRIBUTES
or something without agent in the name, because it's not about the agent per se. k8s agent uses additionalFields
but I think attributes is more of the term we'd be leaning toward as it gets closer to OTel naming schemes. What do you think?
Sure, happy to use additional attributes instead 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
## Which problem is this PR solving? Prepares the v0.0.20-alpha release. ## Short description of the changes - Add changelog entry - Update agent version **Note**: The release includes references to the following PRs that are not merged yet: - #259 - #266 I've also used the @ notation for contributor names to see if GitHub automatically links them. ## How to verify that this has the expected result A new release of the agent can be published.
Which problem is this PR solving?
When deploying the agent in multiple clusters, telemetry from each cluster get mixed together and there is no easy way to separate it. There are other use cases of setting per-cluster values too, eg SHA, cloud provider, etc.
This PR adds a configuration option to set a collection of key-value pairs that will be set on all events. For example; cluster-name=dev would add the field cluster-name with a value of dev.
Short description of the changes
ADDITIONAL_ATTRIBUTES
env var using new env look up funcHow to verify that this has the expected result
When additional attributes are provided, they are added to all events.