Closed anacasner closed 5 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/measured-signalfx-reporter/lib/registries/SignalFxSelfReportingMetricsRegistry.js | 0 | 4 | 0.0% | ||
<!-- | Total: | 0 | 4 | 0.0% | --> |
Totals | |
---|---|
Change from base Build 367: | 0.08% |
Covered Lines: | 751 |
Relevant Lines: | 830 |
@anacasner this is great thanks for opening the PR!
In the SignalFx library
sendEvent
is async and returns a promise. In theSignalFxSelfReportingMetricsRegistry
, thesendEvent
wrapper always returnedundefined
(since it was returning the result offorEach
). So there was no way to track when it was done.Here's the source for the SignalFx client
sendEvent
: https://github.com/signalfx/signalfx-nodejs/blob/master/lib/client/ingest/signal_fx_client.js#L167