-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor(stackable-telemetry)!: Improve stackable-telemetry to make it easier to build the TraceGuard #901
Conversation
36abd6a
to
9468ff6
Compare
I like it! |
Thanks. It is basically done, there is one thing left to refactor (and enable console log formats), but before merging I will document the pub items (and enable warn on missing docs). |
9468ff6
to
71ec75f
Compare
…r console logging
…icker access to common settings from subscriber specific settings
…le and From impls as a config shortcut similar to before this PR
I avoided prefixing `enabled()` because it sounds strange.
Note: They will appear in a future PR
Note: More docs will appear in a future PR so that this PR isn't a blocker. Tip: Enable `#![warn(missing_docs)]`
ce7266d
to
951f5cc
Compare
This PR was going to include the following items:
But they were dropped in order to unblock @xeniape for the RollingFileAppender implementation. I am promising to come back and do those things in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really relevant since it's excluded from this PR, but the tuple variant smells a lot like "From
magic" that I would rather avoid.
Co-authored-by: Techassi <[email protected]>
Description
Part of stackabletech/issues#639.
Problem
It is cumbersome to configured the various subscribers to be enabled at runtime. Using @soenkeliebau's code example:
The purpose of the builder is to allow overriding of the the defaults, however in the current state, the function parameters for the subscribers (console and otlp exporters) break that, and it will only get messier as config options are added.
Solution
Add common and subscriber specific configuration through a Settings builder (suggested by @Techassi). The previous example would then look like:
Definition of Done Checklist
Author
Reviewer