-
Notifications
You must be signed in to change notification settings - Fork 889
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
Define LogRecord batching processor defaults #3002
Define LogRecord batching processor defaults #3002
Conversation
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
So, it's clear that our current defaults – both for the SDK and the Collector – are not great, and we should consider revisiting them. For example, some defaults presume that the SDK is talking to a local collector. Some defaults presume the collector is aggregating data from multiple services. This is due to us adding defaults one at a time, where each default might be reasonable on its own, but making different assumptions from the other defaults. My request is that the logging defaults be coherent with the tracing defaults. New users will definitely be confused if they start receiving logs immediately, but don't see their traces for five seconds. So I'm worried about creating a different set of defaults for logging, even if the assumptions behind those new defaults are reasonable on their own. This is my suggested course of action:
If the above course of action is too much work for the logging group to tackle at this time, my request is to match the tracing defaults for now, and defer improving our defaults to a later date. Please do not release a version of the spec where tracing and logging defaults are incoherent with each other. |
I like this plan. I think we should go for lower batch delay for both logs and traces (somewhere around 200-1000ms) and use the same value for both. I am personally fine with lowering defaults for the traces and I do not think it is a breaking change, I think it should be allowed. |
This seems worthy of a separate issue. That is, the "default deployment" described should be more of a top-level thing in the spec making it clear that it provides a guide for the decisions we make across the entire specification. Regarding @tedsuo's recommendation as it relates to the specific issue of settling on batch processor defaults, the question I have is the order of operations. For example, say we agree that 1000ms is a more satisfying default. Can we do things in this order?
I'd prefer that we are able to continue progress on log stabilization in parallel with furthering the discussion of codifying a notion of a "default deployment". |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Fixes #2954
Defines default configuration values for the
LogRecord
batching processor.The same default values have been adopted from the span batching processor with the exception of
scheduleDelayMillis
. A default value of 1000 milliseconds has been chosen for log rather than the 5000 milliseconds for spans. See #3002 (comment) for discussion.