skyapm / skyapm-nodejs Goto Github PK
View Code? Open in Web Editor NEWThe NodeJS server side agent for Apache SkyWalking
License: Apache License 2.0
The NodeJS server side agent for Apache SkyWalking
License: Apache License 2.0
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
Should be new RegisterParameteres.Endpoints();
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.
本地通过docker 启用skywalking 7,nodejs使用skyapm-nodejs调用skywalking, qps越高持续时间越长内存增的越快,平均约qps:3000 每十秒增加500M,
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/");
});
Hi there,
have you published this package to npm? I can't install it by npm install skywalking-nodejs
.
What is the difference between skyAPM-nodejs and elastic-apm-node?
现象:
hi, I've setup my nodejs
app according to the doc, but I can't see any data on skywalking UI. How can I know node agent has send data to server or not?
Does this commit below was published to npm ? I download the last version 1.1.2, pls check it
skywalking version:5.0.0-RC2
nodejs code:
require('skywalking-nodejs').start({
applicationCode: 'test',
directServers: '172.17.35.204:11800'
});
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)
When will 2.0.0 be released to support SW8?
expect
WebstormProjects.zip
接口方法执行较长时间,会出现调用链串联,详看demo:ExpressA call ExpressB
在浏览器打开两个以上TAB,同时请求:http://localhost:3003/expressA/api
请问下,在应用里,添加如何向当前span添加日志?
直接使用debug 没有生效
Success integrate with node 8, but failed with node 10.
客户端是node支持的dubbo框架,然后调用dubbo服务端
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.
On tracing we don't see may metrics.
Is there way it's possibilities adding these metrics and profiling in depth.
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!
我的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, 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)
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
问题:apache/skywalking#3094
例外我想找nodejs agent的默认配置列表,像java agent一样
https://github.com/apache/skywalking/blob/v6.1.0/docs/en/setup/service-agent/java-agent/README.md
官方文档很多链接都是404,不知道去哪里找这个列表
does SkyAPM-nodejs support namespace setting?
Adjust the collection sample strategy to ease collector pressure
You can write down the framework or component you want to support, and I will try my best thing to support it。
The format of the message:
Support framework: egg framework
Test demo: https://github.com/SkywalkingTest/egg-example
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
Successful integration with http, and failed with https.
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
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
Currently, Node.js agent only support redirect mode, and it cause that the agent cannot send data to collector when the redirect address is broke.
I can't see any thing about namespace.
您好,我看了一下代码,发现使用的是 Module._load ,本人基础不够,所以想请问一下 对于Node 9 上使用es6的 import 语法会不会有影响
本机没有问题,但部署到正式环境就会出现Segmentation fault (core dumped)问题,这是什么原因?
exports:
{ Notice: [Function: Notice],
NoticeManager: [Function: NoticeManager] } }
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 ~]#
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 ]
`
There is a need to monitor the performance of static resource services in special situations.
请问下,在项目中使用axios 调用其它服务接口时,如何把跟踪信息的header传过去?
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.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.