Application metrics are generated and exposed via an event emitter interface.
Whenever a request has been processed and it about to be returned to the customer,
a data event will be emitted:
jsonApi.metrics.on("data", function(data) {
// send data to your metrics stack
});
Application metrics are generated and exposed via an event emitter interface. Whenever a request has been processed and it about to be returned to the customer, a
data
event will be emitted:jsonApi.metrics.on("data", function(data) { // send data to your metrics stack });
For details read - https://jagql.github.io/docs/pages/debugging/metrics.html