Class TraceComponent
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.api.traces.TraceComponent
-
public class TraceComponent extends Object
-
-
Method Summary
-
-
-
Method Detail
-
named
public static TraceComponent named(String name)
-
getSpanKind
public io.opentelemetry.api.trace.SpanKind getSpanKind()
-
getName
public String getName()
-
getTransactionId
public String getTransactionId()
-
getSpanName
public String getSpanName()
-
getContext
public io.opentelemetry.context.Context getContext()
-
getLocation
public String getLocation()
-
getErrorMessage
public String getErrorMessage()
-
getStartTime
public Instant getStartTime()
-
getEndTime
public Instant getEndTime()
-
withTags
public TraceComponent withTags(Map<String,String> val)
-
withTransactionId
public TraceComponent withTransactionId(String val)
-
withSpanName
public TraceComponent withSpanName(String val)
-
withLocation
public TraceComponent withLocation(String val)
-
withContext
public TraceComponent withContext(io.opentelemetry.context.Context val)
-
withSpanKind
public TraceComponent withSpanKind(io.opentelemetry.api.trace.SpanKind val)
-
withErrorMessage
public TraceComponent withErrorMessage(String val)
-
withStatsCode
public TraceComponent withStatsCode(io.opentelemetry.api.trace.StatusCode statusCode)
-
withStartTime
public TraceComponent withStartTime(Instant startTime)
-
withEndTime
public TraceComponent withEndTime(Instant endTime)
-
getStatusCode
public io.opentelemetry.api.trace.StatusCode getStatusCode()
-
-