Skip to content

Commit

Permalink
Enabling tracing by default if not explicitly disabled (#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 authored Mar 31, 2022
1 parent 1699dd0 commit 71131db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/enable-default-traces.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Enabling tracing by default if not explicitly disabled

https://github.com/cs3org/reva/pull/2515
9 changes: 9 additions & 0 deletions cmd/revad/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,15 @@ func parseCoreConfOrDie(v interface{}) *coreConf {
os.Exit(1)
}

// tracing defaults to enabled if not explicitly configured
if v == nil {
c.TracingEnabled = true
c.TracingEndpoint = "localhost:6831"
} else if _, ok := v.(map[string]interface{})["tracing_enabled"]; !ok {
c.TracingEnabled = true
c.TracingEndpoint = "localhost:6831"
}

return c
}

Expand Down

0 comments on commit 71131db

Please sign in to comment.