Skip to content

SqlTraceStore

  • TraceStore
new SqlTraceStore(sql): SqlTraceStore;
Parameter Type

sql

SqlExecutor

SqlTraceStore

cleanup(maxAgeMs): Promise<number>;
Parameter Type

maxAgeMs

number

Promise<number>

TraceStore.cleanup

getTrace(traceId): Promise<AgentTrace | null>;
Parameter Type

traceId

string

Promise<AgentTrace | null>

TraceStore.getTrace

listTraces(sessionId, window?): Promise<AgentTrace[]>;
Parameter Type

sessionId

string

window?

TraceListWindow

Promise<AgentTrace[]>

TraceStore.listTraces

putSpan(span): void;
Parameter Type

span

AgentSpan

void

TraceStore.putSpan

write(span): void;
Parameter Type

span

AgentSpan

void

TraceStore.write