Skip to content

feat(export): expose include_code_metric_metadata on export_records (HYBIM-788)#73

Open
etserend wants to merge 1 commit into
mainfrom
feat/HYBIM-788-port-e42a569
Open

feat(export): expose include_code_metric_metadata on export_records (HYBIM-788)#73
etserend wants to merge 1 commit into
mainfrom
feat/HYBIM-788-port-e42a569

Conversation

@etserend

@etserend etserend commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Port of upstream commit e42a569 from rungalileo/galileo-python (#587) — first commit in the HYBIM-788 migration, applied in chronological order.

  • Adds include_code_metric_metadata: bool = False param to ExportClient.records() and module-level export_records()
  • When True, includes per-row scorer metadata (the dict returned by code-based scorers via the (score, metadata) tuple-return contract) on each MetricSuccess in the export — off by default to keep payloads small
  • Patches LogRecordsExportRequest model (log_records_export_request.py) to carry the new field through to_dict() / from_dict()
  • Adds 2 tests: default-False and opt-in-True

Namespace translation applied

All galileo.* references rewritten to splunk_ao.* per HYBIM-788 translation rules. galileo-core and galileo_core.* intentionally unchanged (external dep).

Test plan

  • poetry run pytest tests/test_export.py -v — 17/17 passed
  • poetry run ruff check src/splunk_ao/export.py tests/test_export.py — clean

Part of

HYBIM-788 — commits applied in order: 1 of 3 (e42a569 → fa93ab2 → 6ccd06a)

…HYBIM-788)

Port upstream commit e42a569 from rungalileo/galileo-python.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@etserend etserend marked this pull request as ready for review July 9, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant