Subversion Repositories SmartDukaan

Rev

Rev 34567 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34567 Rev 34578
Line 49... Line 49...
49
        Timer.Sample sample = Timer.start(meterRegistry);
49
        Timer.Sample sample = Timer.start(meterRegistry);
50
        try {
50
        try {
51
            Object result = joinPoint.proceed();
51
            Object result = joinPoint.proceed();
52
            success = true;
52
            success = true;
53
            // Record a success count
53
            // Record a success count
54
            meterRegistry.counter("cron_job_count_total", "method", methodName, "status", "success").increment();
54
            meterRegistry.counter("cron_job_count_total", "method", methodName, "status", "success", "exception", "No Exception").increment();
55
            return result;
55
            return result;
56
        } catch (Throwable t) {
56
        } catch (Throwable t) {
57
            String exceptionName = t.getClass().getSimpleName();
57
            String exceptionName = t.getClass().getSimpleName();
58
            // Record a failure count with exception type
58
            // Record a failure count with exception type
59
            meterRegistry.counter(
59
            meterRegistry.counter(