@teamkeel/functions-runtime 0.319.0 → 0.319.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/functions-runtime",
3
- "version": "0.319.0",
3
+ "version": "0.319.2",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/tracing.js CHANGED
@@ -47,6 +47,7 @@ function patchFetch() {
47
47
  const res = await originalFetch(...args);
48
48
  span.setAttribute("http.status", res.status);
49
49
  span.setAttribute("http.status_text", res.statusText);
50
+ return res;
50
51
  });
51
52
  };
52
53
  globalThis.fetch.patched = true;
@@ -57,7 +57,8 @@ test("withSpan on error", async () => {
57
57
  });
58
58
 
59
59
  test("fetch - 200", async () => {
60
- await fetch("http://example.com");
60
+ const res = await fetch("http://example.com");
61
+ expect(res.status).toEqual(200);
61
62
 
62
63
  expect(spanEvents.map((e) => e.event)).toEqual(["onStart", "onEnd"]);
63
64
  expect(spanEvents.pop().span.attributes).toEqual({