File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
packages/core/src/observability Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ import { StreamTracer } from './stream-tracer'
1010import { TraceManager } from './trace-manager'
1111import type { Trace , TraceGroup } from './types'
1212
13- const MAX_TRACE_GROUPS = process . env . MOTIA_MAX_TRACE_GROUPS //
14- ? Number . parseInt ( process . env . MOTIA_MAX_TRACE_GROUPS , 10 )
15- : 50
16-
1713export class BaseTracerFactory implements TracerFactory {
1814 constructor (
1915 private readonly traceStream : MotiaStream < Trace > ,
@@ -56,18 +52,6 @@ export class BaseTracerFactory implements TracerFactory {
5652 startTime : Date . now ( ) ,
5753 }
5854
59- const groups = await this . getAllGroups ( )
60-
61- if ( groups . length >= MAX_TRACE_GROUPS ) {
62- const groupsToDelete = groups
63- . sort ( ( a , b ) => a . startTime - b . startTime ) // date ascending
64- . slice ( 0 , groups . length - MAX_TRACE_GROUPS + 1 )
65-
66- for ( const group of groupsToDelete ) {
67- await this . deleteGroup ( group )
68- }
69- }
70-
7155 const trace = createTrace ( traceGroup , step )
7256 const manager = new TraceManager ( this . traceStream , this . traceGroupStream , traceGroup , trace )
7357
You can’t perform that action at this time.
0 commit comments