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
MongoDBOperationExecutorInstrumentation,
MongoDBClientDelegateInterceptorCONTEXT_ATTR_NAME| Constructor and Description |
|---|
MongoDBClientDelegateInstrumentation() |
| Modifier and Type | Method and Description |
|---|---|
protected ClassMatch |
enhanceClass() |
ConstructorInterceptPoint[] |
getConstructorsInterceptPoints() |
InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints() |
protected String[] |
witnessClasses() |
getStaticMethodsInterceptPointsenhancedefine, isBootstrapInstrumentationpublic 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 © 2019 The Apache Software Foundation. All rights reserved.