Skip to content

Commit 0223cd3

Browse files
chore(libdd-data-pipeline-ffi): use import path in macro (#1827)
# What does this PR do? Use full import path in the `catch_panic` macro. # Motivation Remove unused tracing::error import in `trace_exporter.rs` # Additional Notes Anything else we should know when reviewing? # How to test the change? Describe here in detail how the change can be validated. Co-authored-by: vianney.ruhlmann <vianney.ruhlmann@datadoghq.com>
1 parent 0a2a9a8 commit 0223cd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libdd-data-pipeline-ffi/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ macro_rules! catch_panic {
1717
Ok(ret) => ret,
1818
Err(info) => {
1919
if let Some(s) = info.downcast_ref::<String>() {
20-
error!(error = %ErrorCode::Panic, s);
20+
tracing::error!(error = %ErrorCode::Panic, s);
2121
} else if let Some(s) = info.downcast_ref::<&str>() {
22-
error!(error = %ErrorCode::Panic, s);
22+
tracing::error!(error = %ErrorCode::Panic, s);
2323
} else {
24-
error!(error = %ErrorCode::Panic, "Unable to retrieve panic context");
24+
tracing::error!(error = %ErrorCode::Panic, "Unable to retrieve panic context");
2525
}
2626
$err
2727
}

libdd-data-pipeline-ffi/src/trace_exporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use libdd_data_pipeline::trace_exporter::{
1818
type TraceExporter = GenericTraceExporter<NativeCapabilities>;
1919

2020
use std::{ptr::NonNull, time::Duration};
21-
use tracing::{debug, error};
21+
use tracing::debug;
2222

2323
#[inline]
2424
fn sanitize_string(str: CharSlice) -> Result<String, Box<ExporterError>> {

0 commit comments

Comments
 (0)