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

chore: config selector #4001

Closed

Conversation

fracasula
Copy link

Fixes #3925

@@ -96,8 +93,11 @@ func (e *exporter) Shutdown(ctx context.Context) error {
// New return an Exporter that uses client to transmits the OTLP data it
// produces. The client is assumed to be fully started and able to communicate
// with its OTLP receiving endpoint.
func New(client Client) metric.Exporter {
return &exporter{client: client}
func New(client Client, cs ConfigSelector) metric.Exporter {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change would make the otlpmetric package not backwards compatible. This shouldn't happen, but there is the case where someone upgrades grpc without upgrading the HTTP, it would pull this package up and break the not upgraded one. See #3846 for breaking this dependency.

Can we leave the arguments to New as is and use a different function to accomplish this?

That will mean that New() will need some way to get the ConfigSelector.

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.

Metric creation slowed down by unreachable collector with gRPC
2 participants