question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: [Trace] attribute hides stacktrance

See original GitHub issue

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) <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:closed
  • Created 2 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hjgracacommented, Jul 14, 2023

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.

0reactions
jaknorcommented, Aug 19, 2023

Thanks! Will keep an eye out for the release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found