Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypadma committed Jan 31, 2024
1 parent 83586b9 commit 1522a85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/middleware/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,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 Expand Up @@ -64,10 +64,10 @@ pub fn info_span_firehose(
cloud.region = tracing::field::Empty,
success = tracing::field::Empty,
);
span.record("firehose", &"true");
span.record("operation", &operation);
span.record("firehose_stream_name", &firehose_stream_name);
span.record("method", &method);
span.record("firehose", "true");
span.record("operation", operation);
span.record("firehose_stream_name", firehose_stream_name);
span.record("method", method);
span.record("service", "AWS::Firehose");
span.record("cloud.region", region.as_ref());
span
Expand Down Expand Up @@ -96,9 +96,9 @@ pub fn info_span_sns(
cloud.region = tracing::field::Empty,
success = tracing::field::Empty,
);
span.record("SNS", &"true");
span.record("operation", &operation);
span.record("method", &method);
span.record("SNS", "true");
span.record("operation", operation);
span.record("method", method);
span.record("service", "AWS::SNS");
span.record("cloud.region", region.as_ref());
span
Expand Down

0 comments on commit 1522a85

Please sign in to comment.