Skip to content

Commit f68775a

Browse files
dromanolclaude
andcommitted
Trim the comment
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 2b5dfce commit f68775a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AspNetCore/EndpointsCollection/KestrelServerImplStartAsyncIntegration.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ private static void GatherEndpoints(IKestrelServer kestrelServer)
9393
}
9494
catch (Exception ex)
9595
{
96-
// Evaluating this property runs third-party code that can throw for reasons outside our
97-
// control. The Azure Functions worker, for instance, builds its endpoints lazily from
98-
// function metadata and rejects malformed route templates, so we are the first caller to
99-
// trigger the failure. That is not a tracer defect, so warn instead of reporting an error
100-
// to telemetry. Anything thrown by our own collection below is a defect and still errors.
96+
// Evaluating this property runs third-party code, so a failure here isn't a tracer defect
10197
Log.Warning(ex, "API Security: Endpoints collection: Failed to evaluate the EndpointDataSource endpoints.");
10298
return;
10399
}

0 commit comments

Comments
 (0)