Closed
Description
Expected Behaviour
Not sure if I am missing something, but I would expect that when an exception is thrown inside a method which is marked with the [Trace] attribute I should see the full stack trace for that exception
Current Behaviour
The stack trace shows this instead of the actual location of the error
Stack Trace:
TracingAspectHandler.OnException[T](AspectEventArgs eventArgs, Exception exception)
MethodAspectAttribute.WrapAsync[T](Func`2 target, Object[] args, AspectEventArgs eventArgs)
line 154
Code snippet
Please see this repo
https://github.com/jaknor/aws-lambda-powertools-tracing-stack-trace-bug/blob/main/README.md
Note, I've only reproduced it in unit test here, but we have seen the same behaviour when deployed to a Lambda.
Possible Solution
No response
Steps to Reproduce
Please see repo https://github.com/jaknor/aws-lambda-powertools-tracing-stack-trace-bug/blob/main/README.md
Powertools for AWS Lambda (.NET) version
latest
AWS Lambda function runtime
dotnet6
Debugging logs
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
📋 Backlog