AspNet.KickStarter.Tracing 1.2.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package AspNet.KickStarter.Tracing --version 1.2.1                
NuGet\Install-Package AspNet.KickStarter.Tracing -Version 1.2.1                
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.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNet.KickStarter.Tracing --version 1.2.1                
#r "nuget: AspNet.KickStarter.Tracing, 1.2.1"                
#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 AspNet.KickStarter.Tracing as a Cake Addin
#addin nuget:?package=AspNet.KickStarter.Tracing&version=1.2.1

// Install AspNet.KickStarter.Tracing as a Cake Tool
#tool nuget:?package=AspNet.KickStarter.Tracing&version=1.2.1                

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

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.2.3 125 6/18/2024
1.2.2 249 6/3/2024
1.2.1 82 6/3/2024
1.2.0 75 6/3/2024