Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀

Kian Paimani kianenigma

🦀
View GitHub Profile
View block18.json
{
"nodes": [
{
"path": "./front.js",
"port": 4000,
"stdio": "file",
"env": "TRACE_API_KEY {YOUR_API_KEY} TRACE_SERVICE_NAME front"
},
{
View block17.javascript
const trace = require('@risingstack/trace')
View block16.process
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
View block14.
/project-dir
- client.js
- worker.js
- front.js
- xyz.json
// and probably:
- node_modules
- package.json
- /log
- front@127.0.0.1:4000.log
View block13.json
{
"nodes": [
{
"path": "./front.js",
"port": 4000,
"stdio": "file"
},
{
"path": "./client.js",
"port": 5000,
View block11.javascript
front.call({
servicePath: req.query['service_path']}, () => {...})
View block10.bash
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)
View block8.bash
$ curl -X POST -i "http://localhost:4001/service?service_path=task/io"