Migrate metric names from v7 to v8
mainIn version 8, the default naming convention for metrics generated by decorators has changed from using underscores (_) to using dots (.) to align with OpenTelemetry standards.
Changes to metric formats:
- Instance Counter: Changed from
app_ClassName_instances_totaltoapp.ClassName.instances.total. - Method Counter: Changed from
app_ClassName_methodName_calls_totaltoapp.ClassName.methodName.calls.total.
Action Required: Update your dashboards (e.g., Grafana) or alerting rules to use the new dot-notation format.
Note: If you manually specified names in decorators (e.g., @OtelMethodCounter({ name: 'my_custom_name' })), your custom names are preserved and do not require changes.