How to collect all SQL (MySQL) of Java applications #12655
-
How to collect all SQL (MySQL) of Java applications to facilitate DBA audit. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
We have all the SQLs in the trace if you have adoptive SQL/DB plugins. But we don't have an exporter for them. I think you need to extend the agent analyzer and try to build that exporter. |
Beta Was this translation helpful? Give feedback.
-
I didn't find SQL/DB plugins at https://skywalking.apache.org/docs/. Can you give me a document address? |
Beta Was this translation helpful? Give feedback.
-
Hello, I collect SQL through the beforeMethod method of the PreparedStatementExecuteMethodsInterceptor class in the agent plug-in mysql-common, and I can collect parameters normally, but the argumentsTypes in the input parameter cannot be obtained,The returned value is an empty array:before argumentsTypes:[] |
Beta Was this translation helpful? Give feedback.
We have all the SQLs in the trace if you have adoptive SQL/DB plugins. But we don't have an exporter for them. I think you need to extend the agent analyzer and try to build that exporter.