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;