Is it possible to see logs of my latest worker runs? to know wher eit was spawned?
Is it possible to see logs of my latest worker runs? to know wher eit was spawned?
console.log the request.cf.colo field, then view it in live logs/wrangler tail?
Isolates are resilient and continuously available for the duration of a request, but in rare instances isolates may be evicted.Even if they connect to the same metal/machine I believe, they might connect to a different isolate
Because there is no guarantee that any two user requests will be routed to the same or a different instance of your Worker, Cloudflare recommends you do not use or mutate global state.quotes from: https://developers.cloudflare.com/workers/reference/how-workers-works/
const start = performance.now();Could you share the endpoints? Curious if I can repro
const response = await fetch("https://developers.cloudflare.com/");
const end = performance.now();
const timing = end - start; // duration of the subrequest to developers.cloudflare.com

which makes post requests and gets json as responsePOST requests aren't going to be cached by default.

wrangler tail to see if your worker is being hit or notrequest.cf.colowrangler tailwrangler tailmacro_rules! load_file {
($name:literal) => {
include_str!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/some/path",
$name
))
};
}