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

feat: add request-ids to each request #149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

samlaf
Copy link
Collaborator

@samlaf samlaf commented Sep 24, 2024

Needed to be able to trace requests and debug more easily. Still some things to fix like the ability for eigenda-client to use a custom logger based on the request-id in context.

@@ -273,17 +277,14 @@ func (svr *Server) WriteResponse(w http.ResponseWriter, data []byte) {
}

func (svr *Server) WriteInternalError(w http.ResponseWriter, err error) {
svr.log.Error("internal server error", "err", err)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing these because of duplicate logs (also printed in middleware). However this means we lose the error/info + status message.......

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking switching to echo webserver as in #142 would be a really good idea at this point.... @epociask let's discuss tomorrow

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.

1 participant