Package org.stagemonitor.requestmonitor

Examples of org.stagemonitor.requestmonitor.RequestTrace


@Aspect
public class InformationAppendingLoggingAspect extends AbstractLoggingAspect {

  @Around("loggingPointcut()")
  public Object appendInformation(ProceedingJoinPoint pjp) throws Throwable {
    RequestTrace request = RequestMonitor.getRequest();
    final String requestInformation = "[requestId=" + (request != null ? request.getId() : "") + "] " +
        Stagemonitor.getMeasurementSession().toString() + " ";
    final Object[] args = pjp.getArgs();
    if (args.length == 0) {
      return pjp.proceed();
    }
View Full Code Here


  }

  @Override
  public void logSQL(int connectionId, String now, long elapsed, Category category, String prepared, String sql) {
    if (sql != null && !sql.isEmpty()) {
      RequestTrace request = RequestMonitor.getRequest();
      if (request != null) {
        request.dbCallCompleted(elapsed);
        trackDbMetrics(elapsed);
        addSqlToCallStack(elapsed, prepared, sql);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.stagemonitor.requestmonitor.RequestTrace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.