File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ func (ds *DialSettings) Validate() error {
192192 case otelgrpc.Option :
193193 ds .OpenTelemetryOptsGRPC = append (ds .OpenTelemetryOptsGRPC , o .(otelgrpc.Option ))
194194 default :
195- return errors .New ("WithOpenTelemetryOpts options must be of type otelhttp.Option or otelgrpc.Option" )
195+ return errors .New ("WithOpenTelemetryOpts options must be of type " +
196+ "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.Option " +
197+ "or go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.Option" )
196198 }
197199 }
198200 return nil
Original file line number Diff line number Diff line change @@ -418,7 +418,9 @@ func (w withLogger) Apply(o *internal.DialSettings) {
418418// WithOpenTelemetryOpts returns a ClientOption that sets the options for
419419// the OpenTelemetry HTTP/gRPC client. This option is used to configure
420420// the OpenTelemetry HTTP/gRPC client instrumentation.
421- // It can accept any number of options, which can be otelhttp.Option or otelgrpc.Option.
421+ // It can accept any number of options, which can be
422+ // go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.Option or
423+ // go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.Option
422424func WithOpenTelemetryOpts (opts ... any ) ClientOption {
423425 return withOpenTelemetryOpts {opts }
424426}
You can’t perform that action at this time.
0 commit comments