public class MongoDBClientDelegateInstrumentation extends ClassInstanceMethodsEnhancePluginDefine
com.mongodb.client.internal.MongoClientDelegate instance, and intercept com.mongodb.client.internal.MongoClientDelegate#getOperationExecutor(), this is the only way to get
OperationExecutor which is unified entrance of execute mongo command. we can mark OperationExecutor which connection
belongs to.
support: 3.7.x or higher
CONTEXT_ATTR_NAME| Constructor and Description |
|---|
MongoDBClientDelegateInstrumentation() |
| Modifier and Type | Method and Description |
|---|---|
protected ClassMatch |
enhanceClass() |
ConstructorInterceptPoint[] |
getConstructorsInterceptPoints() |
InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints() |
protected String[] |
witnessClasses() |
getStaticMethodsInterceptPointsenhanceClass, enhanceInstance, getInstanceMethodsInterceptV2Points, getStaticMethodsInterceptV2Pointsdefine, enhance, isBootstrapInstrumentation, witnessMethodspublic MongoDBClientDelegateInstrumentation()
protected String[] witnessClasses()
witnessClasses in class AbstractClassEnhancePluginDefineprotected ClassMatch enhanceClass()
enhanceClass in class AbstractClassEnhancePluginDefinepublic ConstructorInterceptPoint[] getConstructorsInterceptPoints()
getConstructorsInterceptPoints in class AbstractClassEnhancePluginDefinepublic InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()
getInstanceMethodsInterceptPoints in class AbstractClassEnhancePluginDefineCopyright © 2021 The Apache Software Foundation. All rights reserved.