Skip to content

Commit

Permalink
Fix breaking change from [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeschastny committed Nov 5, 2024
1 parent 6a0c7ec commit 9b6eb61
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/middleware/aws/operations/dynamodb.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{semconv, Key, KeyValue, StringValue};
use crate::{semconv, KeyValue, StringValue, Value};

use super::*;

Expand All @@ -25,12 +25,17 @@ impl<'a> AwsSpanBuilder<'a> {
attributes.extend([
KeyValue::new(LEGACY_DB_NAME, table_names[0].clone()),
KeyValue::new(semconv::DB_NAMESPACE, table_names[0].clone()),
Key::new(semconv::AWS_DYNAMODB_TABLE_NAMES).array(table_names),
KeyValue::new(
semconv::AWS_DYNAMODB_TABLE_NAMES,
Value::Array(table_names.into()),
),
]);
}
_ => {
attributes
.push(Key::new(semconv::AWS_DYNAMODB_TABLE_NAMES).array(table_names));
attributes.push(KeyValue::new(
semconv::AWS_DYNAMODB_TABLE_NAMES,
Value::Array(table_names.into()),
));
}
}
Self::client("DynamoDB", method, attributes)
Expand Down

0 comments on commit 9b6eb61

Please sign in to comment.