Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,23 @@ In traceId mode the header name can be changed with the `header` configuration o

## Sentry integration

When enabled, the bundle will add `trace_id` and `transaction_id` tags to the Sentry reports.
By default sentry has its own trace id and transaction id which will be propagated through the Sentry SDK. However this traceId will be different
than the one generated by this bundle. To fully integrate with Sentry you have to set `$config->sentry()->enabled(true)` for this bundle and
disable Sentry's own tracing by setting `$sentry->tracing()->enabled(false);` in your Sentry configuration.

**Example:**
```php
// config/packages/sentry.php
return static function (SentryConfig $sentry): void {
$sentry->tracing()->enabled(false);
};

// config/packages/symfony_trace_bundle.php
return static function (SymfonyTraceConfig $config): void {
$config->sentry()->enabled(true);
};
```
This will ensure that the traceId and transactionId generated by this bundle will be used in Sentry reports.

## About us

Expand Down