Class StackTraceSourceInfo

java.lang.Object
io.opentelemetry.sdk.metrics.internal.debug.StackTraceSourceInfo
All Implemented Interfaces:
SourceInfo

final class StackTraceSourceInfo extends Object implements SourceInfo
Diagnostic information derived from stack traces.
  • Field Details

  • Constructor Details

  • Method Details

    • shortDebugString

      public String shortDebugString()
      Description copied from interface: SourceInfo
      Returns a debugging string to report where a given metric was registered.

      Example: MyFile.java:15

      Specified by:
      shortDebugString in interface SourceInfo
    • multiLineDebugString

      public String multiLineDebugString()
      Description copied from interface: SourceInfo
      Returns a multi-line debugging string to report where a given metric was registered.

      Example:

         at full.package.name.method MyFile.java:15
         at full.packae.name.otherMethod MyOtherFile.java:10
       
      Specified by:
      multiLineDebugString in interface SourceInfo
    • isInterestingStackTrace

      private static boolean isInterestingStackTrace(StackTraceElement e)