Improve the API for creating otel metrics that are also serverStatus metrics

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-119071 introduced the ability to specify serverStatus name for otel metrics. However, currently the otel name is defined in metric_names.h but the serverStatus name is defined inline at the callsite that creates the metric (e.g. here) It would be more user-friendly if the otel name and serverStatus name are instead defined next to each other, either at the callsite or in metric_names.h or another new file. For context, the motivation for having metric_names.h is to allow us to easily see what otel metrics we have (unlike for serverStatus metrics today).

            Assignee:
            Unassigned
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: