Configurable base time unit for OTLP registry (original) (raw)
We avoid making the base time unit configurable because it can lead to nasty issues if different applications are producing metrics data for the same meters in different units. However, it doesn't look hopeful open-telemetry/opentelemetry-collector-contrib#18903 is going to be resolved, and it's also not great that data from the OTLP registry through the Collector to Prometheus is going to have a different unit than everything else Prometheus scrapes (presumably, since Prometheus asks producers to use seconds for time).
We'll have to discuss this and what, if anything, it makes sense for us to do in Micrometer.