Commit f01fe58
authored
Add debug logging for connector-service feature flags request and response (#1462)
## Summary
Adds debug-level logging for the connector-service feature flags
endpoint:
1. **Request**: Logs the endpoint URL and User-Agent header before the
HTTP call
2. **Response**: Logs the full JSON response body on success
This helps diagnose feature flag rollout issues — e.g., which version
the driver reports to connector-service, which flags are returned, and
whether version-gating is filtering expected flags.
Example output at `LogLevel=6`:
```
Fetching feature flags from connector-service: endpoint=https://host/api/2.0/connector-service/feature-flags/OSS_JDBC/3.4.1, User-Agent=DatabricksJDBC/3.4.1 ...
Feature flags response from connector-service (endpoint=...): {"flags":[{"name":"...enableTelemetryForJdbc","value":"true"},...],"ttlSeconds":900}
```
NO_CHANGELOG=true
## Test plan
- [x] DatabricksConnectionContextTest — 131 tests pass
This pull request was AI-assisted by Isaac.
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>1 parent e1a2c53 commit f01fe58
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- src/main/java/com/databricks/jdbc/common/safe
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
| |||
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
38 | 56 | | |
39 | 57 | | |
0 commit comments