README.md 1.3 KB
Newer Older
X
Xin,Zhang 已提交
1
# skywalking-nodejs
X
Xin,Zhang 已提交
2 3 4 5 6 7 8

<img src="https://skywalkingtest.github.io/page-resources/3.0/skywalking.png" alt="Sky Walking logo" height="90px" align="right" />

skywalking-nodejs is the Node.js agent for [Apache SkyWalking(Incubating) APM](https://github.com/apache/incubator-skywalking).

[![Build Status](https://travis-ci.org/OpenSkywalking/skywalking-nodejs.svg?branch=master)](https://travis-ci.org/OpenSkywalking/skywalking-nodejs)

X
Xin,Zhang 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
## Quick Start

### Installation
Add the skywalking-nodejs module as a dependency to your application:
> npm install skywalking-nodejs --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.

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

X
Xin,Zhang 已提交
31 32 33 34 35
## Contribution
Welcome and highly value any suggestion. Join our [gitter room](https://gitter.im/openskywalking/Lobby).

## License
[Apache 2.0](LICENSE.md)