metrics: remove path from fetch and request metrics

This commit is contained in:
Alex Gleason
2024-06-22 09:08:32 -05:00
parent ea15f291b0
commit e50ba819b9
3 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ const fetchWorker: typeof fetch = async (...args) => {
await ready;
const [url, init] = serializeFetchArgs(args);
const { body, signal, ...rest } = init;
fetchCounter.inc({ method: init.method, path: new URL(url).pathname });
fetchCounter.inc({ method: init.method });
const result = await client.fetch(url, { ...rest, body: await prepareBodyForWorker(body) }, signal);
return new Response(...result);
};