57 orphaned_emit_interval_ = interval;
63 orphaned_sample_size_ = number_or_samples;
69 threshold_emit_interval_ = interval;
75 threshold_sample_size_ = number_or_samples;
81 key_value_threshold_ = duration;
87 query_threshold_ = duration;
93 view_threshold_ = duration;
99 search_threshold_ = duration;
105 analytics_threshold_ = duration;
111 management_threshold_ = duration;
117 eventing_threshold_ = duration;
123 tracer_ = std::move(custom_tracer);
140 std::shared_ptr<tracing::request_tracer>
tracer;
147 orphaned_emit_interval_,
148 orphaned_sample_size_,
149 threshold_emit_interval_,
150 threshold_sample_size_,
151 key_value_threshold_,
155 analytics_threshold_,
156 management_threshold_,
163 bool enabled_{
true };
177 std::shared_ptr<tracing::request_tracer> tracer_{
nullptr };
Definition tracing_options.hxx:29
auto tracer(std::shared_ptr< tracing::request_tracer > custom_tracer) -> tracing_options &
Definition tracing_options.hxx:121
auto search_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:97
auto orphaned_sample_size(std::size_t number_or_samples) -> tracing_options &
Definition tracing_options.hxx:61
auto threshold_emit_interval(std::chrono::milliseconds interval) -> tracing_options &
Definition tracing_options.hxx:67
auto orphaned_emit_interval(std::chrono::milliseconds interval) -> tracing_options &
Definition tracing_options.hxx:55
auto query_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:85
auto threshold_sample_size(std::size_t number_or_samples) -> tracing_options &
Definition tracing_options.hxx:73
auto enable(bool enable) -> tracing_options &
Definition tracing_options.hxx:49
static constexpr std::size_t default_threshold_sample_size
Definition tracing_options.hxx:35
auto build() const -> built
Definition tracing_options.hxx:143
static constexpr std::chrono::milliseconds default_key_value_threshold
Definition tracing_options.hxx:38
static constexpr std::chrono::milliseconds default_analytics_threshold
Definition tracing_options.hxx:42
static constexpr std::chrono::milliseconds default_view_threshold
Definition tracing_options.hxx:40
auto management_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:109
auto key_value_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:79
auto analytics_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:103
static constexpr std::chrono::milliseconds default_threshold_emit_interval
Definition tracing_options.hxx:36
static constexpr std::chrono::milliseconds default_query_threshold
Definition tracing_options.hxx:39
static constexpr std::chrono::milliseconds default_management_threshold
Definition tracing_options.hxx:44
static constexpr std::chrono::milliseconds default_search_threshold
Definition tracing_options.hxx:41
auto eventing_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:115
static constexpr std::size_t default_orphaned_sample_size
Definition tracing_options.hxx:31
static constexpr std::chrono::milliseconds default_eventing_threshold
Definition tracing_options.hxx:46
auto view_threshold(std::chrono::milliseconds duration) -> tracing_options &
Definition tracing_options.hxx:91
static constexpr std::chrono::milliseconds default_orphaned_emit_interval
Definition tracing_options.hxx:32
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
Definition tracing_options.hxx:127
std::chrono::milliseconds management_threshold
Definition tracing_options.hxx:138
std::size_t threshold_sample_size
Definition tracing_options.hxx:132
std::chrono::milliseconds analytics_threshold
Definition tracing_options.hxx:137
std::size_t orphaned_sample_size
Definition tracing_options.hxx:130
std::chrono::milliseconds view_threshold
Definition tracing_options.hxx:135
bool enabled
Definition tracing_options.hxx:128
std::chrono::milliseconds search_threshold
Definition tracing_options.hxx:136
std::chrono::milliseconds query_threshold
Definition tracing_options.hxx:134
std::chrono::milliseconds orphaned_emit_interval
Definition tracing_options.hxx:129
std::chrono::milliseconds eventing_threshold
Definition tracing_options.hxx:139
std::chrono::milliseconds threshold_emit_interval
Definition tracing_options.hxx:131
std::shared_ptr< tracing::request_tracer > tracer
Definition tracing_options.hxx:140
std::chrono::milliseconds key_value_threshold
Definition tracing_options.hxx:133