Skip to content

Commit 59ad561

Browse files
committed
Specify full path
1 parent 9563ea2 commit 59ad561

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

internal/settings.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

option/option.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
422424
func WithOpenTelemetryOpts(opts ...any) ClientOption {
423425
return withOpenTelemetryOpts{opts}
424426
}

0 commit comments

Comments
 (0)