This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git
The following commit(s) were added to refs/heads/main by this push:
new 4012dc4ff7 Fix H2 plugin instrumentation point (#447)
4012dc4ff7 is described below
commit 4012dc4ff7315b01209c17281cc3bca0ed0e8953
Author: 2han9wen71an <[email protected]>
AuthorDate: Thu Feb 2 22:18:33 2023 +0800
Fix H2 plugin instrumentation point (#447)
---
CHANGES.md | 1 +
.../apm/plugin/jdbc/h2/define/JdbcXAConnectionInstrumentation.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGES.md b/CHANGES.md
index 5061325839..c0f2670738 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -10,6 +10,7 @@ Release Notes.
* Add plugin to trace Spring 6 and Resttemplate 6.
* Move the baseline to JDK 17 for development, the runtime baseline is still
Java 8 compatible.
* Remove Powermock entirely from the test cases.
+* Fix H2 instrumentation point
#### Documentation
* Update docs of Tracing APIs, reorganize the API docs into six parts
diff --git
a/apm-sniffer/apm-sdk-plugin/h2-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/h2/define/JdbcXAConnectionInstrumentation.java
b/apm-sniffer/apm-sdk-plugin/h2-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/h2/define/JdbcXAConnectionInstrumentation.java
index 5d8cfbeff6..dff830c007 100644
---
a/apm-sniffer/apm-sdk-plugin/h2-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/h2/define/JdbcXAConnectionInstrumentation.java
+++
b/apm-sniffer/apm-sdk-plugin/h2-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/h2/define/JdbcXAConnectionInstrumentation.java
@@ -32,7 +32,7 @@ import static
org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
public class JdbcXAConnectionInstrumentation extends
AbstractConnectionInstrumentation {
public static final String ENHANCE_CLASS = "org.h2.jdbcx.JdbcXAConnection";
- public static final String CONSTRUCTOR_INTERCEPT_CLASS =
"org.apache.skywalking.apm.plugin.jdbc.jdbc.JdbcXAConnectionConstructorInterceptor";
+ public static final String CONSTRUCTOR_INTERCEPT_CLASS =
"org.apache.skywalking.apm.plugin.jdbc.h2.JdbcXAConnectionConstructorInterceptor";
@Override
public ConstructorInterceptPoint[] getConstructorsInterceptPoints() {