otlptranslator: Add dependency free package that translates OTLP data into Prometheus metric/label names by ArthurSens · Pull Request #768 · prometheus/common (original) (raw)

Moving https://github.com/ArthurSens/otlp-prometheus-translator into this repository.

Its intended usage is to replace duplicated code between several projects, like Prometheus, OpenTelemetry-Collector, and Thanos, that accept an OTLP metric and return valid Prometheus metric/label names.

The code is modified, so we're dependency-free instead of depending on OTel libraries like the original ones.