@@ -0,0 +1,16 @@
+﻿using Datadog.Trace.DuckTyping;
+
+namespace Datadog.Trace.DiagnosticListeners
+{
+    /// <summary>
+    /// IEndpointFeature for ducktyping HttpContext
+    /// </summary>
+    public interface IEndpointFeature
+    {
+        /// <summary>
+        /// Delegates to IEndpointFeature.Endpoint;
+        /// </summary>
+        [Duck(Name = "Microsoft.AspNetCore.Http.Features.IEndpointFeature.get_Endpoint")]
+        RouteEndpoint GetEndpoint();
+    }
+}
Is there a reason you're proxying the underlying method instead of proxying the property itself?