Skip to content

Commit

Permalink
Fix DB2 jdbc connection instrumentation (#3313)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Sep 13, 2023
1 parent 4ddcfc6 commit 90b1430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Expand Up @@ -46,6 +46,7 @@ Use subheadings with the "=====" level for adding notes for unreleased changes:
* Allow overriding of transaction type for Servlet-API transactions - {pull}3226[#3226]
* Fix micrometer histogram serialization - {pull}3290[#3290], {pull}3304[#3304]
* Fix transactions not being correctly handled in certain edge cases - {pull}3294[#3294]
* Fixed JDBC instrumentation for DB2 - {pull}3313[#3313]
[[release-notes-1.x]]
=== Java Agent version 1.x
Expand Down
Expand Up @@ -57,7 +57,7 @@ public static void storeSql(@Advice.Return @Nullable PreparedStatement statement

@Override
public ElementMatcher<? super NamedElement> getTypeMatcherPreFilter() {
return nameContains("Connection");
return nameContains("Connection").or(nameStartsWith("com.ibm.db2.jcc")); //db2 doesn't have Connection in the name
}

@Override
Expand Down

0 comments on commit 90b1430

Please sign in to comment.