Skip to content

Commit e2dcbf2

Browse files
feat: add CI support for governance_observability
Adds run.sh with step-labelled execution of all three scripts. Fixes agent_tracing.py to hard-fail on missing OPIK_WORKSPACE at module load (consistent with use_case_team.py and data_governance_team.py). Adds .gitignore for generated governance_extract_*.json output files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8f91cb3 commit e2dcbf2

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
governance_extract_*.json

use-cases/governance_observability/agent_tracing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
import opik
3535
from opik import opik_context
3636

37-
PROJECT_NAME = os.environ.get("OPIK_PROJECT_NAME", "governance-data-demo")
37+
WORKSPACE = os.environ["OPIK_WORKSPACE"]
38+
PROJECT_NAME = os.environ.get("OPIK_PROJECT_NAME", "governance-data-demo")
3839

3940
# Tag applied to every trace. The oversight/reporting team filters on this tag
4041
# to identify which traces belong to the governance programme.
@@ -161,4 +162,4 @@ def run_agent(
161162

162163
opik.flush_tracker()
163164
print("Done. Traces are visible in the Opik UI under the project:")
164-
print(f" https://www.comet.com/opik/{os.environ['OPIK_WORKSPACE']}/{PROJECT_NAME}/traces")
165+
print(f" https://www.comet.com/opik/{WORKSPACE}/{PROJECT_NAME}/traces")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
export OPIK_PROJECT_NAME="governance-observability"
5+
6+
uv sync
7+
8+
echo "--- Step 1: agent tracing ---"
9+
uv run python agent_tracing.py
10+
11+
echo "--- Step 2: use case team ---"
12+
uv run python use_case_team.py
13+
14+
echo "--- Step 3: data governance team ---"
15+
uv run python data_governance_team.py

0 commit comments

Comments
 (0)