Skip to content

Commit

Permalink
Enabling tracing by default if not explicitly disabled (cs3org#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 authored and Daniel-WWU-IT committed Apr 12, 2022
1 parent 222cc8d commit 0b7e6da
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 0b7e6da

Please sign in to comment.