@redscope-ai/redscope 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +224 -0
- package/dist/chunk-090920rk.js +288 -0
- package/dist/chunk-0afb2r78.js +141 -0
- package/dist/chunk-0d4ekx1g.js +73 -0
- package/dist/chunk-0g6nwbhq.js +15 -0
- package/dist/chunk-0qj905nt.js +18 -0
- package/dist/chunk-0s5btnn1.js +186 -0
- package/dist/chunk-0s8fars0.js +91 -0
- package/dist/chunk-10ev3dvh.js +312 -0
- package/dist/chunk-10k5jfc5.js +1295 -0
- package/dist/chunk-12tspwqa.js +240 -0
- package/dist/chunk-13qesvnw.js +17 -0
- package/dist/chunk-143eh1e0.js +121 -0
- package/dist/chunk-14p6wvsq.js +39 -0
- package/dist/chunk-19f3zb1m.js +342 -0
- package/dist/chunk-1a5cep8h.js +145 -0
- package/dist/chunk-1abw9kkn.js +34 -0
- package/dist/chunk-1aer7c78.js +118 -0
- package/dist/chunk-1dazz4g6.js +154 -0
- package/dist/chunk-1fcf4ty1.js +142 -0
- package/dist/chunk-1gnxhyf8.js +62 -0
- package/dist/chunk-1he3944e.js +8124 -0
- package/dist/chunk-1jpayz7y.js +952 -0
- package/dist/chunk-1qd6f6vk.js +269 -0
- package/dist/chunk-1v0kpe62.js +2547 -0
- package/dist/chunk-1w20m7gw.js +445 -0
- package/dist/chunk-1y7kp51j.js +72 -0
- package/dist/chunk-1ycb5sxt.js +247 -0
- package/dist/chunk-1zbwhcbt.js +1124 -0
- package/dist/chunk-20psem54.js +116 -0
- package/dist/chunk-23h69r5b.js +30 -0
- package/dist/chunk-23x86ptv.js +473 -0
- package/dist/chunk-24fyv3jz.js +378 -0
- package/dist/chunk-24kv69g3.js +97 -0
- package/dist/chunk-2azx8zsc.js +125 -0
- package/dist/chunk-2d1gwzz9.js +524 -0
- package/dist/chunk-2g0ytd9d.js +29058 -0
- package/dist/chunk-2hfp9kat.js +21 -0
- package/dist/chunk-2j875eq6.js +37 -0
- package/dist/chunk-2kcgxnvp.js +39 -0
- package/dist/chunk-2kz09j2s.js +23 -0
- package/dist/chunk-2mwnwp0n.js +17 -0
- package/dist/chunk-2p1cqhcn.js +921 -0
- package/dist/chunk-2p369q9z.js +61 -0
- package/dist/chunk-2rf6asgf.js +151 -0
- package/dist/chunk-2vr7mqx1.js +384 -0
- package/dist/chunk-2xcg933e.js +205 -0
- package/dist/chunk-2ypwckbz.js +40310 -0
- package/dist/chunk-30wnahyg.js +626 -0
- package/dist/chunk-326zehp8.js +204 -0
- package/dist/chunk-32s6jzgw.js +183 -0
- package/dist/chunk-35yzt1a7.js +202 -0
- package/dist/chunk-38frkej6.js +62 -0
- package/dist/chunk-3abaq08g.js +34 -0
- package/dist/chunk-3h59ttr5.js +32 -0
- package/dist/chunk-3nk9q8dr.js +154 -0
- package/dist/chunk-3prrxevm.js +224 -0
- package/dist/chunk-3tv8p9xw.js +127 -0
- package/dist/chunk-3txyekes.js +19 -0
- package/dist/chunk-3vfxjn7g.js +19 -0
- package/dist/chunk-3w9sye8h.js +81 -0
- package/dist/chunk-3y69j7y8.js +24 -0
- package/dist/chunk-3zwjpkjh.js +1603 -0
- package/dist/chunk-40t1d75v.js +3442 -0
- package/dist/chunk-470kmby4.js +318 -0
- package/dist/chunk-47jc141z.js +335 -0
- package/dist/chunk-48rz50ct.js +868 -0
- package/dist/chunk-49wv03ts.js +232 -0
- package/dist/chunk-4a189mn2.js +103 -0
- package/dist/chunk-4c4fmh7a.js +15 -0
- package/dist/chunk-4ct8dsj5.js +49 -0
- package/dist/chunk-4kqt1pm1.js +100 -0
- package/dist/chunk-4ng0xy0e.js +802 -0
- package/dist/chunk-4spgkgr3.js +43 -0
- package/dist/chunk-4tjdwtyy.js +19 -0
- package/dist/chunk-4tr60273.js +370 -0
- package/dist/chunk-4vnaeng5.js +29 -0
- package/dist/chunk-4wbqpeaw.js +871 -0
- package/dist/chunk-4wgkv3fv.js +1140 -0
- package/dist/chunk-4yjskjb6.js +40 -0
- package/dist/chunk-50m3a23z.js +35 -0
- package/dist/chunk-511f79az.js +182 -0
- package/dist/chunk-51sgztvv.js +161 -0
- package/dist/chunk-563fcpv1.js +290 -0
- package/dist/chunk-564cnq6v.js +735 -0
- package/dist/chunk-569r8cxc.js +31 -0
- package/dist/chunk-570x55d4.js +12 -0
- package/dist/chunk-571556cm.js +80 -0
- package/dist/chunk-59t4c56e.js +63 -0
- package/dist/chunk-5axjhkma.js +36 -0
- package/dist/chunk-5b188q5e.js +157 -0
- package/dist/chunk-5dmn1865.js +439 -0
- package/dist/chunk-5ks4829r.js +267 -0
- package/dist/chunk-5mmhfbxb.js +1078 -0
- package/dist/chunk-5rdt14hy.js +742 -0
- package/dist/chunk-5ssryexj.js +121 -0
- package/dist/chunk-5v95pnq4.js +15 -0
- package/dist/chunk-5xvjt2t9.js +68 -0
- package/dist/chunk-5zyq6t1q.js +118 -0
- package/dist/chunk-60fkafk2.js +15 -0
- package/dist/chunk-62fjkf5q.js +46 -0
- package/dist/chunk-64gazrrb.js +8067 -0
- package/dist/chunk-65tq2yjx.js +126 -0
- package/dist/chunk-65zbgg1n.js +14 -0
- package/dist/chunk-66v8mty3.js +264 -0
- package/dist/chunk-6acx5heq.js +292 -0
- package/dist/chunk-6hr7742d.js +61 -0
- package/dist/chunk-6hygvrhn.js +143 -0
- package/dist/chunk-6kjh280m.js +128 -0
- package/dist/chunk-6s0q1s5r.js +66 -0
- package/dist/chunk-6x35ffpx.js +690 -0
- package/dist/chunk-71jfy1hh.js +570 -0
- package/dist/chunk-71sdcaq6.js +15 -0
- package/dist/chunk-754qdxs5.js +92 -0
- package/dist/chunk-79v5bkj4.js +1176 -0
- package/dist/chunk-7br0w7j5.js +151 -0
- package/dist/chunk-7cjgrzz1.js +298 -0
- package/dist/chunk-7d41ks0y.js +133 -0
- package/dist/chunk-7f40pmtr.js +71 -0
- package/dist/chunk-7g15x8hm.js +131 -0
- package/dist/chunk-7gtnzdet.js +120 -0
- package/dist/chunk-7h0z4aqx.js +702 -0
- package/dist/chunk-7h7e5a7d.js +25 -0
- package/dist/chunk-7m2cznwr.js +40 -0
- package/dist/chunk-7nvday0n.js +252 -0
- package/dist/chunk-7qey87th.js +145 -0
- package/dist/chunk-7qx3xhv3.js +9076 -0
- package/dist/chunk-7tfdhkpy.js +61 -0
- package/dist/chunk-80m511j6.js +121 -0
- package/dist/chunk-80ysxfe9.js +784 -0
- package/dist/chunk-8375zk8t.js +17200 -0
- package/dist/chunk-85bpkyy9.js +412 -0
- package/dist/chunk-85tcn547.js +876 -0
- package/dist/chunk-85vqgbc8.js +13 -0
- package/dist/chunk-86626jb4.js +49 -0
- package/dist/chunk-87ms17f6.js +444 -0
- package/dist/chunk-87mz239c.js +118 -0
- package/dist/chunk-89vdzt4e.js +254 -0
- package/dist/chunk-89z3e99z.js +159 -0
- package/dist/chunk-8cwrz1dd.js +1806 -0
- package/dist/chunk-8gv2pjby.js +21 -0
- package/dist/chunk-8hdevr3s.js +140 -0
- package/dist/chunk-8hdsk6qc.js +710 -0
- package/dist/chunk-8kct9arg.js +724 -0
- package/dist/chunk-8kf8h7xf.js +23 -0
- package/dist/chunk-8qed8ymj.js +605 -0
- package/dist/chunk-8sdgr592.js +101 -0
- package/dist/chunk-8we9w8pw.js +111 -0
- package/dist/chunk-8xnm5637.js +72 -0
- package/dist/chunk-8y3q0eqy.js +67 -0
- package/dist/chunk-8yvsnrkr.js +3449 -0
- package/dist/chunk-8zz4z1q3.js +42 -0
- package/dist/chunk-90eyff3k.js +119 -0
- package/dist/chunk-92bjkrf2.js +121 -0
- package/dist/chunk-92zrc7c6.js +327 -0
- package/dist/chunk-935nrvdb.js +13 -0
- package/dist/chunk-94pfyv6a.js +48 -0
- package/dist/chunk-9568p8se.js +115 -0
- package/dist/chunk-96km1ywr.js +37 -0
- package/dist/chunk-980bg4w4.js +163 -0
- package/dist/chunk-9a9g5hbj.js +205 -0
- package/dist/chunk-9cm4725d.js +4395 -0
- package/dist/chunk-9ds3vzq8.js +847 -0
- package/dist/chunk-9ffc9n60.js +618 -0
- package/dist/chunk-9fstrwv2.js +184 -0
- package/dist/chunk-9gt0g0qe.js +153 -0
- package/dist/chunk-9h9k5vz3.js +2761 -0
- package/dist/chunk-9he8bmhy.js +17 -0
- package/dist/chunk-9hn8e6h1.js +12 -0
- package/dist/chunk-9j0n3g8e.js +179 -0
- package/dist/chunk-9j6pa3ft.js +251 -0
- package/dist/chunk-9jpg9dn7.js +122 -0
- package/dist/chunk-9mycnwj5.js +46 -0
- package/dist/chunk-9npy2c17.js +517 -0
- package/dist/chunk-9p6sec8n.js +34 -0
- package/dist/chunk-9pnym83h.js +4584 -0
- package/dist/chunk-9skwrnd2.js +25 -0
- package/dist/chunk-9tsfaqr8.js +459 -0
- package/dist/chunk-9tsw3cqv.js +5924 -0
- package/dist/chunk-9w6ckyk4.js +49 -0
- package/dist/chunk-a15bwzv6.js +147 -0
- package/dist/chunk-a9t6cp69.js +28 -0
- package/dist/chunk-ad2yk19p.js +102 -0
- package/dist/chunk-ad4cw4nw.js +336 -0
- package/dist/chunk-ad69fbsk.js +347 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-aeysytks.js +216 -0
- package/dist/chunk-ag81m9bq.js +61 -0
- package/dist/chunk-ahx7gp6r.js +4448 -0
- package/dist/chunk-aj4tk4tk.js +23 -0
- package/dist/chunk-an82t9jc.js +104 -0
- package/dist/chunk-apg95qd7.js +1393 -0
- package/dist/chunk-aq5n2adz.js +27 -0
- package/dist/chunk-aw4s3a99.js +208 -0
- package/dist/chunk-awgdfggg.js +14 -0
- package/dist/chunk-ayymxgn1.js +164 -0
- package/dist/chunk-azbab59e.js +637 -0
- package/dist/chunk-azdxq2a3.js +293 -0
- package/dist/chunk-b0tjx3k1.js +523 -0
- package/dist/chunk-b5pp4g2g.js +371 -0
- package/dist/chunk-b5zm8dt6.js +26 -0
- package/dist/chunk-bcnye5a0.js +109 -0
- package/dist/chunk-beqz3k49.js +190 -0
- package/dist/chunk-bf906wpw.js +147 -0
- package/dist/chunk-bgan4cpf.js +13 -0
- package/dist/chunk-bhzp13h7.js +1178 -0
- package/dist/chunk-bk403kpw.js +142 -0
- package/dist/chunk-bmq4c135.js +489 -0
- package/dist/chunk-bprbeda7.js +35 -0
- package/dist/chunk-bst7czdd.js +888 -0
- package/dist/chunk-bths4xgn.js +111 -0
- package/dist/chunk-btjn3qby.js +13 -0
- package/dist/chunk-bwb1vxnt.js +120 -0
- package/dist/chunk-bxa6tw4m.js +643 -0
- package/dist/chunk-bxfjr8qb.js +27 -0
- package/dist/chunk-bxpzhrej.js +73 -0
- package/dist/chunk-bzyzrq0k.js +51 -0
- package/dist/chunk-c0k7b0jw.js +4265 -0
- package/dist/chunk-c17f0h2s.js +16 -0
- package/dist/chunk-c1yc761e.js +6748 -0
- package/dist/chunk-c5g9shkw.js +298 -0
- package/dist/chunk-c696122m.js +69 -0
- package/dist/chunk-c92b3yxx.js +109 -0
- package/dist/chunk-c9aqz56y.js +143 -0
- package/dist/chunk-cba7c5w3.js +345 -0
- package/dist/chunk-cbcxbbe6.js +6543 -0
- package/dist/chunk-cdfjb87h.js +11 -0
- package/dist/chunk-ce8zjt1y.js +136 -0
- package/dist/chunk-cep7e37k.js +22740 -0
- package/dist/chunk-chs5qm8d.js +258 -0
- package/dist/chunk-ckydq33g.js +144 -0
- package/dist/chunk-cnge6wpj.js +514 -0
- package/dist/chunk-cpnsvqf1.js +13 -0
- package/dist/chunk-cqqebkv4.js +32 -0
- package/dist/chunk-cvqpp7dk.js +627 -0
- package/dist/chunk-cwc33j40.js +65 -0
- package/dist/chunk-cypvrq2a.js +155 -0
- package/dist/chunk-d1ha0swn.js +475 -0
- package/dist/chunk-d2an0138.js +35 -0
- package/dist/chunk-d2tt72ck.js +343 -0
- package/dist/chunk-d6wvcqrw.js +9507 -0
- package/dist/chunk-d7ys2kka.js +991 -0
- package/dist/chunk-dbts5q5p.js +122 -0
- package/dist/chunk-dct29ggs.js +295 -0
- package/dist/chunk-de0qnnf7.js +1059 -0
- package/dist/chunk-dep72ce4.js +513 -0
- package/dist/chunk-dgpvgy8x.js +47 -0
- package/dist/chunk-dhhd7dtc.js +20 -0
- package/dist/chunk-dhzpmxv6.js +594 -0
- package/dist/chunk-djes4da7.js +413 -0
- package/dist/chunk-dnhv3vx7.js +166 -0
- package/dist/chunk-dqtvafan.js +2365 -0
- package/dist/chunk-dr4a3tcp.js +60 -0
- package/dist/chunk-dz2xk9kb.js +100 -0
- package/dist/chunk-dz7nc6rf.js +15 -0
- package/dist/chunk-e3abfxpy.js +1486 -0
- package/dist/chunk-e3cq9z89.js +85 -0
- package/dist/chunk-e3j7m7k2.js +642 -0
- package/dist/chunk-e4dsy4g1.js +9951 -0
- package/dist/chunk-e5592pnn.js +197 -0
- package/dist/chunk-e55hdegh.js +129 -0
- package/dist/chunk-e5r5r04e.js +1030 -0
- package/dist/chunk-e60zztbt.js +442 -0
- package/dist/chunk-e7qq6vn0.js +372 -0
- package/dist/chunk-e9aat7xw.js +80 -0
- package/dist/chunk-e9d5v3zs.js +143 -0
- package/dist/chunk-eax32zk4.js +87 -0
- package/dist/chunk-ebfwmbx1.js +117 -0
- package/dist/chunk-ec71pb8t.js +971 -0
- package/dist/chunk-eemjb825.js +17252 -0
- package/dist/chunk-ees8xdhd.js +256 -0
- package/dist/chunk-eewg66y1.js +112 -0
- package/dist/chunk-eg22v12d.js +266 -0
- package/dist/chunk-enzzk67f.js +313 -0
- package/dist/chunk-eskhp70f.js +117 -0
- package/dist/chunk-ewx6z4g8.js +55 -0
- package/dist/chunk-eyvx461k.js +76 -0
- package/dist/chunk-eztq2b5f.js +94 -0
- package/dist/chunk-f0ffwzdd.js +321 -0
- package/dist/chunk-f80n68mf.js +119 -0
- package/dist/chunk-fae2hjxp.js +99 -0
- package/dist/chunk-fbtfp370.js +60 -0
- package/dist/chunk-fc6ndtgf.js +94 -0
- package/dist/chunk-fdwabr8p.js +13870 -0
- package/dist/chunk-fejeqe61.js +785 -0
- package/dist/chunk-fh0d6mvk.js +168 -0
- package/dist/chunk-fh19zcaf.js +304 -0
- package/dist/chunk-fh8bd39r.js +186 -0
- package/dist/chunk-fj2ebbpn.js +33 -0
- package/dist/chunk-fjn632v7.js +194 -0
- package/dist/chunk-fncpkzs5.js +1389 -0
- package/dist/chunk-fpd1gpt8.js +332 -0
- package/dist/chunk-fq9snrnh.js +295 -0
- package/dist/chunk-fqcfzg3j.js +207 -0
- package/dist/chunk-ftt3vqj2.js +1919 -0
- package/dist/chunk-g06pm4n9.js +395 -0
- package/dist/chunk-g4m5pf4g.js +8 -0
- package/dist/chunk-g72h52y6.js +36 -0
- package/dist/chunk-g79ej71s.js +1627 -0
- package/dist/chunk-g7fwk59d.js +19 -0
- package/dist/chunk-g9jnkrtm.js +663 -0
- package/dist/chunk-g9vg5d7t.js +38 -0
- package/dist/chunk-ga1jkyqy.js +1636 -0
- package/dist/chunk-gaaap2nk.js +676 -0
- package/dist/chunk-gc6erq5q.js +483 -0
- package/dist/chunk-gjrcmf0a.js +752 -0
- package/dist/chunk-gmdy2w3z.js +238999 -0
- package/dist/chunk-gsz4yrrk.js +81 -0
- package/dist/chunk-gy47rjy8.js +3830 -0
- package/dist/chunk-h12a4f4x.js +11 -0
- package/dist/chunk-h1yratmg.js +725 -0
- package/dist/chunk-h9y0jnsy.js +155 -0
- package/dist/chunk-hbhs3mwy.js +133 -0
- package/dist/chunk-hbs8cmb4.js +8 -0
- package/dist/chunk-hdk0t1ht.js +940 -0
- package/dist/chunk-hef8dx4s.js +178 -0
- package/dist/chunk-hgsca8mt.js +381 -0
- package/dist/chunk-hhsxm2yr.js +67 -0
- package/dist/chunk-hj5tzzpd.js +39 -0
- package/dist/chunk-hjxqmtg5.js +94 -0
- package/dist/chunk-hn4w9pkj.js +68 -0
- package/dist/chunk-hnprkjgp.js +25 -0
- package/dist/chunk-hq3n5ex7.js +183 -0
- package/dist/chunk-hqjspfma.js +158 -0
- package/dist/chunk-hqxp6b72.js +1198 -0
- package/dist/chunk-hs6nrmq6.js +94 -0
- package/dist/chunk-hwba5xdc.js +267 -0
- package/dist/chunk-hy566ev3.js +430 -0
- package/dist/chunk-hzmzwte2.js +153 -0
- package/dist/chunk-hzxzvzw8.js +274 -0
- package/dist/chunk-j139fzgs.js +114 -0
- package/dist/chunk-j1mep9ck.js +62 -0
- package/dist/chunk-j3xveeg4.js +273 -0
- package/dist/chunk-j5y1s11j.js +100 -0
- package/dist/chunk-j9475b46.js +26 -0
- package/dist/chunk-j9rgqs8m.js +1192 -0
- package/dist/chunk-jccjaddz.js +74 -0
- package/dist/chunk-jdkwfy9e.js +35 -0
- package/dist/chunk-jdqp0r4h.js +6157 -0
- package/dist/chunk-jdzk4zwn.js +587 -0
- package/dist/chunk-jfafmkte.js +49 -0
- package/dist/chunk-jg3r989b.js +16 -0
- package/dist/chunk-jhtccjc9.js +54 -0
- package/dist/chunk-jj2ff1pr.js +688 -0
- package/dist/chunk-jmv7k0jn.js +37 -0
- package/dist/chunk-jmxzmwpw.js +65 -0
- package/dist/chunk-jnjxdqyr.js +353 -0
- package/dist/chunk-jsbbez9j.js +138 -0
- package/dist/chunk-jvpt2dc0.js +424 -0
- package/dist/chunk-jwd7cka0.js +34 -0
- package/dist/chunk-jy5er3st.js +15 -0
- package/dist/chunk-jyby79z5.js +121 -0
- package/dist/chunk-jzyr6j5n.js +332 -0
- package/dist/chunk-k49xc781.js +63 -0
- package/dist/chunk-k7dt2g4a.js +41 -0
- package/dist/chunk-k7hexw3v.js +969 -0
- package/dist/chunk-k7wwkraa.js +117 -0
- package/dist/chunk-kb3758f7.js +51 -0
- package/dist/chunk-kc67kt75.js +3119 -0
- package/dist/chunk-kdhmfxmh.js +3149 -0
- package/dist/chunk-kejdd6zc.js +51 -0
- package/dist/chunk-kekrjeem.js +402 -0
- package/dist/chunk-kez5r0zz.js +280 -0
- package/dist/chunk-kfsvcs5t.js +75 -0
- package/dist/chunk-khtvffc4.js +285 -0
- package/dist/chunk-kkz4w1tv.js +64 -0
- package/dist/chunk-kmywng0j.js +272 -0
- package/dist/chunk-kq6vcpdr.js +224 -0
- package/dist/chunk-kqzdszcc.js +37 -0
- package/dist/chunk-ktxpp02w.js +435 -0
- package/dist/chunk-kwcvhbtz.js +26 -0
- package/dist/chunk-kx0cm9qr.js +128 -0
- package/dist/chunk-kxcmqz10.js +120 -0
- package/dist/chunk-kxwava1g.js +14 -0
- package/dist/chunk-kywtr3jg.js +825 -0
- package/dist/chunk-kzwg923p.js +8 -0
- package/dist/chunk-m1eq3sgv.js +255 -0
- package/dist/chunk-m21h5zb4.js +119 -0
- package/dist/chunk-m2c3bjv1.js +111 -0
- package/dist/chunk-m41e19ms.js +42 -0
- package/dist/chunk-m7ka36ex.js +97 -0
- package/dist/chunk-m81w8tbm.js +259 -0
- package/dist/chunk-m95ggkax.js +281 -0
- package/dist/chunk-manx26xa.js +145 -0
- package/dist/chunk-mdxh3pk2.js +298 -0
- package/dist/chunk-mhbfkcja.js +311 -0
- package/dist/chunk-mjnr5erm.js +173 -0
- package/dist/chunk-mngvnmwp.js +135 -0
- package/dist/chunk-mvfqanv5.js +63 -0
- package/dist/chunk-mw1nesq1.js +140 -0
- package/dist/chunk-mx168925.js +661 -0
- package/dist/chunk-mxwvj18g.js +795 -0
- package/dist/chunk-my7r5mba.js +257 -0
- package/dist/chunk-myaa1kkf.js +17 -0
- package/dist/chunk-myypc3tn.js +46 -0
- package/dist/chunk-mzcnmnpq.js +3379 -0
- package/dist/chunk-mznav6d1.js +194 -0
- package/dist/chunk-n0qxskpr.js +24 -0
- package/dist/chunk-n6a6hgtp.js +394 -0
- package/dist/chunk-n6d5fgx0.js +254 -0
- package/dist/chunk-n6ym3n03.js +120 -0
- package/dist/chunk-n9g24mwe.js +104 -0
- package/dist/chunk-naamqdf9.js +185 -0
- package/dist/chunk-nb2jk7zj.js +15 -0
- package/dist/chunk-nbkbq9en.js +67 -0
- package/dist/chunk-ndttd6es.js +38 -0
- package/dist/chunk-nfygaaxg.js +133 -0
- package/dist/chunk-ngdzpszd.js +454 -0
- package/dist/chunk-nmfwksa4.js +1297 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nwc3v0vp.js +691 -0
- package/dist/chunk-nz8ha95p.js +3610 -0
- package/dist/chunk-nzxfj0gq.js +2007 -0
- package/dist/chunk-p0r8887g.js +6932 -0
- package/dist/chunk-p1seyqdm.js +120 -0
- package/dist/chunk-p425zbgw.js +726 -0
- package/dist/chunk-p7hamd2c.js +146 -0
- package/dist/chunk-pdvg91cg.js +32 -0
- package/dist/chunk-pecy49yr.js +14649 -0
- package/dist/chunk-pfxrg89f.js +547 -0
- package/dist/chunk-pfyw3155.js +2750 -0
- package/dist/chunk-pr8m11pm.js +1192 -0
- package/dist/chunk-ptxteaeh.js +1591 -0
- package/dist/chunk-pv164mac.js +394 -0
- package/dist/chunk-pxxhtxf5.js +10154 -0
- package/dist/chunk-q0e485mg.js +61 -0
- package/dist/chunk-q1vrhh0q.js +458 -0
- package/dist/chunk-q2h79ncs.js +370 -0
- package/dist/chunk-q3b4n194.js +56 -0
- package/dist/chunk-q44zc68f.js +4301 -0
- package/dist/chunk-q8gknbdx.js +352 -0
- package/dist/chunk-q8xk3kdj.js +11 -0
- package/dist/chunk-qak46xtp.js +119 -0
- package/dist/chunk-qfq7absv.js +95 -0
- package/dist/chunk-qfsn720k.js +151 -0
- package/dist/chunk-qg4811f6.js +228 -0
- package/dist/chunk-qgzn3qps.js +90 -0
- package/dist/chunk-qhaggqkt.js +113 -0
- package/dist/chunk-qjjp27z8.js +195 -0
- package/dist/chunk-qxp0nye6.js +34 -0
- package/dist/chunk-qy3nagaq.js +4957 -0
- package/dist/chunk-qz2meav1.js +1452 -0
- package/dist/chunk-r50hne7m.js +63 -0
- package/dist/chunk-r6m0vgnv.js +80 -0
- package/dist/chunk-r7yw38vf.js +22864 -0
- package/dist/chunk-r8xc618w.js +42 -0
- package/dist/chunk-r961r5kj.js +87 -0
- package/dist/chunk-r9b5xrh0.js +66 -0
- package/dist/chunk-rcn2pd6q.js +477 -0
- package/dist/chunk-rdeh8p3y.js +148 -0
- package/dist/chunk-rg9x1742.js +542 -0
- package/dist/chunk-rgyzsbs3.js +39 -0
- package/dist/chunk-rk2fsxtz.js +16 -0
- package/dist/chunk-rkchkwv9.js +40 -0
- package/dist/chunk-rp8whpb3.js +478 -0
- package/dist/chunk-rpkxdtgr.js +68 -0
- package/dist/chunk-rpmntgyh.js +394 -0
- package/dist/chunk-rpshz4dy.js +614 -0
- package/dist/chunk-rqd60ay5.js +133 -0
- package/dist/chunk-rrsjf2ea.js +229 -0
- package/dist/chunk-rtjk8c8e.js +173 -0
- package/dist/chunk-rw0y2wdf.js +1017 -0
- package/dist/chunk-rx5w7ess.js +663 -0
- package/dist/chunk-rx8t9d35.js +1947 -0
- package/dist/chunk-rxcazxgf.js +195 -0
- package/dist/chunk-rxg6q3bp.js +1413 -0
- package/dist/chunk-rxrb7xnd.js +71 -0
- package/dist/chunk-rxrzxff3.js +118 -0
- package/dist/chunk-ryqjc943.js +71 -0
- package/dist/chunk-rzk9k2rf.js +81 -0
- package/dist/chunk-s2qv0nht.js +119 -0
- package/dist/chunk-s3hafnk3.js +2285 -0
- package/dist/chunk-s4a496tt.js +226 -0
- package/dist/chunk-s4d1h3ka.js +35 -0
- package/dist/chunk-sm3k3ze4.js +16525 -0
- package/dist/chunk-sn0bja82.js +385 -0
- package/dist/chunk-sngjggw1.js +4227 -0
- package/dist/chunk-sq047n34.js +364 -0
- package/dist/chunk-sttwe2tw.js +8584 -0
- package/dist/chunk-sw8qx1r0.js +86 -0
- package/dist/chunk-swstah6a.js +240 -0
- package/dist/chunk-syrkr0mf.js +63 -0
- package/dist/chunk-sz206bd9.js +26 -0
- package/dist/chunk-t09669cj.js +333 -0
- package/dist/chunk-t5f8e30k.js +602 -0
- package/dist/chunk-t5m78mc8.js +432 -0
- package/dist/chunk-t5x1dqwn.js +143 -0
- package/dist/chunk-t877ea0w.js +168 -0
- package/dist/chunk-t91hb71c.js +17 -0
- package/dist/chunk-tb636bcf.js +942 -0
- package/dist/chunk-tb8sykbr.js +426 -0
- package/dist/chunk-tbdkekz3.js +125 -0
- package/dist/chunk-td2gsz7s.js +225 -0
- package/dist/chunk-tenvxbyh.js +20 -0
- package/dist/chunk-texg4qqt.js +317 -0
- package/dist/chunk-teymzz80.js +266 -0
- package/dist/chunk-tj26qpf7.js +153 -0
- package/dist/chunk-tk85ec4p.js +395 -0
- package/dist/chunk-tq205h01.js +164 -0
- package/dist/chunk-tqzddjzg.js +61 -0
- package/dist/chunk-trqrj23e.js +134 -0
- package/dist/chunk-tw1hfsxv.js +2477 -0
- package/dist/chunk-txxdfq83.js +122 -0
- package/dist/chunk-v0yhe582.js +31 -0
- package/dist/chunk-v14184xm.js +15 -0
- package/dist/chunk-v1h9z4hw.js +138 -0
- package/dist/chunk-v3ey5j7f.js +329 -0
- package/dist/chunk-v3nh1sfn.js +208 -0
- package/dist/chunk-v3x8tcc0.js +45 -0
- package/dist/chunk-v4nqnvqq.js +3984 -0
- package/dist/chunk-v4ypszbb.js +15 -0
- package/dist/chunk-v7wbqcx9.js +63 -0
- package/dist/chunk-v8r5fev3.js +341 -0
- package/dist/chunk-v9zg5kzx.js +2810 -0
- package/dist/chunk-va1wh5ss.js +24 -0
- package/dist/chunk-vbfswhht.js +42 -0
- package/dist/chunk-ve7x2tfq.js +124 -0
- package/dist/chunk-vfz8k89y.js +485 -0
- package/dist/chunk-vgm5k14x.js +35678 -0
- package/dist/chunk-vh9pej3c.js +247 -0
- package/dist/chunk-vjxqyt6f.js +3820 -0
- package/dist/chunk-vpb1xstn.js +178 -0
- package/dist/chunk-vqt79tj8.js +110 -0
- package/dist/chunk-vr0n9pv9.js +152 -0
- package/dist/chunk-vrejmja5.js +90 -0
- package/dist/chunk-vrxasmdw.js +449 -0
- package/dist/chunk-vrxb946v.js +125 -0
- package/dist/chunk-vv4kj0q8.js +98 -0
- package/dist/chunk-vvpfng7w.js +8 -0
- package/dist/chunk-vw6ybyew.js +2007 -0
- package/dist/chunk-vwenx8ke.js +17 -0
- package/dist/chunk-vwfa0s5a.js +155 -0
- package/dist/chunk-vx71j8xe.js +63 -0
- package/dist/chunk-vxbjzggp.js +43 -0
- package/dist/chunk-vxjxtz8w.js +440 -0
- package/dist/chunk-vy0c1bwp.js +9 -0
- package/dist/chunk-w3zczyse.js +14 -0
- package/dist/chunk-w4p5t920.js +655 -0
- package/dist/chunk-w68wc625.js +287 -0
- package/dist/chunk-w9ddp3yf.js +96 -0
- package/dist/chunk-wcggm5ja.js +125 -0
- package/dist/chunk-wgnyph3q.js +1306 -0
- package/dist/chunk-wjm5pc1e.js +134 -0
- package/dist/chunk-wnve0drm.js +131 -0
- package/dist/chunk-wp27ev2k.js +135 -0
- package/dist/chunk-wyvy8a4x.js +131 -0
- package/dist/chunk-x671y4dk.js +129 -0
- package/dist/chunk-xbj5keyy.js +22 -0
- package/dist/chunk-xf4fzms8.js +39 -0
- package/dist/chunk-xf59k3zg.js +65 -0
- package/dist/chunk-xgzc4w49.js +204 -0
- package/dist/chunk-xhj7g13b.js +2149 -0
- package/dist/chunk-xjp0cd00.js +56 -0
- package/dist/chunk-xkhnmhqs.js +74 -0
- package/dist/chunk-xkrkqx61.js +55 -0
- package/dist/chunk-xmpgmeb8.js +114 -0
- package/dist/chunk-xrw80zgd.js +4249 -0
- package/dist/chunk-xrzc96g0.js +202 -0
- package/dist/chunk-xt76sm44.js +318 -0
- package/dist/chunk-xwet3awb.js +20 -0
- package/dist/chunk-xyg1sk2w.js +78 -0
- package/dist/chunk-y0jpkqb0.js +180 -0
- package/dist/chunk-y1q7rt9n.js +102 -0
- package/dist/chunk-y67ntyek.js +258 -0
- package/dist/chunk-ybk37qp9.js +37 -0
- package/dist/chunk-yc1stfve.js +5386 -0
- package/dist/chunk-ychjpjef.js +62 -0
- package/dist/chunk-yez8fa9g.js +276 -0
- package/dist/chunk-ygm7xszr.js +90 -0
- package/dist/chunk-ym11azkj.js +37 -0
- package/dist/chunk-ympz2h15.js +578 -0
- package/dist/chunk-yqx3az3n.js +129 -0
- package/dist/chunk-yt3nfhcc.js +152 -0
- package/dist/chunk-yy8q0n8s.js +120 -0
- package/dist/chunk-yzb92zxv.js +8 -0
- package/dist/chunk-yzet6xyr.js +119 -0
- package/dist/chunk-yzm97qp1.js +226 -0
- package/dist/chunk-z0jgeax8.js +35 -0
- package/dist/chunk-z1r3z6w6.js +29 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z79355gz.js +308 -0
- package/dist/chunk-z7e94hxz.js +251 -0
- package/dist/chunk-z8cqdcec.js +173 -0
- package/dist/chunk-z99tbg45.js +148 -0
- package/dist/chunk-z9nsjcht.js +37 -0
- package/dist/chunk-za3k6h2h.js +470 -0
- package/dist/chunk-zacynq5p.js +265 -0
- package/dist/chunk-zb0x40az.js +1785 -0
- package/dist/chunk-zbxtzycc.js +274 -0
- package/dist/chunk-zga50181.js +342 -0
- package/dist/chunk-zhb2pns1.js +44 -0
- package/dist/chunk-zkch6trx.js +231 -0
- package/dist/chunk-znf3z4qt.js +954 -0
- package/dist/chunk-zp8zwdgq.js +72 -0
- package/dist/chunk-ztjd8pyf.js +120 -0
- package/dist/chunk-ztmb7geg.js +173 -0
- package/dist/chunk-zvr4snzv.js +887 -0
- package/dist/chunk-zw62m6n3.js +34858 -0
- package/dist/chunk-zwwdebd0.js +65 -0
- package/dist/chunk-zxc6x9w8.js +340 -0
- package/dist/chunk-zy2e7sz0.js +8 -0
- package/dist/chunk-zzf074w3.js +196 -0
- package/dist/chunk-zzz0nwb5.js +310 -0
- package/dist/cli-bun.js +2 -0
- package/dist/cli-node.js +2 -0
- package/dist/cli.js +218 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +243 -0
- package/scripts/chrome-mcp-bridge-resolver.mjs +43 -0
- package/scripts/chrome-mcp-env.mjs +19 -0
- package/scripts/postinstall.cjs +339 -0
- package/scripts/run-parallel.mjs +10 -0
- package/scripts/setup-chrome-mcp.mjs +69 -0
|
@@ -0,0 +1,1198 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
require_src as require_src2,
|
|
4
|
+
require_src1 as require_src3,
|
|
5
|
+
require_src2 as require_src4
|
|
6
|
+
} from "./chunk-40t1d75v.js";
|
|
7
|
+
import {
|
|
8
|
+
require_src
|
|
9
|
+
} from "./chunk-e3abfxpy.js";
|
|
10
|
+
import {
|
|
11
|
+
__esm,
|
|
12
|
+
__toESM
|
|
13
|
+
} from "./chunk-hhsxm2yr.js";
|
|
14
|
+
|
|
15
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js
|
|
16
|
+
class BatchSpanProcessorBase {
|
|
17
|
+
_maxExportBatchSize;
|
|
18
|
+
_maxQueueSize;
|
|
19
|
+
_scheduledDelayMillis;
|
|
20
|
+
_exportTimeoutMillis;
|
|
21
|
+
_exporter;
|
|
22
|
+
_isExporting = false;
|
|
23
|
+
_finishedSpans = [];
|
|
24
|
+
_timer;
|
|
25
|
+
_shutdownOnce;
|
|
26
|
+
_droppedSpansCount = 0;
|
|
27
|
+
constructor(exporter, config) {
|
|
28
|
+
this._exporter = exporter;
|
|
29
|
+
this._maxExportBatchSize = typeof config?.maxExportBatchSize === "number" ? config.maxExportBatchSize : import_core.getNumberFromEnv("OTEL_BSP_MAX_EXPORT_BATCH_SIZE") ?? 512;
|
|
30
|
+
this._maxQueueSize = typeof config?.maxQueueSize === "number" ? config.maxQueueSize : import_core.getNumberFromEnv("OTEL_BSP_MAX_QUEUE_SIZE") ?? 2048;
|
|
31
|
+
this._scheduledDelayMillis = typeof config?.scheduledDelayMillis === "number" ? config.scheduledDelayMillis : import_core.getNumberFromEnv("OTEL_BSP_SCHEDULE_DELAY") ?? 5000;
|
|
32
|
+
this._exportTimeoutMillis = typeof config?.exportTimeoutMillis === "number" ? config.exportTimeoutMillis : import_core.getNumberFromEnv("OTEL_BSP_EXPORT_TIMEOUT") ?? 30000;
|
|
33
|
+
this._shutdownOnce = new import_core.BindOnceFuture(this._shutdown, this);
|
|
34
|
+
if (this._maxExportBatchSize > this._maxQueueSize) {
|
|
35
|
+
import_api.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
|
|
36
|
+
this._maxExportBatchSize = this._maxQueueSize;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
forceFlush() {
|
|
40
|
+
if (this._shutdownOnce.isCalled) {
|
|
41
|
+
return this._shutdownOnce.promise;
|
|
42
|
+
}
|
|
43
|
+
return this._flushAll();
|
|
44
|
+
}
|
|
45
|
+
onStart(_span, _parentContext) {}
|
|
46
|
+
onEnd(span) {
|
|
47
|
+
if (this._shutdownOnce.isCalled) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if ((span.spanContext().traceFlags & import_api.TraceFlags.SAMPLED) === 0) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this._addToBuffer(span);
|
|
54
|
+
}
|
|
55
|
+
shutdown() {
|
|
56
|
+
return this._shutdownOnce.call();
|
|
57
|
+
}
|
|
58
|
+
_shutdown() {
|
|
59
|
+
return Promise.resolve().then(() => {
|
|
60
|
+
return this.onShutdown();
|
|
61
|
+
}).then(() => {
|
|
62
|
+
return this._flushAll();
|
|
63
|
+
}).then(() => {
|
|
64
|
+
return this._exporter.shutdown();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
_addToBuffer(span) {
|
|
68
|
+
if (this._finishedSpans.length >= this._maxQueueSize) {
|
|
69
|
+
if (this._droppedSpansCount === 0) {
|
|
70
|
+
import_api.diag.debug("maxQueueSize reached, dropping spans");
|
|
71
|
+
}
|
|
72
|
+
this._droppedSpansCount++;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (this._droppedSpansCount > 0) {
|
|
76
|
+
import_api.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`);
|
|
77
|
+
this._droppedSpansCount = 0;
|
|
78
|
+
}
|
|
79
|
+
this._finishedSpans.push(span);
|
|
80
|
+
this._maybeStartTimer();
|
|
81
|
+
}
|
|
82
|
+
_flushAll() {
|
|
83
|
+
return new Promise((resolve, reject) => {
|
|
84
|
+
const promises = [];
|
|
85
|
+
const count = Math.ceil(this._finishedSpans.length / this._maxExportBatchSize);
|
|
86
|
+
for (let i = 0, j = count;i < j; i++) {
|
|
87
|
+
promises.push(this._flushOneBatch());
|
|
88
|
+
}
|
|
89
|
+
Promise.all(promises).then(() => {
|
|
90
|
+
resolve();
|
|
91
|
+
}).catch(reject);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
_flushOneBatch() {
|
|
95
|
+
this._clearTimer();
|
|
96
|
+
if (this._finishedSpans.length === 0) {
|
|
97
|
+
return Promise.resolve();
|
|
98
|
+
}
|
|
99
|
+
return new Promise((resolve, reject) => {
|
|
100
|
+
const timer = setTimeout(() => {
|
|
101
|
+
reject(new Error("Timeout"));
|
|
102
|
+
}, this._exportTimeoutMillis);
|
|
103
|
+
import_api.context.with(import_core.suppressTracing(import_api.context.active()), () => {
|
|
104
|
+
let spans;
|
|
105
|
+
if (this._finishedSpans.length <= this._maxExportBatchSize) {
|
|
106
|
+
spans = this._finishedSpans;
|
|
107
|
+
this._finishedSpans = [];
|
|
108
|
+
} else {
|
|
109
|
+
spans = this._finishedSpans.splice(0, this._maxExportBatchSize);
|
|
110
|
+
}
|
|
111
|
+
const doExport = () => this._exporter.export(spans, (result) => {
|
|
112
|
+
clearTimeout(timer);
|
|
113
|
+
if (result.code === import_core.ExportResultCode.SUCCESS) {
|
|
114
|
+
resolve();
|
|
115
|
+
} else {
|
|
116
|
+
reject(result.error ?? new Error("BatchSpanProcessor: span export failed"));
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
let pendingResources = null;
|
|
120
|
+
for (let i = 0, len = spans.length;i < len; i++) {
|
|
121
|
+
const span = spans[i];
|
|
122
|
+
if (span.resource.asyncAttributesPending && span.resource.waitForAsyncAttributes) {
|
|
123
|
+
pendingResources ??= [];
|
|
124
|
+
pendingResources.push(span.resource.waitForAsyncAttributes());
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (pendingResources === null) {
|
|
128
|
+
doExport();
|
|
129
|
+
} else {
|
|
130
|
+
Promise.all(pendingResources).then(doExport, (err) => {
|
|
131
|
+
import_core.globalErrorHandler(err);
|
|
132
|
+
reject(err);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
_maybeStartTimer() {
|
|
139
|
+
if (this._isExporting)
|
|
140
|
+
return;
|
|
141
|
+
const flush = () => {
|
|
142
|
+
this._isExporting = true;
|
|
143
|
+
this._flushOneBatch().finally(() => {
|
|
144
|
+
this._isExporting = false;
|
|
145
|
+
if (this._finishedSpans.length > 0) {
|
|
146
|
+
this._clearTimer();
|
|
147
|
+
this._maybeStartTimer();
|
|
148
|
+
}
|
|
149
|
+
}).catch((e) => {
|
|
150
|
+
this._isExporting = false;
|
|
151
|
+
import_core.globalErrorHandler(e);
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
if (this._finishedSpans.length >= this._maxExportBatchSize) {
|
|
155
|
+
return flush();
|
|
156
|
+
}
|
|
157
|
+
if (this._timer !== undefined)
|
|
158
|
+
return;
|
|
159
|
+
this._timer = setTimeout(() => flush(), this._scheduledDelayMillis);
|
|
160
|
+
if (typeof this._timer !== "number") {
|
|
161
|
+
this._timer.unref();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
_clearTimer() {
|
|
165
|
+
if (this._timer !== undefined) {
|
|
166
|
+
clearTimeout(this._timer);
|
|
167
|
+
this._timer = undefined;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
var import_api, import_core;
|
|
172
|
+
var init_BatchSpanProcessorBase = __esm(() => {
|
|
173
|
+
import_api = __toESM(require_src(), 1);
|
|
174
|
+
import_core = __toESM(require_src3(), 1);
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/export/BatchSpanProcessor.js
|
|
178
|
+
var BatchSpanProcessor;
|
|
179
|
+
var init_BatchSpanProcessor = __esm(() => {
|
|
180
|
+
init_BatchSpanProcessorBase();
|
|
181
|
+
BatchSpanProcessor = class BatchSpanProcessor extends BatchSpanProcessorBase {
|
|
182
|
+
onShutdown() {}
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/RandomIdGenerator.js
|
|
187
|
+
class RandomIdGenerator {
|
|
188
|
+
generateTraceId = getIdGenerator(TRACE_ID_BYTES);
|
|
189
|
+
generateSpanId = getIdGenerator(SPAN_ID_BYTES);
|
|
190
|
+
}
|
|
191
|
+
function getIdGenerator(bytes) {
|
|
192
|
+
return function generateId() {
|
|
193
|
+
for (let i = 0;i < bytes / 4; i++) {
|
|
194
|
+
SHARED_BUFFER.writeUInt32BE(Math.random() * 2 ** 32 >>> 0, i * 4);
|
|
195
|
+
}
|
|
196
|
+
for (let i = 0;i < bytes; i++) {
|
|
197
|
+
if (SHARED_BUFFER[i] > 0) {
|
|
198
|
+
break;
|
|
199
|
+
} else if (i === bytes - 1) {
|
|
200
|
+
SHARED_BUFFER[bytes - 1] = 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return SHARED_BUFFER.toString("hex", 0, bytes);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
var SPAN_ID_BYTES = 8, TRACE_ID_BYTES = 16, SHARED_BUFFER;
|
|
207
|
+
var init_RandomIdGenerator = __esm(() => {
|
|
208
|
+
SHARED_BUFFER = Buffer.allocUnsafe(TRACE_ID_BYTES);
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/index.js
|
|
212
|
+
var init_node = __esm(() => {
|
|
213
|
+
init_BatchSpanProcessor();
|
|
214
|
+
init_RandomIdGenerator();
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/index.js
|
|
218
|
+
var init_platform = __esm(() => {
|
|
219
|
+
init_node();
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js
|
|
223
|
+
var ExceptionEventName = "exception";
|
|
224
|
+
var init_enums = () => {};
|
|
225
|
+
|
|
226
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js
|
|
227
|
+
class SpanImpl {
|
|
228
|
+
_spanContext;
|
|
229
|
+
kind;
|
|
230
|
+
parentSpanContext;
|
|
231
|
+
attributes = {};
|
|
232
|
+
links = [];
|
|
233
|
+
events = [];
|
|
234
|
+
startTime;
|
|
235
|
+
resource;
|
|
236
|
+
instrumentationScope;
|
|
237
|
+
_droppedAttributesCount = 0;
|
|
238
|
+
_droppedEventsCount = 0;
|
|
239
|
+
_droppedLinksCount = 0;
|
|
240
|
+
_attributesCount = 0;
|
|
241
|
+
name;
|
|
242
|
+
status = {
|
|
243
|
+
code: import_api2.SpanStatusCode.UNSET
|
|
244
|
+
};
|
|
245
|
+
endTime = [0, 0];
|
|
246
|
+
_ended = false;
|
|
247
|
+
_duration = [-1, -1];
|
|
248
|
+
_spanProcessor;
|
|
249
|
+
_spanLimits;
|
|
250
|
+
_attributeValueLengthLimit;
|
|
251
|
+
_recordEndMetrics;
|
|
252
|
+
_performanceStartTime;
|
|
253
|
+
_performanceOffset;
|
|
254
|
+
_startTimeProvided;
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
const now = Date.now();
|
|
257
|
+
this._spanContext = opts.spanContext;
|
|
258
|
+
this._performanceStartTime = import_core2.otperformance.now();
|
|
259
|
+
this._performanceOffset = now - (this._performanceStartTime + import_core2.otperformance.timeOrigin);
|
|
260
|
+
this._startTimeProvided = opts.startTime != null;
|
|
261
|
+
this._spanLimits = opts.spanLimits;
|
|
262
|
+
this._attributeValueLengthLimit = this._spanLimits.attributeValueLengthLimit ?? 0;
|
|
263
|
+
this._spanProcessor = opts.spanProcessor;
|
|
264
|
+
this.name = opts.name;
|
|
265
|
+
this.parentSpanContext = opts.parentSpanContext;
|
|
266
|
+
this.kind = opts.kind;
|
|
267
|
+
if (opts.links) {
|
|
268
|
+
for (const link of opts.links) {
|
|
269
|
+
this.addLink(link);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
this.startTime = this._getTime(opts.startTime ?? now);
|
|
273
|
+
this.resource = opts.resource;
|
|
274
|
+
this.instrumentationScope = opts.scope;
|
|
275
|
+
this._recordEndMetrics = opts.recordEndMetrics;
|
|
276
|
+
if (opts.attributes != null) {
|
|
277
|
+
this.setAttributes(opts.attributes);
|
|
278
|
+
}
|
|
279
|
+
this._spanProcessor.onStart(this, opts.context);
|
|
280
|
+
}
|
|
281
|
+
spanContext() {
|
|
282
|
+
return this._spanContext;
|
|
283
|
+
}
|
|
284
|
+
setAttribute(key, value) {
|
|
285
|
+
if (value == null || this._isSpanEnded())
|
|
286
|
+
return this;
|
|
287
|
+
if (key.length === 0) {
|
|
288
|
+
import_api2.diag.warn(`Invalid attribute key: ${key}`);
|
|
289
|
+
return this;
|
|
290
|
+
}
|
|
291
|
+
if (!import_core2.isAttributeValue(value)) {
|
|
292
|
+
import_api2.diag.warn(`Invalid attribute value set for key: ${key}`);
|
|
293
|
+
return this;
|
|
294
|
+
}
|
|
295
|
+
const { attributeCountLimit } = this._spanLimits;
|
|
296
|
+
const isNewKey = !Object.prototype.hasOwnProperty.call(this.attributes, key);
|
|
297
|
+
if (attributeCountLimit !== undefined && this._attributesCount >= attributeCountLimit && isNewKey) {
|
|
298
|
+
this._droppedAttributesCount++;
|
|
299
|
+
return this;
|
|
300
|
+
}
|
|
301
|
+
this.attributes[key] = this._truncateToSize(value);
|
|
302
|
+
if (isNewKey) {
|
|
303
|
+
this._attributesCount++;
|
|
304
|
+
}
|
|
305
|
+
return this;
|
|
306
|
+
}
|
|
307
|
+
setAttributes(attributes) {
|
|
308
|
+
for (const key in attributes) {
|
|
309
|
+
if (Object.prototype.hasOwnProperty.call(attributes, key)) {
|
|
310
|
+
this.setAttribute(key, attributes[key]);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return this;
|
|
314
|
+
}
|
|
315
|
+
addEvent(name, attributesOrStartTime, timeStamp) {
|
|
316
|
+
if (this._isSpanEnded())
|
|
317
|
+
return this;
|
|
318
|
+
const { eventCountLimit } = this._spanLimits;
|
|
319
|
+
if (eventCountLimit === 0) {
|
|
320
|
+
import_api2.diag.warn("No events allowed.");
|
|
321
|
+
this._droppedEventsCount++;
|
|
322
|
+
return this;
|
|
323
|
+
}
|
|
324
|
+
if (eventCountLimit !== undefined && this.events.length >= eventCountLimit) {
|
|
325
|
+
if (this._droppedEventsCount === 0) {
|
|
326
|
+
import_api2.diag.debug("Dropping extra events.");
|
|
327
|
+
}
|
|
328
|
+
this.events.shift();
|
|
329
|
+
this._droppedEventsCount++;
|
|
330
|
+
}
|
|
331
|
+
if (import_core2.isTimeInput(attributesOrStartTime)) {
|
|
332
|
+
if (!import_core2.isTimeInput(timeStamp)) {
|
|
333
|
+
timeStamp = attributesOrStartTime;
|
|
334
|
+
}
|
|
335
|
+
attributesOrStartTime = undefined;
|
|
336
|
+
}
|
|
337
|
+
const sanitized = import_core2.sanitizeAttributes(attributesOrStartTime);
|
|
338
|
+
const { attributePerEventCountLimit } = this._spanLimits;
|
|
339
|
+
const attributes = {};
|
|
340
|
+
let droppedAttributesCount = 0;
|
|
341
|
+
let eventAttributesCount = 0;
|
|
342
|
+
for (const attr in sanitized) {
|
|
343
|
+
if (!Object.prototype.hasOwnProperty.call(sanitized, attr)) {
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
const attrVal = sanitized[attr];
|
|
347
|
+
if (attributePerEventCountLimit !== undefined && eventAttributesCount >= attributePerEventCountLimit) {
|
|
348
|
+
droppedAttributesCount++;
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
attributes[attr] = this._truncateToSize(attrVal);
|
|
352
|
+
eventAttributesCount++;
|
|
353
|
+
}
|
|
354
|
+
this.events.push({
|
|
355
|
+
name,
|
|
356
|
+
attributes,
|
|
357
|
+
time: this._getTime(timeStamp),
|
|
358
|
+
droppedAttributesCount
|
|
359
|
+
});
|
|
360
|
+
return this;
|
|
361
|
+
}
|
|
362
|
+
addLink(link) {
|
|
363
|
+
if (this._isSpanEnded())
|
|
364
|
+
return this;
|
|
365
|
+
const { linkCountLimit } = this._spanLimits;
|
|
366
|
+
if (linkCountLimit === 0) {
|
|
367
|
+
this._droppedLinksCount++;
|
|
368
|
+
return this;
|
|
369
|
+
}
|
|
370
|
+
if (linkCountLimit !== undefined && this.links.length >= linkCountLimit) {
|
|
371
|
+
if (this._droppedLinksCount === 0) {
|
|
372
|
+
import_api2.diag.debug("Dropping extra links.");
|
|
373
|
+
}
|
|
374
|
+
this.links.shift();
|
|
375
|
+
this._droppedLinksCount++;
|
|
376
|
+
}
|
|
377
|
+
const { attributePerLinkCountLimit } = this._spanLimits;
|
|
378
|
+
const sanitized = import_core2.sanitizeAttributes(link.attributes);
|
|
379
|
+
const attributes = {};
|
|
380
|
+
let droppedAttributesCount = 0;
|
|
381
|
+
let linkAttributesCount = 0;
|
|
382
|
+
for (const attr in sanitized) {
|
|
383
|
+
if (!Object.prototype.hasOwnProperty.call(sanitized, attr)) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
const attrVal = sanitized[attr];
|
|
387
|
+
if (attributePerLinkCountLimit !== undefined && linkAttributesCount >= attributePerLinkCountLimit) {
|
|
388
|
+
droppedAttributesCount++;
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
attributes[attr] = this._truncateToSize(attrVal);
|
|
392
|
+
linkAttributesCount++;
|
|
393
|
+
}
|
|
394
|
+
const processedLink = { context: link.context };
|
|
395
|
+
if (linkAttributesCount > 0) {
|
|
396
|
+
processedLink.attributes = attributes;
|
|
397
|
+
}
|
|
398
|
+
if (droppedAttributesCount > 0) {
|
|
399
|
+
processedLink.droppedAttributesCount = droppedAttributesCount;
|
|
400
|
+
}
|
|
401
|
+
this.links.push(processedLink);
|
|
402
|
+
return this;
|
|
403
|
+
}
|
|
404
|
+
addLinks(links) {
|
|
405
|
+
for (const link of links) {
|
|
406
|
+
this.addLink(link);
|
|
407
|
+
}
|
|
408
|
+
return this;
|
|
409
|
+
}
|
|
410
|
+
setStatus(status) {
|
|
411
|
+
if (this._isSpanEnded())
|
|
412
|
+
return this;
|
|
413
|
+
if (status.code === import_api2.SpanStatusCode.UNSET)
|
|
414
|
+
return this;
|
|
415
|
+
if (this.status.code === import_api2.SpanStatusCode.OK)
|
|
416
|
+
return this;
|
|
417
|
+
const newStatus = { code: status.code };
|
|
418
|
+
if (status.code === import_api2.SpanStatusCode.ERROR) {
|
|
419
|
+
if (typeof status.message === "string") {
|
|
420
|
+
newStatus.message = status.message;
|
|
421
|
+
} else if (status.message != null) {
|
|
422
|
+
import_api2.diag.warn(`Dropping invalid status.message of type '${typeof status.message}', expected 'string'`);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
this.status = newStatus;
|
|
426
|
+
return this;
|
|
427
|
+
}
|
|
428
|
+
updateName(name) {
|
|
429
|
+
if (this._isSpanEnded())
|
|
430
|
+
return this;
|
|
431
|
+
this.name = name;
|
|
432
|
+
return this;
|
|
433
|
+
}
|
|
434
|
+
end(endTime) {
|
|
435
|
+
if (this._isSpanEnded()) {
|
|
436
|
+
import_api2.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
this.endTime = this._getTime(endTime);
|
|
440
|
+
this._duration = import_core2.hrTimeDuration(this.startTime, this.endTime);
|
|
441
|
+
if (this._duration[0] < 0) {
|
|
442
|
+
import_api2.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.", this.startTime, this.endTime);
|
|
443
|
+
this.endTime = this.startTime.slice();
|
|
444
|
+
this._duration = [0, 0];
|
|
445
|
+
}
|
|
446
|
+
if (this._droppedEventsCount > 0) {
|
|
447
|
+
import_api2.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);
|
|
448
|
+
}
|
|
449
|
+
if (this._droppedLinksCount > 0) {
|
|
450
|
+
import_api2.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);
|
|
451
|
+
}
|
|
452
|
+
if (this._spanProcessor.onEnding) {
|
|
453
|
+
this._spanProcessor.onEnding(this);
|
|
454
|
+
}
|
|
455
|
+
this._recordEndMetrics?.();
|
|
456
|
+
this._ended = true;
|
|
457
|
+
this._spanProcessor.onEnd(this);
|
|
458
|
+
}
|
|
459
|
+
_getTime(inp) {
|
|
460
|
+
if (typeof inp === "number" && inp <= import_core2.otperformance.now()) {
|
|
461
|
+
return import_core2.hrTime(inp + this._performanceOffset);
|
|
462
|
+
}
|
|
463
|
+
if (typeof inp === "number") {
|
|
464
|
+
return import_core2.millisToHrTime(inp);
|
|
465
|
+
}
|
|
466
|
+
if (inp instanceof Date) {
|
|
467
|
+
return import_core2.millisToHrTime(inp.getTime());
|
|
468
|
+
}
|
|
469
|
+
if (import_core2.isTimeInputHrTime(inp)) {
|
|
470
|
+
return inp;
|
|
471
|
+
}
|
|
472
|
+
if (this._startTimeProvided) {
|
|
473
|
+
return import_core2.millisToHrTime(Date.now());
|
|
474
|
+
}
|
|
475
|
+
const msDuration = import_core2.otperformance.now() - this._performanceStartTime;
|
|
476
|
+
return import_core2.addHrTimes(this.startTime, import_core2.millisToHrTime(msDuration));
|
|
477
|
+
}
|
|
478
|
+
isRecording() {
|
|
479
|
+
return this._ended === false;
|
|
480
|
+
}
|
|
481
|
+
recordException(exception, time) {
|
|
482
|
+
const attributes = {};
|
|
483
|
+
if (typeof exception === "string") {
|
|
484
|
+
attributes[import_semantic_conventions.ATTR_EXCEPTION_MESSAGE] = exception;
|
|
485
|
+
} else if (exception) {
|
|
486
|
+
if (exception.code) {
|
|
487
|
+
attributes[import_semantic_conventions.ATTR_EXCEPTION_TYPE] = exception.code.toString();
|
|
488
|
+
} else if (exception.name) {
|
|
489
|
+
attributes[import_semantic_conventions.ATTR_EXCEPTION_TYPE] = exception.name;
|
|
490
|
+
}
|
|
491
|
+
if (exception.message) {
|
|
492
|
+
attributes[import_semantic_conventions.ATTR_EXCEPTION_MESSAGE] = exception.message;
|
|
493
|
+
}
|
|
494
|
+
if (exception.stack) {
|
|
495
|
+
attributes[import_semantic_conventions.ATTR_EXCEPTION_STACKTRACE] = exception.stack;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
if (attributes[import_semantic_conventions.ATTR_EXCEPTION_TYPE] || attributes[import_semantic_conventions.ATTR_EXCEPTION_MESSAGE]) {
|
|
499
|
+
this.addEvent(ExceptionEventName, attributes, time);
|
|
500
|
+
} else {
|
|
501
|
+
import_api2.diag.warn(`Failed to record an exception ${exception}`);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
get duration() {
|
|
505
|
+
return this._duration;
|
|
506
|
+
}
|
|
507
|
+
get ended() {
|
|
508
|
+
return this._ended;
|
|
509
|
+
}
|
|
510
|
+
get droppedAttributesCount() {
|
|
511
|
+
return this._droppedAttributesCount;
|
|
512
|
+
}
|
|
513
|
+
get droppedEventsCount() {
|
|
514
|
+
return this._droppedEventsCount;
|
|
515
|
+
}
|
|
516
|
+
get droppedLinksCount() {
|
|
517
|
+
return this._droppedLinksCount;
|
|
518
|
+
}
|
|
519
|
+
_isSpanEnded() {
|
|
520
|
+
if (this._ended) {
|
|
521
|
+
const error = new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);
|
|
522
|
+
import_api2.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`, error);
|
|
523
|
+
}
|
|
524
|
+
return this._ended;
|
|
525
|
+
}
|
|
526
|
+
_truncateToLimitUtil(value, limit) {
|
|
527
|
+
if (value.length <= limit) {
|
|
528
|
+
return value;
|
|
529
|
+
}
|
|
530
|
+
return value.substring(0, limit);
|
|
531
|
+
}
|
|
532
|
+
_truncateToSize(value) {
|
|
533
|
+
const limit = this._attributeValueLengthLimit;
|
|
534
|
+
if (limit <= 0) {
|
|
535
|
+
import_api2.diag.warn(`Attribute value limit must be positive, got ${limit}`);
|
|
536
|
+
return value;
|
|
537
|
+
}
|
|
538
|
+
if (typeof value === "string") {
|
|
539
|
+
return this._truncateToLimitUtil(value, limit);
|
|
540
|
+
}
|
|
541
|
+
if (Array.isArray(value)) {
|
|
542
|
+
return value.map((val) => typeof val === "string" ? this._truncateToLimitUtil(val, limit) : val);
|
|
543
|
+
}
|
|
544
|
+
return value;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
var import_api2, import_core2, import_semantic_conventions;
|
|
548
|
+
var init_Span = __esm(() => {
|
|
549
|
+
init_enums();
|
|
550
|
+
import_api2 = __toESM(require_src(), 1);
|
|
551
|
+
import_core2 = __toESM(require_src3(), 1);
|
|
552
|
+
import_semantic_conventions = __toESM(require_src2(), 1);
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js
|
|
556
|
+
var SamplingDecision;
|
|
557
|
+
var init_Sampler = __esm(() => {
|
|
558
|
+
(function(SamplingDecision2) {
|
|
559
|
+
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
560
|
+
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
561
|
+
SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
|
562
|
+
})(SamplingDecision || (SamplingDecision = {}));
|
|
563
|
+
});
|
|
564
|
+
|
|
565
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js
|
|
566
|
+
class AlwaysOffSampler {
|
|
567
|
+
shouldSample() {
|
|
568
|
+
return {
|
|
569
|
+
decision: SamplingDecision.NOT_RECORD
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
toString() {
|
|
573
|
+
return "AlwaysOffSampler";
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
var init_AlwaysOffSampler = __esm(() => {
|
|
577
|
+
init_Sampler();
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js
|
|
581
|
+
class AlwaysOnSampler {
|
|
582
|
+
shouldSample() {
|
|
583
|
+
return {
|
|
584
|
+
decision: SamplingDecision.RECORD_AND_SAMPLED
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
toString() {
|
|
588
|
+
return "AlwaysOnSampler";
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
var init_AlwaysOnSampler = __esm(() => {
|
|
592
|
+
init_Sampler();
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js
|
|
596
|
+
class ParentBasedSampler {
|
|
597
|
+
_root;
|
|
598
|
+
_remoteParentSampled;
|
|
599
|
+
_remoteParentNotSampled;
|
|
600
|
+
_localParentSampled;
|
|
601
|
+
_localParentNotSampled;
|
|
602
|
+
constructor(config) {
|
|
603
|
+
this._root = config.root;
|
|
604
|
+
if (!this._root) {
|
|
605
|
+
import_core3.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured"));
|
|
606
|
+
this._root = new AlwaysOnSampler;
|
|
607
|
+
}
|
|
608
|
+
this._remoteParentSampled = config.remoteParentSampled ?? new AlwaysOnSampler;
|
|
609
|
+
this._remoteParentNotSampled = config.remoteParentNotSampled ?? new AlwaysOffSampler;
|
|
610
|
+
this._localParentSampled = config.localParentSampled ?? new AlwaysOnSampler;
|
|
611
|
+
this._localParentNotSampled = config.localParentNotSampled ?? new AlwaysOffSampler;
|
|
612
|
+
}
|
|
613
|
+
shouldSample(context2, traceId, spanName, spanKind, attributes, links) {
|
|
614
|
+
const parentContext = import_api3.trace.getSpanContext(context2);
|
|
615
|
+
if (!parentContext || !import_api3.isSpanContextValid(parentContext)) {
|
|
616
|
+
return this._root.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
617
|
+
}
|
|
618
|
+
if (parentContext.isRemote) {
|
|
619
|
+
if (parentContext.traceFlags & import_api3.TraceFlags.SAMPLED) {
|
|
620
|
+
return this._remoteParentSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
621
|
+
}
|
|
622
|
+
return this._remoteParentNotSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
623
|
+
}
|
|
624
|
+
if (parentContext.traceFlags & import_api3.TraceFlags.SAMPLED) {
|
|
625
|
+
return this._localParentSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
626
|
+
}
|
|
627
|
+
return this._localParentNotSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
628
|
+
}
|
|
629
|
+
toString() {
|
|
630
|
+
return `ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
var import_api3, import_core3;
|
|
634
|
+
var init_ParentBasedSampler = __esm(() => {
|
|
635
|
+
init_AlwaysOffSampler();
|
|
636
|
+
init_AlwaysOnSampler();
|
|
637
|
+
import_api3 = __toESM(require_src(), 1);
|
|
638
|
+
import_core3 = __toESM(require_src3(), 1);
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js
|
|
642
|
+
class TraceIdRatioBasedSampler {
|
|
643
|
+
_ratio;
|
|
644
|
+
_upperBound;
|
|
645
|
+
constructor(ratio = 0) {
|
|
646
|
+
this._ratio = this._normalize(ratio);
|
|
647
|
+
this._upperBound = Math.floor(this._ratio * 4294967295);
|
|
648
|
+
}
|
|
649
|
+
shouldSample(context2, traceId) {
|
|
650
|
+
return {
|
|
651
|
+
decision: import_api4.isValidTraceId(traceId) && this._accumulate(traceId) < this._upperBound ? SamplingDecision.RECORD_AND_SAMPLED : SamplingDecision.NOT_RECORD
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
toString() {
|
|
655
|
+
return `TraceIdRatioBased{${this._ratio}}`;
|
|
656
|
+
}
|
|
657
|
+
_normalize(ratio) {
|
|
658
|
+
if (typeof ratio !== "number" || isNaN(ratio))
|
|
659
|
+
return 0;
|
|
660
|
+
return ratio >= 1 ? 1 : ratio <= 0 ? 0 : ratio;
|
|
661
|
+
}
|
|
662
|
+
_accumulate(traceId) {
|
|
663
|
+
let accumulation = 0;
|
|
664
|
+
for (let i = 0;i < traceId.length / 8; i++) {
|
|
665
|
+
const pos = i * 8;
|
|
666
|
+
const part = parseInt(traceId.slice(pos, pos + 8), 16);
|
|
667
|
+
accumulation = (accumulation ^ part) >>> 0;
|
|
668
|
+
}
|
|
669
|
+
return accumulation;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
var import_api4;
|
|
673
|
+
var init_TraceIdRatioBasedSampler = __esm(() => {
|
|
674
|
+
init_Sampler();
|
|
675
|
+
import_api4 = __toESM(require_src(), 1);
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js
|
|
679
|
+
function loadDefaultConfig() {
|
|
680
|
+
return {
|
|
681
|
+
sampler: buildSamplerFromEnv(),
|
|
682
|
+
forceFlushTimeoutMillis: 30000,
|
|
683
|
+
generalLimits: {
|
|
684
|
+
attributeValueLengthLimit: import_core4.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT") ?? Infinity,
|
|
685
|
+
attributeCountLimit: import_core4.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT") ?? 128
|
|
686
|
+
},
|
|
687
|
+
spanLimits: {
|
|
688
|
+
attributeValueLengthLimit: import_core4.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT") ?? Infinity,
|
|
689
|
+
attributeCountLimit: import_core4.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT") ?? 128,
|
|
690
|
+
linkCountLimit: import_core4.getNumberFromEnv("OTEL_SPAN_LINK_COUNT_LIMIT") ?? 128,
|
|
691
|
+
eventCountLimit: import_core4.getNumberFromEnv("OTEL_SPAN_EVENT_COUNT_LIMIT") ?? 128,
|
|
692
|
+
attributePerEventCountLimit: import_core4.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT") ?? 128,
|
|
693
|
+
attributePerLinkCountLimit: import_core4.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT") ?? 128
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
function buildSamplerFromEnv() {
|
|
698
|
+
const sampler = import_core4.getStringFromEnv("OTEL_TRACES_SAMPLER") ?? TracesSamplerValues.ParentBasedAlwaysOn;
|
|
699
|
+
switch (sampler) {
|
|
700
|
+
case TracesSamplerValues.AlwaysOn:
|
|
701
|
+
return new AlwaysOnSampler;
|
|
702
|
+
case TracesSamplerValues.AlwaysOff:
|
|
703
|
+
return new AlwaysOffSampler;
|
|
704
|
+
case TracesSamplerValues.ParentBasedAlwaysOn:
|
|
705
|
+
return new ParentBasedSampler({
|
|
706
|
+
root: new AlwaysOnSampler
|
|
707
|
+
});
|
|
708
|
+
case TracesSamplerValues.ParentBasedAlwaysOff:
|
|
709
|
+
return new ParentBasedSampler({
|
|
710
|
+
root: new AlwaysOffSampler
|
|
711
|
+
});
|
|
712
|
+
case TracesSamplerValues.TraceIdRatio:
|
|
713
|
+
return new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv());
|
|
714
|
+
case TracesSamplerValues.ParentBasedTraceIdRatio:
|
|
715
|
+
return new ParentBasedSampler({
|
|
716
|
+
root: new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv())
|
|
717
|
+
});
|
|
718
|
+
default:
|
|
719
|
+
import_api5.diag.error(`OTEL_TRACES_SAMPLER value "${sampler}" invalid, defaulting to "${TracesSamplerValues.ParentBasedAlwaysOn}".`);
|
|
720
|
+
return new ParentBasedSampler({
|
|
721
|
+
root: new AlwaysOnSampler
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
function getSamplerProbabilityFromEnv() {
|
|
726
|
+
const probability = import_core4.getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");
|
|
727
|
+
if (probability == null) {
|
|
728
|
+
import_api5.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${DEFAULT_RATIO}.`);
|
|
729
|
+
return DEFAULT_RATIO;
|
|
730
|
+
}
|
|
731
|
+
if (probability < 0 || probability > 1) {
|
|
732
|
+
import_api5.diag.error(`OTEL_TRACES_SAMPLER_ARG=${probability} was given, but it is out of range ([0..1]), defaulting to ${DEFAULT_RATIO}.`);
|
|
733
|
+
return DEFAULT_RATIO;
|
|
734
|
+
}
|
|
735
|
+
return probability;
|
|
736
|
+
}
|
|
737
|
+
var import_api5, import_core4, TracesSamplerValues, DEFAULT_RATIO = 1;
|
|
738
|
+
var init_config = __esm(() => {
|
|
739
|
+
init_AlwaysOffSampler();
|
|
740
|
+
init_AlwaysOnSampler();
|
|
741
|
+
init_ParentBasedSampler();
|
|
742
|
+
init_TraceIdRatioBasedSampler();
|
|
743
|
+
import_api5 = __toESM(require_src(), 1);
|
|
744
|
+
import_core4 = __toESM(require_src3(), 1);
|
|
745
|
+
(function(TracesSamplerValues2) {
|
|
746
|
+
TracesSamplerValues2["AlwaysOff"] = "always_off";
|
|
747
|
+
TracesSamplerValues2["AlwaysOn"] = "always_on";
|
|
748
|
+
TracesSamplerValues2["ParentBasedAlwaysOff"] = "parentbased_always_off";
|
|
749
|
+
TracesSamplerValues2["ParentBasedAlwaysOn"] = "parentbased_always_on";
|
|
750
|
+
TracesSamplerValues2["ParentBasedTraceIdRatio"] = "parentbased_traceidratio";
|
|
751
|
+
TracesSamplerValues2["TraceIdRatio"] = "traceidratio";
|
|
752
|
+
})(TracesSamplerValues || (TracesSamplerValues = {}));
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js
|
|
756
|
+
function mergeConfig(userConfig) {
|
|
757
|
+
const perInstanceDefaults = {
|
|
758
|
+
sampler: buildSamplerFromEnv()
|
|
759
|
+
};
|
|
760
|
+
const DEFAULT_CONFIG = loadDefaultConfig();
|
|
761
|
+
const target = Object.assign({}, DEFAULT_CONFIG, perInstanceDefaults, userConfig);
|
|
762
|
+
target.generalLimits = Object.assign({}, DEFAULT_CONFIG.generalLimits, userConfig.generalLimits || {});
|
|
763
|
+
target.spanLimits = Object.assign({}, DEFAULT_CONFIG.spanLimits, userConfig.spanLimits || {});
|
|
764
|
+
return target;
|
|
765
|
+
}
|
|
766
|
+
function reconfigureLimits(userConfig) {
|
|
767
|
+
const spanLimits = Object.assign({}, userConfig.spanLimits);
|
|
768
|
+
spanLimits.attributeCountLimit = userConfig.spanLimits?.attributeCountLimit ?? userConfig.generalLimits?.attributeCountLimit ?? import_core5.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT") ?? import_core5.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT") ?? DEFAULT_ATTRIBUTE_COUNT_LIMIT;
|
|
769
|
+
spanLimits.attributeValueLengthLimit = userConfig.spanLimits?.attributeValueLengthLimit ?? userConfig.generalLimits?.attributeValueLengthLimit ?? import_core5.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT") ?? import_core5.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT") ?? DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT;
|
|
770
|
+
return Object.assign({}, userConfig, { spanLimits });
|
|
771
|
+
}
|
|
772
|
+
var import_core5, DEFAULT_ATTRIBUTE_COUNT_LIMIT = 128, DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT = Infinity;
|
|
773
|
+
var init_utility = __esm(() => {
|
|
774
|
+
init_config();
|
|
775
|
+
import_core5 = __toESM(require_src3(), 1);
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/semconv.js
|
|
779
|
+
var ATTR_OTEL_SPAN_PARENT_ORIGIN = "otel.span.parent.origin", ATTR_OTEL_SPAN_SAMPLING_RESULT = "otel.span.sampling_result", METRIC_OTEL_SDK_SPAN_LIVE = "otel.sdk.span.live", METRIC_OTEL_SDK_SPAN_STARTED = "otel.sdk.span.started";
|
|
780
|
+
var init_semconv = () => {};
|
|
781
|
+
|
|
782
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/TracerMetrics.js
|
|
783
|
+
class TracerMetrics {
|
|
784
|
+
startedSpans;
|
|
785
|
+
liveSpans;
|
|
786
|
+
constructor(meter) {
|
|
787
|
+
this.startedSpans = meter.createCounter(METRIC_OTEL_SDK_SPAN_STARTED, {
|
|
788
|
+
unit: "{span}",
|
|
789
|
+
description: "The number of created spans."
|
|
790
|
+
});
|
|
791
|
+
this.liveSpans = meter.createUpDownCounter(METRIC_OTEL_SDK_SPAN_LIVE, {
|
|
792
|
+
unit: "{span}",
|
|
793
|
+
description: "The number of currently live spans."
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
startSpan(parentSpanCtx, samplingDecision) {
|
|
797
|
+
const samplingDecisionStr = samplingDecisionToString(samplingDecision);
|
|
798
|
+
this.startedSpans.add(1, {
|
|
799
|
+
[ATTR_OTEL_SPAN_PARENT_ORIGIN]: parentOrigin(parentSpanCtx),
|
|
800
|
+
[ATTR_OTEL_SPAN_SAMPLING_RESULT]: samplingDecisionStr
|
|
801
|
+
});
|
|
802
|
+
if (samplingDecision === SamplingDecision.NOT_RECORD) {
|
|
803
|
+
return () => {};
|
|
804
|
+
}
|
|
805
|
+
const liveSpanAttributes = {
|
|
806
|
+
[ATTR_OTEL_SPAN_SAMPLING_RESULT]: samplingDecisionStr
|
|
807
|
+
};
|
|
808
|
+
this.liveSpans.add(1, liveSpanAttributes);
|
|
809
|
+
return () => {
|
|
810
|
+
this.liveSpans.add(-1, liveSpanAttributes);
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
function parentOrigin(parentSpanContext) {
|
|
815
|
+
if (!parentSpanContext) {
|
|
816
|
+
return "none";
|
|
817
|
+
}
|
|
818
|
+
if (parentSpanContext.isRemote) {
|
|
819
|
+
return "remote";
|
|
820
|
+
}
|
|
821
|
+
return "local";
|
|
822
|
+
}
|
|
823
|
+
function samplingDecisionToString(decision) {
|
|
824
|
+
switch (decision) {
|
|
825
|
+
case SamplingDecision.RECORD_AND_SAMPLED:
|
|
826
|
+
return "RECORD_AND_SAMPLE";
|
|
827
|
+
case SamplingDecision.RECORD:
|
|
828
|
+
return "RECORD_ONLY";
|
|
829
|
+
case SamplingDecision.NOT_RECORD:
|
|
830
|
+
return "DROP";
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
var init_TracerMetrics = __esm(() => {
|
|
834
|
+
init_Sampler();
|
|
835
|
+
init_semconv();
|
|
836
|
+
});
|
|
837
|
+
|
|
838
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js
|
|
839
|
+
var VERSION = "2.7.0";
|
|
840
|
+
var init_version = () => {};
|
|
841
|
+
|
|
842
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js
|
|
843
|
+
class Tracer {
|
|
844
|
+
_sampler;
|
|
845
|
+
_generalLimits;
|
|
846
|
+
_spanLimits;
|
|
847
|
+
_idGenerator;
|
|
848
|
+
instrumentationScope;
|
|
849
|
+
_resource;
|
|
850
|
+
_spanProcessor;
|
|
851
|
+
_tracerMetrics;
|
|
852
|
+
constructor(instrumentationScope, config, resource, spanProcessor) {
|
|
853
|
+
const localConfig = mergeConfig(config);
|
|
854
|
+
this._sampler = localConfig.sampler;
|
|
855
|
+
this._generalLimits = localConfig.generalLimits;
|
|
856
|
+
this._spanLimits = localConfig.spanLimits;
|
|
857
|
+
this._idGenerator = config.idGenerator || new RandomIdGenerator;
|
|
858
|
+
this._resource = resource;
|
|
859
|
+
this._spanProcessor = spanProcessor;
|
|
860
|
+
this.instrumentationScope = instrumentationScope;
|
|
861
|
+
const meter = localConfig.meterProvider ? localConfig.meterProvider.getMeter("@opentelemetry/sdk-trace", VERSION) : api.createNoopMeter();
|
|
862
|
+
this._tracerMetrics = new TracerMetrics(meter);
|
|
863
|
+
}
|
|
864
|
+
startSpan(name, options = {}, context3 = api.context.active()) {
|
|
865
|
+
if (options.root) {
|
|
866
|
+
context3 = api.trace.deleteSpan(context3);
|
|
867
|
+
}
|
|
868
|
+
const parentSpan = api.trace.getSpan(context3);
|
|
869
|
+
if (import_core6.isTracingSuppressed(context3)) {
|
|
870
|
+
api.diag.debug("Instrumentation suppressed, returning Noop Span");
|
|
871
|
+
const nonRecordingSpan = api.trace.wrapSpanContext(api.INVALID_SPAN_CONTEXT);
|
|
872
|
+
return nonRecordingSpan;
|
|
873
|
+
}
|
|
874
|
+
const parentSpanContext = parentSpan?.spanContext();
|
|
875
|
+
const spanId = this._idGenerator.generateSpanId();
|
|
876
|
+
let validParentSpanContext;
|
|
877
|
+
let traceId;
|
|
878
|
+
let traceState;
|
|
879
|
+
if (!parentSpanContext || !api.trace.isSpanContextValid(parentSpanContext)) {
|
|
880
|
+
traceId = this._idGenerator.generateTraceId();
|
|
881
|
+
} else {
|
|
882
|
+
traceId = parentSpanContext.traceId;
|
|
883
|
+
traceState = parentSpanContext.traceState;
|
|
884
|
+
validParentSpanContext = parentSpanContext;
|
|
885
|
+
}
|
|
886
|
+
const spanKind = options.kind ?? api.SpanKind.INTERNAL;
|
|
887
|
+
const links = (options.links ?? []).map((link) => {
|
|
888
|
+
return {
|
|
889
|
+
context: link.context,
|
|
890
|
+
attributes: import_core6.sanitizeAttributes(link.attributes)
|
|
891
|
+
};
|
|
892
|
+
});
|
|
893
|
+
const attributes = import_core6.sanitizeAttributes(options.attributes);
|
|
894
|
+
const samplingResult = this._sampler.shouldSample(context3, traceId, name, spanKind, attributes, links);
|
|
895
|
+
const recordEndMetrics = this._tracerMetrics.startSpan(parentSpanContext, samplingResult.decision);
|
|
896
|
+
traceState = samplingResult.traceState ?? traceState;
|
|
897
|
+
const traceFlags = samplingResult.decision === api.SamplingDecision.RECORD_AND_SAMPLED ? api.TraceFlags.SAMPLED : api.TraceFlags.NONE;
|
|
898
|
+
const spanContext = { traceId, spanId, traceFlags, traceState };
|
|
899
|
+
if (samplingResult.decision === api.SamplingDecision.NOT_RECORD) {
|
|
900
|
+
api.diag.debug("Recording is off, propagating context in a non-recording span");
|
|
901
|
+
const nonRecordingSpan = api.trace.wrapSpanContext(spanContext);
|
|
902
|
+
return nonRecordingSpan;
|
|
903
|
+
}
|
|
904
|
+
const initAttributes = import_core6.sanitizeAttributes(Object.assign(attributes, samplingResult.attributes));
|
|
905
|
+
const span = new SpanImpl({
|
|
906
|
+
resource: this._resource,
|
|
907
|
+
scope: this.instrumentationScope,
|
|
908
|
+
context: context3,
|
|
909
|
+
spanContext,
|
|
910
|
+
name,
|
|
911
|
+
kind: spanKind,
|
|
912
|
+
links,
|
|
913
|
+
parentSpanContext: validParentSpanContext,
|
|
914
|
+
attributes: initAttributes,
|
|
915
|
+
startTime: options.startTime,
|
|
916
|
+
spanProcessor: this._spanProcessor,
|
|
917
|
+
spanLimits: this._spanLimits,
|
|
918
|
+
recordEndMetrics
|
|
919
|
+
});
|
|
920
|
+
return span;
|
|
921
|
+
}
|
|
922
|
+
startActiveSpan(name, arg2, arg3, arg4) {
|
|
923
|
+
let opts;
|
|
924
|
+
let ctx;
|
|
925
|
+
let fn;
|
|
926
|
+
if (arguments.length < 2) {
|
|
927
|
+
return;
|
|
928
|
+
} else if (arguments.length === 2) {
|
|
929
|
+
fn = arg2;
|
|
930
|
+
} else if (arguments.length === 3) {
|
|
931
|
+
opts = arg2;
|
|
932
|
+
fn = arg3;
|
|
933
|
+
} else {
|
|
934
|
+
opts = arg2;
|
|
935
|
+
ctx = arg3;
|
|
936
|
+
fn = arg4;
|
|
937
|
+
}
|
|
938
|
+
const parentContext = ctx ?? api.context.active();
|
|
939
|
+
const span = this.startSpan(name, opts, parentContext);
|
|
940
|
+
const contextWithSpanSet = api.trace.setSpan(parentContext, span);
|
|
941
|
+
return api.context.with(contextWithSpanSet, fn, undefined, span);
|
|
942
|
+
}
|
|
943
|
+
getGeneralLimits() {
|
|
944
|
+
return this._generalLimits;
|
|
945
|
+
}
|
|
946
|
+
getSpanLimits() {
|
|
947
|
+
return this._spanLimits;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
var api, import_core6;
|
|
951
|
+
var init_Tracer = __esm(() => {
|
|
952
|
+
init_Span();
|
|
953
|
+
init_utility();
|
|
954
|
+
init_platform();
|
|
955
|
+
init_TracerMetrics();
|
|
956
|
+
init_version();
|
|
957
|
+
api = __toESM(require_src(), 1);
|
|
958
|
+
import_core6 = __toESM(require_src3(), 1);
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js
|
|
962
|
+
class MultiSpanProcessor {
|
|
963
|
+
_spanProcessors;
|
|
964
|
+
constructor(spanProcessors) {
|
|
965
|
+
this._spanProcessors = spanProcessors;
|
|
966
|
+
}
|
|
967
|
+
forceFlush() {
|
|
968
|
+
const promises = [];
|
|
969
|
+
for (const spanProcessor of this._spanProcessors) {
|
|
970
|
+
promises.push(spanProcessor.forceFlush());
|
|
971
|
+
}
|
|
972
|
+
return new Promise((resolve) => {
|
|
973
|
+
Promise.all(promises).then(() => {
|
|
974
|
+
resolve();
|
|
975
|
+
}).catch((error) => {
|
|
976
|
+
import_core7.globalErrorHandler(error || new Error("MultiSpanProcessor: forceFlush failed"));
|
|
977
|
+
resolve();
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
onStart(span, context3) {
|
|
982
|
+
for (const spanProcessor of this._spanProcessors) {
|
|
983
|
+
spanProcessor.onStart(span, context3);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
onEnding(span) {
|
|
987
|
+
for (const spanProcessor of this._spanProcessors) {
|
|
988
|
+
if (spanProcessor.onEnding) {
|
|
989
|
+
spanProcessor.onEnding(span);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
onEnd(span) {
|
|
994
|
+
for (const spanProcessor of this._spanProcessors) {
|
|
995
|
+
spanProcessor.onEnd(span);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
shutdown() {
|
|
999
|
+
const promises = [];
|
|
1000
|
+
for (const spanProcessor of this._spanProcessors) {
|
|
1001
|
+
promises.push(spanProcessor.shutdown());
|
|
1002
|
+
}
|
|
1003
|
+
return new Promise((resolve, reject) => {
|
|
1004
|
+
Promise.all(promises).then(() => {
|
|
1005
|
+
resolve();
|
|
1006
|
+
}, reject);
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
var import_core7;
|
|
1011
|
+
var init_MultiSpanProcessor = __esm(() => {
|
|
1012
|
+
import_core7 = __toESM(require_src3(), 1);
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js
|
|
1016
|
+
class BasicTracerProvider {
|
|
1017
|
+
_config;
|
|
1018
|
+
_tracers = new Map;
|
|
1019
|
+
_resource;
|
|
1020
|
+
_activeSpanProcessor;
|
|
1021
|
+
constructor(config = {}) {
|
|
1022
|
+
const mergedConfig = import_core8.merge({}, loadDefaultConfig(), reconfigureLimits(config));
|
|
1023
|
+
this._resource = mergedConfig.resource ?? import_resources.defaultResource();
|
|
1024
|
+
this._config = Object.assign({}, mergedConfig, {
|
|
1025
|
+
resource: this._resource
|
|
1026
|
+
});
|
|
1027
|
+
const spanProcessors = [];
|
|
1028
|
+
if (config.spanProcessors?.length) {
|
|
1029
|
+
spanProcessors.push(...config.spanProcessors);
|
|
1030
|
+
}
|
|
1031
|
+
this._activeSpanProcessor = new MultiSpanProcessor(spanProcessors);
|
|
1032
|
+
}
|
|
1033
|
+
getTracer(name, version, options) {
|
|
1034
|
+
const key = `${name}@${version || ""}:${options?.schemaUrl || ""}`;
|
|
1035
|
+
if (!this._tracers.has(key)) {
|
|
1036
|
+
this._tracers.set(key, new Tracer({ name, version, schemaUrl: options?.schemaUrl }, this._config, this._resource, this._activeSpanProcessor));
|
|
1037
|
+
}
|
|
1038
|
+
return this._tracers.get(key);
|
|
1039
|
+
}
|
|
1040
|
+
forceFlush() {
|
|
1041
|
+
const timeout = this._config.forceFlushTimeoutMillis;
|
|
1042
|
+
const promises = this._activeSpanProcessor["_spanProcessors"].map((spanProcessor) => {
|
|
1043
|
+
return new Promise((resolve) => {
|
|
1044
|
+
let state;
|
|
1045
|
+
const timeoutInterval = setTimeout(() => {
|
|
1046
|
+
resolve(new Error(`Span processor did not completed within timeout period of ${timeout} ms`));
|
|
1047
|
+
state = ForceFlushState.timeout;
|
|
1048
|
+
}, timeout);
|
|
1049
|
+
spanProcessor.forceFlush().then(() => {
|
|
1050
|
+
clearTimeout(timeoutInterval);
|
|
1051
|
+
if (state !== ForceFlushState.timeout) {
|
|
1052
|
+
state = ForceFlushState.resolved;
|
|
1053
|
+
resolve(state);
|
|
1054
|
+
}
|
|
1055
|
+
}).catch((error) => {
|
|
1056
|
+
clearTimeout(timeoutInterval);
|
|
1057
|
+
state = ForceFlushState.error;
|
|
1058
|
+
resolve(error);
|
|
1059
|
+
});
|
|
1060
|
+
});
|
|
1061
|
+
});
|
|
1062
|
+
return new Promise((resolve, reject) => {
|
|
1063
|
+
Promise.all(promises).then((results) => {
|
|
1064
|
+
const errors = results.filter((result) => result !== ForceFlushState.resolved);
|
|
1065
|
+
if (errors.length > 0) {
|
|
1066
|
+
reject(errors);
|
|
1067
|
+
} else {
|
|
1068
|
+
resolve();
|
|
1069
|
+
}
|
|
1070
|
+
}).catch((error) => reject([error]));
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
shutdown() {
|
|
1074
|
+
return this._activeSpanProcessor.shutdown();
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
var import_core8, import_resources, ForceFlushState;
|
|
1078
|
+
var init_BasicTracerProvider = __esm(() => {
|
|
1079
|
+
init_Tracer();
|
|
1080
|
+
init_config();
|
|
1081
|
+
init_MultiSpanProcessor();
|
|
1082
|
+
init_utility();
|
|
1083
|
+
import_core8 = __toESM(require_src3(), 1);
|
|
1084
|
+
import_resources = __toESM(require_src4(), 1);
|
|
1085
|
+
(function(ForceFlushState2) {
|
|
1086
|
+
ForceFlushState2[ForceFlushState2["resolved"] = 0] = "resolved";
|
|
1087
|
+
ForceFlushState2[ForceFlushState2["timeout"] = 1] = "timeout";
|
|
1088
|
+
ForceFlushState2[ForceFlushState2["error"] = 2] = "error";
|
|
1089
|
+
ForceFlushState2[ForceFlushState2["unresolved"] = 3] = "unresolved";
|
|
1090
|
+
})(ForceFlushState || (ForceFlushState = {}));
|
|
1091
|
+
});
|
|
1092
|
+
|
|
1093
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/ConsoleSpanExporter.js
|
|
1094
|
+
class ConsoleSpanExporter {
|
|
1095
|
+
export(spans, resultCallback) {
|
|
1096
|
+
return this._sendSpans(spans, resultCallback);
|
|
1097
|
+
}
|
|
1098
|
+
shutdown() {
|
|
1099
|
+
this._sendSpans([]);
|
|
1100
|
+
return this.forceFlush();
|
|
1101
|
+
}
|
|
1102
|
+
forceFlush() {
|
|
1103
|
+
return Promise.resolve();
|
|
1104
|
+
}
|
|
1105
|
+
_exportInfo(span) {
|
|
1106
|
+
return {
|
|
1107
|
+
resource: {
|
|
1108
|
+
attributes: span.resource.attributes
|
|
1109
|
+
},
|
|
1110
|
+
instrumentationScope: span.instrumentationScope,
|
|
1111
|
+
traceId: span.spanContext().traceId,
|
|
1112
|
+
parentSpanContext: span.parentSpanContext,
|
|
1113
|
+
traceState: span.spanContext().traceState?.serialize(),
|
|
1114
|
+
name: span.name,
|
|
1115
|
+
id: span.spanContext().spanId,
|
|
1116
|
+
kind: span.kind,
|
|
1117
|
+
timestamp: import_core9.hrTimeToMicroseconds(span.startTime),
|
|
1118
|
+
duration: import_core9.hrTimeToMicroseconds(span.duration),
|
|
1119
|
+
attributes: span.attributes,
|
|
1120
|
+
status: span.status,
|
|
1121
|
+
events: span.events,
|
|
1122
|
+
links: span.links
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
_sendSpans(spans, done) {
|
|
1126
|
+
for (const span of spans) {
|
|
1127
|
+
console.dir(this._exportInfo(span), { depth: 3 });
|
|
1128
|
+
}
|
|
1129
|
+
if (done) {
|
|
1130
|
+
return done({ code: import_core9.ExportResultCode.SUCCESS });
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
var import_core9;
|
|
1135
|
+
var init_ConsoleSpanExporter = __esm(() => {
|
|
1136
|
+
import_core9 = __toESM(require_src3(), 1);
|
|
1137
|
+
});
|
|
1138
|
+
|
|
1139
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/SimpleSpanProcessor.js
|
|
1140
|
+
class SimpleSpanProcessor {
|
|
1141
|
+
_exporter;
|
|
1142
|
+
_shutdownOnce;
|
|
1143
|
+
_pendingExports;
|
|
1144
|
+
constructor(exporter) {
|
|
1145
|
+
this._exporter = exporter;
|
|
1146
|
+
this._shutdownOnce = new import_core10.BindOnceFuture(this._shutdown, this);
|
|
1147
|
+
this._pendingExports = new Set;
|
|
1148
|
+
}
|
|
1149
|
+
async forceFlush() {
|
|
1150
|
+
await Promise.all(Array.from(this._pendingExports));
|
|
1151
|
+
if (this._exporter.forceFlush) {
|
|
1152
|
+
await this._exporter.forceFlush();
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
onStart(_span, _parentContext) {}
|
|
1156
|
+
onEnd(span) {
|
|
1157
|
+
if (this._shutdownOnce.isCalled) {
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
1160
|
+
if ((span.spanContext().traceFlags & import_api6.TraceFlags.SAMPLED) === 0) {
|
|
1161
|
+
return;
|
|
1162
|
+
}
|
|
1163
|
+
const pendingExport = this._doExport(span).catch((err) => import_core10.globalErrorHandler(err));
|
|
1164
|
+
this._pendingExports.add(pendingExport);
|
|
1165
|
+
pendingExport.finally(() => this._pendingExports.delete(pendingExport));
|
|
1166
|
+
}
|
|
1167
|
+
async _doExport(span) {
|
|
1168
|
+
if (span.resource.asyncAttributesPending) {
|
|
1169
|
+
await span.resource.waitForAsyncAttributes?.();
|
|
1170
|
+
}
|
|
1171
|
+
const result = await import_core10.internal._export(this._exporter, [span]);
|
|
1172
|
+
if (result.code !== import_core10.ExportResultCode.SUCCESS) {
|
|
1173
|
+
throw result.error ?? new Error(`SimpleSpanProcessor: span export failed (status ${result})`);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
shutdown() {
|
|
1177
|
+
return this._shutdownOnce.call();
|
|
1178
|
+
}
|
|
1179
|
+
_shutdown() {
|
|
1180
|
+
return this._exporter.shutdown();
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
var import_api6, import_core10;
|
|
1184
|
+
var init_SimpleSpanProcessor = __esm(() => {
|
|
1185
|
+
import_api6 = __toESM(require_src(), 1);
|
|
1186
|
+
import_core10 = __toESM(require_src3(), 1);
|
|
1187
|
+
});
|
|
1188
|
+
|
|
1189
|
+
// node_modules/.bun/@opentelemetry+sdk-trace-base@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-trace-base/build/esm/index.js
|
|
1190
|
+
var init_esm = __esm(() => {
|
|
1191
|
+
init_BasicTracerProvider();
|
|
1192
|
+
init_platform();
|
|
1193
|
+
init_ConsoleSpanExporter();
|
|
1194
|
+
init_SimpleSpanProcessor();
|
|
1195
|
+
init_Sampler();
|
|
1196
|
+
});
|
|
1197
|
+
|
|
1198
|
+
export { SamplingDecision, BatchSpanProcessor, BasicTracerProvider, ConsoleSpanExporter, SimpleSpanProcessor, init_esm };
|