kamilsk / tracer

🪡 Dead simple, lightweight tracing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add possibility to preallocate checkpoints

kamilsk opened this issue · comments

call := tracer.Fetch(ctx).With(make([]Checkpoint, 0, 10)).Start()
defer call.Stop()
...
call.Checkpoint()
...
call.Checkpoint("id", "labelX", "labelY")
...