]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/tracer: remove is_enabled check in add_span methods
authorOmri Zeneva <ozeneva@redhat.com>
Sun, 2 Oct 2022 07:30:35 +0000 (03:30 -0400)
committerYuval Lifshitz <ylifshit@redhat.com>
Thu, 7 Sep 2023 14:12:47 +0000 (14:12 +0000)
commit4ec4f949fd94bb33b5bfbc8df3b39f273af6c874
tree013364544a145c0ff384ec1300226076b8d17c65
parent849fbd1d5b1d232e29feeb23f7c93e767569c31f
common/tracer: remove is_enabled check in add_span methods

when tracing is disabled globally, new spans won't be added
to existing traces, because of that if condition.
this can happen also if a specific trace was enabled by lua script

so in case tracing is disabled, the tracer will create new spans
if it's parent span is not a noop span, regardless of tracer state

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
src/common/tracer.cc