public class TeiidTracingUtil extends Object
Constructor and Description |
---|
TeiidTracingUtil() |
Modifier and Type | Method and Description |
---|---|
io.opentracing.Scope |
activateSpan(io.opentracing.Span span) |
io.opentracing.Span |
buildSourceSpan(CommandLogMessage msg,
String translatorType)
Build a
Span from the CommandLogMessage and translator type |
io.opentracing.Span |
buildSpan(Options options,
CommandLogMessage msg,
String spanContextJson)
Build a
Span from the CommandLogMessage and incoming span context |
protected io.opentracing.SpanContext |
extractSpanContext(String spanContextJson) |
static TeiidTracingUtil |
getInstance() |
boolean |
isTracingEnabled(Options options,
String spanContextJson)
Return true if tracing is enabled.
|
public static TeiidTracingUtil getInstance()
public io.opentracing.Span buildSpan(Options options, CommandLogMessage msg, String spanContextJson)
Span
from the CommandLogMessage
and incoming span contextmsg
- spanContextJson
- public boolean isTracingEnabled(Options options, String spanContextJson)
options
- spanContextJson
- public io.opentracing.Span buildSourceSpan(CommandLogMessage msg, String translatorType)
Span
from the CommandLogMessage
and translator typemsg
- translatorType
- public io.opentracing.Scope activateSpan(io.opentracing.Span span)
protected io.opentracing.SpanContext extractSpanContext(String spanContextJson)
Copyright © 2019. All rights reserved.