Add example apm.dev.js config file to CONTRIBUTING.md (#52206)

This commit is contained in:
Thomas Watson 2019-12-05 14:45:44 +01:00 committed by GitHub
parent 9fe302cf17
commit fb4a6aa21a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -387,6 +387,14 @@ To activate the APM agent, use the [`active`](https://www.elastic.co/guide/en/ap
All config options can be set either via environment variables, or by creating an appropriate config file under `config/apm.dev.js`.
For more information about configuring the APM agent, please refer to [the documentation](https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuring-the-agent.html).
Example `config/apm.dev.js` file:
```js
module.exports = {
active: true,
};
```
Once the agent is active, it will trace all incoming HTTP requests to Kibana, monitor for errors, and collect process-level metrics.
The collected data will be sent to the APM Server and is viewable in the APM UI in Kibana.