You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SPOG support: x-databricks-org-id header for telemetry + feature-flag
SPOG (Single Panel of Glass) replaces workspace-specific hostnames with
account-level vanity URLs. When httpPath carries `?o=<workspaceId>`,
endpoints that don't include the workspace in their URL path (telemetry,
feature flags) need the workspace conveyed via the
`x-databricks-org-id` header instead.
Changes:
- Parse `?o=<digits>` out of httpPath in DBSQLClient.connect() and stash
the org-id as `x-databricks-org-id` on a new `ClientConfig.customHeaders`
field. A user-supplied `customHeaders` entry (case-insensitive) takes
precedence.
- DatabricksTelemetryExporter spreads `config.customHeaders` into the
outgoing POST headers. Auth headers still win on collision.
- FeatureFlagCache does the same for the feature-flag GET.
Not applicable to this driver (vs JDBC port in
databricks/databricks-jdbc#1316):
- httpPath property parser fix — Node.js passes `options.path` through
unmodified.
- Warehouse ID regex fix for SEA — driver uses Thrift only.
- DBFS Volume header injection — driver exposes no Volume API.
OAuth/OIDC token requests deliberately do NOT receive customHeaders.
Co-authored-by: Isaac
0 commit comments