This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"path": "./front.js", | |
"port": 4000, | |
"stdio": "file", | |
"env": "TRACE_API_KEY {YOUR_API_KEY} TRACE_SERVICE_NAME front" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trace = require('@risingstack/trace') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
front.ms@127.0.0.1:4000 successfully lunched. writing output to file [--xyz-transport.0.port 4000 --xyz-cli.enable true --xyz-cli.stdio file ] | |
creating logfile ./log/front.ms@127.0.0.1:4000.log | |
process client.ms@127.0.0.1:5000 successfully lunched. writing output to file [--xyz-transport.0.port 5000 --xyz-cli.enable true --xyz-cli.stdio file ] | |
creating logfile ./log/client.ms@127.0.0.1:5000.log | |
process worker.ms@127.0.0.1:6000 successfully lunched. writing output to file [--xyz-transport.0.port 6000 --xyz-cli.enable true --xyz-cli.stdio file ] | |
creating logfile ./log/worker.ms@127.0.0.1:6000.log | |
┌───────┬──────────────────────────┬──────────────────────────────────────────────────────────────────────────────────┐ | |
│ Index │ Identifier │ command line arguments │ | |
├───────┼──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ | |
│ 0 │ front.ms@127.0.0.1:4000 │ --xyz-transport.0.port 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xyz dev -c xyz.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/project-dir | |
- client.js | |
- worker.js | |
- front.js | |
- xyz.json | |
// and probably: | |
- node_modules | |
- package.json | |
- /log | |
- front@127.0.0.1:4000.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"path": "./front.js", | |
"port": 4000, | |
"stdio": "file" | |
}, | |
{ | |
"path": "./client.js", | |
"port": 5000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$npm install -g xyz-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
front.call({ | |
servicePath: req.query['service_path']}, () => {...}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
front.js log | |
[2017-4-2 17:8:17][front.ms@127.0.0.1:4000] warn :: Sending a message to /task/io from first find strategy failed (Local Response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST -i "http://localhost:4001/service?service_path=task/io" |
OlderNewer