@m1212e/rumble 0.23.0 → 0.23.4

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.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { GraphQLError, GraphQLSchema } from "graphql";
2
2
  import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
3
3
  import { Tracer } from "@opentelemetry/api";
4
- import { TracingWrapperOptions } from "@pothos/tracing-opentelemetry";
5
4
  import { YogaServerOptions, createPubSub } from "graphql-yoga";
6
5
  import { PgAsyncDatabase } from "drizzle-orm/pg-core";
7
- import { MySqlDatabase } from "drizzle-orm/mysql-core";
8
- import { BaseSQLiteDatabase } from "drizzle-orm/sqlite-core";
6
+ import { MySqlAsyncDatabase } from "drizzle-orm/mysql-core";
7
+ import { TracingWrapperOptions } from "@pothos/tracing-opentelemetry";
8
+ import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
9
9
  import SchemaBuilder from "@pothos/core";
10
10
  import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
11
11
  import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
@@ -148,7 +148,7 @@ declare const assertFirstEntryExists: <T>(value: T[]) => T;
148
148
  declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null> };
149
149
  //#endregion
150
150
  //#region lib/types/drizzleInstanceType.d.ts
151
- type DrizzleInstance = PgAsyncDatabase<any, any> | BaseSQLiteDatabase<any, any, any, any> | MySqlDatabase<any, any>;
151
+ type DrizzleInstance = PgAsyncDatabase<any, any> | SQLiteAsyncDatabase<any, any, any> | MySqlAsyncDatabase<any, any>;
152
152
  /**
153
153
  * Type representing the query function of a Drizzle instance.
154
154
  */
@@ -4340,6 +4340,13 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends DrizzleInst
4340
4340
  * The logger instance to use. Must satisfy the RumbleLogger interface (pino satisfies this).
4341
4341
  */
4342
4342
  logger: RumbleLogger;
4343
+ /**
4344
+ * When both logger and otel are enabled, inject `traceId` and `spanId` fields into every
4345
+ * log entry emitted during a GraphQL operation. Useful for correlating log lines with
4346
+ * traces in backends like Jaeger or Grafana Tempo.
4347
+ * @default true
4348
+ */
4349
+ injectTraceId?: boolean;
4343
4350
  };
4344
4351
  };
4345
4352
  //#endregion