Git Product home page Git Product logo

skyapm-nodejs's People

Contributors

a526672351 avatar ascrutae avatar jasper-zsh avatar jozdortraz avatar kezhenxu94 avatar rovast avatar runrioter avatar tj666 avatar wu-sheng avatar zouyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skyapm-nodejs's Issues

unCaught exception: TypeError: RegisterParameteres.Enpoints is not a constructor

Observed the below error with latest version:

error: unCaught exception: TypeError: RegisterParameteres.Enpoints is not a constructor
at RemoteClient.registerEndpoint (/lib/services/remote-client-service.js:121:32)
at Timeout._onTimeout (/lib/dictionary/endpoint-dictionary.js:51:54)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10) uid=19151820-3db1-11ea-b80b-a7e8dd8929f2

Look like there is a typo @ line

let endpointsParameteres = new RegisterParameteres.Enpoints();

Should be new RegisterParameteres.Endpoints();

Unable to see any data on UI

Question

  • Skywalking UI is not showing any data with node js application.

Bug

Build docker images with latest code and used docker for running on mac, OAP server starts and shows the UUID mentioned in the nodejs application, UI starts and gets connected with OAP Server but still no data on the UI.


Requirement or improvement

  • Please give a small demo of Skywalking UI with node application...

高qps情况下内存暴增

内存暴增

本地通过docker 启用skywalking 7,nodejs使用skyapm-nodejs调用skywalking, qps越高持续时间越长内存增的越快,平均约qps:3000 每十秒增加500M,

image

demo压测代码

require("skyapm-nodejs").start({
  serviceName: "local-demo",
  directServers: "127.0.0.1:11800",
});

const http = require("http");
const server = http.createServer((req, res) => {
  res.end("success");
});
server.listen(8000, function() {
  console.log("http://127.0.0.1:8000/");
});

TraceId is reused

When I restart the app, the new request will generate new TraceId, but after a few minutes, the new request will reuse a TraceId.
image
image

npm package is not found.

Hi there,

have you published this package to npm? I can't install it by npm install skywalking-nodejs.

Exception information: “Error: 14 UNAVAILABLE: Trying to connect an http1.x server”

  1. skywalking version:5.0.0-RC2

  2. nodejs code:
    require('skywalking-nodejs').start({
    applicationCode: 'test',
    directServers: '172.17.35.204:11800'
    });

  3. error message :
    Error: 14 UNAVAILABLE: Trying to connect an http1.x server
    at Object.exports.createStatusError (E:\source\webservice\nodeTest\node_modules\grpc\src\common.js:87:15)
    at Object.onReceiveStatus (E:\source\webservice\nodeTest\node_modules\grpc\src\client_interceptors.js:1188:28)
    at InterceptingListener._callNext (E:\source\webservice\nodeTest\node_modules\grpc\src\client_interceptors.js:564:42)
    at InterceptingListener.onReceiveStatus (E:\source\webservice\nodeTest\node_modules\grpc\src\client_interceptors.js:614:8)
    at callback (E:\source\webservice\nodeTest\node_modules\grpc\src\client_interceptors.js:841:24)

如何添加span日志?

请问下,在应用里,添加如何向当前span添加日志?
直接使用debug 没有生效

No Service

  1. I use 6.0.0-GA
  2. use egg framework
    image
    I log , The serivce register, but use web, is not, but Endpoint is OK!

image

Node JS Skywalking support

We are evaluating the Node JS implementation on Skywalking. During the Evaluation we had observed certain issue. Just checking is there any alternative methods of retrieving them.

We have node js application deployed on the Docker. We can see the Node js container getting connected to Skywalk successfully, Don't see any performance metrics.

  1. CPU
  2. Memory
  3. Heap
  4. Event loops

image

On tracing we don't see may metrics.

image

Is there way it's possibilities adding these metrics and profiling in depth.

Does SkyAPM-nodejs support to use in Opentracing way?

