Initial commit

This commit is contained in:
fraqtal
2026-07-12 08:15:46 +00:00
commit ee0fec0691
1397 changed files with 127242 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import type { ITracer, ISpan, SpanOpts } from "./tracer.interface";
const NOOP_SPAN: ISpan = {
setAttribute: () => {},
setStatus: () => {},
};
export class NoopTracer implements ITracer {
async startSpan<T>(_opts: SpanOpts, fn: (span: ISpan) => Promise<T>): Promise<T> {
return fn(NOOP_SPAN);
}
}