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

Parameters

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

Options

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

Returns

A sequence of spans. Each span includes StartTime, Name, StatusCode, Attributes, and Duration().