Skip to Content
RiusSDKUpgrading to 1.0

Upgrading to 1.0

Version 1.0.0 of both SDKs, glassflow-rius for Python and @glassflow-ai/rius for TypeScript, finishes the move from the GlassFlow name to Rius and brings span names in line with the OpenTelemetry GenAI conventions. The package names, the Python import (rius), and the supported runtimes (Python 3.10+, Node 18+) are unchanged.

1.0.0 needs the Rius platform release of 2026-09-29 or later, which reads the new rius.span.pending attribute. The hosted platform already runs it.

Python: rename your GLASSFLOW_* environment variables first. 1.0.0 reads only RIUS_* names. A GLASSFLOW_API_KEY or GLASSFLOW_ENDPOINT left in the environment is ignored, and with no API key the SDK exports nothing. The TypeScript SDK never read the old names.

Upgrade checklist

  1. Rename environment variables from GLASSFLOW_* to RIUS_*, for example GLASSFLOW_API_KEY to RIUS_API_KEY and GLASSFLOW_ENDPOINT to RIUS_ENDPOINT (Python only).

  2. Upgrade the package:

    pip install --upgrade "glassflow-rius>=1,<2" npm install @glassflow-ai/rius@^1

    This installs the newest 1.x release, which also includes the changes in 1.x releases.

  3. TypeScript with the Anthropic OpenInference instrumentation: upgrade @arizeai/openinference-instrumentation-anthropic to ^0.2.7 or later, the first version that reports prompt-cache tokens.

  4. Review saved searches, alerts, and dashboards that match on span names, operation names, or gen_ai.request.* keys. The tables below list what moved.

  5. If you run Langfuse, Traceloop, Logfire, MLflow, OpenLIT, or Laminar in the same process, decide whether to turn on the foreign provider bridge.

Breaking changes

What changedWhat to do
Python no longer reads GLASSFLOW_* environment variables.Rename them to RIUS_*.
The pending-span attribute is rius.span.pending, not glassflow.span.pending.Update any code that imports the constant.
The tracer scope is rius, not glassflow.Update collector or processor rules that filter on the instrumentation scope.
Unnamed spans follow the GenAI conventions: chat {model}, embeddings {model}, execute_tool {tool}, invoke_agent {agent}, retrieval {data_source}. CHAIN spans keep the function name, and an explicit name still wins.Update saved searches, alerts, and dashboards keyed on span name, or pass an explicit name.
RETRIEVER spans carry gen_ai.operation.name="retrieval" and accept data_source_id= (dataSourceId in TypeScript).Update filters on the old operation name.
model_parameters (modelParameters) maps 43 aliases onto 15 standard gen_ai.request.* keys. Other keys go under rius.request.*.Filter on the standard keys, or on rius.request.<key> for the rest.
TypeScript: the @arizeai/openinference-instrumentation-anthropic peer needs ^0.2.7.Upgrade that peer dependency.

Request parameters that moved

A parameter the GenAI conventions do not define no longer lands under gen_ai.request.*. The most common one is response_format:

0.x1.0
gen_ai.request.response_formatrius.request.response_format, as compact JSON
gen_ai.request.tool_choicerius.request.tool_choice
gen_ai.request.max_completion_tokensgen_ai.request.max_tokens
gen_ai.request.stopgen_ai.request.stop_sequences

See Request parameters for the full mapping rules.

Behavior changes

  • Tool names. Python TOOL spans take tool_name=, and the TypeScript span helpers take toolName, so the tool name no longer comes from the span name. In Python the old form still works but emits a DeprecationWarning.
  • Attribute limit. A span can carry up to 4096 attributes, up from 128, so long agent spans keep their model, tools, usage, and system prompt. An OTEL_* attribute-count limit you set yourself still wins. See Span attribute limit.
  • Content capture. With content capture off, the OpenInference request-parameter bag (llm.invocation_parameters) is treated as content and is not sent. Embedding vectors are no longer exported by the Python SDK.
  • OpenInference spans are normalized to the GenAI conventions inside the SDK, so query the canonical keys, for example gen_ai.usage.input_tokens rather than llm.token_count.prompt.

Other OpenTelemetry SDKs in the same process

When Langfuse, Traceloop, Logfire, MLflow, OpenLIT, or Laminar owns the global tracer provider, Rius can bridge it, so that their spans, often the parents of your LLM calls, reach Rius too. The bridge is off by default. Turn it on with:

export RIUS_BRIDGE_FOREIGN_PROVIDER=1

or in code with bridge_foreign_provider=True (Python) or bridgeForeignProvider: true (TypeScript). Spans whose parent Rius never saw are flagged rius.parent.foreign either way.

