Commit 6bda425
committed
Add debug logging for SPOG x-databricks-org-id header extraction
Mirrors equivalent logging added to OSS JDBC and pysql. Emits at DEBUG
level in three paths of extractSpogHeaders:
1. Malformed query string in httpPath — log and skip.
2. httpPath has "?" but no ?o= param — log and skip.
3. Injection happens — log the extracted workspace ID so customers
diagnosing SPOG routing can confirm the header was added.
Also adds a detailed docstring explaining the role this header plays:
Thrift routing stays URL-driven via ?o= in httpPath; only the separate
endpoints (telemetry, feature flags) need the header for account-level
routing on SPOG hosts.
Helps with customer support: when a customer reports "SPOG isn't routing
correctly", they can enable DEBUG logging and immediately see whether
the driver saw their ?o= value.
Signed-off-by: Madhavendra Rathore
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent 0ec7e06 commit 6bda425
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
128 | 140 | | |
129 | 141 | | |
130 | 142 | | |
| |||
133 | 145 | | |
134 | 146 | | |
135 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
136 | 151 | | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
140 | 158 | | |
141 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
142 | 163 | | |
143 | 164 | | |
144 | 165 | | |
| |||
0 commit comments