[core] tags are immutable, so at this time duplicate the db.statement
MODIFY
dd-trace/src/main/java/com/datadoghq/trace/integration/DBStatementAsResourceName.java
dd-trace/src/main/java/com/datadoghq/trace/integration/DBStatementAsResourceName.java
@@ -19,7 +19,6 @@ public class DBStatementAsResourceName extends AbstractDecorator {
if (super.afterSetTag(context, tag, value)) {
// Replace the OT db.statement by the DD sql.query
context.setTag(DDTags.DB_STATEMENT, value);
- context.getTags().remove(Tags.DB_STATEMENT.getKey());
return true;
}
return false;

[core] tags are immutable, so at this time duplicate the db.statement