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

Expose the entity id to allow using Datadog origin detection #58

Merged
merged 5 commits into from
Nov 22, 2023

Conversation

ghostdogpr
Copy link
Member

@ghostdogpr ghostdogpr commented Nov 21, 2023

Expose entityId that is added as a tag and allow using Datadog origin detection.

In the original implementation they are getting it from the DD_ENTITY_ID environment variable if not provided. I didn't do it in order to mimic the containerId behavior, and this can be done in user code anyway.

Because DatadogEncoder can't modify tags, I modified StatsdEncoder to allow passing constant tags that are added to every metric event. Using a String is more efficient than adding tags as it doesn't need to be formatted every time. The dogstatsd has a similar approach.

Copy link
Collaborator

@petoalbert petoalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes! Thank you @ghostdogpr! 👍

@petoalbert petoalbert merged commit 6c206a9 into zio:zio/series2.x Nov 22, 2023
12 checks passed
@ghostdogpr
Copy link
Member Author

@petoalbert would it be possible to do a release soon? 🙏

@ghostdogpr ghostdogpr deleted the feature/entityId branch November 27, 2023 23:57
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.

None yet

3 participants