-
Notifications
You must be signed in to change notification settings - Fork 227
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
Expose Max Db Statement Size as a Config Option #1921
Comments
Note is particularly important when debugging requests to Elasticsearch from Kibana. |
A temporary work around is to apply this patch to one's node_modules/elastic-apm-node/lib/config.js: diff --git a/lib/config.js b/lib/config.js
index 38d6408..a5520b0 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -257,6 +257,8 @@ class Config {
// Sanitize conf
truncateKeywordsAt: config.INTAKE_STRING_MAX_SIZE,
truncateErrorMessagesAt: conf.errorMessageMaxLength,
+ // XXX
+ truncateQueriesAt: 20000,
// HTTP conf
secretToken: conf.secretToken, |
^^ proposing this for 7.13. Currently Dale is having "to maintain a fork for tests and any automation" for his es rally work. |
Notes to self:
|
Before this the 10000 length truncation of the "query" field for database spans was hardcoded. Fixes: #1921
…MaxLength` (#2193) This config option will truncate some transaction, span, and error fields that can be longer at the configured number of JavaScript characters per https://github.com/elastic/apm/blob/master/specs/agents/field-limits.md#long_field_max_length-configuration Notably truncation is now based on a count of JavaScript *characters* rather than in UTF-8 encoded bytes. This also deprecates the errorMessageMaxLength config option. It now defaults to the longFieldMaxLength value if not specified. Otherwise errorMessageMaxLength is still supported. Fixes: #1921
@gingerwizard Once we publish an agent release with this change you'll be able to set the truncation limie for |
…MaxLength` (elastic#2193) This config option will truncate some transaction, span, and error fields that can be longer at the configured number of JavaScript characters per https://github.com/elastic/apm/blob/master/specs/agents/field-limits.md#long_field_max_length-configuration Notably truncation is now based on a count of JavaScript *characters* rather than in UTF-8 encoded bytes. This also deprecates the errorMessageMaxLength config option. It now defaults to the longFieldMaxLength value if not specified. Otherwise errorMessageMaxLength is still supported. Fixes: elastic#1921
@gingerwizard If it helps for https://github.com/elastic/rally-internal-tracks/issues/119 |
…MaxLength` (#2193) This config option will truncate some transaction, span, and error fields that can be longer at the configured number of JavaScript characters per https://github.com/elastic/apm/blob/master/specs/agents/field-limits.md#long_field_max_length-configuration Notably truncation is now based on a count of JavaScript *characters* rather than in UTF-8 encoded bytes. This also deprecates the errorMessageMaxLength config option. It now defaults to the longFieldMaxLength value if not specified. Otherwise errorMessageMaxLength is still supported. Fixes: #1921
Currently the
span.context.db.statement
is limited to 10000 characters after which truncation occurs. This limit is easily exceeded on REST API based dbs that use JSON e.g. Elasticsearch. Proposal is to make this configurable similar tothe truncation limit for error messages.The text was updated successfully, but these errors were encountered: