peaksnail / pinpoint-node-agent

pinpoint agent for nodejs
Apache License 2.0
75 stars 26 forks source link

No trace data in profile #4

Open sattishv opened 7 years ago

sattishv commented 7 years ago

Hi team,

Eventhough the agent connected successfully we arent able to get the trace data. Our node app runs on nginx. Pinpoint logs doesnt show any errors or exceptions

Have listed the process running in agent machine: ps -ef | grep hermes root 21162 1 0 16:29 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/nginx.conf 78402 21314 21291 3 16:29 ? 00:00:18 node /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/index.js
78402 21323 21291 3 16:29 ? 00:00:19 node /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/index.js
78402 21345 21314 0 16:29 ? 00:00:00 /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/node/bin/node /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/node_modules/pinpoint-node-agent/agent/commons/trace/trace_manager.js 78402 21346 21323 0 16:29 ? 00:00:00 /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/node/bin/node /x/gethu/procus/software/service_nodes/.ENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn.samplenodeweb-appENV4zc2d9ecfn-LVS03-CLis0kxaz6-CPT4zckroaio9/installed-packages/samplenodeweb/2.0.1_20160825141154530.unx/procus/scripts/node_modules/pinpoint-node-agent/agent/commons/trace/trace_manager.js

Collector log: 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:8, apiInfo:https.request()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:9, apiInfo:https/createServer.requestListener()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:7, apiInfo:https.get()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:11, apiInfo:mqtt-connection/prototype.on()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:6, apiInfo:express/application.handle()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:12, apiInfo:redis/RedisClient/prototype.sql()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:16, apiInfo:callback()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:16, apiInfo:callback()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:17, apiInfo:rabbitMQClient()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:17, apiInfo:rabbitMQClient()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:10, apiInfo:mqtt-connection/prototype.publish()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:13, apiInfo:redis/RedisClient/prototype.internal_send_command()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:6, apiInfo:express/application.handle()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:7, apiInfo:https.get()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762214, apiId:8, apiInfo:https.request()) 09-29 23:29:27 [INFO ](c.n.p.r.s.PinpointServerAcceptor :342) channelConnected channel:[id: 0x20a97949, /10.24.163.186:57308 => /172.17.0.2:29994] 09-29 23:29:27 [INFO ](c.n.p.r.s.DefaultPinpointServer :118) DefaultPinpointServer@38d1960d start() started. channel:[id: 0x20a97949, /10.24.163.186:57308 => /172.17.0.2:29994]. 09-29 23:29:27 DEBUG DefaultPinpointServer@38d1960d stateTo() started. to:CONNECTED 09-29 23:29:27 INFO eventPerformed() started. (PinpointServer=DefaultPinpointServer@38d1960d(remote:/10.24.163.186:57308, state:CONNECTED), State=CONNECTED) 09-29 23:29:27 INFO DefaultPinpointServer@38d1960d stateTo() completed. Socket state change success(updateWanted:CONNECTED ,before:NONE ,current:CONNECTED). 09-29 23:29:27 DEBUG DefaultPinpointServer@38d1960d stateTo() started. to:RUN_WITHOUT_HANDSHAKE 09-29 23:29:27 INFO eventPerformed() started. (PinpointServer=DefaultPinpointServer@38d1960d(remote:/10.24.163.186:57308, state:RUN_WITHOUT_HANDSHAKE), State=RUN_WITHOUT_HANDSHAKE) 09-29 23:29:27 INFO DefaultPinpointServer@38d1960d stateTo() completed. Socket state change success(updateWanted:RUN_WITHOUT_HANDSHAKE ,before:CONNECTED ,current:RUN_WITHOUT_HANDSHAKE). 09-29 23:29:27 [INFO ](c.n.p.r.s.DefaultPinpointServer :123) DefaultPinpointServer@38d1960d start() completed. 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:3, apiInfo:express/Route.post()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:3, apiInfo:express/Route.post()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:7, apiInfo:https.get()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:7, apiInfo:https.get()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:2, apiInfo:express/Route.get()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:2, apiInfo:express/Route.get()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:8, apiInfo:https.request()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:8, apiInfo:https.request()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:6, apiInfo:express/application.handle()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:6, apiInfo:express/application.handle()) 09-29 23:29:27 [DEBUG](c.n.p.c.h.AgentInfoHandler :61) Received AgentInfo=TAgentInfo(hostname:vanilla, ip:10.24.163.186, ports:1, agentId:10.24.163.186, applicationName:samplenodeweb, serviceType:1000, pid:21323, agentVersion:1, vmVersion:1, startTimestamp:1475191762258) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:10, apiInfo:mqtt-connection/prototype.publish()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseAgentInfoDao :71) insert agent info. TAgentInfo(hostname:vanilla, ip:10.24.163.186, ports:1, agentId:10.24.163.186, applicationName:samplenodeweb, serviceType:1000, pid:21323, agentVersion:1, vmVersion:1, startTimestamp:1475191762258) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:1, apiInfo:amqp-rpc/amqpRPC.on()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:1, apiInfo:amqp-rpc/amqpRPC.on()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:10, apiInfo:mqtt-connection/prototype.publish()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:9, apiInfo:https/createServer.requestListener()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:9, apiInfo:https/createServer.requestListener()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:5, apiInfo:express/Route.put()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:5, apiInfo:express/Route.put()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:0, apiInfo:amqp-rpc/amqpRPC.call()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:0, apiInfo:amqp-rpc/amqpRPC.call()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:4, apiInfo:express/Route.delete()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:4, apiInfo:express/Route.delete()) 09-29 23:29:27 DEBUG Insert agentInfo. TAgentInfo(hostname:vanilla, ip:10.24.163.186, ports:1, agentId:10.24.163.186, applicationName:samplenodeweb, serviceType:1000, pid:21323, agentVersion:1, vmVersion:1, startTimestamp:1475191762258) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:12, apiInfo:redis/RedisClient/prototype.sql()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:12, apiInfo:redis/RedisClient/prototype.sql()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:13, apiInfo:redis/RedisClient/prototype.internal_send_command()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:13, apiInfo:redis/RedisClient/prototype.internal_send_command()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:14, apiInfo:redis/RedisClient/prototype.send_command()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:14, apiInfo:redis/RedisClient/prototype.send_command()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:11, apiInfo:mqtt-connection/prototype.on()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:11, apiInfo:mqtt-connection/prototype.on()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:15, apiInfo:redis/command.callback()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:15, apiInfo:redis/command.callback()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:16, apiInfo:callback()) 09-29 23:29:27 [INFO ](c.n.p.c.h.ApiMetaDataHandler :51) Received ApiMetaData=TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:17, apiInfo:rabbitMQClient()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:16, apiInfo:callback()) 09-29 23:29:27 [DEBUG](c.n.p.c.d.h.HbaseApiMetaDataDao :54) insert:TApiMetaData(agentId:10.24.163.186, agentStartTime:1475191762258, apiId:17, apiInfo:rabbitMQClient()) 09-29 23:30:40 DEBUG DefaultPinpointClientHandler@53be6964 writePing() started. channel:[id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:30:40 DEBUG ping write success. channel:[id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:30:40 [DEBUG](c.n.p.r.c.PacketDecoder :96) receive pong. [id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:31:26 [DEBUG](c.n.p.r.s.PinpointServerAcceptor :282) newPingTimeout 09-29 23:31:26 [DEBUG](c.n.p.r.c.PacketDecoder :96) receive pong. [id: 0x5f2c0a15, /10.24.163.186:57307 => /172.17.0.2:29994] 09-29 23:31:26 [DEBUG](c.n.p.r.s.PinpointServerAcceptor :55) ping write success channel:[id: 0x20a97949, /10.24.163.186:57308 => /172.17.0.2:29994] 09-29 23:31:26 [DEBUG](c.n.p.r.s.PinpointServerAcceptor :55) ping write success channel:[id: 0x5f2c0a15, /10.24.163.186:57307 => /172.17.0.2:29994] 09-29 23:31:26 [DEBUG](c.n.p.r.c.PacketDecoder :96) receive pong. [id: 0x20a97949, /10.24.163.186:57308 => /172.17.0.2:29994] 09-29 23:33:01 [DEBUG](c.n.p.r.c.PacketDecoder :113) received ping. sending pong. [id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:33:01 [DEBUG](c.n.p.r.c.PacketDecoder :55) pong write success. channel:[id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:35:40 DEBUG DefaultPinpointClientHandler@53be6964 writePing() started. channel:[id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:35:40 DEBUG ping write success. channel:[id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:35:40 [DEBUG](c.n.p.r.c.PacketDecoder :96) receive pong. [id: 0x71917f2c, /172.17.0.2:35360 => /172.17.0.2:29997] 09-29 23:36:26 [DEBUG](c.n.p.r.s.PinpointServerAcceptor :282) newPingTimeout

pinpoint.config;

agent conf

agent.id = 10.24.163.186 agent.application.name = samplenodeweb agent.service.type = 1000

trace metadata manager

trace.manager.enable = true trace.metadata.retention = 30000

agent stat manager

time should be 1000 ~ 60000(1s ~ 60s)

agent.stat.collect.interval = 10000

Collector server

profiler.collector.ip=10.24.92.101

placeHolder support "${key}"

profiler.collector.span.ip=${profiler.collector.ip} profiler.collector.span.port=29996

placeHolder support "${key}"

profiler.collector.stat.ip=${profiler.collector.ip} profiler.collector.stat.port=29995

placeHolder support "${key}"

profiler.collector.tcp.ip=${profiler.collector.ip} profiler.collector.tcp.port=29994

Profiler Global Configuration

profiler.enable=true

profiler.interceptorregistry.size=8192 profiler.jvm.collect.interval=1000

Allow to add detailed collector's metrics

profiler.jvm.collect.detailed.metrics=true

Allow sampling.

profiler.sampling.enable=true

1 out of n transactions will be sampled where n is the rate. (1: 100%)

profiler.sampling.rate=1

Allow buffering when flushing span to IO.

profiler.io.buffering.enable=true

How many spans to store if buffering enabled.

profiler.io.buffering.buffersize=20

Capacity of the SpanDataSender write queue.

profiler.spandatasender.write.queue.size=5120

profiler.spandatasender.socket.sendbuffersize=1048576

profiler.spandatasender.socket.timeout=3000

profiler.spandatasender.chunk.size=16384

Please review

Thanks Sattish

peaksnail commented 7 years ago

hi the node agent can just support plugins with redis,express,mqtt-connection and amqp-rpc now. In the collector log,it starts ok and inserts the api meta data info to hbase.But It doesn't trace well.

Could you show me the pinpoint node agent log(info and debug) in pinpoint-node-agent/agent/log?

And you can have a try to set (May be it doesn't work) trace.manager.enable = false trace.metadata.retention = 0

sattishv commented 7 years ago

Hi Team,

Thanks for the response. Have attached the logs you mentioned . Meantime will try disabling the flags as listed by you.

hermesnodeweb-debug-2016-09-29.txt hermesnodeweb-info-2016-09-29.txt Thanks Sattish

peaksnail commented 7 years ago

I found the agent load the express plugin, but it doesn't work.

There maybe has two reasons:

The wrapped methods list in "agent/plugins/core/express/api.js"

And you could see the plugin develop (https://github.com/peaksnail/pinpoint-node-agent/wiki/Pinpoint-node-agent-Plugin-Developer-Guide)

you can run the test ./node_modules/.bin/mocha test/plugins/core/express/wrap.test.js to test the wrapped method and use the following project to test

require('./pinpoint-node-agent/index.js');
var express = require('express');
var app = express();

app.get('/', function (req, res) {
  res.send('Hello World!');
});

app.get('/hello', function (req, res) {
  res.send('Hello World! visit path hello');
});

app.listen(3000, function () {
  console.log('Example app listening on port 3000!');
});

It will be traced well.

Please feel free to let me know it works for you

sattishv commented 7 years ago

Hi team,

We tried but not able to trace any calls related to node apps. Is their any other way we can approach this.

Thanks Sattish.

peaksnail commented 7 years ago

Node express now just supports follwing api tracing listed in "pinpopint-node-agent/agent/plugins/core/express/api.js"

'use strict';
//api list
module.exports = {
'express.Route.get': '',
'express.Route.post': '',
'express.Route.delete': '',
'express.Route.put': '',
'express.application.handle': '',
};
var express = require('express');
var app = express();

app.get/post/put/delete will call these functions

Could you confirm that your node app have called these functions ?

If yes,something should be traced.

And have you try to start node app without nginx?(Though i think there is no difference for tracing)