Fix some comments and documentation (#6534)

This commit is contained in:
Ax1an 2021-03-12 07:41:32 +08:00 committed by GitHub
parent a01e846c1f
commit 03b45d2fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 11 deletions

View File

@ -28,8 +28,9 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName;
/**
* {@link CallableInstrumentation} define that the mysql-2.x plugin intercepts the following methods in the
* com.mysql.jdbc.CallableStatement 1. execute 2. executeQuery 3. executeUpdate
* {@link CallableInstrumentation} define that the mysql-5.x plugin intercepts the following methods in the
* com.mysql.jdbc.CallableStatement class:
* 1. execute 2. executeQuery 3. executeUpdate
*/
public class CallableInstrumentation extends AbstractMysqlInstrumentation {
private static final String ENHANCE_CLASS = "com.mysql.jdbc.CallableStatement";

View File

@ -30,9 +30,9 @@ 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
* com.mysql.jdbc.JDBC42PreparedStatement, com.mysql.jdbc.PreparedStatement and com.mysql.cj.jdbc.PreparedStatement
* class: 1. execute 2. executeQuery 3. executeUpdate 4. executeLargeUpdate 5. addBatch
* {@link PreparedStatementInstrumentation} define that the mysql-5.x plugin intercepts the following methods in the
* com.mysql.jdbc.PreparedStatement class:
* 1. execute 2. executeQuery 3. executeUpdate 4. executeLargeUpdate
*/
public class PreparedStatementInstrumentation extends AbstractMysqlInstrumentation {

View File

@ -28,8 +28,9 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName;
/**
* {@link CallableInstrumentation} define that the mysql-2.x plugin intercepts the following methods in the
* com.mysql.jdbc.CallableStatement 1. execute 2. executeQuery 3. executeUpdate
* {@link CallableInstrumentation} define that the mysql-6.x plugin intercepts the following methods in the
* com.mysql.jdbc.cj.CallableStatement class:
* 1. execute 2. executeQuery 3. executeUpdate
*/
public class CallableInstrumentation extends AbstractMysqlInstrumentation {
private static final String ENHANCE_CLASS = "com.mysql.jdbc.cj.CallableStatement";

View File

@ -28,9 +28,9 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName;
/**
* {@link PreparedStatementInstrumentation} define that the mysql-2.x plugin intercepts the following methods in the
* com.mysql.jdbc.JDBC42PreparedStatement, com.mysql.jdbc.PreparedStatement and com.mysql.cj.jdbc.PreparedStatement
* class: 1. execute 2. executeQuery 3. executeUpdate 4. executeLargeUpdate 5. addBatch
* {@link PreparedStatementInstrumentation} define that the mysql-6.x plugin intercepts the following methods in the
* com.mysql.cj.jdbc.PreparedStatement class:
* 1. execute 2. executeQuery 3. executeUpdate 4. executeLargeUpdate
*/
public class PreparedStatementInstrumentation extends AbstractMysqlInstrumentation {

View File

@ -25,7 +25,7 @@ Alarm rule is constituted by following keys
- **Include names**. The following entity names are included in this rule. Please follow [Entity name define](#entity-name).
- **Exclude names**. The following entity names are excluded in this rule. Please follow [Entity name define](#entity-name).
- **Include names regex**. Provide a regex to include the entity names. If both setting the include name list and include name regex, both rules will take effect.
- **Exclude names regex**. Provide a regex to exclude the exclude names. If both setting the exclude name list and exclude name regex, both rules will take effect.
- **Exclude names regex**. Provide a regex to exclude the entity names. If both setting the exclude name list and exclude name regex, both rules will take effect.
- **Include labels**. The following labels of the metric are included in this rule.
- **Exclude labels**. The following labels of the metric are excluded in this rule.
- **Include labels regex**. Provide a regex to include labels. If both setting the include label list and include label regex, both rules will take effect.