question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IBM.Data.Db2 does not get loaded by tracer

See original GitHub issue

Describe the bug Using Net5.IBM.Data.Db2-lnx 5.0.0.200 in basic .NET 5 Web-API to query the database, the DD Tracer doesn’t pick up on IDbCommand / DbCommand in the profiler. No traces happening at database level.

If you need more information or have further questions - just let me know. Thank you for your help.

Expected behavior Automatically attach to DB integration and trace common db functions.

Runtime environment:

  • Instrumentation mode: automatic & manual (Nuget package)
  • Tracer version: 1.26.2
  • OS: Linux, RHEL x64
  • CLR: .NET Framework 5.0

Additional context Regardlessly, the automatic tracing picks up everything else works just fine, as expected (HTTP requests, Redis,…)

Trace debug logs attached

dotnet-tracer-native-dotnet-1052568.log dotnet-tracer-managed-dotnet-20210526.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewlockcommented, Dec 22, 2021

@gc-dev1 in the next version of the tracer (not yet released, after 2.0.1) we will instrument the DbCommand base class which should resolve this issue. Do let us know if this isn’t the case. Thanks.

0reactions
andrewlockcommented, Jun 2, 2021

Glad that works at least. Yes, I suspect IBM.EntityFrameworkCore-lnx will be using the Db2Command directly, rather than working with the DbCommand base classes, but would need to double check. You might be lucky! If not, then we’d need to add explicit automatic instrumentation of the Db2Command. I’ll add your instrumentation request as a feature request for prioritisation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

db2trc - Trace command
The db2trc command controls the trace facility of a Db2 instance or the Db2 Administration Server (DAS). When the db2trc command runs, the...
Read more >
Resolving problems when using databases
Use the advice given here to help you to resolve problems that can arise when using databases.
Read more >
IBM Data Server Driver for JDBC and SQLJ - Db2
The IBM Data Server Driver for JDBC and SQLJ includes diagnostic tools and traces for diagnosing problems during connection and SQL statement execution....
Read more >
Diagnostic support in the IBM Data Server Driver for ODBC ...
You can use the tracing, logging, and diagnostic utilities to help troubleshoot a problem with the IBM Data Server Driver for ODBC and...
Read more >
IBM Data Server Driver for ODBC and CLI
To turn on DB2 trace when you are using the IBM Data Server Driver for ODBC and CLI, you must invoke the db2trc...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found