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

Log the endpoint we are serving #2334

Merged
merged 1 commit into from
Nov 19, 2016
Merged

Log the endpoint we are serving #2334

merged 1 commit into from
Nov 19, 2016

Conversation

rolandshoemaker
Copy link
Contributor

We use http.StripPrefix so handlers don't have to deal with stripping the boring part of URLs that they don't need (#1881). This caused either an empty string or only the ID from the path to be logged as the endpoint which was not useful for debugging. By doing the logging in the constructor instead we still have access to the prefix part of the path and can use it to reconstruct the full path.

Fixes #2328.

@cpu cpu merged commit d52c13f into master Nov 19, 2016
@aarongable aarongable deleted the log-endpoint branch January 19, 2022 22:48
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

Successfully merging this pull request may close these issues.

Leading path is stripped from the 'endpoint' field of the logEvent object
3 participants