File tree Expand file tree Collapse file tree
sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,8 @@ public void register(CollectionRegistration collectionRegistration) {
148148 * Sets the {@link MeterProvider} to export metrics about this {@link PeriodicMetricReader} to.
149149 * Automatically called by the meter provider the reader is registered to.
150150 */
151- void setMeterProvider (MeterProvider meterProvider ) {
151+ @ SuppressWarnings ("UnusedMethod" )
152+ private void setMeterProvider (MeterProvider meterProvider ) {
152153 this .scheduled .setMeterProvider (meterProvider );
153154 }
154155
@@ -202,9 +203,6 @@ CompletableResultCode doRun() {
202203 Collection <MetricData > metricData ;
203204 try {
204205 metricData = collectionRegistration .collectAllMetrics ();
205- } catch (Throwable t ) {
206- error = t .getClass ().getName ();
207- throw t ;
208206 } finally {
209207 long durationNanos = CLOCK .nanoTime () - startNanoTime ;
210208 instrumentation .recordCollection (durationNanos / 1_000_000_000.0 , error );
You can’t perform that action at this time.
0 commit comments