Skip to content

Commit

Permalink
ping more
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed May 3, 2024
1 parent bca6668 commit 201d7fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ping/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ async function ping() {
await axios.get(`https://nodejs-serverless-function-express-bice-sigma.vercel.app/api/hello`).catch((e) => { console.log(e)});
}
if(req === "cloudflare") {
if(Math.random() < (1/30)) {
const errors = [1,2,3,4,5,6,7,8,89,9,1,23,6,2,26,3,73,357,357,34,375,347,2,152];
for(let e of errors) {
await axios.get("https://cloudflare-demo.baselime.workers.dev?error=true")
}
}
await axios.get("https://cloudflare-otel-playground.baselime.workers.dev/").catch(e => { console.log(e) })
await axios.get("https://cloudflare-demo.baselime.workers.dev/").catch(e => { console.log(e) })
await axios.get("https://cloudflare-demo.baselime.workers.dev/").catch(e => { console.log(e) })
await axios.get("https://cloudflare-demo.baselime.workers.dev/").catch(e => { console.log(e) })
}
} catch (e) { console.log(e)}
Expand Down

0 comments on commit 201d7fb

Please sign in to comment.