Skip to content

Support for async/await call stacks in .NET 8 #10

@hokagedami

Description

@hokagedami

Feature Request

With .NET 8's improved async stack trace support, it would be great if the enricher could capture async call stacks more accurately.

Current Behavior

Async call stacks often show incomplete information or generic async state machine methods instead of the actual async method names.

Desired Behavior

Show clean async method names like:

ProcessDataAsync:23 --> ValidateInputAsync:45 --> SaveToDbAsync:12

Instead of:

MoveNext:1 --> SetResult:1 --> MoveNext:1

Use Case

We have a microservice architecture with heavy async usage and the current stack traces make debugging very difficult.

Additional Context

.NET 8 added Environment.StackTrace improvements and StackFrame.GetAsyncMethod() API that might help with this.

Would be happy to contribute to this feature if you can provide some guidance on the approach!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions