Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. Han Kang created this gist Jul 31, 2023.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    diff --git a/server/etcdmain/config.go b/server/etcdmain/config.go
    index e31d1c7cf..e1605c646 100644
    --- a/server/etcdmain/config.go
    +++ b/server/etcdmain/config.go
    @@ -255,6 +255,7 @@ func newConfig() *config {
    fs.StringVar(&cfg.ec.ExperimentalDistributedTracingServiceName, "experimental-distributed-tracing-service-name", embed.ExperimentalDistributedTracingServiceName, "Configures service name for distributed tracing to be used to define service name for OpenTelemetry Tracing (if enabled with experimental-enable-distributed-tracing flag). 'etcd' is the default service name. Use the same service name for all instances of etcd.")
    fs.StringVar(&cfg.ec.ExperimentalDistributedTracingServiceInstanceID, "experimental-distributed-tracing-instance-id", "", "Configures service instance ID for distributed tracing to be used to define service instance ID key for OpenTelemetry Tracing (if enabled with experimental-enable-distributed-tracing flag). There is no default value set. This ID must be unique per etcd instance.")
    fs.IntVar(&cfg.ec.ExperimentalDistributedTracingSamplingRatePerMillion, "experimental-distributed-tracing-sampling-rate", 0, "Number of samples to collect per million spans for OpenTelemetry Tracing (if enabled with experimental-enable-distributed-tracing flag).")
    + fs.StringVar(&cfg.ec.ExperimentalBackendType, "experimental-backend-type", "sqlite", "Sets the backend type to experimental backends (sqlite)")

    // auth
    fs.StringVar(&cfg.ec.AuthToken, "auth-token", cfg.ec.AuthToken, "Specify auth token specific options.")