Skip to content

TracingDriverConnectionFactory calls the deprecated method AbstractMySQLPlatform::getName() #728

@W0rma

Description

@W0rma

Environment

  • PHP 8.2
  • sentry/sentry-symfony:4.8.0

Steps to Reproduce

AbstractMySQLPlatform::getName() was deprecated in doctrine/dbal#4749 but is still used in Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverConnectionFactory.

This triggers the following deprecation warning:

AbstractMySQLPlatform::getName() is deprecated. Identify platforms by their class. (AbstractMySQLPlatform.php:1209 called by TracingDriverConnectionF
actory.php:40, https://github.com/doctrine/dbal/issues/4749, package doctrine/dbal)

Doctrine team suggests to use the class name to identify the platform instead.

As far as I can see the only usage of the platform name is in Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingDriverConnection::getSpanTags().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions