Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo committed Jul 4, 2023
1 parent be2efcf commit 364a304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Span struct { //nolint: maligned // prefer readability over optimal memory
contexts map[string]Context
// profiler instance if attached, nil otherwise.
profiler transactionProfiler
// a Once instance to make sure that Finish() is only called once
// a Once instance to make sure that Finish() is only called once.
finishOnce sync.Once
}

Expand Down Expand Up @@ -196,7 +196,7 @@ func StartSpan(ctx context.Context, operation string, options ...SpanOption) *Sp
return &span
}

// doFinish runs the actual Span.Finish() logic
// doFinish runs the actual Span.Finish() logic.
func (s *Span) doFinish() {
// For the timing to be correct, the profiler must be stopped before s.EndTime.
var profile *profileInfo
Expand Down

0 comments on commit 364a304

Please sign in to comment.