#include <userver/logging/telemetry_settings.hpp>
Process-wide trace sampling, independent of logger sampling.
Definition at line 37 of file telemetry_settings.hpp.
Public Member Functions | |
| TracingSettings | Merge (const TracingSettings &other) const |
| void | Validate () const |
| bool | operator== (const TracingSettings &) const =default |
| Compares all settings. | |
Public Attributes | |
| double | trace_sample_rate {1.0} |
| Fraction of traces to retain in [0, 1]; 1 imposes no sampling restriction. | |
|
nodiscard |
Returns the lower sampling rate without modifying either input. Both inputs must satisfy logging::TracingSettings::Validate.
| void logging::TracingSettings::Validate | ( | ) | const |
| std::runtime_error | if the sampling rate is non-finite or outside [0, 1]. |
| double logging::TracingSettings::trace_sample_rate {1.0} |
Fraction of traces to retain in [0, 1]; 1 imposes no sampling restriction.
Definition at line 39 of file telemetry_settings.hpp.