Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewRelicContextFormatter: Add cause and context to stack traces #1270

Open
sweco opened this issue Dec 11, 2024 · 1 comment
Open

NewRelicContextFormatter: Add cause and context to stack traces #1270

sweco opened this issue Dec 11, 2024 · 1 comment

Comments

@sweco
Copy link

sweco commented Dec 11, 2024

Is your feature request related to a problem? Please describe.

When working with the NewRelicContextFormatter, the stack trace cause and context are not included in the data logged to NewRelic. This makes it impossible to debug some errors, e.g. errors that happen while FastAPI is streaming the response with the StreamingResponse. Currently the stack trace stop at:

exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)

but the sub-exception (which is where the stream crashed) is never printed.

Feature Description

Add context and cause to stack traces.

Describe Alternatives

N/A

Additional context

Already created a PR (#1266), could you please review?

Priority

Must Have

@workato-integration
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant