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

Include request-id from Registry in CLI logs #699

Open
tiagonbotelho opened this issue Aug 22, 2023 · 1 comment
Open

Include request-id from Registry in CLI logs #699

tiagonbotelho opened this issue Aug 22, 2023 · 1 comment

Comments

@tiagonbotelho
Copy link

Is your feature request related to a problem? Please describe.
It is currently quite hard to open support tickets and provide enough context to the support team about my failure.
npm's registry provides a request-id in the event of a failure, which we aren't exposing in our CLI logs.

Describe the solution you'd like
Expose the request-id in the npm CLI logs, or through the --verbose output.

Describe alternatives you've considered
N/A

Additional context
N/A

@wraithgar
Copy link
Member

After looking into this, we want a well-defined header to be returned from the registry so that other registries can follow suit if they want, rather than trying to lock into / track implementation-specific headers (i.e. CF-Ray). We have no way of knowing on any given registry what would constitute the "request-id" that could help them troubleshoot a request. It's better that they give us that info in a well-defined place so we can log it if it's there.

request-id seems like a good header name to implement.

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

2 participants