Skip to content

Commit

Permalink
core: the timeout should be bigger not lower
Browse files Browse the repository at this point in the history
OpenTelemetry log error occurred. Exporter timed out after 1 seconds

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Oct 31, 2024
1 parent d87f4ec commit f883e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opentelemetry-log"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Vincent <[email protected]>"]
description = "A common library for OpenTelemetry logging in Rust."
Expand Down
2 changes: 1 addition & 1 deletion src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn init(
) -> anyhow::Result<()> {
// FIXME: make this configurable from the API level
let batch_config = BatchConfigBuilder::default()
.with_max_export_timeout(Duration::from_secs(1))
.with_max_export_timeout(Duration::from_secs(20))
.with_max_queue_size(10_000)
.with_max_export_batch_size(100_000);
let batch_config = batch_config.build();
Expand Down

0 comments on commit f883e7b

Please sign in to comment.