Skip to content

Have you considered changing the log library to tracing? #390

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

Open
ISensuiI opened this issue Apr 22, 2025 · 1 comment
Open

Have you considered changing the log library to tracing? #390

ISensuiI opened this issue Apr 22, 2025 · 1 comment

Comments

@ISensuiI
Copy link

First of all, I would like to thank the developer for providing the excellent rust library of steno. During my use, I found that the entire log is based on slog. I learned about slog and it is also a very excellent library. However, most of the applications and libraries I built, or almost all of them, are using tracing, and the official slog library no longer recommends using slog but recommends tracing. I hope you can consider changing the log library to tracing.
In my current project, I am making an intermediate layer to convert the steno log library to the tracing library. Although it works, it is a lot more work.

@davepacheco
Copy link
Collaborator

I'm glad this crate has been useful for you and I'm sorry for the trouble related to slog. We use slog very extensively in Omicron, which is the system we built Steno for. There has been some discussion about tracing in our system instead. The initial discussions (which outline some of the considerations) are here on the Dropshot project (Dropshot is another crate we use heavily in Omicron):
oxidecomputer/dropshot#505

There was some prototype work done to make Dropshot support OpenTracing:
oxidecomputer/dropshot#1201
We haven't had a chance to dig into this.

For folks internal to Oxide, we also have RFD 489 discussing this, but I don't think there's a way to make its discussion public -- sorry for the external folks.

At the very least, I think we expect it would be a considerable amount of work for us to switch from slog. It's not clear to me that tracing supports everything that we want.

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

No branches or pull requests

2 participants