Skip to content

Commit

Permalink
Change default sampling rate from 100% to 0%
Browse files Browse the repository at this point in the history
Refer to #14318

Signed-off-by: Benjamin Wang <wachao@vmware.com>
  • Loading branch information
ahrtr committed Aug 6, 2022
1 parent 8c5f110 commit 8fdca41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions server/embed/config_tracing.go
Expand Up @@ -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())),
),
),
)
Expand Down
1 change: 0 additions & 1 deletion server/embed/etcd.go
Expand Up @@ -808,4 +808,3 @@ func parseCompactionRetention(mode, retention string) (ret time.Duration, err er
}
return ret, nil
}

0 comments on commit 8fdca41

Please sign in to comment.