Skip to content

Commit

Permalink
[chore] use metadata.Meter method (#29928)
Browse files Browse the repository at this point in the history
Follows
#29927,
uses the new method

Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
Alex Boten authored Dec 18, 2023
1 parent 8d207b7 commit 8b8c780
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions processor/servicegraphprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ func newProcessor(set component.TelemetrySettings, config component.Config) *ser
pConfig.VirtualNodePeerAttributes = defaultPeerAttributes
}

scopeName := "processor/servicegraphprocessor"
meter := set.MeterProvider.Meter(scopeName)
meter := metadata.Meter(set)

droppedSpan, _ := meter.Int64Counter(
processorhelper.BuildCustomMetricName(metadata.Type, "dropped_spans"),
Expand Down

0 comments on commit 8b8c780

Please sign in to comment.