Skip to content

Commit 796607c

Browse files
committed
[chore] fix compilation
1 parent 35e105a commit 796607c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

processor/tailsamplingprocessor/internal/sampling/bytes_limiting.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +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()
65-
6663
// Use the OpenTelemetry Collector's built-in method for accurate size calculation
6764
// This gives us the exact protobuf marshaled size
6865
marshaler := &ptrace.ProtoMarshaler{}

0 commit comments

Comments
 (0)