diff --git a/tracer.go b/tracer.go index 7f0fd6d..58f9f15 100644 --- a/tracer.go +++ b/tracer.go @@ -309,7 +309,7 @@ func (t *Tracer) TracePrepareStart(ctx context.Context, conn *pgx.Conn, data pgx } if data.Name != "" { - trace.WithAttributes(PrepareStmtNameKey.String(data.Name)), + trace.WithAttributes(PrepareStmtNameKey.String(data.Name)) } if conn != nil {