-
Notifications
You must be signed in to change notification settings - Fork 851
Improve query logging #17388
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
Improve query logging #17388
Conversation
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.
LGTM
@cta-bot check |
if (!_resultCode.has_value()) { | ||
ensureExecutionTime(); | ||
|
||
if (!_resultCode.has_value()) { // TODO possible data race here |
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.
What about this TODO? Should we address it here? If not, do we have a ticket?
@@ -400,6 +403,46 @@ void QueryRegistryFeature::collectOptions( | |||
arangodb::options::makeDefaultFlags(arangodb::options::Flags::Hidden)) | |||
.setIntroducedIn(30800) | |||
.setDeprecatedIn(30900); | |||
|
|||
options | |||
->addOption("--query.max-artifact-log-length", |
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.
Can it be set to 0 to (more or less) allow any length?
Scope & Purpose
Backport of #17300
Docs PR: arangodb/docs#1140
--query.log-failed
to optionally log all failed AQL queries to the server log. The option is turned off by default, by can be turned on for development or debugging.--query.log-memory-usage-threshold
to optionally log all AQL queries that have a peak memory usage larger than the configured value.--query.max-artifact-log-length
to control the cutoff length for logged query strings and bind parameter values. This allows truncating large query strings and bind parameter values to reasonable lengths. Previously the cutoff value was hard-coded.Checklist
Related Information