Commit df4fba5
fix: attribute recovered-kernel connection failures to the kernel for telemetry
The connection-failure telemetry suppression read the original connect() kwargs
to decide whether the failed connection was a kernel connection. On the Reyden
auto-recovery path the kernel retry uses a kwargs copy, so the original still
said Thrift — a kernel open-failure was logged by the wrapper despite the kernel
owning telemetry for kernel connections. Decide from the session that actually
failed (self.session.use_kernel) instead. If the kernel was never constructed
(e.g. its wheel is missing), self.session stays Thrift and the wrapper still
logs, so that otherwise-invisible failure is still recorded.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>1 parent f5e8adb commit df4fba5
2 files changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
0 commit comments