public void sample(double x) {
        sample(x, defaultPosition);
    }
Record a sample with default or no position.

@param x
           sample value
container-core/src/main/java/com/yahoo/metrics/simple/Gauge.java