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

Want D script to format slog output #7538

Open
bnaecker opened this issue Feb 13, 2025 · 0 comments
Open

Want D script to format slog output #7538

bnaecker opened this issue Feb 13, 2025 · 0 comments

Comments

@bnaecker
Copy link
Collaborator

We use slod-dtrace to fire DTrace USDT probes at every log message, even those which are compiled into the binary but filtered by the level-filter. This is really useful, but the formatting of these messages is a bit funky. To send them to DTrace, we JSON-serialize them, which requires handling the possibility that that can fail. So you get messages in DTrace that are like {"ok": {<actual JSON>} or {"err": "some error message"}.

We should write a D script that will handle these serialization details for us, and print out the actual messages. Ideally, that would go into the Bunyan format that we use everywhere else, so we can pipe the output to tools like looker. We should also be sure to ship these in the software images we build. These probes have very rarely changed, so putting the script in the GZ seems fine for now.

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

1 participant