java.lang.Object
io.opentelemetry.instrumentation.api.internal.ClassNames

public final class ClassNames extends Object
A utility class used to compute readable simple class names.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • simpleName

      public static String simpleName(Class<?> type)
      Returns a simple class name based on a given class reference, e.g. for use in span names and attributes. Anonymous classes are named based on their parent.