-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Proposed topic or title
Logging extensions
Location in table of contents.
docs/core/extensions
Reason for the article
Currently, there are no docs with details about using the Microsoft.Extensions.Telemetry library effectively.
https://andrewlock.net/behind-logproperties-and-the-new-telemetry-logging-source-generator/ is linked to from the official docs (here https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/)
and https://andrewlock.net/customising-the-new-telemetry-logging-source-generator/ covers more of the new source-generator.
By having these docs on the official https://learn.microsoft.com/ website, we'll be able to leverage AI further to use these best practices via the Microsoft Learn MCP
there are some docs on https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.Telemetry & https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.Telemetry.Abstractions
specifically missing docs about the types and annotations:
[LogProperties]
(maybe based on https://andrewlock.net/behind-logproperties-and-the-new-telemetry-logging-source-generator/)[TagProvider]
(maybe based on https://andrewlock.net/customising-the-new-telemetry-logging-source-generator/)
Article abstract
.
Relevant searches
https://github.com/search?q=org%3Adotnet%20%22%5BLogProperties%22&type=code
there are some great samples - https://github.com/dotnet/extensions-samples/tree/aaae284846366e5c122b2760c4060712b862c060/src/Telemetry/Logging