Skip to content

Conversation

chargome
Copy link
Member

@chargome chargome commented May 15, 2025

Problem is that within the execution there is no way of detecting the triggering event.

  • Because of this we now emit a merged transaction name of all applied events – but will add a note on docs that we recommend just putting one decorator per function. We do this by reading the metadata applied on the function by nestjs.
  • Adds a flag to avoid double wrapping of the descriptor value (this way we get the correct payload per event and make sure the handler is executed for each event)

closes #15218

@chargome chargome self-assigned this May 15, 2025
@chargome chargome marked this pull request as ready for review May 15, 2025 14:28
@chargome chargome requested review from andreiborza and mydea May 15, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nest-js instrumentation breaks @nestjs/event-emitter when using multiple @OnEvent on the same method

2 participants