Change default sampling rate from 100% to 0%

Refer to https://github.com/etcd-io/etcd/pull/14318

Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
Benjamin Wang 2022-08-07 06:58:05 +08:00
parent 8c5f110b59
commit 8fdca41cd8
2 changed files with 1 additions and 1 deletions

View File

@ -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())),
),
),
)

View File

@ -808,4 +808,3 @@ func parseCompactionRetention(mode, retention string) (ret time.Duration, err er
}
return ret, nil
}