From f883e7bc33f6fbfdd477bb0adeb5abe14fcd77c9 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Thu, 31 Oct 2024 10:10:26 +0100 Subject: [PATCH 1/2] core: the timeout should be bigger not lower OpenTelemetry log error occurred. Exporter timed out after 1 seconds Signed-off-by: Vincenzo Palazzo --- Cargo.toml | 2 +- src/log.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa24ccd..3e9b30b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opentelemetry-log" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = ["Vincent "] description = "A common library for OpenTelemetry logging in Rust." diff --git a/src/log.rs b/src/log.rs index a8aeb66..37446a2 100644 --- a/src/log.rs +++ b/src/log.rs @@ -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(); From cce8114c23bd09a257d2ce04defdd6d16e403656 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Thu, 31 Oct 2024 10:12:30 +0100 Subject: [PATCH 2/2] meta: fix metadata Signed-off-by: Vincenzo Palazzo --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3e9b30b..88c44be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,9 @@ edition = "2021" authors = ["Vincent "] description = "A common library for OpenTelemetry logging in Rust." license = "GPL-2.0" -repository = "https://github.com/vincent/opentelemetry-log" +repository = "https://github.com/vincenzopalazzo/opentelemetry-log" documentation = "https://docs.rs/opentelemetry-common" -homepage = "https://github.com/vincent/opentelemetry-log" +homepage = "https://github.com/vincenzopalazzo/opentelemetry-log" keywords = ["opentelemetry", "logging", "log", "rust"] categories = ["development-tools"]