We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a2fb6 commit abf5733Copy full SHA for abf5733
src/Tracer.js
@@ -1,4 +1,5 @@
1
-const { maxTraces, maxTracers } = process.env;
+const MAX_TRACES = 1000000;
2
+const MAX_TRACERS = 100;
3
4
class Tracer {
5
static addTracer(className, title) {
@@ -16,8 +17,8 @@ class Tracer {
16
17
args: JSON.parse(JSON.stringify(args)),
18
};
19
this.traces.push(trace);
- if (this.traces.length > maxTraces) throw new Error('Traces Limit Exceeded');
20
- if (this.tracerCount > maxTracers) throw new Error('Tracers Limit Exceeded');
+ if (this.traces.length > MAX_TRACES) throw new Error('Traces Limit Exceeded');
21
+ if (this.tracerCount > MAX_TRACERS) throw new Error('Tracers Limit Exceeded');
22
}
23
24
constructor(title = this.constructor.name) {
0 commit comments