Class RunTraceContext
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.log.RunTraceContext
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FlowNodeTraceContext
public class RunTraceContext extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.opentelemetry.context.Context
getContext()
String
getJobFullName()
int
getRunNumber()
String
getSpanId()
String
getTraceId()
Map<String,String>
getW3cTraceContext()
int
hashCode()
io.opentelemetry.api.common.Attributes
toAttributes()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
toAttributes
@NonNull public io.opentelemetry.api.common.Attributes toAttributes()
-
getJobFullName
public String getJobFullName()
-
getRunNumber
public int getRunNumber()
-
getW3cTraceContext
public Map<String,String> getW3cTraceContext()
- Returns:
- unmodifiable W3C Trace Context
-
getContext
public io.opentelemetry.context.Context getContext()
-
getTraceId
public String getTraceId()
-
getSpanId
public String getSpanId()
-
-