MCPcopy Create free account
hub / github.com/dagger/dagger / SelectSpan

Method SelectSpan

engine/clientdb/queries.sql.go:405–432  ·  view source on GitHub ↗
(ctx context.Context, arg SelectSpanParams)

Source from the content-addressed store, hash-verified

403}
404
405func (q *Queries) SelectSpan(ctx context.Context, arg SelectSpanParams) (Span, error) {
406 row := q.queryRow(ctx, q.selectSpanStmt, selectSpan, arg.TraceID, arg.SpanID)
407 var i Span
408 err := row.Scan(
409 &i.ID,
410 &i.TraceID,
411 &i.SpanID,
412 &i.TraceState,
413 &i.ParentSpanID,
414 &i.Flags,
415 &i.Name,
416 &i.Kind,
417 &i.StartTime,
418 &i.EndTime,
419 &i.Attributes,
420 &i.DroppedAttributesCount,
421 &i.Events,
422 &i.DroppedEventsCount,
423 &i.Links,
424 &i.DroppedLinksCount,
425 &i.StatusCode,
426 &i.StatusMessage,
427 &i.InstrumentationScope,
428 &i.Resource,
429 &i.ResourceSchemaUrl,
430 )
431 return i, err
432}
433
434const selectSpansSince = `-- name: SelectSpansSince :many
435SELECT

Callers 1

captureLogsMethod · 0.80

Calls 2

queryRowMethod · 0.95
ScanMethod · 0.45

Tested by

no test coverage detected