Skip to content

Commit e0d4b48

Browse files
committed
remove noError
1 parent d20963d commit e0d4b48

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

sdk/trace/batch_span_processor.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ const (
3333
DefaultMaxExportBatchSize = 512
3434
)
3535

36-
var (
37-
noError = otelconv.ErrorTypeAttr("")
38-
queueFull = otelconv.ErrorTypeAttr("queue_full")
39-
)
36+
var queueFull = otelconv.ErrorTypeAttr("queue_full")
4037

4138
// BatchSpanProcessorOption configures a BatchSpanProcessor.
4239
type BatchSpanProcessorOption func(o *BatchSpanProcessorOptions)
@@ -346,8 +343,7 @@ func (bsp *batchSpanProcessor) exportSpans(ctx context.Context) error {
346343
if bsp.selfObservabilityEnabled {
347344
bsp.spansProcessedCounter.Add(ctx, int64(l),
348345
bsp.componentNameAttr,
349-
bsp.spansProcessedCounter.AttrComponentType(otelconv.ComponentTypeBatchingSpanProcessor),
350-
bsp.spansProcessedCounter.AttrErrorType(noError))
346+
bsp.spansProcessedCounter.AttrComponentType(otelconv.ComponentTypeBatchingSpanProcessor))
351347
}
352348
err := bsp.e.ExportSpans(ctx, bsp.batch)
353349

sdk/trace/batch_span_processor_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ func assertScopeMetrics(t *testing.T, componentNameAttr attribute.KeyValue, read
779779
Attributes: attribute.NewSet(
780780
semconv.OTelComponentTypeBatchingSpanProcessor,
781781
componentNameAttr,
782-
semconv.ErrorTypeKey.String(string(noError)),
783782
),
784783
})
785784
}

0 commit comments

Comments
 (0)