@sentry/nestjs
SentryTraced
decorator does not retain metadata
#14384
Labels
Package: nestjs
Issues related to the Sentry Nestjs SDK
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nestjs
SDK Version
8.38.0
Framework Version
NestJS 10.4.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
If you apply the
SentryTraced
decorator to a function, it replaces it with a new function that retains the name of the original function but does not copy over the metadata usingreflect-metadata
that may have been applied by another decorator (which is a common pattern in NestJS) such asSetMetadata
from@nestjs/common
.Expected Result
After the decorator assigns
decorator.value
, it should do something like:I have applied a patch to get things working for us that does exactly this
Actual Result
It does not copy the metadata so other functionality that relies on it breaks.
The text was updated successfully, but these errors were encountered: