Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }
Object perform(Invocation.Builder builder, Probe probe, T context) throws Exception { try { long start = System.nanoTime(); Object result = proceed(context); builder.setDuration(System.nanoTime() - start); if (builder.isEntryPoint()) { if (!builder.isIgnored()) { probe.addInvocation(builder.build()); } } else { INVOCATIONS.set(builder.getParent()); } return result; } finally { if (builder.isEntryPoint()) { INVOCATIONS.remove(); } } }