diff --git a/cmd/uplink/external.go b/cmd/uplink/external.go index 60756a82575b..34ae8ee79373 100644 --- a/cmd/uplink/external.go +++ b/cmd/uplink/external.go @@ -24,6 +24,7 @@ import ( "go.uber.org/zap" "golang.org/x/term" + "storj.io/common/experiment" "storj.io/common/rpc/rpctracing" jaeger "storj.io/monkit-jaeger" "storj.io/private/version" @@ -216,6 +217,11 @@ func (ex *external) Wrap(ctx context.Context, cmd clingy.Command) (err error) { } } + exp := os.Getenv("STORJ_EXPERIMENTAL") + if exp != "" { + ctx = experiment.With(ctx, exp) + } + // N.B.: Tracing is currently disabled by default (sample == 0, traceID == 0) and is // something a user can only opt into. as a result, we don't check ex.analyticsEnabled() // in this if statement. If we do ever start turning on trace samples by default, we