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

Method InsertLog

engine/clientdb/queries.sql.go:44–60  ·  view source on GitHub ↗
(ctx context.Context, arg InsertLogParams)

Source from the content-addressed store, hash-verified

42}
43
44func (q *Queries) InsertLog(ctx context.Context, arg InsertLogParams) (int64, error) {
45 row := q.queryRow(ctx, q.insertLogStmt, insertLog,
46 arg.TraceID,
47 arg.SpanID,
48 arg.Timestamp,
49 arg.SeverityNumber,
50 arg.SeverityText,
51 arg.Body,
52 arg.Attributes,
53 arg.InstrumentationScope,
54 arg.Resource,
55 arg.ResourceSchemaUrl,
56 )
57 var id int64
58 err := row.Scan(&id)
59 return id, err
60}
61
62const insertMetric = `-- name: InsertMetric :one
63INSERT INTO

Callers 2

OnEmitMethod · 0.80
ExportMethod · 0.80

Calls 2

queryRowMethod · 0.95
ScanMethod · 0.45

Tested by

no test coverage detected