update report h6

This commit is contained in:
thanhnv
2026-07-20 23:47:09 +07:00
parent f462079435
commit 4b6819f578
38 changed files with 1244 additions and 62 deletions
@@ -1063,7 +1063,11 @@ def audit(job: dict, status: str) -> str:
def metric(job: dict, status: str, started: float, local_meta: dict, cloud_meta: dict) -> None:
append_jsonl(os.path.join(STATE_ROOT, "logs", "cost", "metrics.jsonl"), {
metrics_path = os.environ.get(
"CASAN_TELEMETRY_METRICS_LOG",
os.environ.get("CASAN_DASHBOARD_METRICS", os.path.join(STATE_ROOT, "logs", "cost", "metrics.jsonl")),
)
append_jsonl(metrics_path, {
"timestamp": now(),
"trace_id": job["id"],
"harness": "H6-agentops",