-
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
[BREAKING CHANGE] Enable "new-metrics" by default #1148
[BREAKING CHANGE] Enable "new-metrics" by default #1148
Conversation
This change switches the defaults between "new-metrics" and "legacy-metrics". Now the defaults are: - "new-metrics" ON by default - "legacy-metrics" OFF by default - "add-instance-id" ON by default
Codecov Report
@@ Coverage Diff @@
## master #1148 +/- ##
==========================================
- Coverage 86.86% 86.84% -0.02%
==========================================
Files 201 201
Lines 14521 14521
==========================================
- Hits 12613 12611 -2
- Misses 1458 1459 +1
- Partials 450 451 +1
Continue to review full report at Codecov.
|
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.
@pjanotti thanks for waiting for the feedback from Google.
This change should be fine to merge, and we can still override default flags via explicitly enabling "legacy mode" if needed.
We do have custom observability extensions (we use a custom exporter instead of Prometheus there) using the "legacy views" though, e.g.
opentelemetry-collector/observability/observability.go
Lines 69 to 70 in e3df9f3
// ViewReceiverReceivedTimeSeries defines the view for the receiver received timeseries metric. | |
var ViewReceiverReceivedTimeSeries = &view.View{ |
As far as I understand, the plan is to delete these legacy views completely, so we will need to migrate our custom extensions to using new views instead. The issue here is that the new metric views are being generated dynamically in private function
func genAllViews() (views []*view.View) { |
obsreport
package, e.g. we should be able to reference a view for measure mReceiverAcceptedSpans = stats.Int64( |
@nilebox Thanks for reviewing.
Yes, the plan is to eventually completely remove the legacy views but that should be the very last step. I don't see any problem exposing the |
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.
LGTM.
* Enable "new-metrics" by default This change switches the defaults between "new-metrics" and "legacy-metrics". Now the defaults are: - "new-metrics" ON by default - "legacy-metrics" OFF by default - "add-instance-id" ON by default * Use Prometheus parser in tests
open-telemetry#1148) * Bump google.golang.org/grpc from 1.31.1 to 1.32.0 in /exporters/stdout Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.31.1 to 1.32.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.31.1...v1.32.0) Signed-off-by: dependabot[bot] <[email protected]> * Auto-fix go.sum changes in dependent modules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> Co-authored-by: Anthony Mirabella <[email protected]>
* Remove default collector image * fix command * regen examples * Remove command name restriction * Adding warning
Description:
This change switches the defaults between "new-metrics" and "legacy-metrics".
Now the defaults are:
Link to tracking Issue: Third item on #1082
Testing: Added test to enforce the "service_instance_id" label ON by default.
Documentation: Updated
monitoring.md
to reflect that the "new-metrics" are on by default.