From 9f174c79b6a5ec3217d1114029e015471ce6e466 Mon Sep 17 00:00:00 2001 From: Martin Martinez Rivera Date: Tue, 12 May 2020 08:32:39 -0700 Subject: [PATCH] Change the default ratio of traces from 1 to 0.01. (#5405) Opencensus traces are taking a lot of memory. --- dgraph/cmd/alpha/run.go | 2 +- dgraph/cmd/zero/run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dgraph/cmd/alpha/run.go b/dgraph/cmd/alpha/run.go index 2c16180dfea..79393a53820 100644 --- a/dgraph/cmd/alpha/run.go +++ b/dgraph/cmd/alpha/run.go @@ -125,7 +125,7 @@ they form a Raft group and provide synchronous replication. " transaction is determined by its last mutation.") // OpenCensus flags. - flag.Float64("trace", 1.0, "The ratio of queries to trace.") + flag.Float64("trace", 0.01, "The ratio of queries to trace.") flag.String("jaeger.collector", "", "Send opencensus traces to Jaeger.") // See https://github.com/DataDog/opencensus-go-exporter-datadog/issues/34 // about the status of supporting annotation logs through the datadog exporter diff --git a/dgraph/cmd/zero/run.go b/dgraph/cmd/zero/run.go index b3a549ec85d..5f770c69805 100644 --- a/dgraph/cmd/zero/run.go +++ b/dgraph/cmd/zero/run.go @@ -93,7 +93,7 @@ instances to achieve high-availability. flag.Bool("enable_sentry", true, "Turn on/off sending events to Sentry. (default on)") // OpenCensus flags. - flag.Float64("trace", 1.0, "The ratio of queries to trace.") + flag.Float64("trace", 0.01, "The ratio of queries to trace.") flag.String("jaeger.collector", "", "Send opencensus traces to Jaeger.") // See https://github.com/DataDog/opencensus-go-exporter-datadog/issues/34 // about the status of supporting annotation logs through the datadog exporter