0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-12 07:07:43 -04:00
deno/tests/specs/cli/otel_basic/http_metric.ts
Leo Kettmeir bf79971c95
feat(http): add otel metrics (#28034)
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2025-02-18 14:19:52 -08:00

10 lines
196 B
TypeScript

const server = Deno.serve(
{ port: 8080, onListen: () => {} },
() => new Response("foo"),
);
for (let i = 0; i < 3; i++) {
await fetch(`http://localhost:8080`);
}
await server.shutdown();