Package org.teiid.query.util
Class TeiidTracingUtil
- java.lang.Object
-
- org.teiid.query.util.TeiidTracingUtil
-
public class TeiidTracingUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description TeiidTracingUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentracing.Scope
activateSpan(io.opentracing.Span span)
io.opentracing.Span
buildSourceSpan(CommandLogMessage msg, String translatorType)
Build aSpan
from theCommandLogMessage
and translator typeio.opentracing.Span
buildSpan(Options options, CommandLogMessage msg, String spanContextJson)
Build aSpan
from theCommandLogMessage
and incoming span contextprotected io.opentracing.SpanContext
extractSpanContext(String spanContextJson)
static TeiidTracingUtil
getInstance()
boolean
isTracingEnabled(Options options, String spanContextJson)
Return true if tracing is enabled.
-
-
-
Method Detail
-
getInstance
public static TeiidTracingUtil getInstance()
-
buildSpan
public io.opentracing.Span buildSpan(Options options, CommandLogMessage msg, String spanContextJson)
Build aSpan
from theCommandLogMessage
and incoming span context- Parameters:
msg
-spanContextJson
-- Returns:
-
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 aSpan
from theCommandLogMessage
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)
-
-