typelevel / otel4s

An OpenTelemetry library for Scala based on Cats-Effect
https://typelevel.org/otel4s
Apache License 2.0
171 stars 35 forks source link

SDK module: support number (milliseconds) duration #710

Closed iRevive closed 2 months ago

iRevive commented 2 months ago

The official format for the duration configuration is milliseconds. For example, otel.metric.export.interval=15000 must be parsed as 15 seconds.

Currently, SDK configuration doesn't support this format and accepts only strings, e.g. otel.metric.export.interval=15s.