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

Method InsertSpan

engine/clientdb/queries.sql.go:148–174  ·  view source on GitHub ↗
(ctx context.Context, arg InsertSpanParams)

Source from the content-addressed store, hash-verified

146}
147
148func (q *Queries) InsertSpan(ctx context.Context, arg InsertSpanParams) (int64, error) {
149 row := q.queryRow(ctx, q.insertSpanStmt, insertSpan,
150 arg.TraceID,
151 arg.SpanID,
152 arg.TraceState,
153 arg.ParentSpanID,
154 arg.Flags,
155 arg.Name,
156 arg.Kind,
157 arg.StartTime,
158 arg.EndTime,
159 arg.Attributes,
160 arg.DroppedAttributesCount,
161 arg.Events,
162 arg.DroppedEventsCount,
163 arg.Links,
164 arg.DroppedLinksCount,
165 arg.StatusCode,
166 arg.StatusMessage,
167 arg.InstrumentationScope,
168 arg.Resource,
169 arg.ResourceSchemaUrl,
170 )
171 var id int64
172 err := row.Scan(&id)
173 return id, err
174}
175
176const selectLogsBeneathSpan = `-- name: SelectLogsBeneathSpan :many
177WITH RECURSIVE descendant_spans AS (

Callers 1

ExportSpansMethod · 0.80

Calls 2

queryRowMethod · 0.95
ScanMethod · 0.45

Tested by

no test coverage detected