---
title: "transaction_info"
url: https://develop.sentry.dev/sdk/foundations/transport/event-payloads/properties/transaction_info/
---

# undefined

* `transaction_info`

  *Recommended*. Additional information about the name of the transaction.

```json
{
  "transaction_info": {
    "source": "route"
  }
}
```

* `transaction_info.source`

  *Required*. This information is required by dynamic sampling.Contains information about how the name of the transaction was determined.This will be used by the server to decide whether or not to scrub identifiersfrom the transaction name, or replace the entire name with a placeholder. The `source` shouldonly be set by integrations and not by developers directly.

| Source      | Description                                                                                                                     | Examples                                          |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `custom`    | User-defined name, see [`setTransactionName()`](https://docs.sentry.io/platforms/javascript/enriching-events/transaction-name/) | `my_transaction`                                  |
| `url`       | Raw URL, potentially containing identifiers.                                                                                    | `/auth/login/john123/` `GET /auth/login/john123/` |
| `route`     | Parametrized URL / route                                                                                                        | `/auth/login/:userId/` `GET /auth/login/{user}/`  |
| `view`      | Name of the view handling the request.                                                                                          | `UserListView`                                    |
| `component` | Named after a software component, such as a function or class name.                                                             | `AuthLogin.login` `LoginActivity.login_button`    |
| `task`      | Name of a background task (e.g. a Celery task)                                                                                  | `sentry.tasks.do_something`                       |
| `unknown`   | *Value set by Relay for legacy SDKs. SDKs must not set this value explicitly.*                                                  |                                                   |
