release-24.1: spanlatch: add cluster setting for slow latch request threshold #160037
Backport policy check passed
This PR complies with the backport policy and is eligible for backporting.
Details
✅ PR #160037 is compliant with backport policy
Confidence: high
Critical bug criteria met: [An inability to detect and debug production issues]
Feature flag detected: Yes
Backward compatible: true
Explanation: The pull request adds a new cluster setting that controls the behavior of logging slow latch acquisitions which is a form of feature gating. The setting is kv.concurrency.slow_latch_request_duration and is used to configure the threshold for this feature, thus satisfying the feature flag requirement and is critical for debugging purposes as stated in the release justification. The change does not involve any removal of version gates or introduce any backward compatibility issues.