Skip to content

[Bug]: Method MongoDB\Driver\Monitoring\CommandStartedEvent::getServer() is deprecated #2873

@pkowalski700lm

Description

@pkowalski700lm

Bug report

Hello,

On ddtrace version 1.3.2 we started to see deprecated errors:
[2024-10-03T11:31:28.372812+02:00] php.INFO: Deprecated: Method MongoDB\Driver\Monitoring\CommandStartedEvent::getServer() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Method MongoDB\Driver\Monitoring\CommandStartedEvent::getServer() is deprecated at /opt/datadog/dd-library/1.3.2/dd-trace-sources/src/DDTrace/Integrations/MongoDB/MongoDBIntegration.php:25)"} {"trace_id":"0ff9215c-2e7b-4cda-8c49-77b08b8df5a9"}

PHP version

8.3.11

Tracer or profiler version

1.3.1

Installed extensions

[PHP Modules]
bcmath
calendar
Core
ctype
curl
datadog-profiling
date
ddappsec
ddtrace
dom
fileinfo
filter
ftp
gd
hash
iconv
imagick
intl
json
ldap
libxml
mbstring
mongodb
mysqlnd
openssl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_sqlite
pdo_sqlsrv
Phar
posix
random
rdkafka
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
sqlsrv
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

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

Output of phpinfo()

No response

Upgrading from

No response

Metadata

Metadata

Assignees

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