Package Description
$ dotnet add package Pyroscope.OpenTelemetryThis package enables applications that already rely on OpenTelemetry for distributed tracing and Pyroscope for continuous profiling to link the tracing and profiling data together.
See Link tracing and profiling with Span Profiles for more information.
Add the following package to your project:
dotnet add package Pyroscope.OpenTelemetry
Register the PyroscopeSpanProcessor in your OpenTelemetry integration:
builder.Services.AddOpenTelemetry()
.WithTracing(b =>
{
b
.AddAspNetCoreInstrumentation()
.AddConsoleExporter()
.AddOtlpExporter()
.AddProcessor(new Pyroscope.OpenTelemetry.PyroscopeSpanProcessor());
});