Skip to content

Commit

Permalink
contrib/google.golang.org/grpc: use service name from function (#613)
Browse files Browse the repository at this point in the history
This commit changes the service name in a call to startSpanFromContex from
cfg.serviceName to cfg.serverServiceName(). Everywhere else in the grpc
server integration, the service name is taken from cfg.serverServiceName(),
except this one place which erroneously uses cfg.serviceName directly.
  • Loading branch information
knusbaum authored Mar 19, 2020
1 parent 876b6b3 commit 3895869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/google.golang.org/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor {
ctx,
info.FullMethod,
"grpc.server",
cfg.serviceName,
cfg.serverServiceName(),
tracer.AnalyticsRate(cfg.analyticsRate),
tracer.Measured(),
)
Expand Down

0 comments on commit 3895869

Please sign in to comment.