From 17b0c77849e3cc13610e3b17278dc34c64ccbec0 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Sun, 7 Aug 2022 06:58:05 +0800 Subject: [PATCH] Change default sampling rate from 100% to 0% Refer to https://github.com/etcd-io/etcd/pull/14318 Signed-off-by: Benjamin Wang --- server/embed/config_tracing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/embed/config_tracing.go b/server/embed/config_tracing.go index 9c9b30cfbfb8..44c2b066bac7 100644 --- a/server/embed/config_tracing.go +++ b/server/embed/config_tracing.go @@ -64,6 +64,7 @@ func setupTracingExporter(ctx context.Context, cfg *Config) (exporter tracesdk.S tracesdk.NewTracerProvider( tracesdk.WithBatcher(exporter), tracesdk.WithResource(res), + tracesdk.WithSampler(tracesdk.ParentBased(tracesdk.NeverSample())), ), ), )