Skip to content

Commit f31027d

Browse files
committed
Add spans for the constraint/index drop operations
1 parent edaa6a4 commit f31027d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/syn2mas/src/mas_writer/constraint_pausing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ pub async fn drop_index(conn: &mut PgConnection, index: &IndexDescription) -> Re
109109
/// Restores (recreates) a constraint.
110110
///
111111
/// The constraint must not exist prior to this call.
112+
#[tracing::instrument(name = "syn2mas.restore_constraint", skip_all, fields(constraint.name = constraint.name))]
112113
pub async fn restore_constraint(
113114
conn: &mut PgConnection,
114115
constraint: &ConstraintDescription,
@@ -133,6 +134,7 @@ pub async fn restore_constraint(
133134
/// Restores (recreates) a index.
134135
///
135136
/// The index must not exist prior to this call.
137+
#[tracing::instrument(name = "syn2mas.restore_index", skip_all, fields(index.name = index.name))]
136138
pub async fn restore_index(conn: &mut PgConnection, index: &IndexDescription) -> Result<(), Error> {
137139
let IndexDescription {
138140
name,

0 commit comments

Comments
 (0)