-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-30432 Add options to control if span start/finish are logged #18028
Conversation
https://track.hpccsystems.com/browse/HPCC-30432 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ghalliday seems fine as is, but I'd like to discuss the long term impact based on my in-line comments.
@@ -1111,6 +1111,16 @@ | |||
"disabled": { | |||
"type": "boolean", | |||
"description": "If true, disable OTel based trace/span generation" | |||
}, | |||
"logSpanStart": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not inclined to add more options than necessary and would encourage us to avoid these maybe condense into a single "logSpan"
With that said, if we keep both of these, I wonder how useful logging only one is w/out adding timing info into the payload (I still contend a single log output at end w/ all pertinent info is most useful)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should default logSpanStart to off now (and I will amend the PR). I agree that a single log entry at then end is most useful, and I was going to disable tracing at the start when I create a PR to improve the finish logging. Given the amount of tracing in esp I think it would be better to disable now.
StringBuffer out; | ||
toLog(out); | ||
LOG(MCmonitorEvent, "Span end: {%s}", out.str()); | ||
if (queryTraceManager().logSpanFinish()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we decide to only log once per span, I wonder if we could filter all MCmonitorEvent directly at the jlog level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but it is more efficient to not generate it at all.
@@ -1111,6 +1111,16 @@ | |||
"disabled": { | |||
"type": "boolean", | |||
"description": "If true, disable OTel based trace/span generation" | |||
}, | |||
"logSpanStart": { | |||
"type": "boolean", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If #18025 is merged in first, we'll need to add any new config options here: https://github.com/hpcc-systems/HPCC-Platform/blob/ba7c055b69f8c80523d438d989a6f6bb705751f8/helm/examples/tracing/README.md
5fa7d1c
to
6381423
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favor of the single log output, but we lose timing information which is critical for tracing.
I don't think logging outputs are the future, so not inclined to dedicate too much time/effort, but this change should include tracking of, and reporting of start/duration attributes.
That would be covered by HPCC-30404 to revisit the text logged for Start/finish span and include the attributes etc.. You can leave off approving if you want HPCC-30404 to be ready first. No one is relying on this functionality, so I would be inclined to merge anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ghalliday let's go forward w/ this one now.
Signed-off-by: Gavin Halliday <[email protected]>
6381423
to
84f1672
Compare
a646f30
into
hpcc-systems:candidate-9.4.x
Type of change:
Checklist:
Smoketest:
Testing: