cognis-trace translates Cognis runtime events into spans, generations, and scores, then ships them to one or more exporters. Langfuse is the supported production backend; stdout and mock exporters ship for local use; OpenTelemetry support is on the roadmap.
Crate metadata
Modules at a glance
Key types
TracingHandler
CallbackHandler. Use as an Observer via cognis_core::HandlerObserver(handler).
TracingHandlerBuilder
Exporters
TraceExporter:
Cost
TraceMeta
Langfuse prompt client
Scores
LangfuseScorer::new(LangfuseConfig::from_env()?)? is a built-in ScoreSink.
Feature flags
See also
Trace with Langfuse
User guide.
Cost tracking
Pricing.
Prompts and scores
Versioned prompts and eval scores.