Skip to content

Release 1.13.3

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Apr 11:18
52c1cb8

Added

  • Introduce instrumentation support for Open Telemetry.
builder
    .Services
    .AddOpenTelemetry()
    .WithMetrics(metrics =>
    {
        metrics
            .AddAspNetCoreInstrumentation()
            .AddHttpClientInstrumentation()
            .AddRuntimeInstrumentation();
    })
    .WithTracing(tracing =>
    {
        if (builder.Environment.IsDevelopment())
        {
            // We want to view all traces in development
            tracing.SetSampler(new AlwaysOnSampler());
        }

        tracing
            .AddAspNetCoreInstrumentation()
            .AddHttpClientInstrumentation()
            .AddSource(EventStoreDiagnostics.SourceName); // enable trace telemetry from event store and cqrs.
    });