Skip to content

Commit

Permalink
fix(core): fix sampling rate of jaeger (#9147)
Browse files Browse the repository at this point in the history
Fix sampling rate of jaeger.
  • Loading branch information
harshil-goel committed Aug 28, 2024
1 parent bcf6ed8 commit 15821a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/draft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ func (n *node) Run() {

timer.Start()
_, span := otrace.StartSpan(n.ctx, "Alpha.RunLoop",
otrace.WithSampler(otrace.ProbabilitySampler(0.001)))
otrace.WithSampler(otrace.ProbabilitySampler(x.WorkerConfig.Trace.GetFloat64("ratio"))))

if rd.SoftState != nil {
groups().triggerMembershipSync()
Expand Down

0 comments on commit 15821a0

Please sign in to comment.