How do Monitoring tools capture explain plan of a query

kunwar singh <krishsingh.111@gmail.com>

From: kunwar singh <krishsingh.111@gmail.com>
To: pgsql-performance@lists.postgresql.org
Date: 2023-04-22T15:28:39Z
Lists: pgsql-performance
Postgres noob question.

For example say datadog
https://docs.datadoghq.com/database_monitoring/query_metrics/#explain-plans

Do they run EXPLAIN on all queries?
Or is it automatic in postgres? Like when auto_explain is enabled?


-- 
Cheers,
Kunwar