From 0bfd65c4eed0c132ee5f603a318c26f4b234996f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20F=C3=B6ldi?= Date: Thu, 11 Apr 2024 22:42:07 +0200 Subject: [PATCH] Export unwrapped global fetch (#124) --- .changeset/strange-moose-fetch.md | 5 +++++ src/sdk.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/strange-moose-fetch.md diff --git a/.changeset/strange-moose-fetch.md b/.changeset/strange-moose-fetch.md new file mode 100644 index 0000000..9341024 --- /dev/null +++ b/.changeset/strange-moose-fetch.md @@ -0,0 +1,5 @@ +--- +"@microlabs/otel-cf-workers": minor +--- + +Export unwrapped global fetch for various advanced use cases diff --git a/src/sdk.ts b/src/sdk.ts index 1bb63d5..baaa937 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -190,3 +190,5 @@ export function instrumentDO(doClass: DOClass, config: ConfigurationOption) { } export { waitUntilTrace } from './instrumentation/fetch.js' + +export const __unwrappedFetch = unwrap(fetch)