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 c6049b2 commit 32f6ad5
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 @@ -129,10 +129,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 32f6ad5

Please sign in to comment.