public MetricsBuilder useGlobalRegistry(Boolean useGlobalRegistry) {
        this.useGlobalRegistry = useGlobalRegistry;
        return getThis();
    }
@Test
    void useGlobalRegistry() {
        MetricsBuilder builder = MetricsBuilder.newBuilder();
        builder.useGlobalRegistry(true);
        Assertions.assertTrue(builder.build().getUseGlobalRegistry());
    }