refactor(stackable-telemetry)!: Improve stackable-telemetry to make it easier to build the TraceGuard#901
Merged
NickLarsenNZ merged 19 commits intomainfrom Nov 27, 2024
Conversation
36abd6a to
9468ff6
Compare
Member
|
I like it! |
Member
Author
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
Member
Author
|
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. |
nightkr
reviewed
Nov 27, 2024
Contributor
nightkr
left a comment
There was a problem hiding this comment.
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.
Techassi
reviewed
Nov 27, 2024
Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech>
Techassi
previously approved these changes
Nov 27, 2024
Techassi
approved these changes
Nov 27, 2024
This was referenced Jan 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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