Skip to content

Commit 4de5326

Browse files
authored
fix(worker): Prevent ending a worker span twice. (#786)
1 parent 468311f commit 4de5326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/worker/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ export class Worker {
11261126
const completion = await this.workflowCodecRunner.encodeCompletion(unencodedCompletion);
11271127
this.log.trace('Completed activation', workflowLogAttributes(state.info));
11281128

1129-
span.setAttribute('close', close).end();
1129+
span.setAttribute('close', close);
11301130
return { state, output: { close, completion, parentSpan } };
11311131
} catch (err) {
11321132
if (err instanceof errors.UnexpectedError) {

0 commit comments

Comments
 (0)