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
ddtrace/tracer: send all global tags instead of just env #673
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.
We can have this change, please address all the comments and happy to review again and merge.
420e2d5
to
f7fb808
Compare
@gbbr - your comments should be addressed now 👍 |
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 looks good to me.
@knusbaum can you also please take a look to make sure the right precedence is given to these tags based on other config? I know you've made changes in that area lately.
@DarrenTsung you'll have to rebase your PR to latest |
f7fb808
to
95d52b4
Compare
Seeing an error for
Because of a race, but this doesn't seem like it would be caused by this PR? |
Your test is reading the config
While the statsd client attempts to send metrics:
|
Best way is to just test |
95d52b4
to
c2e0639
Compare
@gbbr - thanks, updated the test to just test |
Instead of only looking for Environment tag, send all global tags for metrics recorded by the statsd client (runtime metrics). This also removes the remapping of ext.Environment to hardcoded "env". Fixes: DataDog#671
c2e0639
to
4dcc7ef
Compare
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.
Thanks!
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.
I think we should add version
to the tags as well, but it's not necessary to do here.
This looks good.
Instead of only looking for Environment tag, send all global tags for metrics recorded by the statsd client (and runtime metrics). Fixes: DataDog#671
Instead of only looking for Environment tag, send all global tags
for metrics recorded by the statsd client (runtime metrics).
This also removes the remapping of ext.Environment to hardcoded "env".
Fixes: #671