Muonroi.Diagnostics.Generator
2.0.2
dotnet add package Muonroi.Diagnostics.Generator --version 2.0.2
NuGet\Install-Package Muonroi.Diagnostics.Generator -Version 2.0.2
<PackageReference Include="Muonroi.Diagnostics.Generator" Version="2.0.2" />
<PackageVersion Include="Muonroi.Diagnostics.Generator" Version="2.0.2" />
<PackageReference Include="Muonroi.Diagnostics.Generator" />
paket add Muonroi.Diagnostics.Generator --version 2.0.2
#r "nuget: Muonroi.Diagnostics.Generator, 2.0.2"
#:package Muonroi.Diagnostics.Generator@2.0.2
#addin nuget:?package=Muonroi.Diagnostics.Generator&version=2.0.2
#tool nuget:?package=Muonroi.Diagnostics.Generator&version=2.0.2
Muonroi.Diagnostics.Generator
Roslyn source generator for automatic trace instrumentation.
Overview
Contains TraceableGenerator and TraceableSyntaxRewriter to automatically emit diagnostic tracing code for methods marked for instrumentation during compilation.
Features
- Source Generation:
TraceableGeneratorautomatically instruments marked classes. - Syntax Rewriting: Uses
TraceableSyntaxRewriterto weaveMTraceSessionScopecalls without boilerplate.
Installation
dotnet add package Muonroi.Diagnostics.Generator
Quick Start
// Just add the package. The source generator automatically instruments
// classes decorated with appropriate tracing attributes.
[Traceable]
public class WorkerClass
{
public void Process() { } // MTraceSessionScope injected at compile time
}
Ecosystem Combinations
Muonroi.Diagnostics.Generator + Muonroi.Diagnostics
The generator emits code that relies on MTraceSession from the Muonroi.Diagnostics package, removing the need to write boilerplate trace scopes.
Samples
Find complete running examples in the ../../samples/ directory.
License
This project is licensed under the terms of the applicable Muonroi license.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.