@m1212e/rumble 0.16.20 → 0.16.21

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/out/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { t as generateFromSchema } from "./generate-PDRNfY6V.mjs";
3
3
  import { GraphQLError } from "graphql";
4
4
  import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
5
5
  import { useDisableIntrospection } from "@graphql-yoga/plugin-disable-introspection";
6
- import { trace } from "@opentelemetry/api";
6
+ import { SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { AttributeNames, SpanNames, createOpenTelemetryWrapper } from "@pothos/tracing-opentelemetry";
8
8
  import { capitalize, cloneDeep, debounce, merge, toMerged } from "es-toolkit";
9
9
  import { createPubSub, createYoga } from "graphql-yoga";
@@ -185,7 +185,7 @@ function mapNullFieldsToUndefined(obj) {
185
185
 
186
186
  //#endregion
187
187
  //#region package.json
188
- var version = "0.16.20";
188
+ var version = "0.16.21";
189
189
 
190
190
  //#endregion
191
191
  //#region lib/helpers/mergeFilters.ts
@@ -1615,7 +1615,8 @@ export const db = drizzle(
1615
1615
  try {
1616
1616
  return await executeFn(options);
1617
1617
  } catch (error) {
1618
- span.recordException(error);
1618
+ if (error instanceof Error) span.recordException(error);
1619
+ span.setStatus({ code: SpanStatusCode.ERROR });
1619
1620
  throw error;
1620
1621
  } finally {
1621
1622
  span.end();