userver
userver copied to clipboard
USERVER_NO_LOG_SPANS does not prevent logging spans
Even though it is specified in static config:
dynamic-config:
defaults:
USERVER_NO_LOG_SPANS:
names: ["connection_pool_monitor"] <<< ( I tried several combinations - names only, prefixes, with quotes and without)
prefixes: ["connection"]
I see logs (and spans):
timestamp:2024-04-18T19:59:34.932391 level:INFO module:LogOpenTracing ( userver/core/src/tracing/span_opentracing.cpp:90 ) task_id:617000012300 thread_id:0x00007FFE7C24B400 text: service_name:cpp_router trace_id:6bef261775d7490ab0baff6d443ee93b parent_id: span_id:eaefdb2011997686 start_time:1713459574932355 start_time_millis:1713459574932 duration:38 operation_name:connection_pool_monitor tags:[]
tskv timestamp=2024-04-18T19:59:34.932366 level=INFO module=DoStep ( userver/core/src/utils/periodic_task.cpp:162 ) task_id=617000012300 thread_id=0x00007FFE7C24B400 text= trace_id=6bef261775d7490ab0baff6d443ee93b span_id=eaefdb2011997686 parent_id= stopwatch_name=connection_pool_monitor total_time=0.024937 span_ref_type=child stopwatch_units=ms start_timestamp=1713459574.932355 link=54e8ac3dd4364cfe976dcd6b910cbe74
These logs exist if components::RabbitMQ is added to components with default config:
my-rabbit:
secdist_alias: my-rabbit-alias
min_pool_size: 5
max_pool_size: 10
max_in_flight_requests: 5
use_secure_connection: false