docs: static double clampMetricValue(double value) {
          // Leave as is and let the SDK reject it
          if (Double.isNaN(value)) {
              return value;
          }
          double magnitude = Math.abs(value);
          if (magnitude == 0) {
              // Leave zero as zero
              return 0;
          }
          // Non-zero magnitude, clamp to allowed range
          double clampedMag = Math.min(Math.max(magnitude, MINIMUM_ALLOWED_VALUE), MAXIMUM_ALLOWED_VALUE);
          return Math.copySign(clampedMag, value);
      }