Method
InsertLog
(ctx context.Context, arg InsertLogParams)
Source from the content-addressed store, hash-verified
| 42 | } |
| 43 | |
| 44 | func (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 | |
| 62 | const insertMetric = `-- name: InsertMetric :one |
| 63 | INSERT INTO |
Tested by
no test coverage detected