From cd0d7e8df461079c624788916f4e9272c1a64458 Mon Sep 17 00:00:00 2001 From: Marcel <65048232+dromzeh@users.noreply.github.com> Date: Tue, 28 May 2024 18:37:37 +0100 Subject: [PATCH] a --- src/index.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/index.ts b/src/index.ts index 92809ce..71273ae 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,19 +1,21 @@ import { router } from "@/handler"; -import { instrument, ResolveConfigFn } from "@microlabs/otel-cf-workers"; +// import { instrument, ResolveConfigFn } from "@microlabs/otel-cf-workers"; const handler = { fetch: router.handle, }; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const config: ResolveConfigFn = (env: Env, _trigger) => { - return { - exporter: { - url: "https://otel.baselime.io/v1", - headers: { "x-api-key": env.BASELIME_API_KEY }, - }, - service: { name: env.SERVICE_NAME }, - }; -}; +// // eslint-disable-next-line @typescript-eslint/no-unused-vars +// const config: ResolveConfigFn = (env: Env, _trigger) => { +// return { +// exporter: { +// url: "https://otel.baselime.io/v1", +// headers: { "x-api-key": env.BASELIME_API_KEY }, +// }, +// service: { name: env.SERVICE_NAME }, +// }; +// }; + +// export default instrument(handler, config); -export default instrument(handler, config); +export default handler;