Skip to content

Commit

Permalink
updating sampling ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurs committed Sep 10, 2022
1 parent ca73ee3 commit 1e960c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initializers.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func setupNROpenTelemetry(serviceName, license, version string) {
}

tracerProvider := sdktrace.NewTracerProvider(
sdktrace.WithSampler(sdktrace.AlwaysSample()),
sdktrace.WithSampler(sdktrace.ParentBased(sdktrace.TraceIDRatioBased(0.2))), // sample 20%
sdktrace.WithBatcher(otlpExporter),
sdktrace.WithResource(r),
)
Expand Down

0 comments on commit 1e960c7

Please sign in to comment.