Commit add28c2
committed
fix(adapter): start pprof server when profiling is enabled
The eventing adapter framework creates and configures a ProfilingServer
but never calls ListenAndServe, so the profiling port is never bound
even when runtime-profiling is set to enabled in the observability
ConfigMap. Start the server conditionally based on the initial config,
consistent with the adapter's static observability config model.
Fixes #9007
Signed-off-by: Akshay Pant <akpant@redhat.com>1 parent 263a3a5 commit add28c2
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| |||
0 commit comments