Commit 57ee51f2 authored by lytscu's avatar lytscu
Browse files

comments

parent 14bc3d96
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -37,9 +37,10 @@ import org.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptR
import org.skywalking.apm.network.trace.component.ComponentsDefine;

/**
 * {@link MongoDBCollectionMethodInterceptor} intercept  constructor of {@link com.mongodb.DBCollection}or {@link com.mongodb.DBCollectionImpl} for
 * record the ServerAddress,and create the exit span.
 *@Auther liyuntao
 * {@link MongoDBCollectionMethodInterceptor} intercept  constructor of {@link com.mongodb.DBCollection}or {@link
 * com.mongodb.DBCollectionImpl} for record the ServerAddress,and create the exit span.
 *
 * @author liyuntao
 */

public class MongoDBCollectionMethodInterceptor implements InstanceMethodsAroundInterceptor, InstanceConstructorInterceptor {
+5 −10
Original line number Diff line number Diff line
@@ -31,16 +31,11 @@ import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
import static org.skywalking.apm.agent.core.plugin.match.NameMatch.byName;

/**
 * {@link MongoDBCollectionImplInstrumentation} define that the MongoDB Java Driver 2.13.x-2.14.x plugin intercepts the following methods in the
 * {@link com.mongodb.DBCollectionImpl}class:
 * 1. find <br/>
 * 2. insert <br/>
 * 3. insertImpl <br/>
 * 4. update <br/>
 * 5. updateImpl <br/>
 * 6. remove <br/>
 * 7. createIndex <br/>
 *@Auther liyuntao
 * {@link MongoDBCollectionImplInstrumentation} define that the MongoDB Java Driver 2.13.x-2.14.x plugin intercepts the
 * following methods in the {@link com.mongodb.DBCollectionImpl}class: 1. find <br/> 2. insert <br/> 3. insertImpl <br/>
 * 4. update <br/> 5. updateImpl <br/> 6. remove <br/> 7. createIndex <br/>
 *
 * @author liyuntao
 */
public class MongoDBCollectionImplInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {

+5 −13
Original line number Diff line number Diff line
@@ -31,20 +31,12 @@ import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
import static org.skywalking.apm.agent.core.plugin.bytebuddy.ArgumentTypeNameMatch.takesArgumentWithType;
import static org.skywalking.apm.agent.core.plugin.match.NameMatch.byName;


/**
 * {@link MongoDBCollectionInstrumentation} define that the MongoDB Java Driver 2.13.x-2.14.x plugin intercepts the following methods in the
 * {@link com.mongodb.DBCollection}class:
 * 1. aggregate <br/>
 * 2. findAndModify <br/>
 * 3. getCount <br/>
 * 4. drop <br/>
 * 5. dropIndexes <br/>
 * 6. rename <br/>
 * 7. group <br/>
 * 8. distinct <br/>
 * 9. mapReduce <br/>
 *@Auther liyuntao
 * {@link MongoDBCollectionInstrumentation} define that the MongoDB Java Driver 2.13.x-2.14.x plugin intercepts the
 * following methods in the {@link com.mongodb.DBCollection}class: 1. aggregate <br/> 2. findAndModify <br/> 3. getCount
 * <br/> 4. drop <br/> 5. dropIndexes <br/> 6. rename <br/> 7. group <br/> 8. distinct <br/> 9. mapReduce <br/>
 *
 * @author liyuntao
 */
public class MongoDBCollectionInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {