Full Observability: OTel Tracing + Deterministic Replay + Regression Evals#9
Open
hoangsonww with Copilot wants to merge 3 commits into
Open
Full Observability: OTel Tracing + Deterministic Replay + Regression Evals#9hoangsonww with Copilot wants to merge 3 commits into
hoangsonww with Copilot wants to merge 3 commits into
Conversation
Author
|
@hoangsonww 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…g and deterministic replay Co-authored-by: hoangsonww <124531104+hoangsonww@users.noreply.github.com>
Co-authored-by: hoangsonww <124531104+hoangsonww@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Full Observability: OTel Tracing + Deterministic Replay + Regression Evals
Full Observability: OTel Tracing + Deterministic Replay + Regression Evals
Sep 9, 2025
hoangsonww
marked this pull request as ready for review
September 9, 2025 03:38
hoangsonww
approved these changes
Sep 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements comprehensive observability capabilities for the agentic AI pipeline, adding OpenTelemetry tracing, deterministic replay functionality, and a regression evaluation framework.
Key Features
🔍 OpenTelemetry Tracing
agent.plan,agent.decide,agent.act,agent.tools,agent.reflect,agent.finalize)🔄 Deterministic Replay
data/traces/📊 Regression Evaluation Framework
Architecture Highlights
The implementation follows a non-intrusive design - observability is added as a cross-cutting concern without modifying core business logic:
Usage Examples
Production Ready Features
Files Added/Modified
Core Infrastructure:
src/agentic_ai/infra/tracing.py- OpenTelemetry setup with fallback handlingsrc/agentic_ai/infra/metrics.py- Metrics recording for performance analysissrc/agentic_ai/memory/trace_store.py- JSONL-based trace storage systemInstrumentation:
src/agentic_ai/layers/reasoning.py- All LangGraph nodes instrumented with spanssrc/agentic_ai/layers/tools.py- TracedToolNode wrapper for tool execution tracingsrc/agentic_ai/app.py- FastAPI middleware for trace context propagationReplay & CLI:
src/agentic_ai/llm/replay_llm.py- Deterministic LLM for conversation replaysrc/agentic_ai/cli.py- Command-line interface for trace managementEvaluation Framework:
tests/evals/tasks.yaml- Golden task definitions with structured checkstests/evals/checks.py- Comprehensive evaluation functionstests/evals/runner.py- Evaluation runner with JUnit XML outputObservability Stack:
observability/docker-compose.jaeger.yaml- Jaeger + OTEL collector setup.github/workflows/eval.yml- CI workflow for automated regression testingThis implementation provides enterprise-grade observability for AI agent systems while maintaining backward compatibility and developer experience.
Fixes #6.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
us.i.posthog.compython -m agentic_ai.cli --help(dns block)python -m agentic_ai.cli list-traces(dns block)python -c from tests.evals.REDACTED import EvaluationRunner; print('Evaluation REDACTED imports successfully')(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.