elastic / apm-agent-php

Apache License 2.0
252 stars 69 forks source link

Add support for MongoDB #1046

Open SergeyKleyman opened 1 year ago

SergeyKleyman commented 1 year ago

Useful links

ownion commented 6 months ago

Hi, is there a roadmap/milestone/due date planned to support MongoDB for PHP Agent? Thank you.

intuibase commented 6 months ago

Hi @ownion

Regarding our future plans to add the support for MongoDB client: as you might know the whole of Elastic Observability (which includes APM) is in the process of strategical shift to OpenTelemetry. In particular as part of this new strategy we are working on the new generation of Elastic APM PHP Agent that will be based on OpenTelemetry for PHP and Elastic will contribute all the new work to OpenTelemetry. I see that OpenTelemetry already has support for automatic instrumentation of MongoDB client (https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/MongoDB) - we didn't test the quality of that implementation yet but assuming that there are no issues with it the next generation Elastic APM PHP Agent will include support for MongoDB client.

Please let us know if you have any more questions or ideas.