Description
From debugging session I found following behaviour.
lcb_create creates a tracer per code in tracing.cc.
if (settings->use_tracing) {
if (options && options->tracer)
else
{ settings->tracer = lcbtrace_new(obj, LCBTRACE_F_THRESHOLD); }}
Given settings->use_tracing seems to always be 1 this is always executed.
subsequent lcb_cntl call setting LCB_CNTL_ENABLE_TRACING to 0 just sets settings->use_tracing to 0 but does not touch settings->tracer which is tested for calling tracing code.