Sonar confuses Datadog tracer with DB transaction

Sonar started complaining about inadequate DB transaction handling, but the variable is a Datadog APM tracer, not a DB transaction:

How can we fix this?

1 Like

Not only Datadog tracer, godre:S8168 seems to be interpreting as DB transactions to rollback any variable returned by any method called Begin().

Hi,

Can you give your context for this? I.e. are you on SonarQube Cloud? SonarQube for IDE (flavor and version)? SonarQube self-managed (flavor and version)?

 
Thx,
Ann

Ciao Ann :wink:
I don’t know about the OP, but I got this issue on SonarCloud.

1 Like

Hi Carlo :waving_hand:

Thanks for the context. I’ll flag this for the language experts.

 
Ann

We’re using SonarCloud too

1 Like

Hi Daniel,

Thanks for the great report! It made reproducing the issue very easy. I’ve opened a ticket and we’ll get a fix out as soon as possible.

Cheers,
Erwan

1 Like