---
title: "Tracing"
description: "Learn how to trace event handlers, cold starts, and AWS SDK calls on AWS Lambda with the Bref integration."
url: https://docs.sentry.io/platforms/php/guides/bref/tracing/
---

# Set Up Tracing for Bref

On Lambda, the integration adds what the Sentry SDK can't trace on its own: transactions for event handlers, cold starts, and AWS SDK calls.

It only sends them when tracing is enabled. To enable it, set the `traces_sample_rate` option of the Sentry SDK to a value greater than `0.0`:

```php
\Sentry\init([
    'dsn' => 'https://<key>@o<orgId>.ingest.sentry.io/<projectId>',
    'traces_sample_rate' => 1.0,
]);
```

With Laravel or Symfony, set this option in the configuration of their Sentry SDK (see [Laravel](https://docs.sentry.io/platforms/php/guides/laravel.md#tracing) or [Symfony](https://docs.sentry.io/platforms/php/guides/symfony/tracing.md)).

* #### [Automatic Instrumentation](https://docs.sentry.io/platforms/php/guides/bref/tracing/automatic-instrumentation.md)

  Learn which transactions and spans the Bref integration captures automatically: event handlers, cold starts, and restarts.

* #### [AWS SDK](https://docs.sentry.io/platforms/php/guides/bref/tracing/aws-sdk.md)

  Learn how to trace AWS SDK calls as spans and breadcrumbs with the Bref integration.

## Pages in this section

- [Automatic Instrumentation](https://docs.sentry.io/platforms/php/guides/bref/tracing/automatic-instrumentation.md)
- [AWS SDK](https://docs.sentry.io/platforms/php/guides/bref/tracing/aws-sdk.md)
