Temporarily disable AWS SDK instrumentation

This commit is contained in:
Jon Chambers 2024-09-27 16:27:51 -04:00 committed by Jon Chambers
parent 6b36df3f8f
commit c0aa9ced8d
1 changed files with 2 additions and 2 deletions

View File

@ -100,13 +100,13 @@ public class MicrometerAwsSdkMetricPublisher implements MetricPublisher {
@Override
public void publish(final MetricCollection metricCollection) {
if (METRIC_COLLECTION_TYPE_API_CALL.equals(metricCollection.name())) {
/* if (METRIC_COLLECTION_TYPE_API_CALL.equals(metricCollection.name())) {
try {
recordMetricsExecutorService.submit(() -> recordApiCallMetrics(metricCollection));
} catch (final RejectedExecutionException ignored) {
// This can happen if clients make new calls to an upstream service while the server is shutting down
}
}
} */
}
private void recordApiCallMetrics(final MetricCollection apiCallMetricCollection) {