{"repo":"purview-dev/purview-telemetry-sourcegenerator","free":true,"listed":false,"github":"https://github.com/purview-dev/purview-telemetry-sourcegenerator","clone":"git clone https://github.com/purview-dev/purview-telemetry-sourcegenerator.git","description":".NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics.","language":"C#","stars":34,"topics":["activity","distributed-tracing","dotnet","events","logging","metrics","open-telemetry","open-telemetry-csharp","source-generator","spans"],"license":"MIT","category":"analytics","readme_excerpt":"Purview Telemetry Source Generator Generates ActivitySource , ILogger , and Metrics based telemetry from methods you define on an interface. Features - Zero boilerplate - define methods on an interface, get full telemetry implementation generated - Multi-target generation - generate Activities, Logging, and Metrics from a single interface - Testable - easy mocking/substitution for unit testing - DI-ready - automatic dependency injection registration helpers Supported Frameworks Consumer runtime targets: - .NET Framework 4.8 - .NET 8 or higher Build toolchain requirement: - Visual Studio 2022 17.14+ or .NET 10 SDK (Roslyn 4.14.0+) Installation Add to your Directory.Build.props or .csproj file: Quick Start Define an interface with telemetry methods and the generator creates the implementation: Register with dependency injection: Then inject and use - a single method call emits an Activity, Log, and Metric simultaneously: Telemetry Types Attribute Generation Type Description ----------- ---------------- ------------- [ActivitySource] Class-level Marks interface for Activity generation [Activity] Method Creates and starts a new Activity [Event] Method Adds an ActivityEvent to an Activity [Context] Method Adds Baggage to an Activity [Logger] Class-level Marks interface for ILogger generation [Log] Method Generates structured log message [Trace] , [Debug] , [Info] , [Warning] , [Error] , [Critical] Method Log with specific level [Meter] Class-level Marks interface for Metrics gener","default_branch":null,"files":null,"tree":[],"storefront":"/r/purview-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/purview-dev/purview-telemetry-sourcegenerator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}