Skip to content

Commit

Permalink
add status field
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypadma committed Jan 24, 2024
1 parent 6bc543f commit afbe6da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/middleware/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ pub fn info_span_dynamo(
{
// Spans will be sent to the configured OpenTelemetry exporter
// use telemetry_rust::OpenTelemetrySpanExt;
// region().await.unwrap()
let config = dynamo_client.config();
if let Some(region) = config.region() {
println!("config>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> {:?}", config);
// let http_client = config.http_client().unwrap();

let span = tracing::info_span!(
"aws_dynamo",
dynamoDB = tracing::field::Empty,
Expand All @@ -31,7 +27,7 @@ pub fn info_span_dynamo(
service = tracing::field::Empty,
cloud.region = tracing::field::Empty,
http_client = tracing::field::Empty,
// childSpan = tracing::field::Empty,
status = tracing::field::Empty,
);
let _ = span.enter();
span.record("dynamoDB", &"true");
Expand All @@ -44,6 +40,5 @@ pub fn info_span_dynamo(
} else {
tracing::Span::none()
}
// span.record("childSpan", dynamo_client.config().instrument(span!(tracing::Level::INFO, "aws_dynamo")));
}
}

0 comments on commit afbe6da

Please sign in to comment.