Purview.Telemetry.SourceGenerator 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Purview.Telemetry.SourceGenerator --version 1.0.4                
NuGet\Install-Package Purview.Telemetry.SourceGenerator -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Purview.Telemetry.SourceGenerator" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Purview.Telemetry.SourceGenerator --version 1.0.4                
#r "nuget: Purview.Telemetry.SourceGenerator, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Purview.Telemetry.SourceGenerator as a Cake Addin
#addin nuget:?package=Purview.Telemetry.SourceGenerator&version=1.0.4

// Install Purview.Telemetry.SourceGenerator as a Cake Tool
#tool nuget:?package=Purview.Telemetry.SourceGenerator&version=1.0.4                

Purview Telemetry Source Generator

Generates ActivitySource, High-performance logging and Metrics based on methods on an interface, enabling fast iteration cycles, dependency injection and substitutes for testing.

The latest version is available on NuGet, and supports generating for the following frameworks:

  • .NET Framework 4.7.2
  • .NET Framework 4.8
  • .NET 7
  • .NET 8
[ActivitySource]
[Logger]
[Meter]
interface IServiceTelemetry
{
    [Activity]
    Activity? StartsAnActivity(string tagStringParam, [Baggage]int entityId);

    [Event]
    void AnInterestingEvent(Activity? activity, float aTagValue);

    [Context]
    void InterestingInfo(Activity? activity, float anotherTagValue, int intTagValue);

    [Log]
    void ProcessingEntity(int entityId, string property);

    [AutoCounter]
    void AnAutoIncrementCounter([Tag]int entityId);
}

For more information see the wiki.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • 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.

Version Downloads Last updated
1.0.12 124 6/9/2024
1.0.11 136 6/3/2024
1.0.10 100 6/3/2024
1.0.9 116 5/30/2024
1.0.8 105 5/27/2024
1.0.7 109 5/20/2024
1.0.6 115 5/20/2024
1.0.5 124 5/6/2024
1.0.4 100 5/1/2024
1.0.3 330 4/30/2024
1.0.2 113 4/25/2024
1.0.1 106 4/25/2024
1.0.0 115 4/22/2024
0.0.14-prerelease 107 4/8/2024
0.0.13-prerelease 107 4/7/2024
0.0.12-prerelease 96 4/6/2024
0.0.11-prerelease 101 4/6/2024
0.0.10-prerelease 96 4/6/2024