examples/observability/.
How to run
See also
Callbacks & observers
The user guide.
Trace with Langfuse
Production observability.
Evaluation
Datasets, scorers, reports.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Observers for debugging, evaluation harness for CI, pre-flight provider health checks.
examples/observability/.
| Name | Scenario | Source |
|---|---|---|
obs_event_system | Add lightweight LLM-call timing logs without changing the chain code — attach a TimedLogger Observer. | src |
obs_evaluation | Regression eval — given 5 known (question, expected_answer) pairs, score the agent. Run in CI. | src |
obs_health_monitoring | Pre-flight provider check — verify the LLM is reachable at startup; fail fast with a clear error. | src |
COGNIS_PROVIDER=ollama COGNIS_OLLAMA_MODEL=llama3.1 \
cargo run -p cognis-examples --example obs_evaluation