SDK
The Rius SDK is OpenTelemetry-native tracing for AI agents: non-blocking by design, privacy-aware at export time, and speaking the OpenTelemetry GenAI conventions.
Python ships as glassflow-rius and TypeScript as
@glassflow-ai/rius; every page here shows both side by side. Because the
SDK emits standard OpenTelemetry, any other language can send traces through
interoperability without a native SDK.
Python
pip install glassflow-riusimport rius
rius.init(api_key="gf_...", service_name="my-agent")
@rius.observe
def handle(query: str) -> str:
...Find what you need
| Task | Go to |
|---|---|
| Trace a function with one line | observe |
| Record an LLM call with model, tokens, and cost | Generations |
| Measure time to first token when streaming | Streaming responses |
| Instrument OpenAI, Anthropic, LangChain, … automatically | Integrations |
| Set the API key, endpoint, or any option | Configuration |
| Reduce trace volume in production | Sampling |
| Keep prompts or PII from leaving my process | Privacy controls |
| Flush traces in a Lambda, CLI, or batch job | Short-lived processes |
| Find out why traces are not appearing | Troubleshooting |
| Look up a signature | Python reference |
The Python reference is generated from the SDK’s docstrings, so it always matches the pinned release.
Last updated on