Hello & Happy New Year!
I have a GET route in my Express NodeJS project which contains inside it some logic & an API call to an external vendor. The vendor has their own SLA and their endpoint is not critical to the client’s application, so my only requirement for error handling is to put a timeout on the call and do nothing else. Unfortunately the vendor’s endpoint often takes 2+s to resolve, whereas my API responds in an average of ~200ms without the extra call. I also cannot cache the Vendor’s response as the data is user-specific. The vendor’s slow response times are really messing up my application’s metrics in New Relic.
Is there a way to completely ignore the portion of the transaction that performs Vendor logic? Alternatively, is there a way to “pause” New Relic temporarily while within a transaction?