{"version":3,"sources":["../../src/trace/trace.ts"],"names":["Span","trace","flushAllTraces","NUM_OF_MICROSEC_IN_NANOSEC","BigInt","count","getId","SpanStatus","Started","Stopped","constructor","name","parentId","attrs","startTime","duration","status","id","_start","process","hrtime","bigint","now","Date","stop","stopTime","end","Number","MAX_SAFE_INTEGER","Error","timestamp","reporter","report","traceChild","manualTraceChild","span","setAttribute","key","value","String","traceFn","fn","traceAsyncFn","flushAll"],"mappings":";;;;;;;;;;;;;;;;;;;;IAiBaA,IAAI;eAAJA;;IAmGAC,KAAK;eAALA;;IAQAC,cAAc;eAAdA;;;wBA3HY;AAEzB,MAAMC,6BAA6BC,OAAO;AAC1C,IAAIC,QAAQ;AACZ,MAAMC,QAAQ;IACZD;IACA,OAAOA;AACT;IAIO;UAAKE,UAAU;IAAVA,WAAAA,WACVC,aAAAA,KAAAA;IADUD,WAAAA,WAEVE,aAAAA,KAAAA;GAFUF,eAAAA;AAKL,MAAMP;IAaXU,YAAY,EACVC,IAAI,EACJC,QAAQ,EACRC,KAAK,EACLC,SAAS,EAMV,CAAE;QACD,IAAI,CAACH,IAAI,GAAGA;QACZ,IAAI,CAACC,QAAQ,GAAGA;QAChB,IAAI,CAACG,QAAQ,GAAG;QAChB,IAAI,CAACF,KAAK,GAAGA,QAAQ;YAAE,GAAGA,KAAK;QAAC,IAAI,CAAC;QACrC,IAAI,CAACG,MAAM,GAhCbR;QAiCE,IAAI,CAACS,EAAE,GAAGX;QACV,IAAI,CAACY,MAAM,GAAGJ,aAAaK,QAAQC,MAAM,CAACC,MAAM;QAChD,wEAAwE;QACxE,iDAAiD;QACjD,2IAA2I;QAC3I,wDAAwD;QACxD,iFAAiF;QACjF,IAAI,CAACC,GAAG,GAAGC,KAAKD,GAAG;IACrB;IAEA,yEAAyE;IACzE,+DAA+D;IAC/D,wEAAwE;IACxE,yCAAyC;IACzCE,KAAKC,QAAiB,EAAE;QACtB,MAAMC,MAAcD,YAAYN,QAAQC,MAAM,CAACC,MAAM;QACr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