Closed Bryson14 closed 7 months ago
The message comes with the " Lambda runtime invoke" description because it's inside the execution span. https://github.com/awslabs/aws-lambda-rust-runtime/blob/94b33e864e94a1dde1462a9ad4bc72d4213a00b1/lambda-runtime/src/types.rs#L163
You'll have to look into the TraceLayer
documentation to understand why it prints the span as an error. This is not caused by the runtime as you point out.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.
I've noticed in cloud watch, there is an Error that is logged from the lambda runtime which is consistently happening every request.
Here is the code that has a trace on the axum web server:
The ERROR log will look like this for every request:
I'm not sure why it happens. To get rid of this warning, I removed the
layer(TraceLayer::new_for_http())
from the router and now it has gone away.