/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/cli/otel_basic/fetch.ts
11 строк
351 B
Yoshiya Hinosawa
fix(otel/unstable): trace error cases of fetch (#28480)
13 мар 2025, 11:47
Не верифицирован
13 мар 2025, 11:47
dcfaba0
Код
Авторство
О чём код?
async function request(url: string, options: any) { try { await (await fetch(url, options)).text(); } catch { } } await request("http://localhost:4545/echo.ts"); await request("http://localhost:4545/not-found"); await request("http://unreachable-host.abc/"); await request("http://localhost:4545/echo.ts", { signal: AbortSignal.abort() });