@yunflyjs/yunfly-plugin-apm
v0.0.1
Published
yunfly apm plugin.
Downloads
2
Readme
@yunflyjs/yunfly-plugin-apm
yunfly apm plugin.
Usage
- install
yarn add @yunflyjs/yunfly-plugin-apm
- declare plugins in config/config.plugin.ts
/**
* yunfly plugin
*/
const plugins: {[key:string]: string}[] = [
{
name: 'jwt',
package: '@yunflyjs/yunfly-plugin-apm'
}
];
//
export default plugins;
- enable plugins in config/config.default.ts
config.apm = {
active: true,
}
- complete parameters:https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html
api
- getApm
get apm object.
Contribution
Contributions are extremely welcomed by our team, you can contribute to this repository by several ways below.
- Submit GitHub Issue to report errors or ask questions
- Create Pull Request to improve our code
- Contribution guide