Package io.temporal.opentracing
Class SpanCreationContext
- java.lang.Object
-
- io.temporal.opentracing.SpanCreationContext
-
public class SpanCreationContext extends java.lang.ObjectUsed when creating an OpenTracing span and provides contextual information used for naming and tagging OT spans.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpanCreationContext.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActionName()Returns the action name, which is the name of the Workflow or Activity classjava.lang.StringgetParentRunId()java.lang.StringgetParentWorkflowId()java.lang.StringgetRunId()SpanOperationTypegetSpanOperationType()java.lang.StringgetWorkflowId()static SpanCreationContext.BuildernewBuilder()
-
-
-
Method Detail
-
getSpanOperationType
public SpanOperationType getSpanOperationType()
-
getActionName
public java.lang.String getActionName()
Returns the action name, which is the name of the Workflow or Activity class- Returns:
- The action name
-
getWorkflowId
public java.lang.String getWorkflowId()
-
getRunId
@Nullable public java.lang.String getRunId()
-
getParentWorkflowId
public java.lang.String getParentWorkflowId()
-
getParentRunId
public java.lang.String getParentRunId()
-
newBuilder
public static SpanCreationContext.Builder newBuilder()
-
-