Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Oct 7, 2022
1 parent d55c8cf commit 0eb6a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instrumentation/google.golang.org/grpc/otelgrpc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ func newConfig(opts []Option) *config {
o.apply(c)
}

c.meter := c.MeterProvider.Meter(
c.meter = c.MeterProvider.Meter(
instrumentationName,
metric.WithInstrumentationVersion(SemVersion()),
)
var err error
if c.rpcServerDuration, err = meter.SyncFloat64().Histogram("rpc.server.duration"); err != nil {
if c.rpcServerDuration, err = c.meter.SyncFloat64().Histogram("rpc.server.duration"); err != nil {
otel.Handle(err)
}

Expand Down

0 comments on commit 0eb6a97

Please sign in to comment.