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

use ReceiverCreateSettings to configure TracerProvider #3967

Merged

Conversation

codeboten
Copy link
Contributor

Description:
Pass in ReceiverCreateSettings to confighttp/configgrpc to support configuring TracerProvider and in the near future MeterProvider.

Link to tracking Issue: Fix #3931

@codeboten codeboten requested review from a team and dmitryax September 2, 2021 21:44
@codeboten codeboten force-pushed the codeboten/add-meter-provider branch from 252737f to ec7c062 Compare September 8, 2021 18:43
component/telemetry.go Outdated Show resolved Hide resolved
@@ -270,7 +270,7 @@ func (gss *GRPCServerSettings) ToListener() (net.Listener, error) {
}

// ToServerOption maps configgrpc.GRPCServerSettings to a slice of server options for gRPC.
func (gss *GRPCServerSettings) ToServerOption(ext map[config.ComponentID]component.Extension) ([]grpc.ServerOption, error) {
func (gss *GRPCServerSettings) ToServerOption(ext map[config.ComponentID]component.Extension, settings component.TelemetrySettings) ([]grpc.ServerOption, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Just file an issue for me to investigate if better to pass the Host not the extensions only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Pass Tracer/Meter Provider to http/grpc configs to record metrics
2 participants