@nestjs/observe 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/interfaces/observe-options.interface.d.ts +12 -1
- package/dist/observe.module.js +6 -0
- package/dist/protocols/queue-observe-agent.service.d.ts +9 -0
- package/dist/protocols/queue-observe-agent.service.js +29 -1
- package/dist/protocols/rpc-observe-agent.service.d.ts +16 -1
- package/dist/protocols/rpc-observe-agent.service.js +50 -9
- package/dist/protocols/schedule-observe-agent.service.d.ts +54 -0
- package/dist/protocols/schedule-observe-agent.service.js +225 -0
- package/dist/services/operation-trace.registry.d.ts +15 -0
- package/dist/services/operation-trace.registry.js +36 -17
- package/dist/utils/optional-peer.util.d.ts +36 -0
- package/dist/utils/optional-peer.util.js +38 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## Description
|
|
19
19
|
|
|
20
|
-
`@nestjs/observe` is an observability module for [NestJS](https://nestjs.com) applications. It instruments HTTP, GraphQL, microservice (RPC),
|
|
20
|
+
`@nestjs/observe` is an observability module for [NestJS](https://nestjs.com) applications. It instruments HTTP, GraphQL, microservice (RPC), BullMQ queue handlers, and `@nestjs/schedule` cron/interval/timeout jobs, collects traces, runtime metrics, custom metrics, and CPU profiles, and ships them to a collector from a detached worker thread so the request path stays untouched.
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
$ npm install @nestjs/observe
|
|
@@ -29,6 +29,8 @@ Sign up at **[observe.nestjs.com](https://observe.nestjs.com)** and create a
|
|
|
29
29
|
service. The dashboard issues an **app key** and an **app secret**, which the
|
|
30
30
|
agent sends on every ingest request.
|
|
31
31
|
|
|
32
|
+
**Free for up to 300,000 events a month**, which covers most individual projects, startups, and small applications.
|
|
33
|
+
|
|
32
34
|
The secret is shown once and is not retrievable afterwards - store it with the
|
|
33
35
|
rest of your secrets and supply both from the environment:
|
|
34
36
|
|
|
@@ -118,6 +120,7 @@ Protocol integrations are only loaded when you use them, and their packages are
|
|
|
118
120
|
- `@nestjs/microservices` - RPC/microservice instrumentation
|
|
119
121
|
- `@nestjs/graphql` - GraphQL operation instrumentation
|
|
120
122
|
- `@nestjs/bullmq` and `bullmq` - queue/job instrumentation
|
|
123
|
+
- `@nestjs/schedule` - scheduled job (`@Cron`, `@Interval`, `@Timeout`) instrumentation
|
|
121
124
|
|
|
122
125
|
## Test
|
|
123
126
|
|