Skip to content

Commit 8c614bf

Browse files
committed
[chore] fix compilation
1 parent 35e105a commit 8c614bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

processor/tailsamplingprocessor/internal/sampling/bytes_limiting.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ func (b *bytesLimiting) Evaluate(_ context.Context, _ pcommon.TraceID, trace *sa
6060
// calculateTraceSize calculates the accurate protobuf marshaled size of a trace in bytes
6161
// using the OpenTelemetry Collector's built-in ProtoMarshaler.TracesSize() method
6262
func calculateTraceSize(trace *samplingpolicy.TraceData) int64 {
63-
trace.Lock()
64-
defer trace.Unlock()
6563

6664
// Use the OpenTelemetry Collector's built-in method for accurate size calculation
6765
// This gives us the exact protobuf marshaled size

0 commit comments

Comments
 (0)