IBM.Data.Db2 does not get loaded by tracer
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.Glad that works at least. Yes, I suspect
IBM.EntityFrameworkCore-lnx
will be using theDb2Command
directly, rather than working with theDbCommand
base classes, but would need to double check. You might be lucky! If not, then we’d need to add explicit automatic instrumentation of theDb2Command
. I’ll add your instrumentation request as a feature request for prioritisation.