The demo app has the full SQL however in my app th...
# support
s
The demo app has the full SQL however in my app the values in the sql criteria are replaced by “?”. Is there a way to disable the ? and have the actual value?
v
Depends on how you have instrumented, if you have auto instrumented then check on the instrumentation library. If you are manually instrumenting then set
sql.query
attribute in the span.
a
@Sanjiv you can disable
OTEL_INSTRUMENTATION_COMMON_DB_STATEMENT_SANITIZER_ENABLED
as in docs https://opentelemetry.io/docs/instrumentation/java/automatic/agent-config/#db-statement-sanitization