Elastic apm not show where clause of query

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.