MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/telemetry/index.ts:213–220  ·  view source on GitHub ↗
(opts: TelemetryOptions = {})

Source from the content-addressed store, hash-verified

211 private intervalHandle: NodeJS.Timeout | null = null;
212
213 constructor(opts: TelemetryOptions = {}) {
214 this.dir = opts.dir ?? path.join(os.homedir(), '.codegraph');
215 this.fetchImpl = opts.fetchImpl ?? globalThis.fetch;
216 this.now = opts.now ?? (() => new Date());
217 this.env = opts.env ?? process.env;
218 this.writeStderr = opts.stderr ?? ((line) => process.stderr.write(line));
219 this.installExitHook = opts.installExitHook ?? true;
220 }
221
222 // ---------------------------------------------------------------- consent
223

Callers

nothing calls this directly

Calls 2

writeMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected