whistle.env-inspector
v0.2.1
Published
Whistle plugin for env inspector
Readme
whistle.env-inspector
Minimal Whistle plugin package for env inspector.
Files:
- package.json
- statsServer.js
- resStatsServer.js
- plugin/statsServer.js
- plugin/resStatsServer.js
- plugin/reporter.js
- plugin/normalize.js
Usage:
- Install plugin package whistle.env-inspector in Whistle.
- Use rules like:
- api.xxx.com whistle.env-inspector://test
- api-test.xxx.com whistle.env-inspector://test
- Keep the local inspector service running at http://127.0.0.1:9012.
Important:
- Prefer the long plugin protocol in examples: whistle.env-inspector://...
- The short protocol env-inspector://... is also a valid Whistle plugin protocol.
- This plugin only observes traffic through statsServer and resStatsServer.
- It does not take over and forward original requests as a custom protocol server.
- For requests matched by a Whistle plugin protocol,
serverIPmay appear as127.0.0.1in Whistle orresStatsServer. This is a Whistle plugin-chain behavior and does not mean this plugin rewrote the upstream IP.
