Class SpanCreationContext

java.lang.Object
io.temporal.opentracing.SpanCreationContext

public class SpanCreationContext extends Object
Used when creating an OpenTracing span and provides contextual information used for naming and tagging OT spans.
  • Method Details

    • getSpanOperationType

      public SpanOperationType getSpanOperationType()
    • getActionName

      public String getActionName()
      Returns the action name, which is the name of the Workflow or Activity class
      Returns:
      The action name
    • getWorkflowId

      public String getWorkflowId()
    • getRunId

      @Nullable public String getRunId()
    • getParentWorkflowId

      public String getParentWorkflowId()
    • getParentRunId

      public String getParentRunId()
    • getActivityId

      @Nullable public String getActivityId()
    • newBuilder

      public static SpanCreationContext.Builder newBuilder()