Skip to content

Commit

Permalink
Revert changes for error budget
Browse files Browse the repository at this point in the history
  • Loading branch information
killertiger committed Oct 13, 2023
1 parent c0380ec commit c0a02d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
import com.pinterest.deployservice.scm.SourceControlManagerProxy;
import com.pinterest.teletraan.universal.events.AppEventPublisher;

import io.micrometer.core.instrument.MeterRegistry;

import org.apache.commons.dbcp.BasicDataSource;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import io.micrometer.core.instrument.Clock;
import io.micrometer.core.instrument.Meter;
import io.micrometer.core.instrument.config.NamingConvention;
import io.micrometer.core.instrument.util.MeterPartition;
import io.micrometer.core.instrument.util.NamedThreadFactory;
import io.micrometer.opentsdb.OpenTSDBMeterRegistry;
Expand All @@ -20,20 +19,12 @@ public class PinStatsMeterRegistry extends OpenTSDBMeterRegistry {
private final PinStatsPublisher publisher;

public PinStatsMeterRegistry(PinStatsConfig config, Clock clock) {
this(config, clock, null, new PinStatsNamingConvention(config.namePrefix()));
this(config, clock, null);
}

public PinStatsMeterRegistry(PinStatsConfig config, Clock clock, PinStatsPublisher publisher) {
this(config, clock, publisher, new PinStatsNamingConvention(config.namePrefix()));
}

public PinStatsMeterRegistry(PinStatsConfig config, Clock clock, NamingConvention namingConvention) {
this(config, clock, null, namingConvention);
}

public PinStatsMeterRegistry(PinStatsConfig config, Clock clock, PinStatsPublisher publisher, NamingConvention namingConvention) {
super(config, clock, DEFAULT_THREAD_FACTORY, null);
config().namingConvention(namingConvention);
config().namingConvention(new PinStatsNamingConvention(config.namePrefix()));
this.config = config;
this.publisher =
publisher == null
Expand All @@ -52,4 +43,4 @@ protected void publish() {
}
}
}
}
}

0 comments on commit c0a02d2

Please sign in to comment.