This example calls no language model and performs no business action. It sends data to Sentrial,
where your workspace’s processing and usage settings apply. Receiving a trace does not establish
signal accuracy or prove that an agent completed its task.
1. Install the SDK
For guided Node.js setup, run this in your agent project:2. Configure your workspace
Sign in, choose the workspace you want to monitor, and open Settings → API Keys. Supply its key through your terminal or secret manager asSENTRIAL_API_KEY; keep it out of source files and Git.
The key needs sessions:write and events:write to send the example. Reading sessions
through the CLI additionally requires sessions:read and events:read. An ingestion
key does not grant investigation access.
The default API is https://api.sentrial.com. Set SENTRIAL_API_URL only when using a
different Sentrial environment, such as your staging API. A key belongs to one
workspace and environment.
3. Send a first trace
Save the example for your runtime. It calculates2 + 3, records the tool’s actual
input and result, and flushes telemetry before exiting.
success value describes this example’s
execution; it is not a model judgment about business success.
4. Inspect the evidence
Open Telemetry in the same workspace and inspect the session with the printed ID. Check that its input isWhat is 2 + 3?, the add tool received both arguments,
the tool returned 5, and the final output is 5.
If it is missing, confirm the workspace, API origin and write scopes first. An
acknowledged session ID is not proof that every event arrived. Inspect delivery
warnings and missing evidence before trusting the trace. Ingestion options and
coverage explain the available paths.
For terminal inspection, the published Node CLI supports:
5. Connect your agent and inspect a failure
Replace the calculation with your agent’s work. Preserve each real tool result, including errors, pending work and retries; don’t replace it withsuccess: true.
Use a supported framework integration to capture its LLM calls and nested tool
steps, or record them explicitly through the native SDK.
- Python SDK · TypeScript SDK
- LangChain · Vercel AI SDK · Mastra
- Recorded insurance failure and repair

