Installation
Setup
Span attributes
Everyrail.eval() call emits a span with these attributes:
| Attribute | Type | Description |
|---|---|---|
rail.score | float | Overall RAIL score |
rail.confidence | float | Score confidence |
rail.mode | string | basic or deep |
rail.credits_consumed | float | Credits charged |
rail.from_cache | bool | Whether result was cached |
rail.dim.{name}.score | float | Per-dimension score |
rail.dim.{name}.confidence | float | Per-dimension confidence |
Viewing traces
RAIL spans integrate with any OTEL-compatible backend: Jaeger, Tempo, Honeycomb, Datadog, New Relic, or Langfuse.http://localhost:16686 to view traces.