File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,39 @@ limit.
304304 `opentelemetry_sdk :: trace :: {InMemorySpanExporter , InMemorySpanExporterBuilder };`
305305 `opentelemetry_sdk :: metrics :: {InMemoryMetricExporter , InMemoryMetricExporterBuilder };`
306306
307+ - * Breaking * : The `BatchLogProcessor ` no longer supports configuration of `max_export_timeout `
308+ or the `OTEL_BLRP_EXPORT_TIMEOUT ` environment variable . Timeout handling is now the
309+ responsibility of the exporter .
310+ For example , in the OTLP Logs exporter , the export timeout can be configured using :
311+ - The environment variables `OTEL_EXPORTER_OTLP_TIMEOUT ` or `OTEL_EXPORTER_OTLP_LOGS_TIMEOUT `.
312+ - The opentelemetry_otlp API , via `. with_tonic (). with_timeout ()` or `. with_http (). with_timeout ()`.
313+ Before :
314+ ```rust
315+ let processor = BatchLogProcessor :: builder (exporter )
316+ . with_batch_config (
317+ BatchConfigBuilder :: default ()
318+ . with_max_queue_size (2048 )
319+ . with_max_export_batch_size (512 )
320+ . with_scheduled_delay (Duration :: from_secs (5 ))
321+ . with_max_export_timeout (Duration :: from_secs (30 )) // Previously configurable
322+ . build (),
323+ )
324+ . build ();
325+ ```
326+
327+ After:
328+ ``` rust
329+ let processor = BatchLogProcessor :: builder (exporter )
330+ . with_batch_config (
331+ BatchConfigBuilder :: default ()
332+ . with_max_queue_size (2048 )
333+ . with_max_export_batch_size (512 )
334+ . with_scheduled_delay (Duration :: from_secs (5 )) // No `max_export_timeout`
335+ . build (),
336+ )
337+ . build ();
338+ ```
339+
307340## 0.27.1
308341
309342Released 2024-Nov-27
You can’t perform that action at this time.
0 commit comments