Skip to content

Commit

Permalink
tracer: update sampling rules docs (#1484)
Browse files Browse the repository at this point in the history
Clarify that some of the sampling rules apply to spans, not to traces.
  • Loading branch information
ajgajg1134 committed Sep 28, 2022
1 parent 8db0cdd commit fa27985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/tracer/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
// tracer.NameServiceRule("db.query", "postgres.db", 0.3),
// // sample 100% of traces when service and name match these regular expressions
// {Service: regexp.MustCompile("^test-"), Name: regexp.MustCompile("http\\..*"), Rate: 1.0},
// // sample 50% of traces when service and name match these glob patterns with no limit on the number of spans
// // sample 50% of spans when service and name match these glob patterns with no limit on the number of spans
// tracer.SpanNameServiceRule("^test-", "http\\..*", 0.5),
// // sample 50% of traces when service and name match these glob patterns up to 100 spans per second
// // sample 50% of spans when service and name match these glob patterns up to 100 spans per second
// tracer.SpanNameServiceMPSRule("^test-", "http\\..*", 0.5, 100),
// }
// tracer.Start(tracer.WithSamplingRules(rules))
Expand Down

0 comments on commit fa27985

Please sign in to comment.