mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 00:36:02 +10:00
[유치수] [NOBTS] set endpoint from db interceptor.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@738 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
+1
@@ -41,6 +41,7 @@ public class StatementExecuteQueryInterceptor implements StaticAroundInterceptor
|
||||
*/
|
||||
String url = (String) this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", url);
|
||||
Trace.recordEndPoint(url);
|
||||
|
||||
if (args.length > 0) {
|
||||
Trace.recordAttibute("Statement", args[0]);
|
||||
|
||||
+1
@@ -40,6 +40,7 @@ public class StatementExecuteUpdateInterceptor implements StaticAroundIntercepto
|
||||
if (args.length > 0) {
|
||||
String url = (String) this.getUrl.invoke(target);
|
||||
Trace.recordAttibute("Query", url);
|
||||
Trace.recordEndPoint(url);
|
||||
}
|
||||
|
||||
Trace.record(Annotation.ClientSend);
|
||||
|
||||
@@ -64,6 +64,7 @@ public class TransactionInterceptor implements StaticAroundInterceptor {
|
||||
try {
|
||||
String connectionUrl = this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", connectionUrl);
|
||||
Trace.recordEndPoint(connectionUrl);
|
||||
Trace.record(Annotation.ClientSend);
|
||||
} finally {
|
||||
Trace.traceBlockEnd();
|
||||
@@ -109,6 +110,7 @@ public class TransactionInterceptor implements StaticAroundInterceptor {
|
||||
try {
|
||||
String connectionUrl = this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", connectionUrl);
|
||||
Trace.recordEndPoint(connectionUrl);
|
||||
Trace.record(Annotation.ClientSend);
|
||||
} finally {
|
||||
Trace.traceBlockEnd();
|
||||
@@ -120,6 +122,7 @@ public class TransactionInterceptor implements StaticAroundInterceptor {
|
||||
try {
|
||||
String connectionUrl = this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", connectionUrl);
|
||||
Trace.recordEndPoint(connectionUrl);
|
||||
|
||||
boolean success = InterceptorUtils.isSuccess(result);
|
||||
if (success) {
|
||||
@@ -145,6 +148,7 @@ public class TransactionInterceptor implements StaticAroundInterceptor {
|
||||
try {
|
||||
String connectionUrl = this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", connectionUrl);
|
||||
Trace.recordEndPoint(connectionUrl);
|
||||
Trace.record(Annotation.ClientSend);
|
||||
} finally {
|
||||
Trace.traceBlockEnd();
|
||||
@@ -164,6 +168,7 @@ public class TransactionInterceptor implements StaticAroundInterceptor {
|
||||
|
||||
String connectionUrl = this.getUrl.invoke(target);
|
||||
Trace.recordRpcName("MYSQL", connectionUrl);
|
||||
Trace.recordEndPoint(connectionUrl);
|
||||
|
||||
boolean success = InterceptorUtils.isSuccess(result);
|
||||
if (success) {
|
||||
|
||||
Reference in New Issue
Block a user