Skip to content

Trace should show queries on the write connection too #1568

@simonw

Description

@simonw

Here's why - trace only applies to read, not write SQL operations:

with trace("sql", database=self.name, sql=sql.strip(), params=params):
results = await self.execute_fn(sql_operation_in_thread)
return results

Originally posted by @simonw in #1555 (comment)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions