Skip to content

Commit

Permalink
remove duplicate oc registry initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
paivagustavo committed Oct 4, 2022
1 parent 9597080 commit 3bf3ebd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions service/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ func (tel *telemetryInitializer) initOnce(buildInfo component.BuildInfo, logger

var pe http.Handler
var err error

// Initialize the ocRegistry, still used by the process metrics.
tel.ocRegistry = ocmetric.NewRegistry()

if tel.registry.IsEnabled(useOtelForInternalMetricsfeatureGateID) {
tel.useOtelForMetrics = true
pe, err = tel.initOpenTelemetry()
Expand Down

0 comments on commit 3bf3ebd

Please sign in to comment.