@Override
 public void setup(ProfilerPluginSetupContext context) {
   ProfilerConfig profilerConfig = context.getConfig();
   if (profilerConfig.isIBatisEnabled()) {
     addInterceptorsForSqlMapExecutors();
     addInterceptorsForSqlMapClientTemplate();
   }
 }
Beispiel #2
0
  @Override
  public void setup(ProfilerPluginSetupContext context) {
    context.addApplicationTypeDetector(new JettyDetector());
    JettyConfiguration config = new JettyConfiguration(context.getConfig());

    addServerInterceptor(config);
    addRequestEditor();
  }
Beispiel #3
0
  @Override
  public void setup(ProfilerPluginSetupContext context) {
    OracleConfig config = new OracleConfig(context.getConfig());

    addConnectionTransformer(context, config);
    addDriverTransformer(context);
    addPreparedStatementTransformer(context, config);
    addStatementTransformer(context);
  }
Beispiel #4
0
  @Override
  public void setup(ProfilerPluginSetupContext context) {
    final OkHttpPluginConfig config = new OkHttpPluginConfig(context.getConfig());
    logger.debug("[OkHttp] Initialized config={}", config);

    logger.debug("[OkHttp] Add Call class.");
    addCall(context, config);
    logger.debug("[OkHttp] Add Dispatcher class.");
    addDispatcher(context, config);
    logger.debug("[OkHttp] Add AsyncCall class.");
    addAsyncCall(context, config);
    addHttpEngine(context, config);
    addRequestBuilder(context, config);
  }
Beispiel #5
0
  @Override
  public void setup(ProfilerPluginSetupContext context) {
    final UserPluginConfig config = new UserPluginConfig(context.getConfig());

    // add user include methods
    for (String fullQualifiedMethodName : config.getIncludeList()) {
      try {
        addUserIncludeClass(context, fullQualifiedMethodName);
        if (logger.isDebugEnabled()) {
          logger.debug("Add user include class interceptor {}", fullQualifiedMethodName);
        }
      } catch (Exception e) {
        logger.warn("Failed to add user include class(" + fullQualifiedMethodName + ").", e);
      }
    }
  }