Skip to content

Commit 03c17a2

Browse files
committed
[llm_d] postprocess: llm_d: parsing/kpis: add back the metadata
1 parent 7f7e696 commit 03c17a2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • projects/llm_d/postprocess/llm_d/parsing

projects/llm_d/postprocess/llm_d/parsing/kpis.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def _extract_labels(record) -> dict[str, Any]:
4747

4848
LABEL_EXTRACTOR = type("TestLabelExtractor", (), {"extract": _extract_labels})()
4949

50-
# Metadata fields to include in KPI records but not as labels
51-
@staticmethod
52-
def extract_metadata(record) -> dict[str, Any]:
53-
"""Extract metadata fields for KPI records."""
54-
config = record.metrics.get("configuration", {})
55-
return {
56-
"configuration": config,
57-
"run_path": record.test_base_path,
58-
}
50+
# Metadata fields to include in KPI records but not as labels
51+
@staticmethod
52+
def extract_metadata(record) -> dict[str, Any]:
53+
"""Extract metadata fields for KPI records."""
54+
config = record.metrics.get("configuration", {})
55+
return {
56+
"configuration": config,
57+
"run_path": record.test_base_path,
58+
}
5959

6060
@staticmethod
6161
def get_catalog() -> list[KpiCatalogEntry]:

0 commit comments

Comments
 (0)