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="ri_...", 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 |
| Group the traces of one conversation or job | Sessions |
| Serve several customers’ workspaces from one process | Workspace scopes |
| 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, TypeScript reference |
Both references are generated from the SDKs’ doc comments, so they always match the pinned release of each package.
Last updated on