1.0.3
[monitor] added option to append monitor data to response of source observable [monitor] added request and response objects in callback
This monitor() operator is part of the fis-commons library.
It is used for monitoring performance of your rxjs observables in your console.
Install fis-commons into your project by running the folling command
npm install https://cdn.swopt.com/npm/fis-commons
import { monitor } from "fis-commons/observable/operators";
monitor operator onto your observables:
your_observable.pipe(monitor()).subscribe()
subscriber.next() firedsubscriber.complete() firedname, config, and request as parameters of the monitor:
your_observable.pipe(monitor('my-observable',{callback(monitorData) => {
//console.log(monitorData.message);
//console.log(monitorData.request);
//console.log(monitorData.response);
// your_subject.next(monitorData);
//your code here
}}[OPTIONAL],JSON.parse(request_message_json_string)[OPTIONAL])).subscribe();
[monitor] added option to append monitor data to response of source observable [monitor] added request and response objects in callback