Skip to content

Commit

Permalink
Add with_log_config to OtlpLogPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 authored and djc committed Jul 24, 2023
1 parent b87a827 commit ccb510f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opentelemetry-otlp/src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit ccb510f

Please sign in to comment.