Performance Integrations

The Symfony SDK offers integrations to support tracing that are enabled by default. To use them, update to the latest version of the SDK.

If the vendors (DBAL, Cache, and Twig) are installed, enabled will be set to true, so it's likely that this configuration is the same in your app.

These integrations are hooking into critical paths of the framework and of the vendors. As a result, there may be a performance penalty. If you are updating from a previous version or installing the SDK, you may observe a degradation of your app performance, though it may not be noticeable. If you need to disable tracing, you can do so by setting enabled to false.

config/packages/sentry.yaml
Copied
sentry:
  tracing:
    enabled: true
    dbal: # DB queries
      enabled: true
    cache:
      enabled: true
    twig: # templating engine
      enabled: true

You can adjust the integrations to your needs if you want to disable a specific integration.

DBAL

This integration supports tracking database queries as Spans. Enabling this option will create Spans for your queries.

It is enabled by default. To disable tracking database queries, set enabled to false.

config/packages/sentry.yaml
Copied
sentry:
  tracing:
    dbal: # DB queries
      enabled: true

Twig

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

It is enabled by default. To disable it, set enabled to false.

config/packages/sentry.yaml
Copied
sentry:
  tracing:
    twig: # templating engine
      enabled: true

Cache

This integration adds support for distributed tracing of cache pools.

It is enabled by default. To disable it, set enabled to false.

config/packages/sentry.yaml
Copied
sentry:
  tracing:
    cache: # cache pools
      enabled: true