Hi! We are planning to add tracing to a nodejs project. Due to some reasons, we cannot use the below way to instrument our code.
require("skyapm-nodejs").start({ serviceName: "test", });
So we are wondering if SkyAPM-nodejs supports to use in Opentracing way? Just like below:
// Replace this line with the tracer implementation of your choice. const tracer = new opentracing.Tracer(); // new a SkyAPM-nodejs tracer and then we can use it const span = tracer.startSpan('http_request'); const opts = { host : 'example.com', method: 'GET', port : '80', path: '/', }; http.request(opts, res => { res.setEncoding('utf8'); res.on('error', err => { // assuming no retries, mark the span as failed span.setTag(opentracing.Tags.ERROR, true); span.log({'event': 'error', 'error.object': err, 'message': err.message, 'stack': err.stack}); span.finish(); }); res.on('data', chunk => { span.log({'event': 'data_received', 'chunk_length': chunk.length}); }); res.on('end', () => { span.log({'event': 'request_end'}); span.finish(); }); }).end();
Thank you!

Support thinkjs framework

image
i use client for thinkjs framework (version:2.2),but have some trouble,the reported data exists for one time only.but it is ok in java client.

High cpu and out of memory in production

there was high cpu usage , and high latency.
but it was turn to normal when i shut down apm.

infomation:
node client version:v1.0
thinkjs version:2.2

cpu idle:
image

node js 项目引用 skywalking-nodejs 会提示缺失network 模块

