MetricsScope Not Reliably Publishing Custom Counter

Hey y’all! Anyone in the community successfully using MetricsScope ? We get SDK metrics from regularly running the workflows without any issue.

try (var scope = Activity.getExecutionContext().getMetricsScope()) {
  scope.counter("something.very.metric").inc(1);
} catch (ScopeCloseException e) {
  rethrow(e);
}

This is having some unexpected behavior for us. We have set up an infinitely running/failing activity and despite seeing logs in the same scope, this metric counter has only incremented a handful of times (twice) instead of the expected 89 times. Any tricky behavior we should be aware of?

Let me know if more details would be helpful.