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

Exception details are missing for unhandled errors #3

Open
Havunen opened this issue Jan 11, 2025 · 1 comment
Open

Exception details are missing for unhandled errors #3

Havunen opened this issue Jan 11, 2025 · 1 comment

Comments

@Havunen
Copy link

Havunen commented Jan 11, 2025

The failed network request get logged to AI but exception and exception details are not shown.

image

image

Probably related to this:
https://github.com/twitchax/axum-insights/blob/main/src/lib.rs#L1098-L1106

@Havunen
Copy link
Author

Havunen commented Jan 14, 2025

changing the macro syntax to following will fix it.

                    tracing::event!(
                        Level::ERROR,
                        ai.customEvent.name = "exception",
                        "exception.type" = format!("HTTP {}", status.as_u16()),
                        exception.message = error_message,
                        exception.stacktrace = error_stacktrace,
                        "exception"
                    );

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