Skip to content

Commit b08943e

Browse files
committed
chore: reuse meter
1 parent ffd356b commit b08943e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/shared/pkg/grpc/channelz.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"sync"
99
"time"
1010

11-
"go.opentelemetry.io/otel"
1211
"go.opentelemetry.io/otel/attribute"
1312
"go.opentelemetry.io/otel/metric"
1413
"go.uber.org/zap"
@@ -160,7 +159,6 @@ func RegisterChannelzTarget(conn *grpc.ClientConn, clientType string) {
160159

161160
func StartChannelzSampler(ctx context.Context) {
162161
channelzInitOnce.Do(func() {
163-
meter := otel.Meter("github.com/e2b-dev/infra/packages/shared/pkg/grpc")
164162
gauge, err := meter.Int64ObservableGauge(
165163
"grpc.client.connections",
166164
metric.WithDescription("Current number of gRPC client connections by connectivity state"),

0 commit comments

Comments
 (0)