Skip to content

AspNetCore.SignalR.OpenTelemetry v1.5.0

Latest
Compare
Choose a tag to compare
@nenoNaninu nenoNaninu released this 18 Dec 19:00
e6025f9

Enhancements:

  • #60 Add custom exception handling option.
  • #61 Improve log message.
// #60
builder.Services.AddSignalR()
    .AddHubInstrumentation(options =>
    {
        options.OnException = static (activity, exception) =>
        {
            if (exception is HubException)
            {
                // overwrite otel.status_code attribute from "ERROR" to "OK"
                activity.SetTag("otel.status_code", "OK");
            }
        };
    });

Full Changelog: v1.4.0...v1.5.0