@Override protected void removedMetricContext(InnerMetricContext context) { if (shouldReportInnerMetricContext(context)) { report(context, true); } super.removedMetricContext(context); }
/** * Callback used to receive notifications from the {@link RootMetricContext}. */ private void notificationCallback(Notification notification) { if (notification instanceof MetricContextCleanupNotification) { removedMetricContext(((MetricContextCleanupNotification) notification).getMetricContext()); } if (notification instanceof NewMetricContextNotification) { newMetricContext(((NewMetricContextNotification) notification).getMetricContext()); } }
@Override protected void removedMetricContext(InnerMetricContext context) { if (shouldReportInnerMetricContext(context)) { report(context, true); } super.removedMetricContext(context); }
/** * Callback used to receive notifications from the {@link RootMetricContext}. */ private void notificationCallback(Notification notification) { if (notification instanceof MetricContextCleanupNotification) { removedMetricContext(((MetricContextCleanupNotification) notification).getMetricContext()); } if (notification instanceof NewMetricContextNotification) { newMetricContext(((NewMetricContextNotification) notification).getMetricContext()); } }