From ccb510fbd6fdef9694e3b751fd01dbe33c7345c0 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Fri, 21 Jul 2023 22:05:11 -0700 Subject: [PATCH] Add with_log_config to OtlpLogPipeline --- opentelemetry-otlp/src/logs.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opentelemetry-otlp/src/logs.rs b/opentelemetry-otlp/src/logs.rs index d73223a0b5..05b22487b7 100644 --- a/opentelemetry-otlp/src/logs.rs +++ b/opentelemetry-otlp/src/logs.rs @@ -413,6 +413,12 @@ impl OtlpLogPipeline { self } + /// Set the log provider configuration. + pub fn with_log_config(mut self, log_config: opentelemetry_sdk::logs::Config) -> Self { + self.log_config = Some(log_config); + self + } + /// Returns a [`Logger`] with the name `opentelemetry-otlp` and the /// current crate version, using the configured log exporter. ///