Class RunTraceContext
java.lang.Object
io.jenkins.plugins.opentelemetry.job.log.RunTraceContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FlowNodeTraceContext
- See Also:
-
Constructor Details
-
RunTraceContext
public RunTraceContext(String jobFullName, int runNumber, String traceId, String spanId, Map<String, String> w3cTraceContext) - Parameters:
jobFullName
- seeAbstractItem.getFullName()
runNumber
- seeRun.getNumber()
w3cTraceContext
- W3C Trace Context of the root span of the build
-
-
Method Details
-
toAttributes
@NonNull public io.opentelemetry.api.common.Attributes toAttributes() -
getJobFullName
-
getRunNumber
public int getRunNumber() -
getW3cTraceContext
- Returns:
- unmodifiable W3C Trace Context
-
getContext
public io.opentelemetry.context.Context getContext() -
toString
-
equals
-
hashCode
public int hashCode() -
getTraceId
-
getSpanId
-