Skip to content

Commit

Permalink
fix slow requests sampling rate (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilyTiger authored Oct 16, 2024
1 parent fc27cb9 commit caa02b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloud/filestore/libs/daemon/common/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ void TBootstrapCommon::InitLWTrace(
traceReaders.push_back(CreateTraceLogger(TraceLoggerId, traceLog, "NFS_TRACE"));
}

if (auto samplingRate = Configs->DiagnosticsConfig->GetSlowRequestSamplingRate() &&
!probesToTrace.empty())
{
auto slowRequestSamplingRate =
Configs->DiagnosticsConfig->GetSlowRequestSamplingRate();
if (slowRequestSamplingRate && !probesToTrace.empty()) {
NLWTrace::TQuery query = ProbabilisticQuery(
probesToTrace,
samplingRate,
slowRequestSamplingRate,
Configs->DiagnosticsConfig->GetLWTraceShuttleCount());

lwManager.New(SlowRequestsFilterId, query);
Expand Down

0 comments on commit caa02b6

Please sign in to comment.