Skip to content

InstrumentationEvent type

Home > @rimitive/core > InstrumentationEvent

An instrumentation event emitted by services.

Signature:

export type InstrumentationEvent = {
type: string;
timestamp: number;
data: Record<string, unknown>;
contextId?: string;
};
const event: InstrumentationEvent = {
type: 'signal:write',
timestamp: Date.now(),
data: {
signalId: 'abc-123',
oldValue: 0,
newValue: 1,
},
};