MCPcopy Create free account
hub / github.com/effect-app/libs / opSpan

Function opSpan

packages/infra/src/SQL/Model.ts:635–642  ·  view source on GitHub ↗
(operation: string, idValue?: unknown)

Source from the content-addressed store, hash-verified

633 const versionColumn = options.versionColumn
634 const system: DbSystem = options.dbSystem ?? "other_sql"
635 const opSpan = (operation: string, idValue?: unknown) =>
636 withDbSpan({
637 operation,
638 system,
639 collection: options.tableName,
640 entity: options.spanPrefix,
641 ...(idValue !== undefined && { extra: { "app.entity.id": idValue } })
642 })
643
644 const insertSchema = SqlSchema.findOne({
645 Request: Model.insert,

Callers 6

insertFunction · 0.85
insertVoidFunction · 0.85
updateFunction · 0.85
updateVoidFunction · 0.85
findByIdFunction · 0.85
delete_Function · 0.85

Calls 1

withDbSpanFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…