@neat.is/core 0.2.10 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-JMLZOKCS.js → chunk-B7UUGIXB.js} +1 -1
- package/dist/chunk-B7UUGIXB.js.map +1 -0
- package/dist/{chunk-5BQWBQJR.js → chunk-I5KODOJV.js} +2 -2
- package/dist/{chunk-W7ZYJZC7.js → chunk-NVCEZXL7.js} +48 -19
- package/dist/chunk-NVCEZXL7.js.map +1 -0
- package/dist/cli.cjs +60 -25
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +45 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -12
- package/dist/index.d.ts +4 -12
- package/dist/index.js +3 -3
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -2
- package/dist/server.cjs +49 -17
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-JMLZOKCS.js.map +0 -1
- package/dist/chunk-W7ZYJZC7.js.map +0 -1
- /package/dist/{chunk-5BQWBQJR.js.map → chunk-I5KODOJV.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MultiDirectedGraph } from 'graphology';
|
|
2
|
-
import { GraphNode, GraphEdge, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
|
|
2
|
+
import { GraphNode, GraphEdge, StaleEvent, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
|
|
3
|
+
export { StaleEvent } from '@neat.is/types';
|
|
3
4
|
import { FastifyInstance } from 'fastify';
|
|
4
5
|
|
|
5
6
|
type NeatGraph = MultiDirectedGraph<GraphNode, GraphEdge>;
|
|
@@ -195,16 +196,7 @@ declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: stri
|
|
|
195
196
|
declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
|
|
196
197
|
|
|
197
198
|
declare function makeSpanHandler(ctx: IngestContext): (span: ParsedSpan) => Promise<void>;
|
|
198
|
-
|
|
199
|
-
edgeId: string;
|
|
200
|
-
source: string;
|
|
201
|
-
target: string;
|
|
202
|
-
edgeType: string;
|
|
203
|
-
thresholdMs: number;
|
|
204
|
-
ageMs: number;
|
|
205
|
-
lastObserved: string;
|
|
206
|
-
transitionedAt: string;
|
|
207
|
-
}
|
|
199
|
+
|
|
208
200
|
interface MarkStaleOptions {
|
|
209
201
|
thresholds?: Record<string, number>;
|
|
210
202
|
now?: number;
|
|
@@ -409,4 +401,4 @@ declare function touchLastSeen(name: string, at?: string): Promise<void>;
|
|
|
409
401
|
*/
|
|
410
402
|
declare function removeProject(name: string): Promise<RegistryEntry | undefined>;
|
|
411
403
|
|
|
412
|
-
export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type
|
|
404
|
+
export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MultiDirectedGraph } from 'graphology';
|
|
2
|
-
import { GraphNode, GraphEdge, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
|
|
2
|
+
import { GraphNode, GraphEdge, StaleEvent, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
|
|
3
|
+
export { StaleEvent } from '@neat.is/types';
|
|
3
4
|
import { FastifyInstance } from 'fastify';
|
|
4
5
|
|
|
5
6
|
type NeatGraph = MultiDirectedGraph<GraphNode, GraphEdge>;
|
|
@@ -195,16 +196,7 @@ declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: stri
|
|
|
195
196
|
declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
|
|
196
197
|
|
|
197
198
|
declare function makeSpanHandler(ctx: IngestContext): (span: ParsedSpan) => Promise<void>;
|
|
198
|
-
|
|
199
|
-
edgeId: string;
|
|
200
|
-
source: string;
|
|
201
|
-
target: string;
|
|
202
|
-
edgeType: string;
|
|
203
|
-
thresholdMs: number;
|
|
204
|
-
ageMs: number;
|
|
205
|
-
lastObserved: string;
|
|
206
|
-
transitionedAt: string;
|
|
207
|
-
}
|
|
199
|
+
|
|
208
200
|
interface MarkStaleOptions {
|
|
209
201
|
thresholds?: Record<string, number>;
|
|
210
202
|
now?: number;
|
|
@@ -409,4 +401,4 @@ declare function touchLastSeen(name: string, at?: string): Promise<void>;
|
|
|
409
401
|
*/
|
|
410
402
|
declare function removeProject(name: string): Promise<RegistryEntry | undefined>;
|
|
411
403
|
|
|
412
|
-
export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type
|
|
404
|
+
export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeSpanToProject,
|
|
3
3
|
startDaemon
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I5KODOJV.js";
|
|
5
5
|
import {
|
|
6
6
|
buildApi,
|
|
7
7
|
computeGraphDiff,
|
|
8
8
|
loadSnapshotForDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NVCEZXL7.js";
|
|
10
10
|
import {
|
|
11
11
|
ProjectNameCollisionError,
|
|
12
12
|
addProject,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
thresholdForEdgeType,
|
|
40
40
|
touchLastSeen,
|
|
41
41
|
writeAtomically
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-B7UUGIXB.js";
|
|
43
43
|
import {
|
|
44
44
|
buildOtelReceiver,
|
|
45
45
|
logSpanHandler,
|