99 *
1010 * Event ID ranges:
1111 * - 40–46: Client operations (from .NET)
12- * - 47–55 : JS-specific client operations
12+ * - 100–199 : JS-specific client operations
1313 */
1414
1515import { Logger } from "../types/logger.type" ;
@@ -29,16 +29,16 @@ const CATEGORY_CLIENT = "Microsoft.DurableTask.Client";
2929/** @internal */ export const EVENT_PURGING_INSTANCE_METADATA = 45 ;
3030/** @internal */ export const EVENT_PURGING_INSTANCES = 46 ;
3131
32- // ── JS-specific Event IDs ────────────────────────────────────────────────── ──
32+ // ── JS-specific Event IDs (start at 100 to leave buffer for .NET additions) ──
3333
34- /** @internal */ export const EVENT_RAISING_EVENT = 47 ;
35- /** @internal */ export const EVENT_SUSPENDING_INSTANCE = 48 ;
36- /** @internal */ export const EVENT_RESUMING_INSTANCE = 49 ;
37- /** @internal */ export const EVENT_REWINDING_INSTANCE = 50 ;
38- /** @internal */ export const EVENT_RESTARTING_INSTANCE = 51 ;
39- /** @internal */ export const EVENT_INSTANCE_COMPLETED = 52 ;
40- /** @internal */ export const EVENT_INSTANCE_FAILED = 53 ;
41- /** @internal */ export const EVENT_INSTANCE_TERMINATED = 54 ;
34+ /** @internal */ export const EVENT_RAISING_EVENT = 100 ;
35+ /** @internal */ export const EVENT_SUSPENDING_INSTANCE = 101 ;
36+ /** @internal */ export const EVENT_RESUMING_INSTANCE = 102 ;
37+ /** @internal */ export const EVENT_REWINDING_INSTANCE = 103 ;
38+ /** @internal */ export const EVENT_RESTARTING_INSTANCE = 104 ;
39+ /** @internal */ export const EVENT_INSTANCE_COMPLETED = 105 ;
40+ /** @internal */ export const EVENT_INSTANCE_FAILED = 106 ;
41+ /** @internal */ export const EVENT_INSTANCE_TERMINATED = 107 ;
4242
4343// ═══════════════════════════════════════════════════════════════════════════════
4444// Client Operation Logs (Event IDs 40–46, matching .NET)
@@ -127,7 +127,7 @@ export function purgingInstances(
127127}
128128
129129// ═══════════════════════════════════════════════════════════════════════════════
130- // JS-specific Client Logs (Event IDs 47–54 )
130+ // JS-specific Client Logs (Event IDs 100+ )
131131// ═══════════════════════════════════════════════════════════════════════════════
132132
133133export function raisingEvent ( logger : Logger , instanceId : string , eventName : string ) : void {
0 commit comments