Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/v1.0: Increase max trace logs per span in Alpha. #3886

Merged
merged 8 commits into from
Aug 30, 2019
5 changes: 5 additions & 0 deletions dgraph/cmd/alpha/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ func run() {
}
otrace.ApplyConfig(otrace.Config{
danielmai marked this conversation as resolved.
Show resolved Hide resolved
DefaultSampler: otrace.ProbabilitySampler(worker.Config.Tracing),
// MaxAnnotationEventsPerSpan is 32 by default. Increasing the limit to
// 256 is a good middle-ground between having enough to store the spans
// for most query traces and for memory usage of spans. Queries that
// generate more annotations than this limit will get truncated traces.
MaxAnnotationEventsPerSpan: 256,
})

// Posting will initialize index which requires schema. Hence, initialize
Expand Down