Skip to content

Commit

Permalink
HPCC-30405 Code review
Browse files Browse the repository at this point in the history
- Renames disable config to disabled

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed Oct 31, 2023
1 parent 2a5853f commit 46be75a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions helm/hpcc/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,10 @@
"alwaysCreateGlobalIds": {
"type": "boolean",
"description": "If true, allocate global ids to any requests that do not supply one"
},
"disabled": {
"type": "boolean",
"description": "If true, disable OTel based trace/span generation"
}
},
"additionalProperties": { "type": ["integer", "string", "boolean"] }
Expand Down
2 changes: 1 addition & 1 deletion helm/hpcc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ global:

# tracing sets the default tracing information for all components. Can be overridden locally
tracing:
disable: false
disabled: false

## resource settings for stub components
#stubInstanceResources:
Expand Down
4 changes: 2 additions & 2 deletions system/jlib/jtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ class CTraceManager : implements ITraceManager, public CInterface
Expected Configuration format:
global:
tracing: #optional - tracing enabled by default
disable: true #optional - disable OTel tracing
disabled: true #optional - disable OTel tracing
alwaysCreateGlobalIds : false #optional - should global ids always be created?
exporter: #optional - Controls how trace data is exported/reported
type: OTLP #OS|OTLP|Prometheus|HPCC (default: no export, jlog entry)
Expand Down Expand Up @@ -878,7 +878,7 @@ class CTraceManager : implements ITraceManager, public CInterface
toXML(traceConfig, xml);
DBGLOG("traceConfig tree: %s", xml.str());
#endif
bool disableTracing = traceConfig && traceConfig->getPropBool("@disable", false);
bool disableTracing = traceConfig && traceConfig->getPropBool("@disabled", false);

using namespace opentelemetry::trace;
if (disableTracing)
Expand Down

0 comments on commit 46be75a

Please sign in to comment.