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

Fix telemetry using the global namespace #205

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

hush-hush
Copy link
Member

@hush-hush hush-hush commented Jul 1, 2021

The telemetry metrics should not use the user namespace.
Before this PR: the metric namespace would still be added to telemetry metrics when telemetry is not configured with its own endpoint.

This commit also include a rework in the tests that allows us to test the telemetry from start to finish (end-to-end)

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Left a few comments, but overall LGTM.

If I understand correctly (could you update the PR description if this looks correct):

  • before this PR: the metric namespace (and global tags) would still be added to telemetry metrics when telemetry is not configured with its own endpoint.
  • after this PR: the metric namespace (and global tags) are not added to telemetry metrics in all cases, which is the correct behavior.

statsd/test_helpers_test.go Outdated Show resolved Hide resolved
statsd/test_helpers_test.go Show resolved Hide resolved
statsd/test_helpers_test.go Show resolved Hide resolved
statsd/statsd.go Show resolved Hide resolved
Base automatically changed from maxime/fix-precision-diff to master July 5, 2021 10:27
@hush-hush hush-hush force-pushed the maxime/fix-telemetry-namespace branch 2 times, most recently from 87b3adf to 0ed86ff Compare July 8, 2021 09:57
The telemetry metrics should not use the user namespace.

This commit also include a rework in the tests that allows us to test
the telemety from start to finish (end-to-end)
@hush-hush hush-hush force-pushed the maxime/fix-telemetry-namespace branch from 0ed86ff to 62e81f9 Compare July 8, 2021 10:07
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

LGTM!

(and to correct my previous comment: global tags were already sent with telemetry metrics before this PR, and will continue to be with this PR).

@hush-hush hush-hush merged commit f507940 into master Jul 9, 2021
@hush-hush hush-hush deleted the maxime/fix-telemetry-namespace branch July 9, 2021 09:09
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

2 participants