MCPcopy Create free account
hub / github.com/astercloud/aster / useTraces

Function useTraces

studio/src/hooks/useApi.ts:52–57  ·  view source on GitHub ↗
(opts: TraceQueryOpts = {})

Source from the content-addressed store, hash-verified

50
51// Traces
52export function useTraces(opts: TraceQueryOpts = {}) {
53 return useQuery({
54 queryKey: queryKeys.traces(opts),
55 queryFn: () => api.getTraces(opts),
56 });
57}
58
59export function useTrace(id: string) {
60 return useQuery({

Callers 1

TracesFunction · 0.90

Calls 1

getTracesMethod · 0.80

Tested by

no test coverage detected