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

[Spike] MultiLoggerProvider #5830

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pellared
Copy link
Member

@pellared pellared commented Sep 19, 2024

Sharing an idea how users can setup multiple log processing pipelines.

MultiLoggerProvider is a composite (fan-out) provider that duplicates its calls to all the passed providers.
It can be used to set up multiple processing pipelines.
For instance, you can use it create separate providers (pipelines) for OTel events and application logs.

This pattern could be used also for Tracing and Metrics.

MultiLoggerProvider depends only on the API so it would be better moved to Contrib to a separate module called e.g. otelmulti. It is more like a convivence helper for the API package. I was thinking if this idea defined in the specification, but I am unsure if there is a good place for it.

@pellared pellared added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 19, 2024
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.4%. Comparing base (7bd1c85) to head (0ebc71f).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #5830     +/-   ##
=======================================
- Coverage   84.5%   84.4%   -0.1%     
=======================================
  Files        272     273      +1     
  Lines      22734   22754     +20     
=======================================
  Hits       19226   19226             
- Misses      3165    3185     +20     
  Partials     343     343             

see 1 file with indirect coverage changes

@pellared
Copy link
Member Author

pellared commented Sep 19, 2024

@open-telemetry/go-approvers, sharing an idea that I come up with when working on #5825.

@pellared
Copy link
Member Author

CC @MSNev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant