Class TransactionContext
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.api.traces.TransactionContext
-
public class TransactionContext extends Object
-
-
Constructor Summary
Constructors Constructor Description TransactionContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionContextcurrent()booleanequals(Object o)io.opentelemetry.context.ContextgetContext()StringgetSpanId()StringgetSpanIdLong()StringgetTraceId()StringgetTraceIdLongLowPart()inthashCode()static TransactionContextof(io.opentelemetry.api.trace.Span span)TransactionContextsetContext(io.opentelemetry.context.Context context)TransactionContextsetSpanId(String spanId)TransactionContextsetSpanIdLong(String spanIdLong)TransactionContextsetTraceId(String traceId)TransactionContextsetTraceIdLongLowPart(String traceIdLongLowPart)
-
-
-
Method Detail
-
of
public static TransactionContext of(io.opentelemetry.api.trace.Span span)
-
current
public static TransactionContext current()
-
getContext
public io.opentelemetry.context.Context getContext()
-
setContext
public TransactionContext setContext(io.opentelemetry.context.Context context)
-
getSpanId
public String getSpanId()
-
setSpanId
public TransactionContext setSpanId(String spanId)
-
getTraceId
public String getTraceId()
-
setTraceId
public TransactionContext setTraceId(String traceId)
-
getSpanIdLong
public String getSpanIdLong()
-
setSpanIdLong
public TransactionContext setSpanIdLong(String spanIdLong)
-
getTraceIdLongLowPart
public String getTraceIdLongLowPart()
-
setTraceIdLongLowPart
public TransactionContext setTraceIdLongLowPart(String traceIdLongLowPart)
-
-