Skip to main content
Scalekit AgentKit gives agents access to tools that act on a user’s connected accounts. Wrap each executeTool call with OpenInference’s traceTool helper to see the tool input, result, and status in Arize AX. If the call happens while an instrumented model span is active, the tool span is nested under that model span.

Prerequisites

  • A Node.js application using Scalekit AgentKit’s Node SDK
  • A Scalekit Development environment, connection, and active connected account
  • An Arize AX account with a Space ID and API key
  • An instrumented model client if you want tool calls nested under model spans

Install

Install OpenTelemetry and the Scalekit SDK:

Configure credentials

Set the credentials in the environment where your Node application runs:

Setup tracing

Register the tracer provider before constructing your model client or running your agent. This example uses the US AX endpoint; for an EU account, replace it with https://otlp.eu.arize.com/v1/traces.

Trace tool calls

Wrap Scalekit’s client.actions.executeTool with traceTool. It creates the TOOL span and records the call arguments and result by default. Set the span name from toolName; the input also includes the connector and identifier. Discover available tool names and schemas with Scalekit’s tool listing.

Run

Call a read-only tool from your agent. Confirm the tool name and input schema in your Scalekit environment; the example below uses GitHub issue lookup.
Run the example with:
Open the project named by ARIZE_PROJECT_NAME in AX. The tool span should include the connector, tool name, input, and output. When model tracing is enabled, it should appear beneath the active model or agent span. Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.
Install the Arize Skills plugin and let your coding agent check for you:
Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.

Resources

Scalekit execute a tool

Scalekit connectors

Scalekit tracing demo