I’m using elastic apm agent on jboss, it show jdbc queries but put “question mark” for where conditions.
What is the reason of this happen? How can i fix it?
Thanks
I’m using elastic apm agent on jboss, it show jdbc queries but put “question mark” for where conditions.
What is the reason of this happen? How can i fix it?
Thanks
The reason is that the Java agent (and all other APM agents) do not capture SQL parameters. We had some discussions around this, but so far we decided to not do this, because this would open up other issues.
Related: Capture bind variables for prepared statements · Issue #220 · elastic/apm · GitHub
@Eyal_Koren is there any way to enable it for test purpose?
If not is there any tool that do this?
Any idea?
Thanks
There is no workaround to get this feature.
You could however create a custom plugin to capture the bind variables for prepared statements.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.