1.2.0 • Published 4 years ago

@ajs031985/nodejs-agent v1.2.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

��# nodejs-agent

Installation nodejs module

npm install nodejs-agent@latest --save

Initialization

It s important that the agent is started before you require any other modules in your Node.js application. and you should require and start the agent in your application s main file.

require('nodejs-agent').start({
    // Service name is showed in sky-walking-ui. Suggestion: set an unique name for each service, one
    // service's nodes share the same code.
    // this value cannot be empty.
    serviceName: 'test',
    // Collector agent_gRPC/grpc service addresses.
    // default value: localhost:11800
    directServers: 'localhost:11800'
});