Commit 9b7af76
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 e88c518 commit 9b7af76
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
287 | 300 | | |
288 | 301 | | |
289 | 302 | | |
| |||
0 commit comments