Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
3c8307fe
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3c8307fe
编写于
8月 24, 2019
作者:
H
honganan
提交者:
wu-sheng
8月 24, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix 3296 (#3306)
上级
c9acb495
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
apm-sniffer/apm-sdk-plugin/mysql-5.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/mysql/v5/define/PreparedStatementInstrumentation.java
...dbc/mysql/v5/define/PreparedStatementInstrumentation.java
+6
-6
未找到文件。
apm-sniffer/apm-sdk-plugin/mysql-5.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdbc/mysql/v5/define/PreparedStatementInstrumentation.java
浏览文件 @
3c8307fe
...
...
@@ -19,15 +19,16 @@
package
org.apache.skywalking.apm.plugin.jdbc.mysql.v5.define
;
import
net.bytebuddy.description.method.MethodDescription
;
import
net.bytebuddy.matcher.ElementMatcher
;
import
static
net
.
bytebuddy
.
matcher
.
ElementMatchers
.
named
;
import
static
org
.
apache
.
skywalking
.
apm
.
agent
.
core
.
plugin
.
match
.
NameMatch
.
byName
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterceptPoint
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint
;
import
org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch
;
import
org.apache.skywalking.apm.plugin.jdbc.mysql.Constants
;
import
static
net
.
bytebuddy
.
matcher
.
ElementMatchers
.
named
;
import
static
org
.
apache
.
skywalking
.
apm
.
agent
.
core
.
plugin
.
match
.
MultiClassNameMatch
.
byMultiClassMatch
;
import
net.bytebuddy.description.method.MethodDescription
;
import
net.bytebuddy.matcher.ElementMatcher
;
/**
* {@link PreparedStatementInstrumentation} define that the mysql-2.x plugin intercepts the following methods in the
...
...
@@ -45,7 +46,6 @@ public class PreparedStatementInstrumentation extends AbstractMysqlInstrumentati
private
static
final
String
SERVICE_METHOD_INTERCEPTOR
=
Constants
.
PREPARED_STATEMENT_EXECUTE_METHODS_INTERCEPTOR
;
public
static
final
String
MYSQL_PREPARED_STATEMENT_CLASS_NAME
=
"com.mysql.jdbc.PreparedStatement"
;
public
static
final
String
JDBC42_PREPARED_STATEMENT_CLASS_NAME
=
"com.mysql.jdbc.JDBC42PreparedStatement"
;
@Override
public
final
ConstructorInterceptPoint
[]
getConstructorsInterceptPoints
()
{
return
new
ConstructorInterceptPoint
[
0
];
...
...
@@ -73,7 +73,7 @@ public class PreparedStatementInstrumentation extends AbstractMysqlInstrumentati
}
@Override
protected
ClassMatch
enhanceClass
()
{
return
by
MultiClassMatch
(
MYSQL_PREPARED_STATEMENT_CLASS_NAME
,
JDBC42
_PREPARED_STATEMENT_CLASS_NAME
);
return
by
Name
(
MYSQL
_PREPARED_STATEMENT_CLASS_NAME
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录