Commit 767faa5
fix: sorted cache keys, logging, and no-tx metric in Kafka hooks
- confluentkafka: sort bootstrap servers for cache key in produce/consume
wrappers and in _fetch_cluster_id so broker order doesn't affect cache hits
- kafkapython: add _logger; collapse no-transaction early-return in
wrap_KafkaProducer_send (cluster metric already recorded inside transaction
block); add debug logging to all except-Exception handlers in _run()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9799069 commit 767faa5
2 files changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 59 | | |
68 | 60 | | |
69 | 61 | | |
| |||
221 | 213 | | |
222 | 214 | | |
223 | 215 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 216 | + | |
227 | 217 | | |
228 | | - | |
| 218 | + | |
229 | 219 | | |
230 | 220 | | |
231 | 221 | | |
232 | | - | |
| 222 | + | |
233 | 223 | | |
234 | 224 | | |
235 | 225 | | |
| |||
0 commit comments