Skip to content

Commit

Permalink
Merge pull request #412 from elisasre/fixpercentage
Browse files Browse the repository at this point in the history
fix samplepercentage
  • Loading branch information
zetaab authored Oct 25, 2024
2 parents d985b9f + ad3e83c commit 9caadee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/service/module/tracerprovider/tracerprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func WithSamplePercentage(percentage int) Opt {
if percentage > 100 || percentage < 0 {
return ErrInvalidSamplePercentage
}
tp.samplePercentage = float64(tp.samplePercentage) / 100
tp.samplePercentage = float64(percentage) / 100
return nil
}
}
Expand Down

0 comments on commit 9caadee

Please sign in to comment.