docs: private void postMetricMetadata(String metricName, DatadogMetricMetadata metadata) {
          // already posted the metadata for this metric
          if (verifiedMetadata.contains(metricName))
              return;
  
          try {
              httpClient
                      .put(config.uri() + "/api/v1/metrics/" + URLEncoder.encode(metricName, "UTF-8")
                              + "?api_key=" + config.apiKey() + "&application_key=" + config.applicationKey())
                      .withJsonContent(metadata.editMetadataBody())
                      .send()
                      .onSuccess(response -> verifiedMetadata.add(metricName))
                      .onError(response -> {
                          if (logger.isErrorEnabled()) {
                              String msg = response.body();
  
                              // Ignore when the response content contains "metric_name not found".
                              // Metrics that are newly created in Datadog are not immediately available
                              // for metadata modification. We will keep trying this request on subsequent publishes,
                              // where it will eventually succeed.
                              if (!msg.contains("metric_name not found")) {
                                  logger.error("failed to send metric metadata to datadog: {}", msg);
                              }
                          }
                      });
          } catch (Throwable e) {
              logger.warn("failed to send metric metadata to datadog", e);
          }
      }