-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[chore] Move metrics initialization in service/telemetry #11185
Conversation
1aa31ca
to
8f65a8f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11185 +/- ##
==========================================
+ Coverage 91.86% 91.88% +0.02%
==========================================
Files 413 416 +3
Lines 19766 19864 +98
==========================================
+ Hits 18158 18252 +94
+ Misses 1239 1236 -3
- Partials 369 376 +7 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Bogdan Drutu <[email protected]>
8f65a8f
to
ae7b9cb
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.
this looks mostly ok, a big chunk of this code (all the stuff in otelinit) will be removed once #11079 lands
"go.opentelemetry.io/collector/service/telemetry/internal" | ||
) | ||
|
||
// disableHighCardinalityMetricsfeatureGate is the feature gate that controls whether the collector should enable | ||
// potentially high cardinality metrics. The gate will be removed when the collector allows for view configuration. | ||
var disableHighCardinalityMetricsfeatureGate = featuregate.GlobalRegistry().MustRegister( |
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.
Should this be moved to globalgates 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.
Why? Where else is used? My understanding is that in globalgates we put things shared between components/modules.
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.
ah, i just thought of it as a convenient location for all feature gates 🤣
No description provided.