Skip to content

Commit 9a7fc19

Browse files
authored
Update example.go documentation (#1013)
ProbabilitySampler was renamed to TraceIDRatioBased Signed-off-by: Pranav Sharma <sharmapranav@google.com>
1 parent b3bdb19 commit 9a7fc19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/trace/otlpgrpc/example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func initTracer() (func(), error) {
5252

5353
tp := sdktrace.NewTracerProvider(
5454
// For this example code we use sdktrace.AlwaysSample sampler to sample all traces.
55-
// In a production application, use sdktrace.ProbabilitySampler with a desired probability.
55+
// In a production application, use sdktrace.TraceIDRatioBased with a desired probability.
5656
sdktrace.WithSampler(sdktrace.AlwaysSample()),
5757
sdktrace.WithBatcher(exporter))
5858

0 commit comments

Comments
 (0)