Inspector
Get Traces
Get actor trace spans in OTLP JSON format.
The inspector API is subject to change without notice. Do not build production integrations on it.
Trace collection is not implemented yet, so this route currently returns an empty result.
GET https://rivet.example.com/gateway/{actor}/inspector/traces
Examples
curl "https://rivet.example.com/gateway/$ACTOR_ID/inspector/traces?startMs=0&limit=100" \
-H "Authorization: Bearer $INSPECTOR_TOKEN"
Authentication
Inspector endpoints do not accept namespace tokens. Send the actor’s inspector token as a bearer token in the Authorization header.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
actor | string | Yes | Actor ID, actor ID with an inline token ({actor_id}@{token}), or actor name combined with the rvt-* query parameters. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startMs | integer | No | Start of time range in epoch milliseconds |
endMs | integer | No | End of time range in epoch milliseconds. Defaults to now. |
limit | integer | No | Maximum number of spans to return |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | No | Bearer token for inspector authentication. Required in production, optional in development. |
Actor Selector
{actor} accepts an actor ID, an actor ID with an inline routing token ({actor_id}@{token}), or an actor name combined with the rvt-* query parameters below. See Actor Routing for the full rules.
Responses
200
Trace data and whether the requested range was clamped.
| Field | Type | Description |
|---|---|---|
otlp | object | |
clamped | boolean |
{
"otlp": {},
"clamped": false
}
401
The inspector token is missing or invalid.