Skip to content

[Bug]: Bad performances upon Symfony Route cache miss #3622

@B-Galati

Description

@B-Galati

Bug report

Hi! Since we upgraded from 0.98.1 to 1.15.2 (yes big jump).

We noticed some performance degradation on some Symfony routes with low usage (< 0.1 req/s).

So I started investigating and noticed some weird Redis span at the end of our process as you can see on the screenshot at the end.

After investigation it looks like the Redis call comes from SymfonyIntegration when the option DD_TRACE_SYMFONY_HTTP_ROUTE is enabled.

At this stage, I think that somehow, cache misses make the route to be way slower than usual but I don't have any formal proof.
It is expected?

Image

PHP version

$ php -v
PHP 8.3.29 (cli) (built: Dec 19 2025 07:35:34) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.29, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.29, Copyright (c), by Zend Technologies
    with blackfire v1.92.57~linux-x64-non_zts83, https://blackfire.io, by Blackfire
    with ddtrace v1.15.2, Copyright Datadog, by Datadog
    with datadog-profiling v1.15.2, Copyright Datadog, by Datadog
    with ddappsec v1.15.2, Copyright Datadog, by Datadog

Tracer or profiler version

1.15.2

Installed extensions

[PHP Modules]
amqp
apcu
bcmath
blackfire
calendar
Core
ctype
curl
datadog-profiling
date
ddappsec
ddtrace
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
blackfire
datadog-profiling
ddappsec
ddtrace

Output of phpinfo()

Datadog PHP tracer extension
For help, check out the documentation at https://docs.datadoghq.com/tracing/languages/php/
(c) Datadog 2020

Datadog tracing support => enabled
Version => 1.15.2
DATADOG TRACER CONFIGURATION => {
    "date": "2026-02-04T16:40:10Z",
    "os_name": "Linux",
    "os_version": "x.xx.xx-generic",
    "version": "1.15.2",
    "lang": "php",
    "lang_version": "8.3.14",
    "env": "prod",
    "enabled": true,
    "service": "some service",
    "enabled_cli": true,
    "agent_url": "agent_URL",
    "debug": false,
    "analytics_enabled": false,
    "sample_rate": -1,
    "sampling_rules": [],
    "tags": {
        "infra": "rancher",
        "product": "v3",
        "is_sandbox": "false"
    },
    "service_mapping": {
        "curl": "kalos\/curl",
        "guzzle": "kalos\/guzzle",
        "pdo": "kalos\/pdo",
        "phpredis": "kalos\/phpredis"
    },
    "distributed_tracing_enabled": true,
    "dd_version": "2026.02.04.0",
    "architecture": "x86_64",
    "instrumentation_telemetry_enabled": false,
    "sapi": "cli",
    "datadog.trace.sources_path": "\/opt\/datadog\/dd-library\/1.15.2\/dd-trace-sources\/src",
    "open_basedir_configured": false,
    "uri_fragment_regex": null,
    "uri_mapping_incoming": null,
    "uri_mapping_outgoing": null,
    "auto_flush_enabled": true,
    "generate_root_span": false,
    "http_client_split_by_domain": false,
    "measure_compile_time": true,
    "report_hostname_on_root_span": false,
    "traced_internal_functions": null,
    "enabled_from_env": true,
    "opcache.file_cache": null,
    "sidecar_trace_sender": false,
    "loaded_by_ssi": false
}

Upgrading from

0.98.1 -> 1.15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions