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

Make ZapCore creation customizable #10

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

Conversation

vespian
Copy link

@vespian vespian commented May 31, 2024

As mentioned in the comment of the NewOtelZapCore function, it is not flexible enough and configuration through env vars is not always desired or possible.

This change adds a new method that allows creating ZapCore with custom logger which can be customized to hearts content. I have not changed the original function in order to not to break API.

CC: @blumamir

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