mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-27 02:27:53 +01:00
feat(tracing): update span name in handleHookStarted for improved clarity
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user