Skip to content

Commit

Permalink
remove unused stub
Browse files Browse the repository at this point in the history
  • Loading branch information
benw10-1 committed Oct 11, 2024
1 parent 0dfa0bf commit 9e5a61a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/o11y/o11y.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
"go.opentelemetry.io/otel/metric"
meternoop "go.opentelemetry.io/otel/metric/noop"
"go.opentelemetry.io/otel/trace"
)

Expand Down Expand Up @@ -55,11 +54,3 @@ func Init(serviceName string) func(context.Context) {

return shutdown
}

// InitStub sets metric and tracer handlers to no-op implementations.
func InitStub() func(context.Context) {
Tracer = trace.NewNoopTracerProvider().Tracer("stub")
Meter = meternoop.Meter{}

return func(ctx context.Context) {}
}

0 comments on commit 9e5a61a

Please sign in to comment.