Skip to content

Commit 98545f6

Browse files
committed
Fix PrepareStmtNameKey attribute never set
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent 08218cf commit 98545f6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pg/tracer.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,11 @@ func (t *tracer) TracePrepareStart(
303303
}
304304

305305
if data.Name != "" {
306-
trace.WithAttributes(
307-
PrepareStmtNameKey.String(data.Name),
306+
opts = append(
307+
opts,
308+
trace.WithAttributes(
309+
PrepareStmtNameKey.String(data.Name),
310+
),
308311
)
309312
}
310313

0 commit comments

Comments
 (0)