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

Canonical log #30

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Canonical log #30

wants to merge 6 commits into from

Conversation

nofun97
Copy link
Member

@nofun97 nofun97 commented Feb 18, 2020

Added API for canonical log and tests.

This is part of #16

@nofun97 nofun97 requested a review from anzdaddy February 18, 2020 02:18
log/api.go Show resolved Hide resolved
@daemonl
Copy link

daemonl commented Feb 19, 2020

I think this problem could be solved in a different and possibly simpler way by implementing it as a package on top of the log library.

Imagine a library which exposes:

  • A method to add data to the context
  • A middleware to set up the context before passing down, then read the values from the context and actually log at the end of the request

It would be able to be achieved with no modification to the logging library itself, and then becomes optional to follow the exact pattern of one log line per client request depending on the needs of the consumer

anzopensource pushed a commit that referenced this pull request Feb 7, 2023
* Upgrade otel metrics to v0.35

* Tidy!
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.

3 participants