From 803fcd35f07153c8ff6a9afbe2b638d71952b083 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 fdfa2d6f4f6..aff80d35e79 100644 --- a/dgraph/cmd/alpha/run.go +++ b/dgraph/cmd/alpha/run.go @@ -123,7 +123,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 3acb2854dd6..462017c9c28 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