Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleonikos Kyriakis committed May 17, 2024
1 parent 53ba170 commit 5048dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/tracing/nooptracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func (n *noopTracer) Shutdown() error {
}

// TraceIDForSpan returns a random trace ID in tha case of noopTracer. A non-empty trace ID is required for the span to be exported.
func (n *noopTracer) TraceIDForSpan(trace.Span) trace.TraceID {
func (n *noopTracer) TraceIDForSpan(_ trace.Span) trace.TraceID {
traceID := trace.TraceID{}
rand.Read(traceID[:])
_, _ = rand.Read(traceID[:])
return traceID
}

0 comments on commit 5048dea

Please sign in to comment.