Function servers::otlp::metrics::normalize_otlp_name

source ยท
fn normalize_otlp_name(name: &str) -> String
Expand description

Normalize otlp instrumentation, metric and attribute names

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-name-syntax

  • since the name are case-insensitive, we transform them to lowercase for better sql usability
  • replace . and - with _