mirror of
https://github.com/signalapp/Signal-Server
synced 2026-07-05 08:15:03 +01:00
Don't add Dropwizard metrics to shared registries
This commit is contained in:
committed by
Jon Chambers
parent
60002a8a0f
commit
fe0956c8f7
@@ -5,7 +5,6 @@
|
||||
|
||||
package org.whispersystems.textsecuregcm.metrics;
|
||||
|
||||
import com.codahale.metrics.SharedMetricRegistries;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import io.dropwizard.core.setup.Environment;
|
||||
import io.micrometer.core.instrument.Meter;
|
||||
@@ -40,7 +39,6 @@ import org.whispersystems.textsecuregcm.storage.DynamicConfigurationManager;
|
||||
public class MetricsUtil {
|
||||
|
||||
public static final String PREFIX = "chat";
|
||||
private static final String DROPWIZARD_METRICS_NAME = "textsecure";
|
||||
|
||||
private static volatile boolean registeredMetrics = false;
|
||||
|
||||
@@ -69,8 +67,6 @@ public class MetricsUtil {
|
||||
|
||||
registeredMetrics = true;
|
||||
|
||||
SharedMetricRegistries.add(DROPWIZARD_METRICS_NAME, environment.metrics());
|
||||
|
||||
Duration shutdownWaitDuration = Duration.ZERO;
|
||||
|
||||
if (config.getOpenTelemetryConfiguration().enabled()) {
|
||||
|
||||
Reference in New Issue
Block a user