Class InstrumentationUtil


  • @Deprecated
    public final class InstrumentationUtil
    extends java.lang.Object
    Deprecated.
    use InstrumentationUtil instead. This class should be removed once instrumentation does not refer to it anymore.
    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private InstrumentationUtil()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean shouldSuppressInstrumentation​(Context context)
      Deprecated.
      Checks if an automatic instrumentation should be suppressed with the provided Context.
      static void suppressInstrumentation​(java.lang.Runnable runnable)
      Deprecated.
      Adds a Context boolean key that will allow to identify HTTP calls coming from OTel exporters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstrumentationUtil

        private InstrumentationUtil()
        Deprecated.
    • Method Detail

      • suppressInstrumentation

        public static void suppressInstrumentation​(java.lang.Runnable runnable)
        Deprecated.
        Adds a Context boolean key that will allow to identify HTTP calls coming from OTel exporters. The key later be checked by an automatic instrumentation to avoid tracing OTel exporter's calls.
      • shouldSuppressInstrumentation

        public static boolean shouldSuppressInstrumentation​(Context context)
        Deprecated.
        Checks if an automatic instrumentation should be suppressed with the provided Context.
        Returns:
        TRUE to suppress the automatic instrumentation, FALSE to continue with the instrumentation.