1
0
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:
Tyler Yahn
2025-08-18 02:46:16 -07:00
committed by GitHub
parent 796aa3cc33
commit bb8d6f74b0

View File

@@ -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())