-
Notifications
You must be signed in to change notification settings - Fork 72
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
Proposal: a more customizable logger #260
Comments
I'd love to have We also can introduce tracing adapter as an optional feature for ppl who want tracing functionality. WDT? |
If possible I'd like us to land on using |
That's totally fair, using just |
Hey @mxpv, are you suggesting to add a conditional compilation feature in Rust for the tracing crate? If the feature is not toggled on, does it go back to |
That's fair. Can you say more about instances where downstream libraries (what I assume you mean by user) would prefer/need From my perspective if we think Looking to learn here 👍 b/c I'm totally just parachuting into this project. |
Motivation:
Runwasi shims would like to filter out crate-level logs such as the wasmtime cranelift compiler logs which contain large number of compiler related logs that pollute the containerd logs, but there isn't an option to configure the
FifoLogger
at the moment.Alternatives:
One alternative is to use
env_logger
crate that provides powerful customization ability to filter out crates logs.Originally posted by @mxpv in #247 (comment)
Another alternative is to use
tracing_log
which is based on thetracing
crate. I prefer this alternative more since we are discussing adding OpenTelemetry supports in Runwasi where thetracing
crate is at the center of enabling OpenTelemetry OLTP collection. Tracing could also be used as a logger.Adding
tracing_log
could potentially unblock the OpenTelemetry work on the SpinKube shim project as well: spinkube/containerd-shim-spin#61The text was updated successfully, but these errors were encountered: