{"id":21672156,"url":"https://github.com/cesarvr/probe","last_synced_at":"2025-03-20T08:23:38.738Z","repository":{"id":57330764,"uuid":"89696492","full_name":"cesarvr/probe","owner":"cesarvr","description":"Express middleware to probe latency in your endpoints.","archived":false,"fork":false,"pushed_at":"2017-05-03T14:27:24.000Z","size":331,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T05:33:12.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cesarvr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-28T10:38:12.000Z","updated_at":"2017-05-04T15:12:45.000Z","dependencies_parsed_at":"2022-09-26T16:31:30.080Z","dependency_job_id":null,"html_url":"https://github.com/cesarvr/probe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarvr%2Fprobe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarvr%2Fprobe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarvr%2Fprobe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarvr%2Fprobe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cesarvr","download_url":"https://codeload.github.com/cesarvr/probe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244575922,"owners_count":20475007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T13:18:48.560Z","updated_at":"2025-03-20T08:23:38.702Z","avatar_url":"https://github.com/cesarvr.png","language":"Shell","readme":"### Probe\n\nIs a simple [Express](https://www.npmjs.com/package/express) middleware to measure latency in your endpoints.\n\n#### Usage\n\n```js\n//Make sure is first in the middleware stack. \nif(process.env.DEBUG){\n  var probe = require('probe-mon');\n  app.use(probe());\n}\n```\n\n#### Data\n\nThis middleware return the following data:\n  - **Event**: Is the IO event for now just trigger when the event finish is triggered.\n  - **URL**: The endpoint URL, that was hit.\n  - **Execution**: The time elapse between the arriving of the request to response.\n\n\n\nIn this output example I just have two endpoint one called /slow with a random delay, the delay at server side is returned to test the accuracy of the measurement and other endpoint called /fast that just respond immediately.\n\n```sh\nsloooowww 948     #server returned the delay random number 948ms.\n\nevent:  finish url:  /slow execution  964 ms\n#this line is from the probe plugin\n#execution measurement ≈16m deviation.\n\nfast\nevent:  finish url:  /fast execution  2 ms\n\nsloooowww 4697\nevent:  finish url:  /slow execution  4699 ms\n\nfast\nevent:  finish url:  /fast execution  0 ms\n\nsloooowww 2702\nevent:  finish url:  /slow execution  2705 ms\n\nfast\nevent:  finish url:  /fast execution  0 ms\n\nsloooowww 4701\nevent:  finish url:  /slow execution  4704 ms\n\nfast\nevent:  finish url:  /fast execution  0 ms\n\nsloooowww 2968\nevent:  finish url:  /slow execution  2972 ms\n\nevent:  finish url:  /fast execution  1 ms\nfast\n```\n\n\n## LICENSE\n\nThis software is licensed under the MIT License.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to permit\npersons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarvr%2Fprobe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarvr%2Fprobe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarvr%2Fprobe/lists"}