Fix issue that H2 plugin is ineffective (#1878)
This commit is contained in:
parent
4399c66278
commit
dc379fd351
|
|
@ -30,7 +30,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
* @author zhangxin
|
||||
*/
|
||||
public class DriverInstrumentation extends AbstractDriverInstrumentation {
|
||||
private static final String CLASS_OF_INTERCEPT_H2_DRIVER = "org.jdbc.Driver";
|
||||
private static final String CLASS_OF_INTERCEPT_H2_DRIVER = "org.h2.Driver";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
* @author zhangxin
|
||||
*/
|
||||
public class JdbcConnectionInstrumentation extends AbstractConnectionInstrumentation {
|
||||
public static final String ENHANCE_CLASS = "org.jdbc.jdbc.JdbcConnection";
|
||||
public static final String ENHANCE_CLASS = "org.h2.jdbc.JdbcConnection";
|
||||
|
||||
@Override protected ClassMatch enhanceClass() {
|
||||
return byName(ENHANCE_CLASS);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,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.jdbc.jdbcx.JdbcXAConnection";
|
||||
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";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue