File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -281,12 +281,6 @@ func newWorkflowTaskPoller(
281281 domain string ,
282282 params workerExecutionParameters ,
283283) * workflowTaskPoller {
284- if params .Tracer == nil {
285- params .Tracer = opentracing.NoopTracer {}
286- }
287- if params .WorkerStats .PollerTracker == nil {
288- params .WorkerStats .PollerTracker = debug .NewNoopPollerTracker ()
289- }
290284 return & workflowTaskPoller {
291285 basePoller : basePoller {shutdownC : params .WorkerStopChannel },
292286 service : service ,
Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ func newWorkflowWorker(
165165}
166166
167167func ensureRequiredParams (params * workerExecutionParameters ) {
168+ if params .Tracer == nil {
169+ params .Tracer = opentracing.NoopTracer {}
170+ }
168171 if params .Identity == "" {
169172 params .Identity = getWorkerIdentity (params .TaskList )
170173 }
You can’t perform that action at this time.
0 commit comments