Skip to content

Commit 30caea5

Browse files
committed
add docs for event emitter
1 parent ce9f196 commit 30caea5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: NestJS Event Emitter
3+
description: "Learn about instrumenting NestJS event based services."
4+
---
5+
6+
<Note>
7+
The @nestjs/event-emitter module is auto-instrumented from version `@sentry/nestjs` 8.39.0 and up.
8+
</Note>
9+
10+
The NestJS SDK wraps the `@OnEvent` decorator automatically to:
11+
12+
- Create performance traces for event handler executions
13+
- Automatically capture any unhandled exceptions that occur in event handlers
14+
- Maintain visibility into asynchronous event-driven flows
15+
16+
When an event handler is executed, a new span is created to track its performance, and any errors are automatically reported to Sentry while preserving the original error behavior.
17+
18+
This instrumentation works transparently with existing NestJS event handlers without requiring any code changes to your application.

0 commit comments

Comments
 (0)