@neat.is/core 0.4.16 → 0.4.17

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/index.d.cts CHANGED
@@ -238,8 +238,16 @@ interface IngestContext {
238
238
  now?: () => number;
239
239
  writeErrorEventInline?: boolean;
240
240
  onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
241
+ burstState?: Map<string, BurstState>;
241
242
  }
242
243
  declare function thresholdForEdgeType(edgeType: string, overrides?: Record<string, number>): number;
244
+ interface BurstState {
245
+ count: number;
246
+ firstTs: string;
247
+ lastTs: string;
248
+ lastMs: number;
249
+ codes: Map<number, number>;
250
+ }
243
251
  declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: string): void;
244
252
  declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
245
253
 
package/dist/index.d.ts CHANGED
@@ -238,8 +238,16 @@ interface IngestContext {
238
238
  now?: () => number;
239
239
  writeErrorEventInline?: boolean;
240
240
  onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
241
+ burstState?: Map<string, BurstState>;
241
242
  }
242
243
  declare function thresholdForEdgeType(edgeType: string, overrides?: Record<string, number>): number;
244
+ interface BurstState {
245
+ count: number;
246
+ firstTs: string;
247
+ lastTs: string;
248
+ lastMs: number;
249
+ codes: Map<number, number>;
250
+ }
243
251
  declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: string): void;
244
252
  declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
245
253
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-VMLWUK7W.js";
4
+ } from "./chunk-CEDXXMGO.js";
5
5
  import {
6
6
  ProjectNameCollisionError,
7
7
  addProject,
@@ -37,7 +37,7 @@ import {
37
37
  thresholdForEdgeType,
38
38
  touchLastSeen,
39
39
  writeAtomically
40
- } from "./chunk-XS4CGNRO.js";
40
+ } from "./chunk-LUDSPX5N.js";
41
41
  import {
42
42
  startOtelGrpcReceiver
43
43
  } from "./chunk-GHPHVXYM.js";