Documentation
Tracing and exports
View .mdOpenAPI

List trace destinations

GEThttps://weights.fyi/run/v1/trace-sinksscope: manage
text
GET https://weights.fyi/run/v1/trace-sinks
Authorization: Bearer <token>                    scope: manage
Available since
2026-10-08, when the service went live on weights.fyi/run.
Answer time
synchronous: the destinations and their delivery counts are read from the service's own records and answered at once.

Lists the trace destinations of your account, oldest first, each with what it has received and what still waits for it. This is the call that tells you whether your traces are arriving. A destination that works shows delivered growing and backlog near zero; one that does not shows a growing backlog, and its last_error says what your end answered, or that it did not answer at all.

Delivery never drops a span, so a destination that was down keeps everything that ended meanwhile, in order, and receives it when it is back. The backlog is that waiting work: backlog counts the spans, backlog_oldest_at says how far back the oldest one goes, and next_try_at says when the service will try again; the wait between tries grows from 1 s to at most 64 s, or longer when your end asks for it with Retry-After. An error stays on record after the destination recovers, so compare the two times: when last_ok_at is later than last_error_at, the error is past. enabled says whether the destination receives spans at all. It is false while your account's Tracing and tracking option is off, which you switch on your panel, /app, under Tracing; while it is off, nothing new is queued, and what was queued before waits. Tracing and tracking is free today: its fee per job is $0.00. The list shows header names only: the values you set are secrets, used for delivery and never shown back, and a webhook's signing secret was shown once, when you added it.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the manage scope.

Return value

200 OK with one field, sinks: a list of your destinations, oldest first. Each entry has these fields:

FieldMeaning
idThe destination's number, the sink_id the other calls take.
account_idYour account's number.
nameThe name you gave it.
kindotlp_http, mlflow or webhook.
urlThe address you gave; the OpenTelemetry kinds deliver to it with /v1/traces added.
header_namesThe names of the headers you set, sorted, without their values.
include_outputsWhether each page's result is sent with the spans of calls to the model.
enabledtrue when it receives spans, false while it is paused.
created_atWhen it was added; it receives only spans that ended after this moment.
deliveredHow many spans it has received.
backlogHow many spans wait for it.
backlog_oldest_atWhen the oldest waiting span was queued, or null when nothing waits.
next_try_atWhen the oldest waiting span will next be sent, or null when nothing waits.
last_ok_atWhen a delivery last succeeded, or null if none has yet.
last_errorThe last delivery's error, as a short code that holds nothing of the spans: http_401 for a status your end answered, deadline_exceeded when it did not answer within 10 s, redirect_302_not_followed, connection_refused, tls_verify_failed, address_not_public and the like. null if no delivery has failed.
last_error_atWhen that error happened, or null.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks manage, or the account is suspended.Use a token with manage.

Examples

sh
curl -s https://weights.fyi/run/v1/trace-sinks -H "Authorization: Bearer $WEIGHTS_API_KEY"

A collector that refused one delivery with 401 and has taken everything since:

json
{
  "sinks": [
    {
      "id": 1,
      "account_id": 1,
      "name": "prod collector",
      "kind": "otlp_http",
      "url": "https://collector.example.org",
      "header_names": ["Authorization"],
      "include_outputs": false,
      "enabled": true,
      "created_at": "2026-10-09T09:12:40.118Z",
      "delivered": 214,
      "backlog": 0,
      "backlog_oldest_at": null,
      "next_try_at": null,
      "last_ok_at": "2026-10-09T09:41:07.902Z",
      "last_error": "http_401",
      "last_error_at": "2026-10-09T09:20:15.331Z"
    }
  ]
}

History

  • 2026-10-08: live with the service, with the delivered count, the backlog and the last error of each destination.
  • 2026-10-08: enabled follows the Tracing and tracking option: false for every destination while it is off.

See also