We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b2c0f9 commit 90369c1Copy full SHA for 90369c1
1 file changed
docs/docs/opentelemetry-support.md
@@ -246,7 +246,7 @@ import io.opentelemetry.api.common.AttributeKey
246
import io.opentelemetry.exporter.logging.LoggingMetricExporter
247
import io.opentelemetry.exporter.logging.LoggingSpanExporter
248
import io.opentelemetry.sdk.trace.samplers.Sampler
249
-import java.time.Duration
+import kotlin.time.Duration
250
251
const val apiKey = ""
252
@@ -271,7 +271,7 @@ install(OpenTelemetry) {
271
// Add the Metric exporter
272
addMetricExporter(
273
exporter = LoggingMetricExporter.create(),
274
- meterInterval = Duration.ofSeconds(30)
+ meterInterval = 30.seconds
275
)
276
277
// Add metric filter
0 commit comments