Skip to content

Commit 21ecb9a

Browse files
anmonteirodavidbarsky
authored andcommitted
FunctionArn -> TraceID to get xray_trace_id (#22)
1 parent ad28790 commit 21ecb9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-runtime-client/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl RuntimeClient {
387387
}
388388
};
389389

390-
let xray_trace_id = match headers.get(LambdaHeaders::FunctionArn.to_string()) {
390+
let xray_trace_id = match headers.get(LambdaHeaders::TraceId.to_string()) {
391391
Some(value) => value.to_str()?.to_owned(),
392392
None => {
393393
error!("Response headers do not contain trace id header");

0 commit comments

Comments
 (0)