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

        var processor = new PublicDimensionsProcessor();
        processor.process(builder);
        assertTrue(builder.getDimensionIds().isEmpty());
    }