Skip to content

Commit

Permalink
for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypadma committed Jan 31, 2024
1 parent 1522a85 commit f05f4b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/middleware/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ pub fn info_span_dynamo(
.span_builder("aws_dynamo")
.with_kind(SpanKind::Client)
.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()));
span.set_attribute(KeyValue::new("method", method.to_string()));
span.set_attribute(KeyValue::new("service", "AWS::DynamoDB"));
span.set_attribute(KeyValue::new("aws_dynamoDB", true));
span.set_attribute(KeyValue::new("aws_operation", operation.to_string()));
span.set_attribute(KeyValue::new("aws_tableName", table_name.to_string()));
span.set_attribute(KeyValue::new("aws_method", method.to_string()));
span.set_attribute(KeyValue::new("aws_service", "AWS::DynamoDB"));

if let Some(r) = config.region() {
span.set_attribute(KeyValue::new("cloud.region", r.to_string()));
span.set_attribute(KeyValue::new("Region_val", r.to_string()));
}
span
}
Expand Down

0 comments on commit f05f4b1

Please sign in to comment.