Class TeiidTracingUtil


  • public class TeiidTracingUtil
    extends Object
    • Constructor Detail

      • TeiidTracingUtil

        public TeiidTracingUtil()
    • Method Detail

      • isTracingEnabled

        public boolean isTracingEnabled​(Options options,
                                        String spanContextJson)
        Return true if tracing is enabled. Both arguments may be null, in which case true will be returned only if there is an active span
        Parameters:
        options -
        spanContextJson -
        Returns:
      • buildSourceSpan

        public io.opentracing.Span buildSourceSpan​(CommandLogMessage msg,
                                                   String translatorType)
        Build a Span from the CommandLogMessage and translator type
        Parameters:
        msg -
        translatorType -
        Returns:
      • activateSpan

        public io.opentracing.Scope activateSpan​(io.opentracing.Span span)
      • extractSpanContext

        protected io.opentracing.SpanContext extractSpanContext​(String spanContextJson)