mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Include count in execute_write_many traces, closes #1571
This commit is contained in:
parent
c6ff1f23e6
commit
f65817000f
3 changed files with 28 additions and 9 deletions
|
|
@ -32,14 +32,14 @@ def trace(type, **kwargs):
|
|||
), f".trace() keyword parameters cannot include {TRACE_RESERVED_KEYS}"
|
||||
task_id = get_task_id()
|
||||
if task_id is None:
|
||||
yield
|
||||
yield kwargs
|
||||
return
|
||||
tracer = tracers.get(task_id)
|
||||
if tracer is None:
|
||||
yield
|
||||
yield kwargs
|
||||
return
|
||||
start = time.perf_counter()
|
||||
yield
|
||||
yield kwargs
|
||||
end = time.perf_counter()
|
||||
trace_info = {
|
||||
"type": type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue