Skip to content

Commit

Permalink
Update dynamic_sampling_context.go
Browse files Browse the repository at this point in the history
Co-authored-by: Abhijeet Prasad <devabhiprasad@gmail.com>
  • Loading branch information
cleptric and AbhiPrasad committed Nov 30, 2022
1 parent 89fdf40 commit 30506ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamic_sampling_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func DynamicSamplingContextFromTransaction(span *Span) (DynamicSamplingContext,

// Only include the transaction name if it's of good quality (not empty and not SourceURL)
if span.Source != "" && span.Source != SourceURL {
if transactioName := scope.Transaction(); transactioName != "" {
entries["transaction"] = transactioName
if transactionName := scope.Transaction(); transactionName != "" {
entries["transaction"] = transactionName
}
}

Expand Down

0 comments on commit 30506ea

Please sign in to comment.