You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function below, slowThreshold is used to determine if a call is slow. However, when I try to modify slowThreshold using SetSlowThreshold function, the comment suggests using StatConf instead. StatConf.SlowThreshold is passed into the logDuration function as the durationThreshold parameter. It is only used in the if isSlow(duration, durationThreshold) check, but it does not affect slowThreshold. Does this indicate a bug?
Hi,
I have submitted a PR #4654 that completely removes all usages of slowThreshold.
I also removed the default value for StatConf.SlowThreshold, allowing users to decide whether to enable slow logs. However, I’m not sure if this aligns with the original design. Please help me confirm. If this change is not appropriate, I will restore the default value.
In the function below, slowThreshold is used to determine if a call is slow. However, when I try to modify slowThreshold using SetSlowThreshold function, the comment suggests using StatConf instead. StatConf.SlowThreshold is passed into the logDuration function as the durationThreshold parameter. It is only used in the if isSlow(duration, durationThreshold) check, but it does not affect slowThreshold. Does this indicate a bug?
The text was updated successfully, but these errors were encountered: