@glassray/tracing is Glassray’s zero-dependency tracing SDK for TypeScript and JavaScript agents. If your agent isn’t instrumented with anything yet, this is the fastest way in: install, set a key, wrap the entrypoint - every run lands as a full trace.
Already instrumented? You may not need the SDK - connect Langfuse, LangSmith, or PostHog as a pull source, or point an existing OTel exporter at Glassray (read Bring your own OTel first).
Install the SDK
Zero runtime dependencies; Node 18+.
Create a source and copy the key
In the dashboard, go to Settings → Trace sources and add an OpenTelemetry source. Glassray mints a write-scoped API key and shows it once, alongside a copy-ready SDK snippet with the key pre-filled.
The key is write-only (
traces:write) - code holding it can send traces but can never read data back.Set the key
Wrap your agent
See the trace
Run your agent, then open Traces in the dashboard. The run appears with its LLM calls, tool calls, inputs/outputs, timing, and token usage - and Glassray starts classifying it into flows and scanning for deviations, exactly as it does for pulled traces.
Next steps
Instrumenting your agent
The three instrumentation modes, LLM/tool/span helpers, sessions, usage, and errors.
Metadata
Attach customer, agent, and flow so every trace is filterable.
Configuration reference
Every constructor option and environment variable, in one table.
Troubleshooting
The “no traces appearing” checklist.