Skip to content
Spinbox is experimental: APIs change and data may be lost. Status lists what is built and what proves it.

LogService

View Markdown

LogService is what the installation logged, as its store of logs and traces keeps it. (internal/logstore). Every search is confined by the control plane to what the caller may see; what the caller types is searched inside that and cannot widen it.

POST /spin.v1.LogService/GetTrace

GetTrace is every span of one trace, in the order they began.

Request

FieldTypeWhat it is
traceIdstringHex, as a log record carries it.

Response

FieldTypeWhat it is
spanslist of Span

POST /spin.v1.LogService/HistogramPlatformLogs

HistogramPlatformLogs is how many of those records each interval of the window holds, by severity: the chart above them.

Request

FieldTypeWhat it is
querystring
fromTimestamp
toTimestamp
intervalsinteger (int32)How many intervals to split the window into: 1 to 200, 60 when unset. Each is at least a second.

Response

FieldTypeWhat it is
intervalslist of LogInterval

POST /spin.v1.LogService/HistogramWorkspaceLogs

HistogramWorkspaceLogs is how many of those records each interval of the window holds.

Request

FieldTypeWhat it is
workspaceIdstring
querystring
fromTimestamp
toTimestamp
intervalsinteger (int32)

Response

FieldTypeWhat it is
intervalslist of LogInterval

POST /spin.v1.LogService/ListLogIndexes

ListLogIndexes is every index the store keeps, as the store itself reports it: its fields, how long it keeps what it holds and how much it holds. An administrator’s: how much each index holds is how busy the installation and its workspaces are.

Request

No fields: {}.

Response

FieldTypeWhat it is
indexeslist of LogIndex

POST /spin.v1.LogService/PlatformLogFieldValues

PlatformLogFieldValues is what one field most often is in the records a search of the platform’s logs finds: service_name, severity_text, attributes.* or resource_attributes.*.

Request

FieldTypeWhat it is
fieldstring
querystring
fromTimestamp
toTimestamp
limitinteger (int32)How many values, the commonest first: 1 to 100, 10 when unset.

Response

FieldTypeWhat it is
valueslist of FieldValue
otherstring (int64)How many records the search found with a value not among these.

POST /spin.v1.LogService/SearchPlatformLogs

SearchPlatformLogs is what the installation’s own processes logged - the control plane, the proxy, the runners. An administrator’s: a platform’s log names every workspace it touched.

Request

FieldTypeWhat it is
querystringQuickwit’s query language (https://quickwit.io/docs/reference/query-language). Empty is every record in the window.
fromTimestampThe window, both ends included. Unset to is now; unset from is an hour before to.
toTimestamp
limitinteger (int32)How many records: 1 to 1000, 100 when unset.
offsetinteger (int32)How many to skip from the first: the page after the first. With limit, at most 10000.
oldestFirstbooleanThe oldest first rather than the newest: the window read as it happened.

Response

FieldTypeWhat it is
recordslist of LogRecord
totalstring (int64)How many records the window holds that match, of which records is the newest limit.

POST /spin.v1.LogService/SearchTraces

SearchTraces is the installation’s traces whose first span matches, newest first. An administrator’s, as the platform’s logs are.

Request

FieldTypeWhat it is
querystringQuickwit’s query language, over each trace’s first span: service_name, span_name, span_attributes.*, span_status.code. Empty is every trace in the window.
fromTimestamp
toTimestamp
limitinteger (int32)1 to 1000, 100 when unset.
anySpanbooleanSearch every span rather than each trace’s first: a workspace’s creation is the control plane’s span inside a trace the browser began, and span_name or span_attributes.spin.workspace_id finds it only among all of them. Each span found is listed, and opens its whole trace.
offsetinteger (int32)As SearchPlatformLogsRequest’s.

Response

FieldTypeWhat it is
rootslist of Span
totalstring (int64)

POST /spin.v1.LogService/SearchWorkspaceLogs

SearchWorkspaceLogs is what one workspace’s machine wrote to its console, where the installation collects it: whoever may read the workspace’s console may search it.

Request

FieldTypeWhat it is
workspaceIdstring
querystringAs SearchPlatformLogsRequest’s: searched inside the workspace, never beyond it.
fromTimestamp
toTimestamp
limitinteger (int32)
offsetinteger (int32)As SearchPlatformLogsRequest’s.
oldestFirstbooleanAs SearchPlatformLogsRequest’s.

Response

FieldTypeWhat it is
recordslist of LogRecord
totalstring (int64)

POST /spin.v1.LogService/ServiceHealth

ServiceHealth is how each of the installation’s services did over a window, as its traces and logs say it. An administrator’s, as the traces are.

Request

FieldTypeWhat it is
fromTimestamp
toTimestamp
intervalsinteger (int32)As HistogramPlatformLogsRequest’s.

Response

FieldTypeWhat it is
serviceslist of ServiceHealth

POST /spin.v1.LogService/WorkspaceLogFieldValues

WorkspaceLogFieldValues is the same of one workspace’s, for whoever may read it.

Request

FieldTypeWhat it is
workspaceIdstring
fieldstring
querystring
fromTimestamp
toTimestamp
limitinteger (int32)

Response

FieldTypeWhat it is
valueslist of FieldValue
otherstring (int64)

Generated by task reference from spin/internal/controlplane/apidocs/spin.v1.openapi.json at 8eee32b9d.

Documents Spinbox v20261019.02. This page as Markdown, for a model or a terminal.