File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
examples/metrics/src/main/java/com/google/cloud/opentelemetry/example/metrics Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ subprojects {
108108 googleCloudVersion = ' 2.0.5'
109109 googleTraceVersion = ' 2.0.0'
110110 cloudMonitoringVersion = ' 3.0.0'
111- openTelemetryVersion = ' 1.7 .0'
112- openTelemetryInstrumentationVersion = ' 1.7 .0'
111+ openTelemetryVersion = ' 1.9 .0'
112+ openTelemetryInstrumentationVersion = ' 1.9 .0'
113113 junitVersion = ' 4.13'
114114 mockitoVersion = ' 3.5.10'
115115 pubSubVersion = ' 1.111.2'
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ private static void setupMetricExporter() {
3535 METER_PROVIDER =
3636 SdkMeterProvider .builder ()
3737 .registerMetricReader (
38- PeriodicMetricReader .create (metricExporter , java .time .Duration .ofSeconds (30 )))
38+ PeriodicMetricReader .builder (metricExporter )
39+ .setInterval (java .time .Duration .ofSeconds (30 ))
40+ .newMetricReaderFactory ())
3941 .buildAndRegisterGlobal ();
4042
4143 METER =
You can’t perform that action at this time.
0 commit comments