Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypadma committed Jan 31, 2024
1 parent 01ab3bf commit 83586b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use tracing_subscriber::{

pub use opentelemetry::{
global,
Context,
trace::{SpanBuilder, SpanKind, Tracer},
Context,
};
pub use tracing_opentelemetry::OpenTelemetrySpanExt;

Expand Down
5 changes: 2 additions & 3 deletions src/middleware/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use opentelemetry::{
};
use tracing_opentelemetry_instrumentation_sdk::TRACING_TARGET;


pub use opentelemetry::{KeyValue, trace::Span};
pub use opentelemetry::{trace::Span, KeyValue};

// TODO: Write as macro
//
Expand All @@ -30,7 +29,7 @@ pub fn info_span_dynamo(
let mut span = tracer
.span_builder("aws_dynamo")
.with_kind(SpanKind::Client)
.start_with_context(&tracer, &parent_context);
.start_with_context(&tracer, &parent_context);
span.set_attribute(KeyValue::new("dynamoDB", true));
span.set_attribute(KeyValue::new("operation", operation.to_string()));
span.set_attribute(KeyValue::new("tableName", table_name.to_string()));
Expand Down

0 comments on commit 83586b9

Please sign in to comment.