---
title: "SentryTraced Decorator"
description: "Learn about Sentry's SentryTraced decorator."
url: https://docs.sentry.io/platforms/javascript/guides/nestjs/features/sentry-traced-decorator/
---

# SentryTraced Decorator | Sentry for Nest.js

Available since: `v8.15.0`

The NestJS SDK includes a `@SentryTraced` decorator that will create spans whenever the method it decorates is invoked. This feature enables more granular performance monitoring and helps you gather detailed insights into the performance of individual functions within your application.

To get started import `SentryTraced` from `@sentry/nestjs` and use it to decorate a function of your choice:

```typescript
import { SentryTraced } from "@sentry/nestjs";

export class MyService {
  @SentryTraced()
  myFunction() {
    // Your function logic here
  }
}
```
