Commit 186e74f
[ASM] Log endpoints collection failures as warnings, not errors
Reading EndpointDataSource.Endpoints executes third-party code that can
throw for reasons outside our control. In the Azure Functions isolated
worker, FunctionsEndpointDataSource builds its endpoints lazily and
rejects malformed route templates, so collecting endpoints at Kestrel
startup surfaces a RoutePatternException.
Endpoints collection is best-effort and the failure does not affect the
application, so it should not be reported to telemetry as an error. The
other failure paths in the same method already use Log.Warning.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 7a4fb69 commit 186e74f
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AspNetCore/EndpointsCollection
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
0 commit comments