Thanks again kian. I submitted a request and will begin to look into Tail Workers!
Thanks again kian. I submitted a request and will begin to look into Tail Workers!
wrangler tail and LogPush, that you'd then fetch subrequest onto a logging platformtail_consumer entry to my worker's wrangler.toml seems to be crashing my Cloudflare dashboard when I go to the worker's settings > variables configuration to verify if it's actually attached.console.log entries are added to an array that's pushed via LogPush. The limit on that per worker invocation is 20 elements in your array. For each array element, the character limit is 300 characters.request in AsyncLocalStorage? I'm looking for a quick and easy way to access request, env, context etc in various other functions/files. For example:await request.json(), await request.text(), etc.await request.text() to get the raw text, but you'll see it's not valid JSON that can be passed to JSON.parseconst url = new URL(request.url) then be able to use a URL object https://developer.mozilla.org/en-US/docs/Web/API/URL so https://developer.mozilla.org/en-US/docs/Web/API/URL/hostnametoml file into your workerwrangler tailtail_consumersettings > variablesconst asyncLocalStorage = new AsyncLocalStorage();
return asyncLocalStorage.run( { request, env, context, workerVersion }, async () => {
(...)await request.json()await request.text()await request.text()JSON.parseconst url = new URL(request.url)toml