-
Notifications
You must be signed in to change notification settings - Fork 19
Add traceId and spanId properties in LogstashJsonFormatter output #55
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
Conversation
LogstashJsonFormatter
output
@Smaug123, I don't see any harm in this, do you? |
@nojaf One concern I realized is that existing code could be adding I added a failing test in the latest commit and plan to look into #39 and maybe open a separate PR. |
I don't see any harm in this per se, but I'm certainly not a domain expert, and that issue does look concerning! (On general principles I'd prefer to pull out the |
Thank you for the input and suggestion! I moved the |
I adjusted the test to pass based on looking into it further and added comment here on #39. |
@nojaf No rush but do you have any ETA for a next release, and do you think this change could go in it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks fine. I'll publish a new alpha so you can test this further on your end.
Fixes #53
See related changes in serilog/serilog#1955
For reference,
Serilog.Formatting.Json.JsonFormatter
also includes these properties here:https://github.com/serilog/serilog/blob/cd6420aeafcdedd3790da1a03a419e389f0faa64/src/Serilog/Formatting/Json/JsonFormatter.cs#L74-L84
Also enabledmoved to #56 and #57.<Nullable>
in the unit test project (already enabled in the main project) and fixed some warnings.