-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
make it easier to ingest stack traces into logging backends #809
Comments
@ceki wdyt? |
I looked at the code. The changes are reasonable. However, the code which was already rather complex becomes harder to read with your changes. I think a pluggable strategy for handling the stack trace output format starts to make sense. A default strategy and a "PlainStackTrace" strategy. This should not be hard to put in place. Let me know if you feel comfortable with the idea and making this change. Also, could your PR be please compressed into a single commit? |
You can change the settings to always squash PRs BTW |
done 😄 |
True but it's better you do that. Letting remote squash is poor form plus it hurts you later if you properly use rebase. Many old users on github remember when it didn't allow squashing. I find it it mainly means we give up trying to teach proper git usage...;)
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Gregor Zeitlinger ***@***.***>
Sent: Wednesday, April 24, 2024 12:47:26 PM
To: qos-ch/logback ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [qos-ch/logback] make it easier to ingest stack traces into logging backends (Issue #809)
Also, could your PR be please compressed into a single commit?
done 😄
—
Reply to this email directly, view it on GitHub<#809 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHODI4DUFZS3BRPKXHHDFTY67OZ5AVCNFSM6AAAAABGUJFHQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVGQYDKMZXGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
It's like tabs vs. spaces 😉 Rebasing from a remote squash is a little bit harder - but it has never bothered me so far. |
Problem
Logging backends, such as Loki, ingest stack traces as one string.
Therefore, it would be good to have an option in the json encoder, to emit stack traces plainly - as a string.
Instead of
something like
Proposed solution
Add a
withPlainStackTrace
option to the json encoder.PR: #808
The text was updated successfully, but these errors were encountered: