Bug: [Trace] attribute hides stacktrance
See original GitHub issueExpected 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) <MyExecutingMethod> 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
Issue Analytics
- State:
- Created 2 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to hide the current method from exception stack trace ...
So when I call myEnumerable.AssertEqual(otherEnumerable) and it fails, NUnit should report the error inside the test method, not inside the ...
Read more >Consider exposing `System.Diagnostics. ...
This attribute hides methods and types marked by it in the error message stacktraces. It is used extensively in the CoreLib to e.g....
Read more >Hide / Remove Stack Trace information - Microsoft Q&A
Kindly find the link for error details. The background is that my users are running a web-based COTS product. Recently, the application went ......
Read more >ERROR-STACK-TRACE attribute - Progress Documentation
This attribute controls whether or not the CallStack property on error objects can be used. The default value is FALSE (disabled).
Read more >Hiding Stack Trace Messages
By default, JasperReports Server displays stack traces in certain error messages. Stack traces reveal some information about the application, and security ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @jaknor thanks for opening an issue and the detailed repro and images. We have some work in progress, not all utilities to bubble up the full stack trace. We will track the work in this issue and update when we have made progress.
Thanks! Will keep an eye out for the release