I've just released v2.0.0 of my .NET Telemetry Source Generator: https://github.com/purview-dev/purview-telemetry-sourcegenerator/
Better support for non-ILogger referenced projects, some bug fixes, and dropped support for .NET 7 for simplifications in the generated output. #OpenTelemetry #Logging #Activities #Metrics #dotnet #aspire
Better support for non-ILogger referenced projects, some bug fixes, and dropped support for .NET 7 for simplifications in the generated output. #OpenTelemetry #Logging #Activities #Metrics #dotnet #aspire
Comments
In essence there's a fully working sample app, that has EmitCompilerGeneratedFiles set to true.
You can clone the project, build the sample app and view all of the generated source for yourself.
Each interface may generate up to 3 different partial classes based on your usage - Activities, Logs, Metrics, and 1 for DI.
Then you have each Attribute type.
It's not practical.