userver: userver/tracing/tracer.hpp Source File
Loading...
Searching...
No Matches
tracer.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/tracing/tracer.hpp
4/// @brief Tracing configuration for span logging suppression
5
6#include <string>
7
8#include <dynamic_config/variables/USERVER_NO_LOG_SPANS.hpp>
9
10USERVER_NAMESPACE_BEGIN
11
12/// Tracing support via @ref tracing::Span
13namespace tracing {
14
15using NoLogSpans = ::dynamic_config::userver_no_log_spans::VariableType;
16
17/// Sets the global configuration for disabling logging some of the @ref tracing::Span.
18void SetNoLogSpans(NoLogSpans&& spans);
19
20/// Returns true iff the @ref tracing::Span with `name` is not logged.
21bool IsNoLogSpan(const std::string& name);
22
23} // namespace tracing
24
25USERVER_NAMESPACE_END