Commit fba02a4
fix: suppress auto-instrumented AmqpReceiver TaskCanceledException APM errors during shutdown (5.7.5)
Root cause: Elastic APM creates "AzureServiceBus RECEIVE" transactions via DiagnosticSource
auto-instrumentation. The Azure SDK ends its Activity before firing ProcessErrorAsync, so
Agent.Tracer.CurrentTransaction is null in OnReceiveCancelled() — the TX ID is never tracked
and the filter passes the error through. Fix: add culprit-based suppression for
TaskCanceledException on the AmqpReceiver path (post-WebSockets fix, only fires on shutdown).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8cc09ec commit fba02a4
2 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
126 | 142 | | |
127 | 143 | | |
128 | 144 | | |
| |||
0 commit comments