Open tongshushan opened 4 months ago
I find the root cause is maxQueueSize < maxExportBatchSize. Is it works as designed? If it is ,can the api give some clear message if misconfigued?
This is working as designed. I think logging a warning when this mis-configuration is done is a reasonable request. Can you put in a PR to add a log message, @tongshushan ?
Yes, I put the PR here: https://github.com/open-telemetry/opentelemetry-java/issues/6454
Thanks.
Hello,
I set the 2 parameters of BatchLogRecordProcessorBuilder as below: setScheduleDelay(Duration.ofMinutes(2)).setMaxQueueSize(10) , and I sent more than 100 logs in 1 minutes, but after 2 minutes the exporter only receive 8 logs, many logs lost. But if I don't modify the maxQueueSize, left it as default, the exporter can receive all logs.
Configuration Code:
Caller code:
Steps to reproduce Call method log2Otlp(args ...) more than 100 times to send logs.
Environment java 8 io.opentelemetry: 1.37.0