ProtoTest.OpenTelemetry 1.0.1

Additional Details

OpenTelemetry is already supported without the package. Add "ProtoTest" source to your existing OTel setup.

dotnet add package ProtoTest.OpenTelemetry --version 1.0.1
                    
NuGet\Install-Package ProtoTest.OpenTelemetry -Version 1.0.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="ProtoTest.OpenTelemetry" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ProtoTest.OpenTelemetry" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ProtoTest.OpenTelemetry" />
                    
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 ProtoTest.OpenTelemetry --version 1.0.1
                    
#r "nuget: ProtoTest.OpenTelemetry, 1.0.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.
#:package ProtoTest.OpenTelemetry@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ProtoTest.OpenTelemetry&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ProtoTest.OpenTelemetry&version=1.0.1
                    
Install as a Cake Tool

ProtoTest.OpenTelemetry

Registers ProtoTest's built-in ActivitySource with an OpenTelemetry tracing pipeline; the local .prototrace archive stays independent.

dotnet add package ProtoTest.OpenTelemetry

Install an exporter such as OpenTelemetry.Exporter.OpenTelemetryProtocol alongside this package when needed.

Quick start

using OpenTelemetry;
using OpenTelemetry.Trace;
using ProtoTest.OpenTelemetry;

using var provider = Sdk.CreateTracerProviderBuilder()
    .AddProtoTestInstrumentation()
    .AddOtlpExporter()
    .Build();

The provider can live in a ProtoTest run hook so it covers the whole run.

What it adds

  • Instrumentation — the single extension AddProtoTestInstrumentation() adds the "ProtoTest" activity source to the caller-owned TracerProviderBuilder.
  • Operations as spans — each ProtoTest operation becomes an ActivityKind.Internal span, with tags such as prototest.test.id, prototest.entry.kind, prototest.source, prototest.phase, prototest.entity.kind/id and prototest.outcome.
  • Events as span events — instantaneous trace entries attach as ActivityEvents to the span of their parent operation when one exists.
  • Outcome mapping — a failed operation sets Error with a description plus an exception event (type, message, stack trace); a succeeded operation sets Ok.
  • Pipeline-agnostic — the caller owns the TracerProviderBuilder; exporters, sampling and resources are ordinary OpenTelemetry configuration, and the package includes no exporter.
  • Stable source name — the added source is always "ProtoTest", so the bridge needs no per-run setup.

ProtoTest tracing stays enabled and independent: the exported spans do not replace .prototrace. Large structured values (context.value, observation.data, shape.*, …) stay only in the archive, and attributes longer than 2048 characters are dropped from exported spans.

Learn more

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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.

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.1 137 9/20/2026 1.0.1 is deprecated because it is no longer maintained.
1.0.0 112 9/20/2026