You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-09-16 09:26:25 +02:00
Fix callbackAttributesOpt variable name (#7210)
This commit is contained in:
@@ -171,12 +171,12 @@ func (bsp *batchSpanProcessor) configureSelfObservability() {
|
||||
otel.Handle(err)
|
||||
}
|
||||
|
||||
callabckAttributesOpt := metric.WithAttributes(bsp.componentNameAttr,
|
||||
callbackAttributesOpt := metric.WithAttributes(bsp.componentNameAttr,
|
||||
semconv.OTelComponentTypeBatchingSpanProcessor)
|
||||
bsp.callbackRegistration, err = meter.RegisterCallback(
|
||||
func(_ context.Context, o metric.Observer) error {
|
||||
o.ObserveInt64(queueSizeUpDownCounter.Inst(), int64(len(bsp.queue)), callabckAttributesOpt)
|
||||
o.ObserveInt64(queueCapacityUpDownCounter.Inst(), int64(bsp.o.MaxQueueSize), callabckAttributesOpt)
|
||||
o.ObserveInt64(queueSizeUpDownCounter.Inst(), int64(len(bsp.queue)), callbackAttributesOpt)
|
||||
o.ObserveInt64(queueCapacityUpDownCounter.Inst(), int64(bsp.o.MaxQueueSize), callbackAttributesOpt)
|
||||
return nil
|
||||
},
|
||||
queueSizeUpDownCounter.Inst(), queueCapacityUpDownCounter.Inst())
|
||||
|
Reference in New Issue
Block a user