solarwinds/appoptics-bindings-node

Reporter.sendMetric is sending the keys name as the value

silviofernandesdeveloper opened this issue · 3 comments

Problem

I'm using appoptics-apm-node to send my metrics, but when I used the TAGs I realized that the values ​​of the keys are coming with the value of the TAGs.

To reproduce the problem, I created a simple application and attached below, you need to run specifying your appoptics service key

appoptics-bindings-node-tags-bug.zip

npm install
APPOPTICS_SERVICE_KEY={YOUR-SERVICE-KEY} npm start

image

Solution

Looking for at the code I realized that in the assignment of the TAGs the same object, the values ​​of the TAGs, was being passed to key and value, probably error by CTRL+C and CTRL+V

The hotfix is here, but I could not run the tests 😞

Thank you for finding, reporting, and submitting a fix for the bug.

This is now available via appoptics-apm@6.4.0