Skip to content

Commit

Permalink
Uncomment ensure capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
kwapik committed Dec 11, 2023
1 parent 211ec2d commit 5e1d4c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/otelcollector/metricsprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ func (p *metricsProcessor) ConsumeLogs(ctx context.Context, ld plog.Logs) (plog.
1 + // FlowStatus
21 + // CheckResponse
len(checkResponse.GetTelemetryFlowLabels())
_ = capacity
// Not calling EnsureCapacity as it's broken:
// https://github.com/open-telemetry/opentelemetry-collector/issues/7955
// attributes.EnsureCapacity(capacity)
attributes.EnsureCapacity(capacity)
}

// Source specific processing
Expand Down

0 comments on commit 5e1d4c1

Please sign in to comment.