diff --git a/CHANGELOG.md b/CHANGELOG.md index 3685926a..6d6f0ff1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ ### Breaking Changes +- **Config file renamed** (HYBIM-918): The on-disk credentials file written to + `~/.galileo/` has been renamed from `galileo-python-config.json` to + `splunk-ao-config.json`. Users with an existing saved config must either rename + the file manually or delete it and re-authenticate. + - `SplunkAOLogger.flush()` and `async_flush()` now return `None` and only drain completed spans already queued for OTLP export. They no longer conclude open spans or return uploaded proprietary trace objects. diff --git a/splunk-ao-migration-tool/README.md b/splunk-ao-migration-tool/README.md index 66ed85f4..b9e1261c 100644 --- a/splunk-ao-migration-tool/README.md +++ b/splunk-ao-migration-tool/README.md @@ -338,6 +338,16 @@ The `GalileoScorers` enum has been removed entirely. Migrate to `SplunkAOMetrics + scorer = SplunkAOMetrics.completeness ``` +### 5.3 On-Disk Config File Renamed + +The SDK credentials file written to `~/.galileo/` has been renamed: + +| Old | New | +|-----|-----| +| `~/.galileo/galileo-python-config.json` | `~/.galileo/splunk-ao-config.json` | + +If you have saved credentials on disk, either rename the file manually or delete it and re-authenticate by running your code once. + --- ## 6. HTTP Tracing Headers @@ -420,13 +430,13 @@ The following are **unchanged** between galileo and splunk-ao and require no mig - Optional extra names (`[langchain]`, `[openai]`, `[otel]`, `[all]`, etc.) - `TracingMiddleware` class name - `OPENAI_API_KEY` environment variable -- On-disk config file name: `galileo-python-config.json` - Default console/API URLs (`https://app.galileo.ai/`, `https://api.galileo.ai/`) --- ## 9. Migration Checklist +- [ ] Rename on-disk config file: `~/.galileo/galileo-python-config.json` → `~/.galileo/splunk-ao-config.json` (or delete it and re-authenticate) - [ ] Update Python to **≥ 3.11** - [ ] Replace `galileo` with `splunk-ao` in `requirements.txt` / `pyproject.toml` - [ ] Add `grpcio>=1.80.0,<2.0.0` if using the `otel` extra (or use `splunk-ao[otel]`) diff --git a/src/splunk_ao/config.py b/src/splunk_ao/config.py index c9acdf4c..e7c583f3 100644 --- a/src/splunk_ao/config.py +++ b/src/splunk_ao/config.py @@ -71,7 +71,7 @@ class SplunkAOConfig(GalileoConfig): """Configure authentication and endpoints for standalone and O11y deployments.""" # Config file for this project. - config_filename: str = "galileo-python-config.json" + config_filename: str = "splunk-ao-config.json" console_url: Url = DEFAULT_CONSOLE_URL _instance: ClassVar[Optional["SplunkAOConfig"]] = None diff --git a/tests/test_config.py b/tests/test_config.py index 34834e17..cbe50db7 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -341,3 +341,7 @@ def test_reset_removes_all_bridgeable_galileo_vars() -> None: f"reset() is expected to remove {galileo_key} " f"(bridge owns all GALILEO_* keys; no SDK consumer sets them directly)" ) + + +def test_config_filename_default() -> None: + assert SplunkAOConfig.model_fields["config_filename"].default == "splunk-ao-config.json"