Skip to content

feat: Include the server request id in the error shown by Pavex CLI, if relevant #394

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

Open
LukeMathWalker opened this issue Dec 12, 2024 · 0 comments
Labels
diagnostics Improvement or issue with Pavex's CLI diagnostics. enhancement New feature or request good first issue Good for newcomers p-pavex-cli Issue related to `pavex` or `pavexc`, Pavex's CLIs.

Comments

@LukeMathWalker
Copy link
Owner

LukeMathWalker commented Dec 12, 2024

https://api.pavex.dev will always populate the X-Server-Request-Id header whenever it returns a response. It looks like sri-xxxx, since it's built on ServerRequestId.
Pavex's CLI should include that request id whenever it exposes an error to the user that traces back to a failed request to the API. This allows the user to communicate that id back to us when triaging the issue, thus speeding up resolution.

@LukeMathWalker LukeMathWalker added enhancement New feature or request good first issue Good for newcomers diagnostics Improvement or issue with Pavex's CLI diagnostics. p-pavex-cli Issue related to `pavex` or `pavexc`, Pavex's CLIs. labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics Improvement or issue with Pavex's CLI diagnostics. enhancement New feature or request good first issue Good for newcomers p-pavex-cli Issue related to `pavex` or `pavexc`, Pavex's CLIs.
Projects
None yet
Development

No branches or pull requests

1 participant