Closed amomchilov closed 2 years ago
Hmmmm my reproduction sample works correctly 😬
Closing for now until I can better track down the source of my issue.
Update: it was an error in my usage. Our test never actually simulated this async update. It was setting tags synchronously, which obviously works fine. 🤦
We have a
BaseAction
(which models a business action) which automates latency metrics (viaStatsD.distribution
). It has a method that subclasses can override to define additional tags they want stapled onto this auto-generated metric.We found out that modifying the tags asynchronously (e.g. in a promise returned from a batch loader) makes the tags not show up in prod (obviously, they've already been ommitted), but they still pass the tests.
Here's a minimal example to illustrate the issue