我的demo地址https://github.com/madhums/node-express-mongoose-demo
会出现以下错误:
[bogon] root@: /nodejs /node-express mongoose-demo# npm start
nodejs-express -mongoosedemo@400 start /root/nodejs/node-exp ress -mongoosedemol cross-env NODE_ ENv=development ./node_ modules/ .bin/nodemon server.js
[nodemon] 1.14.2
[nodemon] to restart at any time, enter rs[nodemon] watching:
[nodemon] starting node server.jsimodule.js:471
throw err:
Error: Cannot find module '. ./network/Common_ pb'
at Function.odule. resolveFilename (module. js :469:15)at Function.Module._ load (module. js:4l7:25)at Module. require (module. js:497:i7)at require (internal/module. js:20:19)
at object. (1 root/nodejs/node-express -mongoose-demo/node modules/skywalking -nodejs/lib/trace/spanjsat Module._ compile (module.js:570:32)
at Object .Module._ extensions. . js (module. js:579:10)at Module.load (module.js:48732at tryModuleLoad (module.js:446:l2)
at Function .Module._ load (module. js:438:3)
[nodenon] app crashed waiting for. file changes before starting..
解决方法:
进入node_modules/skywalking-nodejs 目录 后安装依赖
npm install
然后生成network
npm run prepare

6.0.0-GA cross app examples tracing error

6.0.0-GA, standalone, skyapm-nodejs1.1.0 cross app example,serverA & serverB could run correctly, when serverA calls serverB, throw exception, seeing the screenshot

serverB exception:
C:\Users\lenovo\WebstormProjects\untitled1\node_modules\mysql\lib\protocol\Parser.js:80
throw err; // Rethrow non-MySQL errors
^
AssertionError: Assertion failed
at new goog.asserts.AssertionError (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:101:603)
at Object.goog.asserts.doAssertFailure_ (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:102:126)
at Object.goog.asserts.assert (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:102:385)
at jspb.BinaryWriter.writeInt32 (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:330:264)
at proto.SegmentReference.serializeBinaryToWriter (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\skyapm-nodejs\lib\network\language-agent-v2\trace_pb.js:558:12)
at jspb.BinaryWriter.writeRepeatedMessage (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:350:385)
at proto.SpanObjectV2.serializeBinaryToWriter (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\skyapm-nodejs\lib\network\language-agent-v2\trace_pb.js:981:12)
at jspb.BinaryWriter.writeRepeatedMessage (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\google-protobuf\google-protobuf.js:350:385)
at Function.proto.SegmentObject.serializeBinaryToWriter (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\skyapm-nodejs\lib\network\language-agent-v2\trace_pb.js:179:12)
at proto.SegmentObject.serializeBinary (C:\Users\lenovo\WebstormProjects\untitled1\node_modules\skyapm-nodejs\lib\network\language-agent-v2\trace_pb.js:155:23)

backend Server exception:
Apr 01, 2019 9:46:39 AM io.grpc.internal.SerializingExecutor run
SEVERE: Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1Closed@120c52eb
io.grpc.StatusRuntimeException: CANCELLED: call already cancelled
at io.grpc.Status.asRuntimeException(Status.java:517)
at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onCompleted(ServerCalls.java:356)
at org.apache.skywalking.oap.server.receiver.trace.provider.handler.v6.grpc.TraceSegmentReportServiceHandler$1.onError(TraceSegmentReportServiceHandler.java:66)
at io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onCancel(ServerCalls.java:269)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closed(ServerCallImpl.java:293)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1Closed.runInContext(ServerImpl.java:738)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

error: unCaught exception: AssertionError: Assertion failed

Getting the below error when i run my node application in a centos 7 machine. Same works fine in Ubuntu 18.0.4
SkyAPM-nodejs: v1.1.2
What are the possible reasons of this failure?

error: unCaught exception: AssertionError: Assertion failed
at new goog.asserts.AssertionError (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:81:876)
at Object.goog.asserts.doAssertFailure_ (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:82:257)
at Object.goog.asserts.assert [as assert] (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:83:83)
at jspb.BinaryWriter.writeInt32 (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:482:77)
at proto.SegmentReference.serializeBinaryToWriter (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/network/language-agent-v2/trace_pb.js:544:12)
at jspb.BinaryWriter.writeRepeatedMessage (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:505:385)
at proto.SpanObjectV2.serializeBinaryToWriter (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/network/language-agent-v2/trace_pb.js:981:12)
at jspb.BinaryWriter.writeRepeatedMessage (/home/uhmuser/builtio/integration-exchange/node_modules/google-protobuf/google-protobuf.js:505:385)
at Function.proto.SegmentObject.serializeBinaryToWriter (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/network/language-agent-v2/trace_pb.js:179:12)
at proto.SegmentObject.serializeBinary (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/network/language-agent-v2/trace_pb.js:155:23)
at TraceSegment.transform (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/trace/trace-segment.js:123:62)
at /home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/services/remote-client-service.js:72:30
at /home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:3880:24
at replenish (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:1011:17)
at /home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:1041:24)
at /home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:1046:16
at _parallel (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:3879:5)
at Object.series (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/node_modules/async/dist/async.js:4735:5)
at RemoteClient.sendTraceData (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/services/remote-client-service.js:82:11)
at TraceSegmentCachePool._consumer (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/services/trace-send-service.js:35:52)
at TraceSegmentCachePool.consumeData (/home/uhmuser/builtio/integration-exchange/node_modules/skyapm-nodejs/lib/cache/index.js:43:14) uid=c3572850-26fa-11ea-a456-dbb413050a73

Support trace eggjs framework

The eggjs is the famous web framework that purpose to build better enterprise framework and apps. And Skywalking intent to support trace eggjs framework in next 0.2.0 version. @eggjs

Does SkyAPM-nodejs support to use in Opentracing way?

Hi! We are planning to add tracing to a nodejs project. Due to some reasons, we cannot use the below way to instrument our code.
require("skyapm-nodejs").start({ serviceName: "test", });
So we are wondering if SkyAPM-nodejs supports to use in Opentracing way? Just like below:

// Replace this line with the tracer implementation of your choice.
const tracer = new opentracing.Tracer();  //any method we can new a SkyAPM-nodejs tracer ?

const span = tracer.startSpan('http_request');
const opts = {
    host : 'example.com',
    method: 'GET',
    port : '80',
    path: '/',
};
http.request(opts, res => {
    res.setEncoding('utf8');
    res.on('error', err => {
        // assuming no retries, mark the span as failed
        span.setTag(opentracing.Tags.ERROR, true);
        span.log({'event': 'error', 'error.object': err, 'message': err.message, 'stack': err.stack});
        span.finish();
    });
    res.on('data', chunk => {
        span.log({'event': 'data_received', 'chunk_length': chunk.length});
    });
    res.on('end', () => {
        span.log({'event': 'request_end'});
        span.finish();
    });
}).end();

Thank you!

[email protected] start with an error

[email protected] start with an error
start-script:
--daemon
--require skyapm-egg-require
--sw_pplication_code=14-node
--sw_direct_Servers=172.17.140.41:11800

error-info:
/home/www/icommunity-gateway/node_modules/egg/lib/application.js:40
throw e;
^

TypeError: Cannot read property 'serv' of undefined
at BaseContextClass.get origin [as origin] (/home/www/icommunity-gateway/app/service/credit.js:8:24)
at Instrumentation.enhanceMethod (/home/www/icommunity-gateway/node_modules/skyapm-nodejs/lib/instrumentation/index.js:46:84)
at /home/www/icommunity-gateway/node_modules/skyapm-nodejs/lib/plugins/egg-core/file_loader.js:64:41
at Array.forEach ()
at /home/www/icommunity-gateway/node_modules/skyapm-nodejs/lib/plugins/egg-core/file_loader.js:60:36
at Array.forEach ()
at ContextLoader. (/home/www/icommunity-gateway/node_modules/skyapm-nodejs/lib/plugins/egg-core/file_loader.js:58:21)
at ContextLoader.load (/home/www/icommunity-gateway/node_modules/egg-core/lib/loader/file_loader.js:67:24)
at AppWorkerLoader.loadToContext (/home/www/icommunity-gateway/node_modules/egg-core/lib/loader/egg_loader.js:408:28)
at AppWorkerLoader. (/home/www/icommunity-gateway/node_modules/skyapm-nodejs/lib/plugins/egg-core/egg_loader.js:45:27)
at AppWorkerLoader.loadService (/home/www/icommunity-gateway/node_modules/egg-core/lib/loader/mixin/service.js:24:10)
at AppWorkerLoader.load (/home/www/icommunity-gateway/node_modules/egg/lib/loader/app_worker_loader.js:35:10)
at new Application (/home/www/icommunity-gateway/node_modules/egg/lib/application.js:36:19)
at Object. (/home/www/icommunity-gateway/node_modules/egg-cluster/lib/app_worker.js:19:13)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
2019-04-04 16:42:34,860 ERROR 17170 nodejs.AppWorkerDiedError: [master] app_worker#1:17197 died (code: 1, signal: null, suicide: false, state: dead), current workers: []
at Master.onAppExit (/home/www/icommunity-gateway/node_modules/egg-cluster/lib/master.js:408:21)
at emitOne (events.js:116:13)
at Master.emit (events.js:211:7)
at Messenger.sendToMaster (/home/www/icommunity-gateway/node_modules/egg-cluster/lib/utils/messenger.js:137:17)
at Messenger.send (/home/www/icommunity-gateway/node_modules/egg-cluster/lib/utils/messenger.js:102:12)
at EventEmitter.cluster.on (/home/www/icommunity-gateway/node_modules/egg-cluster/lib/master.js:277:22)
at emitThree (events.js:141:20)
at EventEmitter.emit (events.js:217:7)
at ChildProcess.worker.process.once (internal/cluster/master.js:185:13)
at Object.onceWrapper (events.js:317:30)
name: "AppWorkerDiedError"
pid: 17170

关于 Module._load

您好,我看了一下代码,发现使用的是 Module._load ,本人基础不够,所以想请问一下 对于Node 9 上使用es6的 import 语法会不会有影响

php start error

Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/skywalking.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/skywalking.so: undefined symbol: _ZN6google8protobuf8internal14AddDescriptorsEPKNS1_15DescriptorTableE in Unknown on line 0

extentions:
[root@localhost ~]# php -m | grep pro
protobuf
xhprof
[root@localhost ~]#

How to get working 2.0.0 agent?

In npm libs unable to find 2.0.0 agent
If we add master branch we get the error that ../Network/Common_pb is missing.
Tried to add this lib from agent 1.2.0, but it doesn't work and we get other files are missing.

Would like to know how to make 2.0.0 agent work.
1.2.0 agent works fine.

`npm run check && npm run generate-source

> [email protected] check /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent
> eslint lib/ && eslint index.js


> [email protected] generate-source /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent
> run-script-os


> [email protected] generate-source:darwin:linux /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent
> rm -rf lib/network && mkdir -p lib/network && cd proto && grpc_tools_node_protoc --js_out=import_style=commonjs,binary:../lib/network/ --grpc_out=../lib/network/ common/*.proto language-agent/Tracing.proto management/*.proto

common/*.proto: No such file or directory
/home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/grpc-tools/bin/protoc.js:41
    throw error;
    ^

Error: Command failed: /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/grpc-tools/bin/protoc --plugin=protoc-gen-grpc=/home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/grpc-tools/bin/grpc_node_plugin --js_out=import_style=commonjs,binary:../lib/network/ --grpc_out=../lib/network/ common/*.proto language-agent/Tracing.proto management/*.proto
common/*.proto: No such file or directory

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:443:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:674:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: '/home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/grpc-tools/bin/protoc --plugin=protoc-gen-grpc=/home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/grpc-tools/bin/grpc_node_plugin --js_out=import_style=commonjs,binary:../lib/network/ --grpc_out=../lib/network/ common/*.proto language-agent/Tracing.proto management/*.proto'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] generate-source:darwin:linux: `rm -rf lib/network && mkdir -p lib/network && cd proto && grpc_tools_node_protoc --js_out=import_style=commonjs,binary:../lib/network/ --grpc_out=../lib/network/ common/*.proto language-agent/Tracing.proto management/*.proto`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] generate-source:darwin:linux script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/irmantas/.npm/_logs/2020-06-18T07_13_29_388Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] generate-source: `run-script-os`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] generate-source script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/irmantas/.npm/_logs/2020-06-18T07_13_29_404Z-debug.log
`
`0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'generate-source' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pregenerate-source', 'generate-source', 'postgenerate-source' ]
5 info lifecycle [email protected]~pregenerate-source: [email protected]
6 info lifecycle [email protected]~generate-source: [email protected]
7 verbose lifecycle [email protected]~generate-source: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~generate-source: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent/node_modules/.bin:/home/irmantas/projects/instat/in-instat/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle [email protected]~generate-source: CWD: /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent
10 silly lifecycle [email protected]~generate-source: Args: [ '-c', 'run-script-os' ]
11 silly lifecycle [email protected]~generate-source: Returned: code: 1  signal: null
12 info lifecycle [email protected]~generate-source: Failed to exec generate-source script
13 verbose stack Error: [email protected] generate-source: `run-script-os`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/irmantas/projects/instat/in-instat/node_modules/skyapm-nodejs/modules/nodejs-agent
16 verbose Linux 5.3.0-59-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "generate-source"
18 verbose node v12.18.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] generate-source: `run-script-os`
22 error Exit status 1
23 error Failed at the [email protected] generate-source script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
`

Nodejs call java can not see the call relationship

The frontend uses koa2 to provide front-end services in the nodejs environment. It call the back-end java services. According to their respective configurations, can see the corresponding front-end and back-end apps, but cannot see the front-end call the back-end link relationships.

node v4.8.4 can't use this agent?

my app can't startup,this is error:
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/data/www/nodejs/node_modules/skyapm-nodejs/lib/instrumentation/index.js:22:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.