Skip to content


OpenTelemetry is a collection of tools, APIs, and SDKs. Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help you analyze your software’s performance and behavior.


You can find it here about how to use OpenTelemetry in console applications or ASP.NET Core, at here we mainly describe how to tracing CAP data to OpenTelemetry.


Install the CAP OpenTelemetry package into the project.

dotnet add package DotNetCore.Cap.OpenTelemetry

The OpenTelemetry data comes from diagnostics, add the instrumentation of CAP to the configuration of OpenTelemetry.

services.AddOpenTelemetryTracing((builder) => builder
    .AddCapInstrumentation()    // <-- Add this line

Here is a diagram of CAP's tracking data in Zipkin: