@Override
    public void process(MetricsPacket.Builder builder) {
        Set<DimensionId> dimensionsToRetain = builder.getDimensionIds();
        dimensionsToRetain.removeAll(blocklistDimensions);
        builder.retainDimensions(dimensionsToRetain);
    }
@Test
    public void public_dimensions_are_retained() {
        var builder = new MetricsPacket.Builder(toServiceId("foo"))
                .putDimension(toDimensionId(APPLICATION_ID), "app");

        var processor = new PublicDimensionsProcessor();
        processor.process(builder);
        assertEquals(1, builder.getDimensionIds().size());
        assertEquals(toDimensionId(APPLICATION_ID), builder.getDimensionIds().iterator().next());
    }