Package Description
$ dotnet add package Pyroscope.OpenTracingThis package enables applications that already rely on OpenTracing 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.OpenTracing
Wrap your existing tracer with the PyroscopeTracer and register it globally:
// obtain the OpenTracing tracer (note that this can vary between applications)
var tracingConfig = Configuration.FromEnv(loggerFactory);
var tracer = tracingConfig.GetTracer();
// wrap the OpenTracing tracer with the PyroscopeTracer and register it
GlobalTracer.Register(new Pyroscope.OpenTracing.PyroscopeTracer(tracer));