Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events integration #18

Merged
merged 14 commits into from
Dec 2, 2023
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
dist
.DS_Store
.idea
.idea
.env
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ openapm.instrument('mysql');
OpenAPM currently supports RED Metrics for NestJS v4 and above.

```js
openapm.instrument('nestjs')
openapm.instrument('nestjs');
```

## Options
Expand Down Expand Up @@ -112,13 +112,30 @@ const openapm = new OpenAPM({
}
```
9. `excludeDefaultLabels`: (Optional) Provide labels to exclude from the default labels

```js
{
...
excludeDefaultLabels: ['environment', 'version']
}
```

10. `levitateConfig`: (Optional) Configuration for Levitate TSDB. Adding this configuration will enable the [Change Events](https://docs.last9.io/docs/change-events).

```js
{
...
levitateConfig: {
host: 'https://app.last9.io',
orgSlug: 'last9', /** The slug can be obtained from the Last9 dashboard.*/
dataSourceName: 'data-source', /** The data source can be obtained from the data source pages in the Last9 dashboard*/
refreshTokens: {
write: '0d2a1a9a45XXXXXXXXXXXXXX3f1342790d2a1a9a45XXXXXXXXXXXXXX3f1342790d2a1a9a45XXXXXXXXXXXXXX3f134279' /** You can get this from the API access page on Last9 dashboard*/
}
}
}
```

## Setup locally

Make sure you are in the express directory.
Expand Down
Loading
Loading