-
Notifications
You must be signed in to change notification settings - Fork 116
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
common config option for max length of capture_body and context.db.statement? #488
Comments
I agree with the one common config approach. We already have 2 things to cover with this and I think it’s very likely we’ll have more later. If we’d have separate configs for each, it’d increase the number of configs without much benefit.
|
Common config seems reasonable. No strong opinion on naming. |
Common configuration value sounds like a pragmatic approach; maybe |
Do we think it's likely users would want to vary the max length of different types of spans independently e.g. max length for DB statements but truncate http bodies? |
I doubt it. I think the use cases will tend to be (a) rare and (b) independently for one of the few fields covered by the config var. If that were to happen, at least for the Node.js agent api, the user could set the
That sounds a little bit like it might be a max-length on the total of all the ECS calls them "fields" (https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html), so I think I'll go with |
I'm not sure about |
I think |
Naming: It is about setting the "max-length" on some "fields". The fields we are talking about are (I haven't trawled through the APM event schema to find more):
What are common traits of those fields?
I agree "long_..." is unsatisfyingly generic, but I don't have a better idea. |
Calling this done. A draft spec PR is here: #493 |
tl;dr: There are a few requests for configurability of the max-length of captured request bodies and context.db.statement. Would you favour a single config option for these types of long fields? Or separate config options for each?
Background
RequestBodyMaxLength
. Some recent Slack discussion is heremax_event_size
(default 300k) can come into play for these use cases.)errorMessageMaxLength
). Do you prefer a single config option for these, or separate options for each field?long_string_max_length
long_field_max_length
The text was updated successfully, but these errors were encountered: