apm-agent-php
apm-agent-php copied to clipboard
[WordPress][Feature Request] Database dependencies - double listing
Is your feature request related to a problem? Please describe.
Looking at the service map I see a double entry for the mysql dependency. Like:

This comes because the database gets chosen in the 4th span of a transaction:

Describe the solution you'd like See prior spans not connected to a specific database, and overwrite the database name that has been selected. Or set a suggested databasename.
note:
- maybe we should hide spans if they're not making any database modification - fetch metadata from them and attach into other spans
- try to extract database name from connection string/constructor