We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99fde3 commit c269c24Copy full SHA for c269c24
tracer/src/Datadog.Trace/DiagnosticListeners/AspNetCoreDiagnosticObserver.cs
@@ -544,11 +544,7 @@ private void OnRoutingEndpointMatched(object arg)
544
tags.AspNetCoreEndpoint = routeEndpoint.Value.DisplayName;
545
}
546
547
- if (!routeEndpoint.Value.RoutePattern.TryDuckCast<RoutePattern>(out var routePattern))
548
- {
549
- // Failed to cast
550
- return;
551
- }
+ var routePattern = routeEndpoint.Value.RoutePattern.DuckCast<RoutePattern>();
552
553
// Have to pass this value through to the MVC span, as not available there
554
var normalizedRoute = routePattern.RawText?.ToLowerInvariant();
0 commit comments