AspNet.KickStarter.Tracing 1.4.0

Prefix Reserved
dotnet add package AspNet.KickStarter.Tracing --version 1.4.0
                    
NuGet\Install-Package AspNet.KickStarter.Tracing -Version 1.4.0
                    
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="AspNet.KickStarter.Tracing" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNet.KickStarter.Tracing" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="AspNet.KickStarter.Tracing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AspNet.KickStarter.Tracing --version 1.4.0
                    
#r "nuget: AspNet.KickStarter.Tracing, 1.4.0"
                    
#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.
#addin nuget:?package=AspNet.KickStarter.Tracing&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=AspNet.KickStarter.Tracing&version=1.4.0
                    
Install as a Cake Tool

AspNet.KickStarter.Tracing

This library provides an ITraceActivity that is registered by WithOpenTelemetry and may be used to add tracing to operations.

Sample Usage

Program.cs

await new ApiBuilder()
    .WithOpenTelemetry()
    .Build(args)
    .RunAsync();

MyService.cs

public MyService(ITraceActivity traceActivity) => _traceActivity = traceActivity;

public Process(Thing thing)
{
    using var trace = _traceActivity.StartActivity("Thing Processing");
    ...
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on AspNet.KickStarter.Tracing:

Package Downloads
AspNet.KickStarter

This simplifies the bootstrapping code to run a minimal API with optional AddIn support for Serilog, FluentValidation, OpenTelemetry and Swagger.

AspNet.KickStarter.CQRS

This is a basic library of interfaces to use for CQRS commands and queries with MediatR.

AspNet.KickStarter.AddIn.OpenTelemetry

This simplifies the bootstrapping code to run a minimal API with optional support for OpenTelemetry metrics, traces and logging.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 258 3/4/2025
1.3.0 153 2/1/2025
1.2.3 527 6/18/2024
1.2.2 304 6/3/2024
1.2.1 136 6/3/2024
1.2.0 123 6/3/2024