Skip to content

Commit ff16f2f

Browse files
committed
Follow semver
1 parent 0a3c56d commit ff16f2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/middleware/aws/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ impl AwsSpan {
119119
Err(error) => {
120120
span.record_error(&error);
121121
if let Some(code) = error.code() {
122-
span.set_attribute(KeyValue::new("error.code", code.to_owned()));
122+
span.set_attribute(KeyValue::new(
123+
semconv::EXCEPTION_TYPE,
124+
code.to_owned(),
125+
));
123126
}
124127
(Status::error(error.to_string()), error.request_id())
125128
}

0 commit comments

Comments
 (0)