kezhenxu94 commented on a change in pull request #5842:
URL: https://github.com/apache/skywalking/pull/5842#discussion_r523690770



##########
File path: .github/workflows/plugins-test.0.yaml
##########
@@ -70,6 +70,7 @@ jobs:
           - gson-scenario
           - elasticjob-3.x-scenario
           - springmvc-reactive-scenario
+          - mssql-jtds-scenario

Review comment:
       Put this in file `plugins-test.1.yaml`

##########
File path: 
apm-sniffer/apm-sdk-plugin/mssql-jtds-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/mssql/jtds/v1/define/ConnectionJDBC2Instrumentation.java
##########
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.skywalking.apm.plugin.mssql.jtds.v1.define;
+
+import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch;
+
+import static 
org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName;
+
+/**
+ * {@link ConnectionJDBC2Instrumentation} presents that skywalking intercepts 
{@link net.sourceforge.jtds.jdbc.ConnectionJDBC2}.
+ */
+public class ConnectionJDBC2Instrumentation extends 
AbstractConnectionInstrumentation {
+    public static final String ENHANCE_CLASS = 
"net.sourceforge.jtds.jdbc.ConnectionJDBC2";
+
+    @Override
+    protected ClassMatch enhanceClass() {
+        return byName(ENHANCE_CLASS);

Review comment:
       Why not use 
`org.apache.skywalking.apm.agent.core.plugin.match.MultiClassNameMatch` so that 
you don't need several subclasses?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to