Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14065

Log metric name when the metric fails on registration/unregistration

    XMLWordPrintableJSON

    Details

      Description

      When MetricGroup registers Metrics in MetricRegistryImpl, sometimes the registration fails due to exceptions. However, currently it only logs "Error while registering metric"  with no more information, which is inconvenient for users to troubleshoot which metric fails and why it fails.

      Also, the warning log in registration and unregistration are both "Error while registering metric". This will lead users to confusion (although users can locate the correct place according to the call stack).

      So I propose to log metric name when the metrics fails on registration/unregistration.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Thesharing Zhilong Hong
                Reporter:
                Thesharing Zhilong Hong
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m