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

configgrpc: Update ToDialOptions with settings #4451

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

codeboten
Copy link
Contributor

Adding the ability to pass TelemetrySettings to ToDialOptions to configure underlying instrumentation library.

Fixes #4424

Adding the ability to pass TelemetrySettings to ToDialOptions to configure underlying instrumentation library.

Fixes open-telemetry#4424
@codeboten codeboten requested a review from a team as a code owner November 17, 2021 23:27
@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #4451 (132000f) into main (e23c9d0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4451   +/-   ##
=======================================
  Coverage   90.70%   90.70%           
=======================================
  Files         178      178           
  Lines       10357    10357           
=======================================
  Hits         9394     9394           
  Misses        745      745           
  Partials      218      218           
Impacted Files Coverage Δ
config/configgrpc/configgrpc.go 93.91% <100.00%> (ø)
exporter/otlpexporter/factory.go 91.30% <100.00%> (ø)
exporter/otlpexporter/otlp.go 72.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e23c9d0...132000f. Read the comment docs.

Comment on lines +251 to +252
opts = append(opts, grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor(otelgrpc.WithTracerProvider(settings.TracerProvider))))
opts = append(opts, grpc.WithStreamInterceptor(otelgrpc.StreamClientInterceptor(otelgrpc.WithTracerProvider(settings.TracerProvider))))
Copy link
Member

Choose a reason for hiding this comment

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

MeterProvider as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The option is not supported yet open-telemetry/opentelemetry-go-contrib#1094

@bogdandrutu bogdandrutu merged commit bdcb989 into open-telemetry:main Nov 19, 2021
@codeboten codeboten deleted the codeboten/fix-4424 branch June 22, 2023 15:29
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 TelemetrySettings to configgrpc.ToDialOptions and use providers for otel interceptors
2 participants