Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ sentry:
enabled: true
dbal:
enabled: true
ignore_prepare_spans: false
connections:
- default
twig:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ sentry:
enabled: false
```

By default, Doctrine ORM prepares each SQL query before executing it. This leads to traces that contain both `db.sql.prepare` and `db.sql.execute` spans for the same query. Set `ignore_prepare_spans` to `true` to suppress the prepare spans and keep your traces more compact.

```yaml {filename:config/packages/sentry.yaml}
sentry:
tracing:
dbal: # DB queries
ignore_prepare_spans: true
```

## Twig

This integration adds distributed tracing for Twig template rendering using Sentry.
Expand Down
Loading