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.
Follow up comment, first of all thanks for the fix, it works but I was wondering why this tracing feature is enabled by default ? Given it adds overhead on the client, should not it be disabled by default and only active if one calls lcb_cntl function ?
Thanks