Supported backends
Out of the box, Aegra supports:- Langfuse — Production-grade LLM observability
- Arize Phoenix — Local debugging and evaluation
- Generic OTLP — Any compatible backend (Jaeger, Honeycomb, Datadog, etc.)
Configuration
Tracing is configured entirely through environment variables in your.env file.
Enable tracing
Set theOTEL_TARGETS variable to a comma-separated list of backends:
Provider configuration
- Langfuse
- Arize Phoenix
- Generic OTLP
Fan-out to multiple backends
Send traces to multiple backends at once by listing them inOTEL_TARGETS:
BatchSpanProcessor instances.
How it works
Aegra uses a pure OpenTelemetry approach:- Auto-instrumentation captures LangGraph steps automatically using
openinference-instrumentation-langchain - Singleton provider is initialized once during application startup
- Fan-out sends the same trace data to all configured exporters via
BatchSpanProcessor
Key environment variables
The main variables you’ll need:| Variable | Description |
|---|---|
OTEL_TARGETS | Comma-separated list of backends: LANGFUSE, PHOENIX, GENERIC |
OTEL_SERVICE_NAME | Service name for traces (default: aegra-backend) |
OTEL_CONSOLE_EXPORT | Log traces to console (true/false) |