
io.opentelemetry.javaagent.tooling.instrumentation.MuzzleFailureCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-javaagent-tooling Show documentation
Show all versions of opentelemetry-javaagent-tooling Show documentation
Instrumentation of Java libraries using OpenTelemetry.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.tooling.instrumentation;
import java.util.concurrent.atomic.AtomicInteger;
public final class MuzzleFailureCounter {
private static final AtomicInteger counter = new AtomicInteger();
private MuzzleFailureCounter() {}
public static int getAndReset() {
return counter.getAndSet(0);
}
public static void inc() {
counter.incrementAndGet();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy