I'm using Elastic APM in GoLang to trace requests for my application. It is awesome that SQL Statements are present in tracing dashboards in Kibana.
But I found that
apm/module/apmsql does NOT provide raw statements for parameterized SQL statement.
SELECT * from the_table where colum_1= $1 and colume_2 = $2.
func (c *conn) QueryContext function in
apm/module/apmsql package only feed what's in "query" arguments, which can be a parameterized statement, to "startStmtSpan" function.
APM Agent language and version: