File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
src/main/java/com/uber/cadence/internal/tracing Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -101,17 +101,14 @@ public Span spanForExecuteLocalActivity(Task task) {
101101 // retrieve spancontext from params
102102 SpanContext parent = extract (params .getContext ());
103103
104- Span span =
105- tracer
106- .buildSpan (EXECUTE_LOCAL_ACTIVITY )
107- .ignoreActiveSpan ()
108- .addReference (References .FOLLOWS_FROM , parent )
109- .withTag (TAG_WORKFLOW_ID , params .getWorkflowExecution ().getWorkflowId ())
110- .withTag (TAG_WORKFLOW_RUN_ID , params .getWorkflowExecution ().getRunId ())
111- .withTag (TAG_ACTIVITY_TYPE , params .getActivityType ().getName ())
112- .start ();
113- tracer .activateSpan (span );
114- return span ;
104+ return tracer
105+ .buildSpan (EXECUTE_LOCAL_ACTIVITY )
106+ .ignoreActiveSpan ()
107+ .addReference (References .FOLLOWS_FROM , parent )
108+ .withTag (TAG_WORKFLOW_ID , params .getWorkflowExecution ().getWorkflowId ())
109+ .withTag (TAG_WORKFLOW_RUN_ID , params .getWorkflowExecution ().getRunId ())
110+ .withTag (TAG_ACTIVITY_TYPE , params .getActivityType ().getName ())
111+ .start ();
115112 }
116113
117114 public void inject (Map <String , byte []> headers ) {
You can’t perform that action at this time.
0 commit comments