Skip to content

Commit

Permalink
Update query-engine/query-engine/src/logger.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Orlenko <[email protected]>
  • Loading branch information
garrensmith and aqrln committed Oct 6, 2022
1 parent 9bc1df5 commit 67a1efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query-engine/query-engine/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ impl<'a> Logger<'a> {
let tracer = create_otel_tracer(self.service_name, self.telemetry_endpoint);
let mut telemetry = tracing_opentelemetry::layer().with_tracer(tracer);

if self.log_capture_exporter.is_some() {
let tracer = crate::capture_tracer::new_pipeline().install_simple(self.log_capture_exporter.unwrap());
if let Some(log_capture_exporter) = self.log_capture_exporter {
let tracer = crate::capture_tracer::new_pipeline().install_simple(log_capture_exporter);
telemetry = telemetry.with_tracer(tracer);
}

Expand Down

0 comments on commit 67a1efc

Please sign in to comment.