Skip to content

Commit 14cadc6

Browse files
committed
reformat init function span
1 parent 2346c42 commit 14cadc6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/v3/workers/taskExecutor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ export class TaskExecutor {
560560
for (const hook of globalInitHooks) {
561561
const [hookError, result] = await tryCatch(
562562
this._tracer.startActiveSpan(
563-
hook.name ? `init/${hook.name}` : "init/global",
563+
"init()",
564564
async (span) => {
565565
const result = await hook.fn({ payload, ctx, signal, task: this.task.id });
566566

@@ -575,6 +575,7 @@ export class TaskExecutor {
575575
attributes: {
576576
[SemanticInternalAttributes.STYLE_ICON]: "task-hook-init",
577577
[SemanticInternalAttributes.COLLAPSED]: true,
578+
...this.#lifecycleHookAccessoryAttributes(hook.name),
578579
},
579580
}
580581
)

0 commit comments

Comments
 (0)