Repository navigation
Keep each export batch within its queue - #147
Merged
Merged
Conversation
The pin moves from upstream main 7f93577b to the v1.30.0 release c7b64ec6, four commits later: a baggage parsing fix, a curl HTTP client fix, and the version bump. Nothing in the batch processors changes. Refs #145 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The span and log record processors left max_export_batch_size at the SDK default of 512, larger than their queues of 64 and 128. Since opentelemetry-cpp waits for a full batch before exporting spans, a full batch never formed: spans exported only when the schedule delay expired, and every span that overflowed the queue meanwhile was dropped with a warning. CONFIG_ESP_OPENTELEMETRY_BATCH_MAX_EXPORT_BATCH_SIZE and CONFIG_ESP_OPENTELEMETRY_LOGS_BATCH_MAX_EXPORT_BATCH_SIZE set the batch size next to each queue size, defaulting to half of it (32 and 64). Half the queue matches the SDK's half-full wake-up, so every wake-up has a full batch, and leaves room for items that arrive during an export. Closes #145 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ltowarek
force-pushed
the
batch-size-within-queue
branch
from
October 22, 2026 21:44
333681f to
e6b7c6b
Compare
ltowarek
enabled auto-merge (squash)
October 22, 2026 21:46
ltowarek
added a commit
to ltowarek/dust-mite
that referenced
this pull request
Oct 24, 2026
* Report each task's minimum free stack dust_mite_task_stack_min_free_bytes joins the debug-only per-task metrics, read from the same uxTaskGetSystemState() snapshot. It sizes the stream task's stack from a measurement (#104). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give tracing the current trace context as plain strings tracing_headers() returns traceparent and tracestate for carriers that are not JSON, such as the Camera stream's part headers (#104); tracing_inject() now writes those strings into its cJSON object. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Start the web server test cases once the servers have restarted The car's Wi-Fi often drops once while connecting, which stops the servers until it gets an IP. wifi_wait_for_ip() returned before the web server had handled that IP, so its "Starting the ... server" lines could land inside a case's "Running ..." line; the runner then misread it and ran the case again without a reset. The test app now waits until the default event loop has drained. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bump esp-opentelemetry-cpp to e201b8f Brings opentelemetry-cpp v1.30.0 and keeps each export batch within its queue (ltowarek/esp-opentelemetry-cpp#147). Without that fix, the span queue filled between scheduled exports, spans were dropped and the car's camera stalled. opentelemetry-cpp renamed its CMake options to OTELCPP_*. An existing build directory still caches WITH_ETW and fails to reconfigure; delete its CMakeCache.txt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Wait for the web servers in the test app instead of draining the event loop web_server_wait_for_serving() blocks until every endpoint's server is running, from an event group the component sets once it has started them and clears whenever it stops them, the way wifi_wait_for_ip() waits for an IP. The test app waits on it after wifi_wait_for_ip() instead of posting its own event and waiting for the default event loop to reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #143,
BatchSpanProcessorwaits for a full batch before it exports (open-telemetry/opentelemetry-cpp#4466). The component leftmax_export_batch_sizeat the SDK default of 512, but the span queue holds 64. A full batch therefore never formed: spans exported only when the 5 s schedule delay expired, and every span that overflowed the queue meanwhile was dropped with a warning.Change
third_party/opentelemetry-cppfrom upstream main 7f93577b to the v1.30.0 release c7b64ec6. The four commits in between fix baggage parsing and the curl HTTP client and bump the version. None of them touches the batch processors.CONFIG_ESP_OPENTELEMETRY_BATCH_MAX_EXPORT_BATCH_SIZE(default 32, tracing only) andCONFIG_ESP_OPENTELEMETRY_LOGS_BATCH_MAX_EXPORT_BATCH_SIZE(default 64, logs only), each placed next to its queue size. Tracing and logs setup pass them asmax_export_batch_size.Verification
d292c59to017286b#146 and the v1.30.0 bump, in the dust-mite ESP-IDF 6.0 devcontainer, all 11 CI matrix projects built, all 8 QEMU projects passed, and the symbolizer tests passed. On the current pins, CI is the check.Closes #145.
🤖 Generated with Claude Code