Trace data migrations (#26809)
This commit is contained in:
@@ -36,7 +36,7 @@ export const layer = Layer.effect(
|
|||||||
if (completed) continue
|
if (completed) continue
|
||||||
|
|
||||||
log.info("running data migration", { name: migration.name })
|
log.info("running data migration", { name: migration.name })
|
||||||
yield* migration.run
|
yield* migration.run.pipe(Effect.withSpan("DataMigration", { attributes: { name: migration.name } }))
|
||||||
Database.use((db) =>
|
Database.use((db) =>
|
||||||
db
|
db
|
||||||
.insert(DataMigrationTable)
|
.insert(DataMigrationTable)
|
||||||
|
|||||||
Reference in New Issue
Block a user