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

New Metrics: Open Telemetry #4065

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scr-oath
Copy link

@scr-oath scr-oath commented Nov 20, 2024

This change adds an open telemetry MetricsEngine

@@ -1,10 +1,13 @@
module github.com/prebid/prebid-server/v3

go 1.21
go 1.22
Copy link
Contributor

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"
Copy link
Contributor

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 {
Copy link
Contributor

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
}
Copy link
Contributor

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?

@SyntaxNode SyntaxNode changed the title Integrate with open telemetry New Metrics: Open Telemetry Nov 20, 2024
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.

2 participants