Skip to main content
Query log records emitted while running a job. The logs are lazily loaded and returned as a sequence of log records. Use Collect to transform the sequence into a slice.

Parameters

uuid.UUID
required
The ID of the job to query logs for.
[]job.TelemetryQueryOption
Options for querying logs.

Options

Start the query after the cursor returned by a previous page.
Limit the total number of log records yielded by the sequence.
Sort logs by time. Use job.Ascending for oldest first or job.Descending for newest first.

Returns

A sequence of log records. Each record includes Time, SeverityText, Body, trace IDs, span IDs, and structured attributes.