feat(tracing): update span name in handleHookStarted for improved clarity

This commit is contained in:
Zhichao Li
2026-04-27 14:14:39 -07:00
parent 2072d5fa13
commit 8c2b6f0737
@@ -636,7 +636,7 @@ describe('handleHookStarted', () => {
handleHookStarted(makeHookStarted('hook-42', 'lint-check', 'PreToolUse'), accessor, TEST_SESSION_ID, state);
expect(startSpanSpy).toHaveBeenCalledWith(
'user_hook PreToolUse:lint-check',
'execute_hook lint-check',
expect.objectContaining({ attributes: expect.any(Object) }),
);
expect(state.otelHookSpans.has('hook-42')).toBe(true);