code: @Override
      public String name(String name, Meter.Type type, @Nullable String baseUnit) {
          return NAME_AND_TAG_KEY_PATTERN.matcher(delegate.name(name, type, baseUnit)).replaceAll("_");
      }
docs: Trimming takes place in App Insights core SDK.