@m1212e/rumble 0.23.2 → 0.23.5
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.cjs +200 -61
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +7 -0
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +8 -1
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +201 -62
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
6
|
import { MySqlAsyncDatabase } from "drizzle-orm/mysql-core";
|
|
7
|
+
import { TracingWrapperOptions } from "@pothos/tracing-opentelemetry";
|
|
8
8
|
import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
|
|
9
9
|
import SchemaBuilder from "@pothos/core";
|
|
10
10
|
import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
|
|
@@ -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
|