With content capture off, the content keys those SDKs write are stripped too: Langfuse, Traceloop, Logfire, MLflow, and OpenLIT in Python, and Laminar’s lmnr.* keys in both SDKs.

Also new in 1.0

  • Context-size attribution on LLM spans, which feeds the context usage view.
  • record_exception, agent_name and agent_id, the RIUS_MAIN_AGENT_* environment variables, time to first token on auto-instrumented streams that record it, the response id, and service.version.

The full list is in each SDK’s changelog on GitHub: Python  and TypeScript .

1.x releases

The 1.x releases after 1.0.0 need no code changes, but some of them change what is stored, so review saved searches, alerts, and dashboards that match on these values. Each SDK’s changelog lists every release: Python  and TypeScript .

What changedPythonTypeScriptWhat to do
Wrapper spans no longer double-count a model call’s usage (LangChain chat models, LiteLLM, LlamaIndex, the Vercel AI SDK).1.0.2 (LiteLLM), 1.1.0 (LangChain), 1.1.1 (LlamaIndex)1.1.0 (Vercel AI SDK on ai 7), 1.2.0 (LangChain, Vercel AI SDK on ai 5 and 6)If you limited instruments=[...] to one layer, you can enable both again, unless your setup is still counted twice. Saved queries on a wrapper’s usage read rius.aggregated_usage.*.
A string passed as input or output (set_input, set_output, an observe return value) is stored as-is instead of JSON-quoted, matching TypeScript.1.1.0Already the caseUpdate text searches that matched the quoted form, such as "Paris".
A LiteLLM routing prefix that names the provider is dropped from the model: openai/gpt-4o-mini is stored as gpt-4o-mini.1.0.11.1.0Update model filters that matched the prefixed form.
Vercel AI SDK ai 5 and 6 spans are mapped natively, and client.ready lists vercel-ai only on ai 7.n/a1.2.0Uninstall @arizeai/openinference-vercel. See Vercel AI SDK.
The @arizeai/openinference-instrumentation-openai peer needs ^4.4.1.n/a1.1.0Upgrade that peer dependency.
The resource also carries gen_ai.main_agent.id, gen_ai.main_agent.name, and gen_ai.main_agent.description; rius.main_agent.id, .name, and .description are deprecated but still sent.1.2.01.3.0Set main_agent_id (mainAgentId) if gen_ai.main_agent.id should survive a rename, since it otherwise falls back to the agent name. Keep saved queries on rius.main_agent.* for now: the platform still names agents from rius.main_agent.name, older SDKs send only the rius.* keys, and gen_ai.main_agent.id can hold the agent name where rius.main_agent.id never does. See Naming your agent.
The Vercel AI SDK’s decide, speech, and transcription spans (@ai-sdk/otel) are classified as LLM spans.1.3.01.4.0Update span-kind filters that expected them under another kind.
The Rius SDKs no longer emit the gen_ai.first_token span event (the platform still reads it from other sources). Time to first token is the gen_ai.response.time_to_first_chunk attribute.1.3.11.4.1Move queries on the event to the attribute. See Attributes.
Inline media in messages, such as a data URL or base64 image, leaves the SDK as a semconv blob, uri, or file part with the bytes stripped.1.4.01.5.0Update text searches that matched the raw media payload.
A boolean environment variable set to an unrecognized value, including an empty one, keeps its default with a warning instead of reading as false, so RIUS_CAPTURE_CONTENT=disabled now leaves content capture on.1.5.10.1.0If you turn off RIUS_CAPTURE_CONTENT, RIUS_HEARTBEAT, or another default-on flag with any other value, change it to false.
With content capture on, a mask also runs over exception.message and exception.stacktrace, and a mask that throws drops the attribute instead of writing [mask error].Already the case1.7.0Update saved searches that matched [mask error], and check that your mask handles error text. See Privacy controls.

Smaller additions in the same releases, with nothing to do: the LangChain chat model call nests its provider span instead of starting a trace of its own, a new RERANKER span kind for reranking steps (see Tracing functions with observe), spans that had no provider now name one, time to first token for Pydantic AI and the Vercel AI SDK’s @ai-sdk/otel, Pydantic AI reasoning tokens, LlamaIndex request model and max tokens, tool definitions stored once, OpenAI embeddings token counts in TypeScript, and mcp.protocol.version on every MCP transport in TypeScript. TypeScript 1.1.0 also adds the instrumentModules option for pnpm apps on file-tracing hosts; see pnpm and serverless deployments.

Next steps

Last updated on