-
Notifications
You must be signed in to change notification settings - Fork 799
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
Support for Microsoft.Extensions.Telemetry.Abstractions
#1984
Comments
I think you can do this already be providing a custom |
related: a question referencing some implementations of same As for whether something like this could/should be in the box, that's another question... |
Seems like a good question to dig into :-) Anyone interested in putting together a Serilog.Extensions.Telemetry(Abstractions) PoC of some sort to explore how functionality in the new annotations might be applied via Serilog enrichers/destructuring policies? |
This feels relevant to this conversation: dotnet/extensions#4735 |
destructurama/attributed#113 allows to achive this in such way:
|
Redaction support through Microsoft.Extensions.Compliance.Redaction would be nice as well. Is that possible? |
Is your feature request related to a problem? Please describe.
.Net 8 released with a new telemetry abstraction library for - among other things - obfuscating values in logs.
I expect the following to be logged:
Instead, the following is logged:
Describe the solution you'd like
Serilog removes the values annotated with LogPropertyIgnore
Additional context
It's possible I've misunderstood what the
[LogPropertyIgnore]
attribute is supposed to do, and it is not supposed to do what I'm asking for it to do here. If that is the case, ignore(pun intended) this issue.The text was updated successfully, but these errors were encountered: