-
Notifications
You must be signed in to change notification settings - Fork 744
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
New Metrics: Open Telemetry #4065
base: master
Are you sure you want to change the base?
Conversation
@@ -1,10 +1,13 @@ | |||
module github.com/prebid/prebid-server/v3 | |||
|
|||
go 1.21 | |||
go 1.22 |
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 should be extracted to a separate PR. We release Go upgrades separately to isolate potential issues introduced by the runtime.
@@ -1,10 +1,12 @@ | |||
package config | |||
|
|||
import ( | |||
"log/slog" |
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.
Please continue to use glog for this PR. We'll discuss changing logging libraries in a separate thread.
} | ||
|
||
// InitMetrics initializes all metrics in the given struct (except those tagged with metric="-"). | ||
func InitMetrics(meter metric.Meter, m any, prefix string) error { |
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.
Curious, is this a required step or a pre-optimization similar to what we have for Prometheus?
return nil, err | ||
} | ||
return ret, nil | ||
} |
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.
How are OpenTelemetry metrics published?
This change adds an open telemetry
MetricsEngine