diff --git a/apm.go b/apm.go index 5527cb8..0e6fa53 100644 --- a/apm.go +++ b/apm.go @@ -91,8 +91,8 @@ func GRPCServerHandlerOpt() grpc.ServerOption { return grpc.StatsHandler(otelgrpc.NewServerHandler()) } -func GRPCClientHandlerOpt() grpc.ServerOption { - return grpc.StatsHandler(otelgrpc.NewClientHandler()) +func GRPCClientHandlerOpt() grpc.DialOption { + return grpc.WithStatsHandler(otelgrpc.NewClientHandler()) } func TraceStart(ctx context.Context, name string) (context.Context, trace.Span) {