🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat: add structured logging option (#3221)
Steffen Schmitz4d8e9003fed8
diff --git a/.env.prod.example b/.env.prod.exampleindex 80ecb4e3e3..9703921e10 100644--- a/.env.prod.example+++ b/.env.prod.example@@ -39,6 +39,10 @@ ENCRYPTION_KEY="0000000000000000000000000000000000000000000000000000000000000000# LANGFUSE_DEFAULT_PROJECT_ID=# LANGFUSE_DEFAULT_PROJECT_ROLE=+# Logging, optional+# LANGFUSE_LOG_LEVEL=info+# LANGFUSE_LOG_FORMAT=text+# Enable experimental features, optional# LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=true@@ -156,7 +160,6 @@ ENCRYPTION_KEY="0000000000000000000000000000000000000000000000000000000000000000# NEXT_SENTRY_PROJECT=# SENTRY_AUTH_TOKEN=# SENTRY_CSP_REPORT_URI=-# LANGFUSE_WORKER_BETTERSTACK_TOKEN=# Cloudflare Turnstile@@ -212,7 +215,6 @@ ENCRYPTION_KEY="0000000000000000000000000000000000000000000000000000000000000000# LANGFUSE_INGESTION_CLICKHOUSE_WRITE_BATCH_SIZE=# LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=# LANGFUSE_INGESTION_CLICKHOUSE_MAX_ATTEMPTS=-# LANGFUSE_LOG_LEVEL=# LANGFUSE_LEGACY_INGESTION_WORKER_CONCURRENCY=# LANGFUSE_ASYNC_INGESTION_PROCESSING="true"# QUEUE_CONSUMER_LEGACY_INGESTION_QUEUE_IS_ENABLED="true"diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex c730127b3e..ffeabcff9e 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -79,6 +79,7 @@"nodemailer": "^6.9.13","prisma-extension-kysely": "^2.1.0","uuid": "^9.0.1",+ "winston": "^3.14.2","zod": "^3.23.8","zod-to-json-schema": "^3.23.2"},@@ -107,7 +108,7 @@"vitest": "^1.5.3"},"peerDependencies": {- "@types/react": "^18.2.79",- "react": "^18.0.0"+ "@types/react": "~18.2.79",+ "react": "~18.2.0"}}diff --git a/packages/shared/prisma/seed.ts b/packages/shared/prisma/seed.tsindex 4192536492..7429e20bb8 100644--- a/packages/shared/prisma/seed.ts+++ b/packages/shared/prisma/seed.ts@@ -12,7 +12,7 @@ import { parseArgs } from "node:util";import { chunk } from "lodash";import { v4 } from "uuid";import { ModelUsageUnit } from "../src";-import { getDisplaySecretKey, hashSecretKey } from "../src/server";+import { getDisplaySecretKey, hashSecretKey, logger } from "../src/server";import { encrypt } from "../src/encryption";import { redis } from "../src/server/redis/redis";@@ -265,11 +265,11 @@ async function main() {project1,project2,promptIds,- configIdsAndNames+ configIdsAndNames,);- console.log(- `Seeding ${traces.length} traces, ${observations.length} observations, and ${scores.length} scores`+ logger.info(+ `Seeding ${traces.length} traces, ${observations.length} observations, and ${scores.length} scores`,);await uploadObjects(@@ -278,7 +278,7 @@ async function main() {scores,sessions,events,- comments+ comments,);// If openai key is in environment, add it to the projects LLM API keys@@ -295,8 +295,8 @@ async function main() {},});} else {- console.warn(- "No OPENAI_API_KEY found in environment. Skipping seeding LLM API key."+ logger.warn(+ "No OPENAI_API_KEY found in environment. Skipping seeding LLM API key.",);}@@ -431,7 +431,7 @@ async function main() {for (const datasetItemId of datasetItemIds) {const relevantObservations = observations.filter(- (o) => o.projectId === project2.id+ (o) => o.projectId === project2.id,);const observation =relevantObservations[@@ -457,13 +457,13 @@ main().then(async () => {await prisma.$disconnect();redis?.disconnect();- console.log("Disconnected from postgres and redis");+ logger.info("Disconnected from postgres and redis");}).catch(async (e) => {- console.error(e);+ logger.error(e);await prisma.$disconnect();redis?.disconnect();- console.log("Disconnected from postgres and redis");+ logger.info("Disconnected from postgres and redis");process.exit(1);});@@ -473,7 +473,7 @@ async function uploadObjects(scores: Prisma.ScoreCreateManyInput[],sessions: Prisma.TraceSessionCreateManyInput[],events: Prisma.ObservationCreateManyInput[],- comments: Prisma.CommentCreateManyInput[]+ comments: Prisma.CommentCreateManyInput[],) {let promises: Prisma.PrismaPromise<unknown>[] = [];@@ -487,14 +487,14 @@ async function uploadObjects(},create: chunk[0]!,update: {},- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Sessions ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Sessions ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -505,13 +505,13 @@ async function uploadObjects(promises.push(prisma.trace.createMany({data: chunk,- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Traces ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Traces ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -521,14 +521,14 @@ async function uploadObjects(promises.push(prisma.observation.createMany({data: chunk,- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Observations ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Observations ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -538,14 +538,14 @@ async function uploadObjects(promises.push(prisma.observation.createMany({data: chunk,- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Events ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Events ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -555,13 +555,13 @@ async function uploadObjects(promises.push(prisma.score.createMany({data: chunk,- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Scores ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Scores ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -571,13 +571,13 @@ async function uploadObjects(promises.push(prisma.comment.createMany({data: chunk,- })+ }),);});for (let i = 0; i < promises.length; i++) {if (i + 1 >= promises.length || i % Math.ceil(promises.length / 10) === 0)- console.log(- `Seeding of Comments ${((i + 1) / promises.length) * 100}% complete`+ logger.info(+ `Seeding of Comments ${((i + 1) / promises.length) * 100}% complete`,);await promises[i];}@@ -598,7 +598,7 @@ function createObjects(dataType: ScoreDataType;categories: ConfigCategory[] | null;}[]- >+ >,) {const traces: Prisma.TraceCreateManyInput[] = [];const observations: Prisma.ObservationCreateManyInput[] = [];@@ -612,7 +612,7 @@ function createObjects(// print progress to console with a progress bar that refreshes every 10 iterations// random date within last 90 days, with a linear bias towards more recent datesconst traceTs = new Date(- Date.now() - Math.floor(Math.random() ** 1.5 * 90 * 24 * 60 * 60 * 1000)+ Date.now() - Math.floor(Math.random() ** 1.5 * 90 * 24 * 60 * 60 * 1000),);const envTag = envTags[Math.floor(Math.random() * envTags.length)];@@ -753,11 +753,11 @@ function createObjects(for (let j = 0; j < Math.floor(Math.random() * 10) + 1; j++) {// add between 1 and 30 ms to trace timestampconst spanTsStart = new Date(- traceTs.getTime() + Math.floor(Math.random() * 30)+ traceTs.getTime() + Math.floor(Math.random() * 30),);// random duration of upto 5000msconst spanTsEnd = new Date(- spanTsStart.getTime() + Math.floor(Math.random() * 5000)+ spanTsStart.getTime() + Math.floor(Math.random() * 5000),);const span = {@@ -792,22 +792,22 @@ function createObjects(const generationTsStart = new Date(spanTsStart.getTime() +Math.floor(- Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime())- )+ Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime()),+ ),);const generationTsEnd = new Date(generationTsStart.getTime() +Math.floor(Math.random() *- (spanTsEnd.getTime() - generationTsStart.getTime())- )+ (spanTsEnd.getTime() - generationTsStart.getTime()),+ ),);// somewhere in the middleconst generationTsCompletionStart = new Date(generationTsStart.getTime() +Math.floor(- (generationTsEnd.getTime() - generationTsStart.getTime()) / 3- )+ (generationTsEnd.getTime() - generationTsStart.getTime()) / 3,+ ),);const promptTokens = Math.floor(Math.random() * 1000) + 300;@@ -828,7 +828,7 @@ function createObjects(const promptId =promptIds.get(projectId)![Math.floor(- Math.random() * Math.floor(promptIds.get(projectId)!.length / 2)+ Math.random() * Math.floor(promptIds.get(projectId)!.length / 2),)];@@ -910,8 +910,8 @@ function createObjects(const eventTs = new Date(spanTsStart.getTime() +Math.floor(- Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime())- )+ Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime()),+ ),);events.push({@@ -933,7 +933,7 @@ function createObjects(}// find unique sessions by id and projectidconst uniqueSessions: Prisma.TraceSessionCreateManyInput[] = Array.from(- new Set(sessions.map((session) => JSON.stringify(session)))+ new Set(sessions.map((session) => JSON.stringify(session))),).map((session) => JSON.parse(session) as Prisma.TraceSessionCreateManyInput);return {@@ -954,7 +954,7 @@ async function generatePromptsForProject(projects: Project[]) {projects.map(async (project) => {const promptIdsForProject = await generatePrompts(project);promptIds.set(project.id, promptIdsForProject);- })+ }),);return promptIds;}@@ -1140,7 +1140,7 @@ async function generateConfigsForProject(projects: Project[]) {projects.map(async (project) => {const configNameAndId = await generateConfigs(project);projectIdsToConfigs.set(project.id, configNameAndId);- })+ }),);return projectIdsToConfigs;}diff --git a/packages/shared/src/db.ts b/packages/shared/src/db.tsindex f1c4f5e3f6..7579f26748 100644--- a/packages/shared/src/db.ts+++ b/packages/shared/src/db.ts@@ -1,7 +1,7 @@// This file exports the prisma db connection, the Prisma Object, and the Typescript types.// This is not imported in the index.ts file of this package, as we must not import this into FE code.-import { PrismaClient } from "@prisma/client";+import { Prisma, PrismaClient } from "@prisma/client";import { env } from "process";import kyselyExtension from "prisma-extension-kysely";import {@@ -11,17 +11,38 @@ import {PostgresQueryCompiler,} from "kysely";import { DB } from ".";+import { logger } from "./server";// Instantiated according to the Prisma documentation// https://www.prisma.io/docs/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-dev-practicesconst prismaClientSingleton = () => {- return new PrismaClient({- log:- env.NODE_ENV === "development"- ? ["query", "error", "warn"]- : ["error", "warn"],+ const client = new PrismaClient<+ Prisma.PrismaClientOptions,+ "warn" | "error" | "query"+ >({+ log: [+ { emit: "event", level: "query" },+ { emit: "event", level: "error" },+ { emit: "event", level: "warn" },+ ],});++ if (env.NODE_ENV === "development") {+ client.$on("query", (event) => {+ logger.info(`prisma:query ${event.query}, ${event.duration}ms`);+ });+ }++ client.$on("warn", (event) => {+ logger.warn(`prisma:warn ${event.message}`);+ });++ client.$on("error", (event) => {+ logger.error(`prisma:error ${event.message}`);+ });++ return client;};const kyselySingleton = (prismaClient: PrismaClient) => {@@ -38,7 +59,7 @@ const kyselySingleton = (prismaClient: PrismaClient) => {createQueryCompiler: () => new PostgresQueryCompiler(),},}),- })+ }),);};declare global {diff --git a/packages/shared/src/env.ts b/packages/shared/src/env.tsindex 04e25363e1..391b5fe89c 100644--- a/packages/shared/src/env.ts+++ b/packages/shared/src/env.ts@@ -21,7 +21,7 @@ const EnvSchema = z.object({.string().length(64,- "ENCRYPTION_KEY must be 256 bits, 64 string characters in hex format, generate via: openssl rand -hex 32"+ "ENCRYPTION_KEY must be 256 bits, 64 string characters in hex format, generate via: openssl rand -hex 32",).optional(),LANGFUSE_CACHE_PROMPT_ENABLED: z.enum(["true", "false"]).default("false"),@@ -39,6 +39,10 @@ const EnvSchema = z.object({.positive().default(60 * 10),SALT: z.string().optional(), // used by components imported by web package+ LANGFUSE_LOG_LEVEL: z+ .enum(["trace", "debug", "info", "warn", "error", "fatal"])+ .optional(),+ LANGFUSE_LOG_FORMAT: z.enum(["text", "json"]).default("text"),});export const env = EnvSchema.parse(process.env);diff --git a/packages/shared/src/server/index.ts b/packages/shared/src/server/index.tsindex 36cf8483c9..c34d86c0ca 100644--- a/packages/shared/src/server/index.ts+++ b/packages/shared/src/server/index.ts@@ -26,3 +26,4 @@ export * from "./ingestion/legacy/index";export * from "./queues";export * from "./ingestion/legacy/EventProcessor";export * from "./instrumentation";+export * from "./logger";diff --git a/packages/shared/src/server/ingestion/legacy/index.ts b/packages/shared/src/server/ingestion/legacy/index.tsindex 7f23a07e4a..5efa15aeaf 100644--- a/packages/shared/src/server/ingestion/legacy/index.ts+++ b/packages/shared/src/server/ingestion/legacy/index.ts@@ -19,6 +19,7 @@ import { redis } from "../../redis/redis";import { backOff } from "exponential-backoff";import { Model } from "../../..";import { enqueueIngestionEvents } from "./enqueueIngestionEvents";+import { logger } from "../../logger";export type BatchResult = {result: unknown;@@ -49,9 +50,9 @@ type LegacyIngestionAuthHeaderVerificationResult =export const handleBatch = async (events: z.infer<typeof ingestionApiSchema>["batch"],authCheck: LegacyIngestionAuthHeaderVerificationResult,- calculateTokenDelegate: (p: TokenCountInput) => number | undefined+ calculateTokenDelegate: (p: TokenCountInput) => number | undefined,) => {- console.log(`handling ingestion ${events.length} events`);+ logger.info(`handling ingestion ${events.length} events`);if (!authCheck.validKey) throw new UnauthorizedError(authCheck.error);@@ -69,7 +70,7 @@ export const handleBatch = async (return await handleSingleEvent(singleEvent,authCheck.scope,- calculateTokenDelegate+ calculateTokenDelegate,);});results.push({@@ -93,9 +94,9 @@ export const handleBatch = async (if (env.CLICKHOUSE_URL) {try {await enqueueIngestionEvents(authCheck.scope.projectId, events);- console.log(`Added ${events.length} ingestion events to queue`);+ logger.info(`Added ${events.length} ingestion events to queue`);} catch (err) {- console.error("Error adding ingestion events to queue", err);+ logger.error("Error adding ingestion events to queue", err);}}@@ -107,10 +108,10 @@ async function retry<T>(request: () => Promise<T>): Promise<T> {numOfAttempts: env.LANGFUSE_ASYNC_INGESTION_PROCESSING === "true" ? 5 : 3,retry: (e: Error, attemptNumber: number) => {if (e instanceof UnauthorizedError || e instanceof ForbiddenError) {- console.log("not retrying auth error");+ logger.info("not retrying auth error");return false;}- console.log(`retrying processing events ${attemptNumber}`);+ logger.info(`retrying processing events ${attemptNumber}`);return true;},});@@ -122,7 +123,7 @@ const handleSingleEvent = async (calculateTokenDelegate: (p: {model: Model;text: unknown;- }) => number | undefined+ }) => number | undefined,) => {const { body } = event;let restEvent = body;@@ -137,8 +138,8 @@ const handleSingleEvent = async (restEvent = rest;}- console.log(- `handling single event ${event.id} of type ${event.type}: ${JSON.stringify({ body: restEvent })}`+ logger.info(+ `handling single event ${event.id} of type ${event.type}: ${JSON.stringify({ body: restEvent })}`,);const cleanedEvent = ingestionEvent.parse(cleanEvent(event));@@ -159,7 +160,7 @@ const handleSingleEvent = async (case eventTypes.GENERATION_UPDATE:processor = new ObservationProcessor(cleanedEvent,- calculateTokenDelegate+ calculateTokenDelegate,);break;case eventTypes.SCORE_CREATE: {@@ -201,7 +202,7 @@ export function cleanEvent(obj: unknown): unknown {}export const isNotNullOrUndefined = <T>(- val?: T | null+ val?: T | null,): val is Exclude<T, null | undefined> => !isUndefinedOrNull(val);export const isUndefinedOrNull = <T>(val?: T | null): val is undefined | null =>@@ -209,7 +210,7 @@ export const isUndefinedOrNull = <T>(val?: T | null): val is undefined | null =>export const sendToWorkerIfEnvironmentConfigured = async (batchResults: BatchResult[],- projectId: string+ projectId: string,): Promise<void> => {const traceEvents: TraceUpsertEventType[] = batchResults.filter((result) => result.type === eventTypes.TRACE_CREATE) // we only have create, no update.@@ -219,7 +220,7 @@ export const sendToWorkerIfEnvironmentConfigured = async ("id" in result.result? // ingestion API only gets traces for one projectId{ traceId: result.result.id as string, projectId }- : null+ : null,).filter(isNotNullOrUndefined);@@ -253,7 +254,7 @@ export const sendToWorkerIfEnvironmentConfigured = async (Authorization:"Basic " +Buffer.from(- "admin" + ":" + env.LANGFUSE_WORKER_PASSWORD+ "admin" + ":" + env.LANGFUSE_WORKER_PASSWORD,).toString("base64"),},body: JSON.stringify(body),diff --git a/packages/shared/src/server/logger.ts b/packages/shared/src/server/logger.tsnew file mode 100644index 0000000000..6390af5d66--- /dev/null+++ b/packages/shared/src/server/logger.ts@@ -0,0 +1,33 @@+import { env } from "../env";+import winston from "winston";++const getWinstonLogger = (+ nodeEnv: "development" | "production" | "test",+ minLevel = "info",+) => {+ const textLoggerFormat = winston.format.combine(+ winston.format.errors({ stack: true }),+ winston.format.timestamp(),+ winston.format.align(),+ winston.format.printf((info) => {+ const logMessage = `${info.timestamp} ${info.level} ${info.message}`;+ return info.stack ? `${logMessage}\n${info.stack}` : logMessage;+ }),+ );++ const jsonLoggerFormat = winston.format.combine(+ winston.format.errors({ stack: true }),+ winston.format.timestamp(),+ winston.format.json(),+ );++ const format =+ env.LANGFUSE_LOG_FORMAT === "text" ? textLoggerFormat : jsonLoggerFormat;+ return winston.createLogger({+ level: minLevel,+ format: format,+ transports: [new winston.transports.Console()],+ });+};++export const logger = getWinstonLogger(env.NODE_ENV, env.LANGFUSE_LOG_LEVEL);diff --git a/packages/shared/src/server/redis/redis.ts b/packages/shared/src/server/redis/redis.tsindex 8cb65938e5..c39d8300a4 100644--- a/packages/shared/src/server/redis/redis.ts+++ b/packages/shared/src/server/redis/redis.ts@@ -1,5 +1,6 @@import Redis, { RedisOptions } from "ioredis";import { env } from "../../env";+import { logger } from "../logger";export const createNewRedisInstance = (additionalOptions: Partial<RedisOptions> = {},@@ -26,7 +27,7 @@ const createRedisClient = () => {try {return createNewRedisInstance();} catch (e) {- console.error(e, "Failed to connect to redis");+ logger.error("Failed to connect to redis", e);return null;}};diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0de9f1374e..c15eb5e09f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -95,7 +95,7 @@ importers:version: 7.12.0([email protected])([email protected])'@vercel/style-guide':specifier: ^6.0.0- version: 6.0.0(@next/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 6.0.0(@next/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))eslint-config-next:specifier: ^14.2.6version: 14.2.6([email protected])([email protected])@@ -156,7 +156,7 @@ importers:specifier: ^2.4.6version: 2.4.6'@types/react':- specifier: ^18.2.79+ specifier: ~18.2.79version: 18.2.79bcryptjs:specifier: ^2.4.3@@ -195,11 +195,14 @@ importers:specifier: ^2.1.0version: 2.1.0(@prisma/[email protected]([email protected]))react:- specifier: ^18.0.0+ specifier: ~18.2.0version: 18.2.0uuid:specifier: ^9.0.1version: 9.0.1+ winston:+ specifier: ^3.14.2+ version: 3.14.2zod:specifier: ^3.23.8version: 3.23.8@@ -305,13 +308,13 @@ importers:version: 3.3.4([email protected]([email protected]))'@langchain/anthropic':specifier: ^0.1.21- version: 0.1.21([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 0.1.21([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@langchain/core':specifier: ^0.1.61- version: 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@langchain/openai':specifier: ^0.0.33- version: 0.0.33([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))+ version: 0.0.33([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))'@langfuse/ee':specifier: workspace:*version: link:../ee@@ -351,6 +354,9 @@ importers:'@opentelemetry/instrumentation-undici':specifier: ^0.4.0version: 0.4.0(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-winston':+ specifier: ^0.40.0+ version: 0.40.0(@opentelemetry/[email protected])'@opentelemetry/resources':specifier: ^1.25.1version: 1.25.1(@opentelemetry/[email protected])@@ -536,7 +542,7 @@ importers:version: 0.27.4langchain:specifier: ^0.2.6- version: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])+ version: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])lodash:specifier: ^4.17.21version: 4.17.21@@ -652,7 +658,7 @@ importers:'@testing-library/jest-dom':specifier: ^6.4.6- version: 6.4.6(@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected])([email protected]))+ version: 6.4.6(@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected]))'@testing-library/react':specifier: ^15.0.7@@ -678,10 +684,10 @@ importers:specifier: 20.10.5version: 20.10.5'@types/react':- specifier: ^18.2.79+ specifier: ~18.2.79version: 18.2.79'@types/react-dom':- specifier: ^18.2.25+ specifier: ~18.2.25version: 18.2.25'@types/react-syntax-highlighter':specifier: ^15.5.13@@ -758,9 +764,6 @@ importers:'@langfuse/shared':specifier: workspace:*version: link:../packages/shared- '@logtail/pino':- specifier: ^0.5.0- version: 0.5.0([email protected])'@opentelemetry/api':specifier: ^1.8.0version: 1.8.0@@ -782,12 +785,12 @@ importers:'@opentelemetry/instrumentation-ioredis':specifier: ^0.42.0version: 0.42.0(@opentelemetry/[email protected])- '@opentelemetry/instrumentation-pino':- specifier: ^0.41.0- version: 0.41.0(@opentelemetry/[email protected])'@opentelemetry/instrumentation-undici':specifier: ^0.4.0version: 0.4.0(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-winston':+ specifier: ^0.40.0+ version: 0.40.0(@opentelemetry/[email protected])'@prisma/instrumentation':specifier: ^5.13.0version: 5.13.0@@ -836,15 +839,6 @@ importers:pg:specifier: ^8.11.5version: 8.11.5- pino:- specifier: ^9.2.0- version: 9.2.0- pino-http:- specifier: ^10.2.0- version: 10.2.0- pino-pretty:- specifier: ^11.2.2- version: 11.2.2stripe:specifier: ^16.8.0version: 16.8.0@@ -1468,10 +1462,17 @@ packages:'@codemirror/[email protected]':resolution: {integrity: sha512-fo7CelaUDKWIyemw4b+J57cWuRkOu4SWCCPfNDkPvfWkGjM9D5racHQXr4EQeYCD6zEBIBxGCeaKkQo+ysl0gA==}+ '@colors/[email protected]':+ resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==}+ engines: {node: '>=0.1.90'}+'@cspotcode/[email protected]':resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}engines: {node: '>=12'}+ '@dabh/[email protected]':+ resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==}+'@datadog/[email protected]':resolution: {integrity: sha512-SpWkoo7K4+pwxFze1ogRF1qBaKm8sZjWfZKnQ8Ex67f6L5odLjWOoiiIAs5rp01sLKGXjxU8IJf+X9j4PvI2zQ==}engines: {node: '>=16'}@@ -2164,23 +2165,6 @@ packages:resolution: {integrity: sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ==}engines: {node: '>= 0.4'}- '@logtail/[email protected]':- resolution: {integrity: sha512-zHl1wx5fqqICVOjM+IVzJ6vqlDobcQu0AK2TL7yPTxCNa8C3gTCtOKsc5sX/yMnSFqCK4KcYpY7DPUAYYGzezg==}-- '@logtail/[email protected]':- resolution: {integrity: sha512-nTyEpdei/qaXJT55OXkiUE6RuMgmRfQ5eMkExHCQe4MB/SAbMbXd+1ULv6cHLAj+S5xMvPGdpMyaydfHtPAkXA==}-- '@logtail/[email protected]':- resolution: {integrity: sha512-yNeVha1G+b1riN6VYH+171Q122HIWxyM0Xg5lSWOH2sJcKvyrLExJ3BQeU4xEZWhYmODkvzUFvXlJuLL2MMuuA==}- peerDependencies:- pino: ^7.0.0 || ^8.0.0 || ^9.0.0-- '@logtail/[email protected]':- resolution: {integrity: sha512-xCN7Cvq9DJ8loJkaPdihQImsLPAUVYlDK3qJiMneuIgIBJm5awVJ6BUZhycLmtz5NlLG1M2SJbuxEYU7WU3sDg==}-- '@logtail/[email protected]':- resolution: {integrity: sha512-wO+uw142K5WFS1lD3bmx2u8U3bMRVtaW48j6AlkMfq+yJfQlNzLL4EP5wR2b3QmcFN6LC240dJ3Aq7phR250Ig==}-'@marsidev/[email protected]':resolution: {integrity: sha512-cloUDkEcJm+G7p3J8DwPtRNNB2GZqVi/nlIbgu9o3VzNyV5K/bWcSfOyWouRiR3umAQZmsFpR3OFYa4mCmy4AQ==}peerDependencies:@@ -2202,10 +2186,6 @@ packages:resolution: {integrity: sha512-GTPkYf1meO2UXXIrz/SIDFWz+P4kXo2PTt36LYh/oNxV1PieYi7ZgenQk4IV0ut71Je3Z8ZoNZ8Tr7v2c1X1pg==}engines: {node: '>=16'}- '@msgpack/[email protected]':- resolution: {integrity: sha512-h9u4u/jiIRKbq25PM+zymTyW6bhTzELvOoUd+AvYriWOAKpLGnIamaET3pnHYoI5iYphAHBI4ayx0MehR+VVPQ==}- engines: {node: '>= 10'}-'@msgpackr-extract/[email protected]':resolution: {integrity: sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==}cpu: [arm64]@@ -2548,6 +2528,10 @@ packages:resolution: {integrity: sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==}engines: {node: '>=14'}+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-8HArjKx+RaAI8uEIgcORbZIPklyh1YLjPSBus8hjRmvLi6DeFzgOcdZ7KwPabKj8mXF8dX0hyfAyGfycz0DbFw==}+ engines: {node: '>=14'}+'@opentelemetry/[email protected]':resolution: {integrity: sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==}engines: {node: '>=8.0.0'}@@ -2884,12 +2868,6 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0- '@opentelemetry/[email protected]':- resolution: {integrity: sha512-Kpv0fJRk/8iMzMk5Ue5BsUJfHkBJ2wQoIi/qduU1a1Wjx9GLj6J2G17PHjPK5mnZjPNzkFOXFADZMfgDioliQw==}- engines: {node: '>=14'}- peerDependencies:- '@opentelemetry/api': ^1.3.0-'@opentelemetry/[email protected]':resolution: {integrity: sha512-ugDb2txE2o76zwasSzOpmlFlUUnQu4MT2WpO+UmmS5sN4pClU+zsZy0QxjHB03PUJMLCRfsbZf2ez0jkpm7yag==}engines: {node: '>=14'}@@ -2944,6 +2922,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-eMk2tKl86YJ8/yHvtDbyhrE35/R0InhO9zuHTflPx8T0+IvKVUhPV71MsJr32sImftqeOww92QHt4Jd+a5db4g==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-VET/bOh4StOQV4vf1sAvn2JD67BhW2vPZ/ynl2gHXyafme2yB8Hs9+tr1TLzFwNGo7jwMFviFQkZjCYxMuK0AA==}engines: {node: '>=14'}@@ -2968,6 +2952,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-DMwg0hy4wzf7K73JJtl95m/e0boSoWhH07rfvHvYzQtBD3Bmv0Wc1x733vyZBqmFm8OjJD0/pfiUg1W3JjFX0A==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-JUmjmrCmE1/fc4LjCQMqLfudgSl5OpUkzx7iA94b4jgeODM7zWxUoVXL7/CT7fWf47Cn+pmKjMvTCSESqZZ3mA==}engines: {node: '>=14'}@@ -4947,9 +4937,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==}- '@types/[email protected]':- resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==}-'@types/[email protected]':resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==}@@ -4974,9 +4961,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==}- '@types/[email protected]':- resolution: {integrity: sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==}-'@types/[email protected]':resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}@@ -4992,9 +4976,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==}- '@types/[email protected]':- resolution: {integrity: sha512-O7in6531Bbvlb2KEsJ0dq0CHZvc3iWSR5ZYMtvGgnHA56VgriAN/AU2LorfmcvAl2xc9N5fbCTRyMRRl8nd74g==}-'@types/[email protected]':resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==}@@ -5007,6 +4988,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==}+'@types/[email protected]':resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}@@ -5607,10 +5591,6 @@ packages:resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}- resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}- engines: {node: '>=8.0.0'}-resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==}engines: {node: ^10 || ^12 || >=14}@@ -5751,9 +5731,6 @@ packages:resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}- resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}-resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}engines: {node: '>=6'}@@ -6002,8 +5979,14 @@ packages:resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}- resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}+ resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}++ resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==}++ resolution: {integrity: sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==}resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}@@ -6136,9 +6119,6 @@ packages:resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==}- resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==}-resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}engines: {node: '>= 8'}@@ -6260,9 +6240,6 @@ packages:resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}- resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==}-resolution: {integrity: sha512-UV33cugmCC49a5uWAApM+6Ev9ZdvIUMTrtCO9fj96TPGOQiea54oeO3tiEVdVeo3J9N2UdJEmbS4zOkkEA35uQ==}engines: {node: '>=12.17'}@@ -6565,6 +6542,9 @@ packages:resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}+ resolution: {integrity: sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==}+resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==}engines: {node: '>= 0.8'}@@ -6989,9 +6969,6 @@ packages:engines: {node: '>= 10.17.0'}hasBin: true- resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==}-resolution: {integrity: sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==}@@ -7015,13 +6992,6 @@ packages:resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}- resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==}- engines: {node: '>=6'}-- resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==}-resolution: {integrity: sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==}hasBin: true@@ -7042,6 +7012,9 @@ packages:resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}+ resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==}+resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}engines: {node: ^12.20 || >= 14.13}@@ -7092,6 +7065,9 @@ packages:resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==}+ resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==}+resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==}engines: {node: '>=4.0'}@@ -7408,9 +7384,6 @@ packages:resolution: {integrity: sha512-g+HZqgfbpXdCkme/Cd/mZkV0aV3BZZZSugecH03kl38m/Kmdx8jKjBikpDj2cr+Iynv4KpYEviojNdTJActJAg==}engines: {node: '>=16.0.0'}- resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==}-resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}@@ -7632,6 +7605,9 @@ packages:resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}+ resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}+resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==}engines: {node: '>= 0.4'}@@ -8075,10 +8051,6 @@ packages:resolution: {integrity: sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg==}- resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}- engines: {node: '>=10'}-resolution: {integrity: sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==}engines: {node: '>=14'}@@ -8196,6 +8168,9 @@ packages:resolution: {integrity: sha512-RYhBbYaTTTHId3l6fnMZc3eGQNW6FVCqMG6AMwA5I1Mafr6AflaXeoi6x3xQuATRotGYRLk6+1ELZH4dstFNOA==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==}+resolution: {integrity: sha512-8aklzXygjANshk5BoGSQ0BWukKIoPL4/k1iFWyteGUQ/VtB1GlyrELBZv1GglydjLGECSSVDpsOgEXyWQmuksg==}hasBin: true@@ -8504,6 +8479,10 @@ packages:resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==}+ engines: {node: '>= 12.0.0'}+resolution: {integrity: sha512-hP3I3kCrDIMuRwAwHltphhDM1r8i55H33GgqjXbrisuJhF4kRhW1dNuxsRklp4bXl8DSdLaNLuiL4A/LWRfxvg==}engines: {node: '>= 0.6.0'}@@ -9172,10 +9151,6 @@ packages:resolution: {integrity: sha512-IF4PcGgzAr6XXSff26Sk/+P4KZFJVuHAJZj3wgO3vX2bMdNVp/QXTP3P7CEm9V1IdG8lDLY3HhiqpsE/nOwpPw==}engines: {node: ^10.13.0 || >=12.0.0}- resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==}- engines: {node: '>=14.0.0'}-resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}engines: {node: '>= 0.8'}@@ -9183,6 +9158,9 @@ packages:resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}+ resolution: {integrity: sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==}+resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}engines: {node: '>=6'}@@ -9462,23 +9440,6 @@ packages:resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==}-- resolution: {integrity: sha512-am03BxnV3Ckx68OkbH0iZs3indsrH78wncQ6w1w51KroIbvJZNImBKX2X1wjdY8lSyaJ0UrX/dnO2DY3cTeCRw==}-- resolution: {integrity: sha512-2FnyGir8nAJAqD3srROdrF1J5BIcMT4nwj7hHSc60El6Uxlym00UbCCd8pYIterstVBFlMyF1yFV8XdGIPbj4A==}- hasBin: true-- resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==}-- resolution: {integrity: sha512-g3/hpwfujK5a4oVbaefoJxezLzsDgLcNJeITvC6yrfwYeT9la+edCK42j5QpEQSQCZgTKapXvnQIdgZwvRaZug==}- hasBin: true-resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}engines: {node: '>= 6'}@@ -9741,13 +9702,6 @@ packages:resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}- resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==}-- resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==}- engines: {node: '>= 0.6.0'}-resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==}engines: {node: '>=0.4.0'}@@ -9838,9 +9792,6 @@ packages:resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}- resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==}-resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}engines: {node: '>=10'}@@ -10008,10 +9959,6 @@ packages:resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}engines: {node: '>= 6'}- resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}-resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==}@@ -10019,10 +9966,6 @@ packages:resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}engines: {node: '>=8.10.0'}- resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==}- engines: {node: '>= 12.13.0'}-resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}@@ -10279,10 +10222,6 @@ packages:resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==}engines: {node: '>= 0.8.0'}- resolution: {integrity: sha512-3NnuWfM6vBYoy5gZFvHiYsVbafvI9vZv/+jlIigFn4oP4zjNPK3LhcY0xSCgeb1a5L8jO71Mit9LlNoi2UfDDQ==}- engines: {node: '>=10'}-resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==}@@ -10354,6 +10293,9 @@ packages:resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}+resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}engines: {node: '>=10'}@@ -10399,9 +10341,6 @@ packages:solid-js: ^1.2swr-store: ^0.10- resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==}-resolution: {integrity: sha512-uG511ggnnsw6gcn/X+YKkWPo5ep9il9wYi3QJxHsYe7yTZ4+cOd1wuodOUmOpFuXL+/RE3R04LczdNCDygTDgQ==}peerDependencies:@@ -10757,6 +10696,9 @@ packages:resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}engines: {node: '>=8'}+ resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==}+resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}@@ -10767,9 +10709,6 @@ packages:resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}- resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==}-resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}@@ -10838,6 +10777,10 @@ packages:resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}+ resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==}+ engines: {node: '>= 14.0.0'}+resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}@@ -11394,6 +11337,14 @@ packages:resolution: {integrity: sha512-NMD00arvqcq2nwqc5Q6KtrSRHK+fVD31erE5FEMahAw5PmVCgD7MUXodq3pdZSUkqA9Cda2iWx6s1XYwiJWRmw==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-wQCXXVgfv/wUPOfb2x0ruxzwkcZfxcktz6JIMUaPLmcNhO4bZTwA/WtDWK74xV3F2dKu8YadrFv0qhwYjVEwhA==}+ engines: {node: '>= 12.0.0'}++ resolution: {integrity: sha512-CO8cdpBB2yqzEf8v895L+GNKYJiEq8eKlHU38af3snQBQ+sdAIUepjMSguOIJC7ICbzm0ZI+Af2If4vIJrtmOg==}+ engines: {node: '>= 12.0.0'}+resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}@@ -12525,10 +12476,18 @@ snapshots:style-mod: 4.1.2w3c-keyname: 2.2.8+ '@colors/[email protected]': {}+'@cspotcode/[email protected]':dependencies:'@jridgewell/trace-mapping': 0.3.9+ '@dabh/[email protected]':+ dependencies:+ colorspace: 1.1.4+ enabled: 2.0.0+ kuler: 2.0.0+'@datadog/[email protected]':dependencies:node-gyp-build: 3.9.0@@ -13012,42 +12971,6 @@ snapshots:jest-util: 29.7.0slash: 3.0.0- '@jest/[email protected]':- dependencies:- '@jest/console': 29.7.0- '@jest/reporters': 29.7.0- '@jest/test-result': 29.7.0- '@jest/transform': 29.7.0- '@jest/types': 29.6.3- '@types/node': 20.14.8- ansi-escapes: 4.3.2- chalk: 4.1.2- ci-info: 3.9.0- exit: 0.1.2- graceful-fs: 4.2.11- jest-changed-files: 29.7.0- jest-config: 29.7.0(@types/[email protected])- jest-haste-map: 29.7.0- jest-message-util: 29.7.0- jest-regex-util: 29.6.3- jest-resolve: 29.7.0- jest-resolve-dependencies: 29.7.0- jest-runner: 29.7.0- jest-runtime: 29.7.0- jest-snapshot: 29.7.0- jest-util: 29.7.0- jest-validate: 29.7.0- jest-watcher: 29.7.0- micromatch: 4.0.5- pretty-format: 29.7.0- slash: 3.0.0- strip-ansi: 6.0.1- transitivePeerDependencies:- - babel-plugin-macros- - supports-color- - ts-node- optional: true-'@jest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':dependencies:'@jest/console': 29.7.0@@ -13244,10 +13167,10 @@ snapshots:- langchain- openai- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:'@anthropic-ai/sdk': 0.21.1- '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])fast-xml-parser: 4.3.6zod: 3.23.8zod-to-json-schema: 3.23.2([email protected])@@ -13262,7 +13185,7 @@ snapshots:camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.12- langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])ml-distance: 4.0.1mustache: 4.2.0p-queue: 6.6.2@@ -13292,13 +13215,13 @@ snapshots:- langchain- openai- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.12- langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])ml-distance: 4.0.1mustache: 4.2.0p-queue: 6.6.2@@ -13310,13 +13233,13 @@ snapshots:- langchain- openai- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.12- langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])ml-distance: 4.0.1mustache: 4.2.0p-queue: 6.6.2@@ -13346,13 +13269,13 @@ snapshots:- langchain- openai- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.12- langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])ml-distance: 4.0.1mustache: 4.2.0p-queue: 6.6.2@@ -13375,9 +13298,9 @@ snapshots:- encoding- langchain- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))':dependencies:- '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])js-tiktoken: 1.0.12openai: 4.47.1zod: 3.23.8@@ -13397,9 +13320,9 @@ snapshots:- encoding- langchain- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))':dependencies:- '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])js-tiktoken: 1.0.12openai: 4.52.0zod: 3.23.8@@ -13416,9 +13339,9 @@ snapshots:- langchain- openai- '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:- '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])js-tiktoken: 1.0.12transitivePeerDependencies:- langchain@@ -13452,45 +13375,6 @@ snapshots:dependencies:call-bind: 1.0.7- '@logtail/[email protected]':- dependencies:- '@logtail/tools': 0.5.0- '@logtail/types': 0.5.0- serialize-error: 8.1.0- transitivePeerDependencies:- - encoding-- '@logtail/[email protected]':- dependencies:- '@logtail/core': 0.5.0- '@logtail/types': 0.5.0- '@msgpack/msgpack': 2.8.0- '@types/stack-trace': 0.0.33- cross-fetch: 4.0.0- minimatch: 9.0.5- serialize-error: 8.1.0- stack-trace: 0.0.10- transitivePeerDependencies:- - encoding-- '@logtail/[email protected]([email protected])':- dependencies:- '@logtail/node': 0.5.0- '@logtail/types': 0.5.0- pino: 9.2.0- pino-abstract-transport: 1.2.0- transitivePeerDependencies:- - encoding-- '@logtail/[email protected]':- dependencies:- '@logtail/types': 0.5.0- cross-fetch: 4.0.0- transitivePeerDependencies:- - encoding-- '@logtail/[email protected]': {}-dependencies:react: 18.2.0@@ -13522,8 +13406,6 @@ snapshots:chevrotain: 10.5.0lilconfig: 2.1.0- '@msgpack/[email protected]': {}-'@msgpackr-extract/[email protected]':optional: true@@ -13844,6 +13726,10 @@ snapshots:dependencies:'@opentelemetry/api': 1.8.0+ '@opentelemetry/[email protected]':+ dependencies:+ '@opentelemetry/api': 1.8.0+'@opentelemetry/[email protected]': {}'@opentelemetry/[email protected]': {}@@ -14399,15 +14285,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@opentelemetry/[email protected](@opentelemetry/[email protected])':- dependencies:- '@opentelemetry/api': 1.8.0- '@opentelemetry/api-logs': 0.52.1- '@opentelemetry/core': 1.25.1(@opentelemetry/[email protected])- '@opentelemetry/instrumentation': 0.52.1(@opentelemetry/[email protected])- transitivePeerDependencies:- - supports-color-'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -14484,6 +14361,14 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.8.0+ '@opentelemetry/api-logs': 0.53.0+ '@opentelemetry/instrumentation': 0.53.0(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -14541,6 +14426,18 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.8.0+ '@opentelemetry/api-logs': 0.53.0+ '@types/shimmer': 1.2.0+ import-in-the-middle: 1.11.0+ require-in-the-middle: 7.4.0+ semver: 7.6.3+ shimmer: 1.2.1+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16036,7 +15933,7 @@ snapshots:'@opentelemetry/semantic-conventions': 1.25.1'@prisma/instrumentation': 5.17.0'@sentry/core': 8.26.0- '@sentry/opentelemetry': 8.26.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])+ '@sentry/opentelemetry': 8.26.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])'@sentry/types': 8.26.0'@sentry/utils': 8.26.0import-in-the-middle: 1.11.0@@ -16056,12 +15953,12 @@ snapshots:'@sentry/types': 8.26.0'@sentry/utils': 8.26.0- '@sentry/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])':+ '@sentry/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.9.0- '@opentelemetry/core': 1.25.1(@opentelemetry/[email protected])- '@opentelemetry/instrumentation': 0.52.1(@opentelemetry/[email protected])- '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/[email protected])+ '@opentelemetry/core': 1.25.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.52.1(@opentelemetry/[email protected])+ '@opentelemetry/sdk-trace-base': 1.25.1(@opentelemetry/[email protected])'@opentelemetry/semantic-conventions': 1.25.1'@sentry/core': 8.26.0'@sentry/types': 8.26.0@@ -16564,7 +16461,7 @@ snapshots:lz-string: 1.5.0pretty-format: 27.5.1- '@testing-library/[email protected](@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected])([email protected]))':+ '@testing-library/[email protected](@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected]))':dependencies:'@adobe/css-tools': 4.4.0'@babel/runtime': 7.24.7@@ -16578,7 +16475,7 @@ snapshots:'@jest/globals': 29.7.0'@types/jest': 29.5.12jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))- vitest: 1.5.3(@types/[email protected])([email protected])'@testing-library/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -16643,7 +16540,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.11.29+ '@types/node': 20.14.8'@types/[email protected]': {}@@ -16698,7 +16595,7 @@ snapshots:'@types/connect': 3.4.38'@types/express': 4.17.21'@types/keygrip': 1.0.6- '@types/node': 20.11.29+ '@types/node': 20.14.8'@types/[email protected]':dependencies:@@ -16947,8 +16844,6 @@ snapshots:pg-protocol: 1.6.1pg-types: 2.2.0- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]': {}@@ -16969,14 +16864,9 @@ snapshots:'@types/[email protected]':dependencies:- '@types/react': 18.3.5+ '@types/react': 18.2.79'@types/[email protected]':- dependencies:- '@types/prop-types': 15.7.11- csstype: 3.1.3-- '@types/[email protected]':dependencies:'@types/prop-types': 15.7.12csstype: 3.1.3@@ -16998,8 +16888,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]': {}@@ -17010,6 +16898,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}@@ -17355,7 +17245,7 @@ snapshots:'@ungap/[email protected]': {}- '@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@vercel/[email protected](@next/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.24.3'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])@@ -17363,19 +17253,19 @@ snapshots:'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint-config-prettier: 9.1.0([email protected])- eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])eslint-plugin-eslint-comments: 3.2.0([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])+ eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]))([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])- eslint-plugin-playwright: 1.5.4([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-plugin-playwright: 1.5.4([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]))([email protected]))([email protected])eslint-plugin-react: 7.34.1([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])eslint-plugin-testing-library: 6.2.0([email protected])([email protected])eslint-plugin-tsdoc: 0.2.17eslint-plugin-unicorn: 51.0.1([email protected])- eslint-plugin-vitest: 0.3.26(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-plugin-vitest: 0.3.26(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))prettier-plugin-packagejson: 2.4.12([email protected])optionalDependencies:'@next/eslint-plugin-next': 14.2.6@@ -17832,8 +17722,6 @@ snapshots:- [email protected]: {}-dependencies:browserslist: 4.23.0@@ -18029,11 +17917,6 @@ snapshots:base64-js: 1.5.1ieee754: 1.2.1- dependencies:- base64-js: 1.5.1- ieee754: 1.2.1-@@ -18292,7 +18175,20 @@ snapshots:- [email protected]: {}+ dependencies:+ color-name: 1.1.4+ simple-swizzle: 0.2.2++ dependencies:+ color-convert: 1.9.3+ color-string: 1.9.1++ dependencies:+ color: 3.2.1+ text-hex: 1.0.0dependencies:@@ -18398,13 +18294,13 @@ snapshots:crc-32: 1.2.2readable-stream: 3.6.2+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@jest/types': 29.6.3chalk: 4.1.2exit: 0.1.2graceful-fs: 4.2.11- jest-config: 29.7.0(@types/[email protected])+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0prompts: 2.4.2transitivePeerDependencies:@@ -18412,15 +18308,14 @@ snapshots:- babel-plugin-macros- supports-color- ts-node- optional: true- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@jest/types': 29.6.3chalk: 4.1.2exit: 0.1.2graceful-fs: 4.2.11- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0prompts: 2.4.2transitivePeerDependencies:@@ -18428,6 +18323,7 @@ snapshots:- babel-plugin-macros- supports-color- ts-node+ optional: true@@ -18446,12 +18342,6 @@ snapshots:transitivePeerDependencies:- encoding- dependencies:- node-fetch: 2.7.0- transitivePeerDependencies:- - encoding-dependencies:path-key: 3.1.1@@ -18561,8 +18451,6 @@ snapshots:- [email protected]: {}-@@ -18855,6 +18743,8 @@ snapshots:+ [email protected]: {}+@@ -19070,7 +18960,7 @@ snapshots:eslint: 8.57.0eslint-import-resolver-node: 0.3.9eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])eslint-plugin-react: 7.34.1([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])@@ -19087,7 +18977,7 @@ snapshots:[email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected]):dependencies:eslint: 8.57.0- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])eslint-plugin-n: 16.6.2([email protected])eslint-plugin-promise: 6.4.0([email protected])@@ -19096,9 +18986,9 @@ snapshots:eslint: 8.57.0eslint-plugin-turbo: 1.13.4([email protected])- [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])):+ [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])):dependencies:- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])dependencies:@@ -19108,13 +18998,13 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):dependencies:debug: 4.3.6enhanced-resolve: 5.17.1eslint: 8.57.0- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])fast-glob: 3.3.2get-tsconfig: 4.8.0is-core-module: 2.15.1@@ -19131,7 +19021,7 @@ snapshots:enhanced-resolve: 5.17.1eslint: 8.57.0eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])fast-glob: 3.3.2get-tsconfig: 4.8.0is-core-module: 2.15.1@@ -19142,14 +19032,14 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected]):dependencies:debug: 3.2.7optionalDependencies:'@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])transitivePeerDependencies:- supports-color@@ -19177,7 +19067,7 @@ snapshots:eslint: 8.57.0ignore: 5.3.1- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected]):dependencies:array-includes: 3.1.7array.prototype.findlastindex: 1.2.4@@ -19187,7 +19077,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -19204,13 +19094,13 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):dependencies:'@typescript-eslint/utils': 5.62.0([email protected])([email protected])eslint: 8.57.0optionalDependencies:'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- jest: 29.7.0+ jest: 29.7.0(@types/[email protected])([email protected])transitivePeerDependencies:- supports-color- typescript@@ -19252,12 +19142,12 @@ snapshots:- [email protected]([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):+ [email protected]([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]))([email protected]))([email protected]):dependencies:eslint: 8.57.0globals: 13.24.0optionalDependencies:- eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]))([email protected])[email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:@@ -19339,13 +19229,13 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])):dependencies:'@typescript-eslint/utils': 7.3.1([email protected])([email protected])eslint: 8.57.0optionalDependencies:'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])transitivePeerDependencies:- supports-color- typescript@@ -19553,8 +19443,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-@@ -19575,10 +19463,6 @@ snapshots:- [email protected]: {}-- [email protected]: {}-dependencies:strnum: 1.0.5@@ -19603,6 +19487,8 @@ snapshots:dependencies:pend: 1.2.0+ [email protected]: {}+dependencies:node-domexception: 1.0.0@@ -19660,6 +19546,8 @@ snapshots:+ [email protected]: {}+@@ -20040,8 +19928,6 @@ snapshots:- [email protected]: {}-@@ -20305,6 +20191,8 @@ snapshots:+ [email protected]: {}+dependencies:has-tostringtag: 1.0.2@@ -20599,16 +20487,16 @@ snapshots:- babel-plugin-macros- supports-color+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@jest/core': 29.7.0+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/test-result': 29.7.0'@jest/types': 29.6.3chalk: 4.1.2- create-jest: 29.7.0+ create-jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))exit: 0.1.2import-local: 3.1.0- jest-config: 29.7.0(@types/[email protected])+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0jest-validate: 29.7.0yargs: 17.7.2@@ -20617,18 +20505,17 @@ snapshots:- babel-plugin-macros- supports-color- ts-node- optional: true- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/test-result': 29.7.0'@jest/types': 29.6.3chalk: 4.1.2- create-jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ create-jest: 29.7.0(@types/[email protected])([email protected])exit: 0.1.2import-local: 3.1.0- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0jest-validate: 29.7.0yargs: 17.7.2@@ -20637,6 +20524,7 @@ snapshots:- babel-plugin-macros- supports-color- ts-node+ optional: true[email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:@@ -20669,37 +20557,6 @@ snapshots:- babel-plugin-macros- supports-color- [email protected](@types/[email protected]):- dependencies:- '@babel/core': 7.24.3- '@jest/test-sequencer': 29.7.0- '@jest/types': 29.6.3- babel-jest: 29.7.0(@babel/[email protected])- chalk: 4.1.2- ci-info: 3.9.0- deepmerge: 4.3.1- glob: 7.2.3- graceful-fs: 4.2.11- jest-circus: 29.7.0([email protected])- jest-environment-node: 29.7.0- jest-get-type: 29.6.3- jest-regex-util: 29.6.3- jest-resolve: 29.7.0- jest-runner: 29.7.0- jest-util: 29.7.0- jest-validate: 29.7.0- micromatch: 4.0.5- parse-json: 5.2.0- pretty-format: 29.7.0- slash: 3.0.0- strip-json-comments: 3.1.1- optionalDependencies:- '@types/node': 20.14.8- transitivePeerDependencies:- - babel-plugin-macros- - supports-color- optional: true-[email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@babel/core': 7.24.3@@ -20967,30 +20824,30 @@ snapshots:merge-stream: 2.0.0supports-color: 8.1.1+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@jest/core': 29.7.0+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/types': 29.6.3import-local: 3.1.0- jest-cli: 29.7.0+ jest-cli: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- '@types/node'- babel-plugin-macros- supports-color- ts-node- optional: true- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/types': 29.6.3import-local: 3.1.0- jest-cli: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-cli: 29.7.0(@types/[email protected])([email protected])transitivePeerDependencies:- '@types/node'- babel-plugin-macros- supports-color- ts-node+ optional: true@@ -21006,8 +20863,6 @@ snapshots:- [email protected]: {}-dependencies:config-chain: 1.1.13@@ -21133,6 +20988,8 @@ snapshots:+ [email protected]: {}+dependencies:chalk: 4.1.2@@ -21181,17 +21038,17 @@ snapshots:- encoding- openai- [email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]):+ [email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]):dependencies:- '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])- '@langchain/openai': 0.2.0([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))- '@langchain/textsplitters': 0.0.3([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/openai': 0.2.0([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))+ '@langchain/textsplitters': 0.0.3([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])binary-extensions: 2.3.0js-tiktoken: 1.0.12js-yaml: 4.1.0jsonpointer: 5.0.1langchainhub: 0.0.11- langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langsmith: 0.1.32(@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])ml-distance: 4.0.1openapi-types: 12.1.3p-retry: 4.6.2@@ -21218,7 +21075,7 @@ snapshots:- [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@types/uuid': 9.0.8commander: 10.0.1@@ -21226,7 +21083,7 @@ snapshots:p-retry: 4.6.2uuid: 9.0.1optionalDependencies:- '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.47.1@@ -21242,7 +21099,7 @@ snapshots:langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.52.0- [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@types/uuid': 9.0.8commander: 10.0.1@@ -21250,11 +21107,11 @@ snapshots:p-retry: 4.6.2uuid: 9.0.1optionalDependencies:- '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])- langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])+ '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.47.1- [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@types/uuid': 9.0.8commander: 10.0.1@@ -21262,8 +21119,8 @@ snapshots:p-retry: 4.6.2uuid: 9.0.1optionalDependencies:- '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])- langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])+ '@langchain/core': 0.1.63([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.52.0[email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):@@ -21278,7 +21135,7 @@ snapshots:langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.52.0- [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](@langchain/[email protected]([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@types/uuid': 9.0.8commander: 10.0.1@@ -21286,8 +21143,8 @@ snapshots:p-retry: 4.6.2uuid: 9.0.1optionalDependencies:- '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])- langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])+ '@langchain/core': 0.2.15([email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ langchain: 0.2.9(@aws-sdk/[email protected])(@aws-sdk/[email protected](@aws-sdk/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])openai: 4.52.0@@ -21378,6 +21235,15 @@ snapshots:chalk: 5.3.0is-unicode-supported: 1.3.0+ dependencies:+ '@colors/colors': 1.6.0+ '@types/triple-beam': 1.3.5+ fecha: 4.2.3+ ms: 2.1.3+ safe-stable-stringify: 2.4.3+ triple-beam: 1.4.1+@@ -22242,8 +22108,6 @@ snapshots:- [email protected]: {}-dependencies:ee-first: 1.1.1@@ -22252,6 +22116,10 @@ snapshots:dependencies:wrappy: 1.0.2+ dependencies:+ fn.name: 1.1.0+dependencies:mimic-fn: 2.1.0@@ -22588,51 +22456,6 @@ snapshots:- dependencies:- readable-stream: 4.5.2- split2: 4.2.0-- dependencies:- get-caller-file: 2.0.5- pino: 9.2.0- pino-std-serializers: 7.0.0- process-warning: 3.0.0-- dependencies:- colorette: 2.0.20- dateformat: 4.6.3- fast-copy: 3.0.2- fast-safe-stringify: 2.1.1- help-me: 5.0.0- joycon: 3.1.1- minimist: 1.2.8- on-exit-leak-free: 2.1.2- pino-abstract-transport: 1.2.0- pump: 3.0.0- readable-stream: 4.5.2- secure-json-parse: 2.7.0- sonic-boom: 4.0.1- strip-json-comments: 3.1.1-- [email protected]: {}-- dependencies:- atomic-sleep: 1.0.0- fast-redact: 3.5.0- on-exit-leak-free: 2.1.2- pino-abstract-transport: 1.2.0- pino-std-serializers: 7.0.0- process-warning: 3.0.0- quick-format-unescaped: 4.0.4- real-require: 0.2.0- safe-stable-stringify: 2.4.3- sonic-boom: 4.0.1- thread-stream: 3.1.0-@@ -22830,10 +22653,6 @@ snapshots:- [email protected]: {}-- [email protected]: {}-@@ -22966,8 +22785,6 @@ snapshots:- [email protected]: {}-@@ -23169,14 +22986,6 @@ snapshots:string_decoder: 1.3.0util-deprecate: 1.0.2- dependencies:- abort-controller: 3.0.0- buffer: 6.0.3- events: 3.3.0- process: 0.11.10- string_decoder: 1.3.0-dependencies:minimatch: 5.1.6@@ -23185,8 +22994,6 @@ snapshots:dependencies:picomatch: 2.3.1- [email protected]: {}-dependencies:decimal.js-light: 2.5.1@@ -23529,10 +23336,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- type-fest: 0.20.2-dependencies:randombytes: 2.1.0@@ -23605,6 +23408,10 @@ snapshots:+ dependencies:+ is-arrayish: 0.3.2+dependencies:semver: 7.6.3@@ -23649,10 +23456,6 @@ snapshots:solid-js: 1.8.18swr-store: 0.10.6- dependencies:- atomic-sleep: 1.0.0-dependencies:react: 18.2.0@@ -24046,6 +23849,8 @@ snapshots:glob: 7.2.3minimatch: 3.1.2+ [email protected]: {}+@@ -24056,10 +23861,6 @@ snapshots:dependencies:any-promise: 1.3.0- dependencies:- real-require: 0.2.0-@@ -24118,6 +23919,8 @@ snapshots:+ [email protected]: {}+@@ -24508,13 +24311,13 @@ snapshots:d3-time: 3.1.0d3-timer: 3.0.1- [email protected](@types/[email protected]):dependencies:cac: 6.7.14debug: 4.3.5([email protected])pathe: 1.1.2picocolors: 1.0.1- vite: 5.2.13(@types/[email protected])+ vite: 5.2.13(@types/[email protected])([email protected])transitivePeerDependencies:- '@types/node'- less@@ -24543,7 +24346,25 @@ snapshots:- supports-color- terser- [email protected](@types/[email protected]):+ dependencies:+ cac: 6.7.14+ debug: 4.3.5([email protected])+ pathe: 1.1.2+ picocolors: 1.0.1+ vite: 5.2.13(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - less+ - lightningcss+ - sass+ - stylus+ - sugarss+ - supports-color+ - terser+ optional: true+dependencies:esbuild: 0.20.2postcss: 8.4.41@@ -24551,6 +24372,7 @@ snapshots:optionalDependencies:'@types/node': 20.10.5fsevents: 2.3.3+ terser: 5.31.6optional: true@@ -24563,7 +24385,18 @@ snapshots:fsevents: 2.3.3terser: 5.31.6- [email protected](@types/[email protected]):+ dependencies:+ esbuild: 0.20.2+ postcss: 8.4.41+ rollup: 4.13.0+ optionalDependencies:+ '@types/node': 20.14.8+ fsevents: 2.3.3+ terser: 5.31.6+ optional: true+dependencies:esbuild: 0.20.2postcss: 8.4.38@@ -24571,6 +24404,7 @@ snapshots:optionalDependencies:'@types/node': 20.10.5fsevents: 2.3.3+ terser: 5.31.6optional: true@@ -24583,7 +24417,18 @@ snapshots:fsevents: 2.3.3terser: 5.31.6+ dependencies:+ esbuild: 0.20.2+ postcss: 8.4.38+ rollup: 4.13.0+ optionalDependencies:+ '@types/node': 20.14.8+ fsevents: 2.3.3+ terser: 5.31.6+ optional: true+dependencies:'@vitest/expect': 1.5.3'@vitest/runner': 1.5.3@@ -24602,8 +24447,8 @@ snapshots:strip-literal: 2.0.0tinybench: 2.6.0tinypool: 0.8.4- vite: 5.2.11(@types/[email protected])- vite-node: 1.5.3(@types/[email protected])+ vite: 5.2.11(@types/[email protected])([email protected])+ vite-node: 1.5.3(@types/[email protected])([email protected])why-is-node-running: 2.2.2optionalDependencies:'@types/node': 20.10.5@@ -24652,6 +24497,41 @@ snapshots:- supports-color- terser+ dependencies:+ '@vitest/expect': 1.5.3+ '@vitest/runner': 1.5.3+ '@vitest/snapshot': 1.5.3+ '@vitest/spy': 1.5.3+ '@vitest/utils': 1.5.3+ acorn-walk: 8.3.2+ chai: 4.4.1+ debug: 4.3.4+ execa: 8.0.1+ local-pkg: 0.5.0+ magic-string: 0.30.10+ pathe: 1.1.2+ picocolors: 1.0.0+ std-env: 3.7.0+ strip-literal: 2.0.0+ tinybench: 2.6.0+ tinypool: 0.8.4+ vite: 5.2.11(@types/[email protected])([email protected])+ vite-node: 1.5.3(@types/[email protected])([email protected])+ why-is-node-running: 2.2.2+ optionalDependencies:+ '@types/node': 20.14.8+ jsdom: 20.0.3+ transitivePeerDependencies:+ - less+ - lightningcss+ - sass+ - stylus+ - sugarss+ - supports-color+ - terser+ optional: true+dependencies:'@vue/compiler-dom': 3.4.27@@ -24801,6 +24681,26 @@ snapshots:dependencies:execa: 5.1.1+ dependencies:+ logform: 2.6.1+ readable-stream: 3.6.2+ triple-beam: 1.4.1++ dependencies:+ '@colors/colors': 1.6.0+ '@dabh/diagnostics': 2.0.3+ async: 3.2.5+ is-stream: 2.0.1+ logform: 2.6.1+ one-time: 1.0.0+ readable-stream: 3.6.2+ safe-stable-stringify: 2.4.3+ stack-trace: 0.0.10+ triple-beam: 1.4.1+ winston-transport: 4.7.1+diff --git a/web/package.json b/web/package.jsonindex d2f16e26ad..bbe3946405 100644--- a/web/package.json+++ b/web/package.json@@ -46,6 +46,7 @@"@opentelemetry/instrumentation": "^0.52.1","@opentelemetry/instrumentation-http": "^0.52.1","@opentelemetry/instrumentation-ioredis": "^0.42.0",+ "@opentelemetry/instrumentation-winston": "^0.40.0","@opentelemetry/instrumentation-undici": "^0.4.0","@opentelemetry/resources": "^1.25.1","@opentelemetry/sdk-metrics": "1.23.0",@@ -156,8 +157,8 @@"@types/jest": "^29.5.12","@types/lodash": "^4.17.7","@types/node": "20.10.5",- "@types/react": "^18.2.79",- "@types/react-dom": "^18.2.25",+ "@types/react": "~18.2.79",+ "@types/react-dom": "~18.2.25","@types/react-syntax-highlighter": "^15.5.13","@types/uuid": "^9.0.8","@typescript-eslint/eslint-plugin": "^6.21.0",diff --git a/web/src/datadog.server.config.ts b/web/src/datadog.server.config.tsindex ec317bc865..bf0aa3a539 100644--- a/web/src/datadog.server.config.ts+++ b/web/src/datadog.server.config.ts@@ -8,9 +8,11 @@ import dd from "dd-trace";import opentelemetry from "@opentelemetry/api";// import { BullMQInstrumentation } from "@appsignal/opentelemetry-instrumentation-bullmq";import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici";+import { logger } from "@langfuse/shared/src/server";+import { WinstonInstrumentation } from "@opentelemetry/instrumentation-winston";if (!process.env.VERCEL && process.env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION) {- console.log("Initializing otel tracing");+ logger.info("Initializing otel tracing");const contextManager = new AsyncHooksContextManager().enable();opentelemetry.context.setGlobalContextManager(contextManager);@@ -51,6 +53,7 @@ if (!process.env.VERCEL && process.env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION) {new IORedisInstrumentation(),new HttpInstrumentation(),new PrismaInstrumentation(),+ new WinstonInstrumentation({ disableLogSending: true }),getNodeAutoInstrumentations(),new UndiciInstrumentation(),// new BullMQInstrumentation(),diff --git a/web/src/pages/api/public/health.ts b/web/src/pages/api/public/health.tsindex a1a93ec289..71950c5f9b 100644--- a/web/src/pages/api/public/health.ts+++ b/web/src/pages/api/public/health.ts@@ -2,7 +2,7 @@ import { VERSION } from "@/src/constants";import { cors, runMiddleware } from "@/src/features/public-api/server/cors";import { telemetry } from "@/src/features/telemetry";import { prisma } from "@langfuse/shared/src/db";-import { traceException } from "@langfuse/shared/src/server";+import { logger, traceException } from "@langfuse/shared/src/server";import { type NextApiRequest, type NextApiResponse } from "next";export default async function handler(@@ -55,7 +55,7 @@ export default async function handler(}}} catch (e) {- console.log("Health check failed: db not available", e);+ logger.error("Health check failed: db not available", e);traceException(e);return res.status(503).json({status: "Database not available",@@ -64,7 +64,7 @@ export default async function handler(}} catch (e) {traceException(e);- console.log("Health check failed: ", e);+ logger.error("Health check failed: ", e);return res.status(503).json({status: "Health check failed",version: VERSION.replace("v", ""),diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.tsindex ce1fa55dfa..c411c4b6f8 100644--- a/web/src/pages/api/public/ingestion.ts+++ b/web/src/pages/api/public/ingestion.ts@@ -7,6 +7,7 @@ import {ingestionEvent,traceException,redis,+ logger,type AuthHeaderValidVerificationResult,type ingestionBatchEvent,handleBatch,@@ -109,7 +110,7 @@ export default async function handler(: undefined;if (!parsedSchema.success) {- console.log("Invalid request data", parsedSchema.error);+ logger.info("Invalid request data", parsedSchema.error);return res.status(400).json({message: "Invalid request data",errors: parsedSchema.error.issues.map((issue) => issue.message),@@ -176,7 +177,7 @@ export default async function handler(},);} catch (e: unknown) {- console.warn(+ logger.warn("Failed to add batch to queue, falling back to sync processing",e,);@@ -197,7 +198,7 @@ export default async function handler();}} else {- console.error(+ logger.error("Ingestion queue not initialized, falling back to sync processing",);}@@ -219,7 +220,7 @@ export default async function handler();} catch (error: unknown) {if (!(error instanceof UnauthorizedError)) {- console.error("error_handling_ingestion_event", error);+ logger.error("error_handling_ingestion_event", error);traceException(error);}@@ -236,7 +237,7 @@ export default async function handler(});}if (error instanceof z.ZodError) {- console.log(`Zod exception`, error.errors);+ logger.info(`Zod exception`, error.errors);return res.status(400).json({message: "Invalid request data",error: error.errors,@@ -383,7 +384,7 @@ export const handleBatchResult = (if (returnedErrors.length > 0) {traceException(errors);- console.log("Error processing events", returnedErrors);+ logger.info("Error processing events", returnedErrors);}results.forEach((result) => {@@ -464,7 +465,7 @@ export const parseSingleTypedIngestionApiResponse = <T extends z.ZodTypeAny>(const parsedObj = object.safeParse(results[0].result);if (!parsedObj.success) {- console.error("Error parsing response", parsedObj.error);+ logger.error("Error parsing response", parsedObj.error);traceException(parsedObj.error);}// should not fail in prod but just log an exception, see abovediff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex 58fbf04d6d..96c3b204d9 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -35,6 +35,7 @@ import {traceException,sendResetPasswordVerificationRequest,instrumentAsync,+ logger,} from "@langfuse/shared/src/server";import { getOrganizationPlan } from "@/src/features/entitlements/server/getOrganizationPlan";import { projectRoleAccessRights } from "@/src/features/rbac/constants/projectAccessRights";@@ -292,7 +293,7 @@ export async function getAuthOptions(): Promise<NextAuthOptions> {try {dynamicSsoProviders = await loadSsoProviders();} catch (e) {- console.error("Error loading dynamic SSO providers", e);+ logger.error("Error loading dynamic SSO providers", e);traceException(e);}const providers = [...staticProviders, ...dynamicSsoProviders];@@ -406,11 +407,11 @@ export async function getAuthOptions(): Promise<NextAuthOptions> {// Block sign in without valid user.emailconst email = user.email?.toLowerCase();if (!email) {- console.error("No email found in user object");+ logger.error("No email found in user object");throw new Error("No email found in user object");}if (z.string().email().safeParse(email).success === false) {- console.error("Invalid email found in user object");+ logger.error("Invalid email found in user object");throw new Error("Invalid email found in user object");}diff --git a/worker/package.json b/worker/package.jsonindex 21843be4a0..c1e21e3699 100644--- a/worker/package.json+++ b/worker/package.json@@ -22,7 +22,6 @@"@appsignal/opentelemetry-instrumentation-bullmq": "^0.7.1","@clickhouse/client": "^1.4.0","@langfuse/shared": "workspace:*",- "@logtail/pino": "^0.5.0","@opentelemetry/api": "^1.8.0","@opentelemetry/auto-instrumentations-node": "^0.44.0","@opentelemetry/context-async-hooks": "^1.25.1",@@ -30,8 +29,8 @@"@opentelemetry/instrumentation-express": "^0.41.1","@opentelemetry/instrumentation-http": "^0.52.1","@opentelemetry/instrumentation-ioredis": "^0.42.0",- "@opentelemetry/instrumentation-pino": "^0.41.0","@opentelemetry/instrumentation-undici": "^0.4.0",+ "@opentelemetry/instrumentation-winston": "^0.40.0","@prisma/instrumentation": "^5.13.0","backoff": "^2.5.0","bullmq": "^5.12.10",@@ -48,9 +47,6 @@"kysely": "^0.27.4","lodash": "^4.17.21","pg": "^8.11.5",- "pino": "^9.2.0",- "pino-http": "^10.2.0",- "pino-pretty": "^11.2.2","stripe": "^16.8.0","tiktoken": "^1.0.15","uuid": "^9.0.1",diff --git a/worker/src/__tests__/eval-service.test.ts b/worker/src/__tests__/eval-service.test.tsindex 072a144be6..eee457bbf2 100644--- a/worker/src/__tests__/eval-service.test.ts+++ b/worker/src/__tests__/eval-service.test.ts@@ -17,14 +17,14 @@ import {import { encrypt } from "@langfuse/shared/encryption";import { OpenAIServer } from "./network";import { afterEach } from "node:test";-import { getEvalQueue } from "../queues/evalQueue";+import { logger } from "@langfuse/shared/src/server";vi.mock("../redis/consumer", () => ({evalQueue: {add: vi.fn().mockImplementation((jobName, jobData) => {- console.log(+ logger.info(`Mock evalQueue.add called with jobName: ${jobName} and jobData:`,- jobData+ jobData,);// Simulate the job being processed immediately by calling the job's processing function// Note: You would replace `processJobFunction` with the actual function that processes the job@@ -391,9 +391,6 @@ describe("create eval jobs", () => {expect(jobs.length).toBe(1);expect(jobs[0].project_id).toBe("7a88fb47-b4e2-43b8-a06c-a5ce950dc53a");expect(jobs[0].job_input_trace_id).toBe(traceId);- console.log(jobs[0]);- const j = await getEvalQueue()?.getJob(jobs[0].id);- console.log(j);expect(jobs[0].status.toString()).toBe("CANCELLED");expect(jobs[0].start_time).not.toBeNull();expect(jobs[0].end_time).not.toBeNull();@@ -594,8 +591,8 @@ describe("execute evals", () => {await expect(evaluate({ event: payload })).rejects.toThrowError(new LangfuseNotFoundError(- "API key for provider openai and project 7a88fb47-b4e2-43b8-a06c-a5ce950dc53a not found."- )+ "API key for provider openai and project 7a88fb47-b4e2-43b8-a06c-a5ce950dc53a not found.",+ ),);const jobs = await kyselyPrisma.$kysely@@ -730,7 +727,7 @@ describe("test variable extraction", () => {"7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",["input", "output"],traceId,- variableMapping+ variableMapping,);expect(result).toEqual([@@ -792,7 +789,7 @@ describe("test variable extraction", () => {"7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",["input", "output"],traceId,- variableMapping+ variableMapping,);expect(result).toEqual([@@ -842,12 +839,12 @@ describe("test variable extraction", () => {"7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",["input", "output"],traceId,- variableMapping- )+ variableMapping,+ ),).rejects.toThrowError(new LangfuseNotFoundError(- `Observation great-llm-name for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`- )+ `Observation great-llm-name for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`,+ ),);}, 10_000);@@ -897,7 +894,7 @@ describe("test variable extraction", () => {"7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",["input", "output"],traceId,- variableMapping+ variableMapping,);expect(result).toEqual([@@ -973,7 +970,7 @@ describe("test variable extraction", () => {"7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",["input", "output"],traceId,- variableMapping+ variableMapping,);expect(result).toEqual([diff --git a/worker/src/__tests__/network.ts b/worker/src/__tests__/network.tsindex 86ddfa3f45..ac44a22378 100644--- a/worker/src/__tests__/network.ts+++ b/worker/src/__tests__/network.ts@@ -1,5 +1,6 @@import { setupServer } from "msw/node";import { HttpResponse, http } from "msw";+import { logger } from "@langfuse/shared/src/server";const DEFAULT_RESPONSE = {id: "chatcmpl-9MhZ73aGSmhfAtjU9DwoL4om73hJ7",@@ -32,7 +33,7 @@ const DEFAULT_RESPONSE = {function CompletionHandler(response: HttpResponse) {return http.post("https://api.openai.com/v1/chat/completions", async () => {- console.log("handler");+ logger.info("handler");return response;});}@@ -46,7 +47,7 @@ function ErrorCompletionHandler(status: number, statusText: string) {new HttpResponse(null, {status,statusText,- })+ }),);}@@ -64,15 +65,15 @@ export class OpenAIServer {hasActiveKey?: boolean;useDefaultResponse?: boolean;}) {- console.log("openai", { hasActiveKey, useDefaultResponse });+ logger.info("openai", { hasActiveKey, useDefaultResponse });this.hasActiveKey = hasActiveKey;this.internalServer = setupServer(- ...(useDefaultResponse ? [JsonCompletionHandler(DEFAULT_RESPONSE)] : [])+ ...(useDefaultResponse ? [JsonCompletionHandler(DEFAULT_RESPONSE)] : []),);if (hasActiveKey) {this.internalServer.events.on("response:bypass", async ({ response }) => {- console.log(response);+ logger.info(response);});}diff --git a/worker/src/__tests__/utils.ts b/worker/src/__tests__/utils.tsindex a8ba245256..ee0594abd4 100644--- a/worker/src/__tests__/utils.ts+++ b/worker/src/__tests__/utils.ts@@ -1,8 +1,7 @@import { prisma } from "@langfuse/shared/src/db";import { env } from "../env";-import logger from "../logger";-+import { logger } from "@langfuse/shared/src/server";export const pruneDatabase = async () => {if (!env.DATABASE_URL.includes("localhost:5432")) {throw new Error("You cannot prune database unless running on localhost.");diff --git a/worker/src/api/index.ts b/worker/src/api/index.tsindex 3138d35d6c..b29d0a20d3 100644--- a/worker/src/api/index.ts+++ b/worker/src/api/index.ts@@ -13,8 +13,7 @@ import {import { env } from "../env";import { checkContainerHealth } from "../features/health";-import logger from "../logger";-+import { logger } from "@langfuse/shared/src/server";const router = express.Router();type EventsResponse = {@@ -26,7 +25,7 @@ router.get<{}, { status: string }>("/health", async (_req, res) => {await checkContainerHealth(res, false);} catch (e) {traceException(e);- logger.error(e, "Health check failed");+ logger.error("Health check failed", e);res.status(500).json({status: "error",});@@ -38,7 +37,7 @@ router.get<{}, { status: string }>("/ready", async (_req, res) => {await checkContainerHealth(res, true);} catch (e) {traceException(e);- logger.error(e, "Readiness check failed");+ logger.error("Readiness check failed", e);res.status(500).json({status: "error",});@@ -65,11 +64,11 @@ routerres.json({ status: "success" });} catch (e) {- logger.error(e, "Clickhouse health check failed");+ logger.error("Clickhouse health check failed", e);res.status(500).json({ status: "error", message: JSON.stringify(e) });}} catch (e) {- logger.error(e, "Unexpected error during Clickhouse health check");+ logger.error("Unexpected error during Clickhouse health check", e);res.status(500).json({ status: "error", message: JSON.stringify(e) });}});@@ -129,7 +128,7 @@ routerreturn res.status(400).send();} catch (e) {- logger.error(e, "Error processing events");+ logger.error("Error processing events", e);traceException(e);return res.status(500).json({status: "error",diff --git a/worker/src/ee/cloudUsageMetering/handleCloudUsageMeteringJob.ts b/worker/src/ee/cloudUsageMetering/handleCloudUsageMeteringJob.tsindex fa162868c9..a61476c73d 100644--- a/worker/src/ee/cloudUsageMetering/handleCloudUsageMeteringJob.ts+++ b/worker/src/ee/cloudUsageMetering/handleCloudUsageMeteringJob.ts@@ -2,7 +2,7 @@ import { parseDbOrg, Prisma } from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";import Stripe from "stripe";import { env } from "../../env";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import {cloudUsageMeteringDbCronJobName,CloudUsageMeteringDbCronJobStates,@@ -36,7 +36,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {}if (cron.lastRun.getTime() % 3600000 !== 0) {throw new Error(- "Cloud Usage Metering Cron Job last run is not on the full hour"+ "Cloud Usage Metering Cron Job last run is not on the full hour",);}if (cron.lastRun.getTime() + delayFromStartOfInterval > Date.now()) {@@ -50,7 +50,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {cron.jobStartedAt < new Date(Date.now() - 1200000)) {logger.warn(- "Last cloud usage metering job started at is older than 20 minutes, retrying job"+ "Last cloud usage metering job started at is older than 20 minutes, retrying job",);} else {logger.warn("Cloud Usage Metering Job already in progress");@@ -70,7 +70,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {const meterIntervalStart = cron.lastRun;const meterIntervalEnd = new Date(cron.lastRun.getTime() + 3600000);logger.info(- `Cloud Usage Metering Job running for interval ${meterIntervalStart.toISOString()} - ${meterIntervalEnd.toISOString()}`+ `Cloud Usage Metering Job running for interval ${meterIntervalStart.toISOString()} - ${meterIntervalEnd.toISOString()}`,);// find all organizations which have a stripe org id set up@@ -85,7 +85,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {})).map(parseDbOrg);logger.info(- `Cloud Usage Metering Job for ${organizations.length} organizations`+ `Cloud Usage Metering Job for ${organizations.length} organizations`,);// setup stripe client@@ -118,7 +118,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {},});logger.info(- `Cloud Usage Metering Job for org ${org.id} - ${stripeCustomerId} stripe customer id - ${countObservations} observations`+ `Cloud Usage Metering Job for org ${org.id} - ${stripeCustomerId} stripe customer id - ${countObservations} observations`,);if (countObservations > 0) {@@ -144,7 +144,7 @@ export const handleCloudUsageMeteringJob = async (job: Job) => {countProcessedObservations,{unit: "observations",- }+ },);// update cron jobdiff --git a/worker/src/env.ts b/worker/src/env.tsindex fd8cd02e2f..b14c257190 100644--- a/worker/src/env.ts+++ b/worker/src/env.ts@@ -42,9 +42,6 @@ const EnvSchema = z.object({.number().positive().default(3),- LANGFUSE_LOG_LEVEL: z- .enum(["trace", "debug", "info", "warn", "error", "fatal"])- .optional(),REDIS_HOST: z.string().nullish(),REDIS_PORT: z.coerce.number({@@ -61,7 +58,6 @@ const EnvSchema = z.object({CLICKHOUSE_URL: z.string().url().optional(),CLICKHOUSE_USER: z.string().optional(),CLICKHOUSE_PASSWORD: z.string().optional(),- LANGFUSE_WORKER_BETTERSTACK_TOKEN: z.string().optional(),LANGFUSE_LEGACY_INGESTION_WORKER_CONCURRENCY: z.coerce.number().positive()diff --git a/worker/src/features/batchExport/enqueueBatchExportJobs.ts b/worker/src/features/batchExport/enqueueBatchExportJobs.tsindex a0dc9881fd..c99e916e57 100644--- a/worker/src/features/batchExport/enqueueBatchExportJobs.ts+++ b/worker/src/features/batchExport/enqueueBatchExportJobs.ts@@ -1,6 +1,6 @@import { BatchExportStatus } from "@langfuse/shared";import { kyselyPrisma } from "@langfuse/shared/src/db";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import {traceException,getBatchExportQueue,@@ -35,7 +35,7 @@ export async function enqueueBatchExportJobs() {projectId: job.project_id,},},- }) as const+ }) as const,);await queue.addBulk(newJobs);@@ -44,7 +44,7 @@ export async function enqueueBatchExportJobs() {} catch (error) {logger.error("Error while checking for QUEUED batch export jobs in postgres",- error+ error,);traceException(error);}diff --git a/worker/src/features/batchExport/handleBatchExportJob.ts b/worker/src/features/batchExport/handleBatchExportJob.tsindex 4016712d96..f13a9207d6 100644--- a/worker/src/features/batchExport/handleBatchExportJob.ts+++ b/worker/src/features/batchExport/handleBatchExportJob.ts@@ -19,10 +19,9 @@ import {} from "@langfuse/shared/src/server";import { env } from "../../env";-import logger from "../../logger";-+import { logger } from "@langfuse/shared/src/server";export const handleBatchExportJob = async (- batchExportJob: BatchExportJobType+ batchExportJob: BatchExportJobType,) => {const { projectId, batchExportId } = batchExportJob;@@ -96,7 +95,7 @@ export const handleBatchExportJob = async (orderBy,limit: pageSize,page: Math.floor(offset / pageSize),- }+ },);const chunk = await prisma.$queryRaw<unknown[]>(query);@@ -104,7 +103,7 @@ export const handleBatchExportJob = async (return chunk;},1000,- env.BATCH_EXPORT_ROW_LIMIT+ env.BATCH_EXPORT_ROW_LIMIT,);// Transform data to desired format@@ -113,9 +112,9 @@ export const handleBatchExportJob = async (streamTransformations[jobDetails.format as BatchExportFileFormat](),(err) => {if (err) {- console.error("Getting data from DB and transform failed: ", err);+ logger.error("Getting data from DB and transform failed: ", err);}- }+ },);// Stream upload results to S3diff --git a/worker/src/features/evaluation/eval-service.ts b/worker/src/features/evaluation/eval-service.tsindex fb62f8c04e..a792d36626 100644--- a/worker/src/features/evaluation/eval-service.ts+++ b/worker/src/features/evaluation/eval-service.ts@@ -27,7 +27,7 @@ import {import { decrypt } from "@langfuse/shared/encryption";import { kyselyPrisma, prisma } from "@langfuse/shared/src/db";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import { getEvalQueue } from "../../queues/evalQueue";// this function is used to determine which eval jobs to create for a given trace@@ -49,7 +49,7 @@ export const createEvalJobs = async ({return;}logger.info(- `Creating eval jobs for trace ${event.traceId} on project ${event.projectId}`+ `Creating eval jobs for trace ${event.traceId} on project ${event.projectId}`,);for (const config of configs) {@@ -64,7 +64,7 @@ export const createEvalJobs = async ({const condition = tableColumnsToSqlFilterAndPrefix(validatedFilter,evalTableCols,- "traces"+ "traces",);const joinedQuery = Prisma.sql`@@ -88,7 +88,7 @@ export const createEvalJobs = async ({// if we matched a trace, we might want to create a jobif (traces.length > 0) {logger.info(- `Eval job for config ${config.id} matched trace ids ${JSON.stringify(traces.map((t) => t.id))}`+ `Eval job for config ${config.id} matched trace ids ${JSON.stringify(traces.map((t) => t.id))}`,);const jobExecutionId = randomUUID();@@ -96,7 +96,7 @@ export const createEvalJobs = async ({// deduplication: if a job exists already for a trace event, we do not create a new one.if (existingJob.length > 0) {logger.info(- `Eval job for config ${config.id} and trace ${event.traceId} already exists`+ `Eval job for config ${config.id} and trace ${event.traceId} already exists`,);continue;}@@ -108,14 +108,14 @@ export const createEvalJobs = async ({const random = Math.random();if (random > parseFloat(config.sampling)) {logger.info(- `Eval job for config ${config.id} and trace ${event.traceId} was sampled out`+ `Eval job for config ${config.id} and trace ${event.traceId} was sampled out`,);continue;}}logger.info(- `Creating eval job for config ${config.id} and trace ${event.traceId}`+ `Creating eval job for config ${config.id} and trace ${event.traceId}`,);await prisma.jobExecution.create({@@ -150,7 +150,7 @@ export const createEvalJobs = async ({delay: config.delay, // millisecondsremoveOnComplete: true,removeOnFail: 1_000,- }+ },);} else {// if we do not have a match, and execution exists, we mark the job as cancelled@@ -158,7 +158,7 @@ export const createEvalJobs = async ({logger.info(`Eval job for config ${config.id} did not match trace`);if (existingJob.length > 0) {logger.info(- `Cancelling eval job for config ${config.id} and trace ${event.traceId}`+ `Cancelling eval job for config ${config.id} and trace ${event.traceId}`,);await kyselyPrisma.$kysely.updateTable("job_executions")@@ -178,7 +178,7 @@ export const evaluate = async ({event: z.infer<typeof EvalExecutionEvent>;}) => {logger.info(- `Evaluating job ${event.jobExecutionId} for project ${event.projectId}`+ `Evaluating job ${event.jobExecutionId} for project ${event.projectId}`,);// first, fetch all the context required for the evaluationconst job = await kyselyPrisma.$kysely@@ -219,12 +219,12 @@ export const evaluate = async ({.executeTakeFirstOrThrow();logger.info(- `Evaluating job ${job.id} for project ${event.projectId} with template ${template.id}. Searching for context...`+ `Evaluating job ${job.id} for project ${event.projectId} with template ${template.id}. Searching for context...`,);// selectedcolumnid is not safe to use, needs validation in extractVariablesFromTrace()const parsedVariableMapping = variableMappingList.parse(- config.variable_mapping+ config.variable_mapping,);// extract the variables which need to be inserted into the prompt@@ -232,22 +232,22 @@ export const evaluate = async ({event.projectId,template.vars,job.job_input_trace_id,- parsedVariableMapping+ parsedVariableMapping,);logger.info(- `Evaluating job ${event.jobExecutionId} extracted variables ${JSON.stringify(mappingResult)} `+ `Evaluating job ${event.jobExecutionId} extracted variables ${JSON.stringify(mappingResult)} `,);// compile the prompt and send out the LLM requestconst prompt = compileHandlebarString(template.prompt, {...Object.fromEntries(- mappingResult.map(({ var: key, value }) => [key, value])+ mappingResult.map(({ var: key, value }) => [key, value]),),});logger.info(- `Evaluating job ${event.jobExecutionId} compiled prompt ${prompt}`+ `Evaluating job ${event.jobExecutionId} compiled prompt ${prompt}`,);const parsedOutputSchema = z@@ -280,10 +280,10 @@ export const evaluate = async ({if (!parsedKey.success) {// this will fail the eval execution if a user deletes the API key.logger.error(- `Evaluating job ${event.jobExecutionId} did not find API key for provider ${template.provider} and project ${event.projectId}. Eval will fail. ${parsedKey.error}`+ `Evaluating job ${event.jobExecutionId} did not find API key for provider ${template.provider} and project ${event.projectId}. Eval will fail. ${parsedKey.error}`,);throw new LangfuseNotFoundError(- `API key for provider ${template.provider} and project ${event.projectId} not found.`+ `API key for provider ${template.provider} and project ${event.projectId} not found.`,);}@@ -313,7 +313,7 @@ export const evaluate = async ({const parsedLLMOutput = openAIFunction.parse(completion);logger.info(- `Evaluating job ${event.jobExecutionId} Parsed LLM output ${JSON.stringify(parsedLLMOutput)}`+ `Evaluating job ${event.jobExecutionId} Parsed LLM output ${JSON.stringify(parsedLLMOutput)}`,);// persist the score and update the job status@@ -332,7 +332,7 @@ export const evaluate = async ({});logger.info(- `Evaluating job ${event.jobExecutionId} persisted score ${scoreId} for trace ${job.job_input_trace_id}`+ `Evaluating job ${event.jobExecutionId} persisted score ${scoreId} for trace ${job.job_input_trace_id}`,);await kyselyPrisma.$kysely@@ -344,13 +344,13 @@ export const evaluate = async ({.execute();logger.info(- `Eval job ${job.id} for project ${event.projectId} completed with score ${parsedLLMOutput.score}`+ `Eval job ${job.id} for project ${event.projectId} completed with score ${parsedLLMOutput.score}`,);};export function compileHandlebarString(handlebarString: string,- context: Record<string, any>+ context: Record<string, any>,): string {const template = Handlebars.compile(handlebarString, { noEscape: true });return template(context);@@ -361,14 +361,14 @@ export async function extractVariablesFromTrace(variables: string[],traceId: string,// this here are variables which were inserted by users. Need to validate before DB query.- variableMapping: z.infer<typeof variableMappingList>+ variableMapping: z.infer<typeof variableMappingList>,) {const mappingResult: { var: string; value: string }[] = [];// find the context for each variable of the templatefor (const variable of variables) {const mapping = variableMapping.find(- (m) => m.templateVariable === variable+ (m) => m.templateVariable === variable,);if (!mapping) {@@ -386,7 +386,7 @@ export async function extractVariablesFromTrace(// if no column was found, we still process with an empty variableif (!safeInternalColumn?.id) {logger.error(- `No column found for variable ${variable} and column ${mapping.selectedColumnId}`+ `No column found for variable ${variable} and column ${mapping.selectedColumnId}`,);mappingResult.push({ var: variable, value: "" });continue;@@ -395,7 +395,9 @@ export async function extractVariablesFromTrace(const trace = await kyselyPrisma.$kysely.selectFrom("traces as t").select(- sql`${sql.raw(safeInternalColumn.internal)}`.as(safeInternalColumn.id)+ sql`${sql.raw(safeInternalColumn.internal)}`.as(+ safeInternalColumn.id,+ ),) // query the internal column name raw.where("id", "=", traceId).where("project_id", "=", projectId)@@ -404,10 +406,10 @@ export async function extractVariablesFromTrace(// user facing errorsif (!trace) {logger.error(- `Trace ${traceId} for project ${projectId} not found. Eval will succeed without trace input. Please ensure the mapped data on the trace exists and consider extending the job delay.`+ `Trace ${traceId} for project ${projectId} not found. Eval will succeed without trace input. Please ensure the mapped data on the trace exists and consider extending the job delay.`,);throw new LangfuseNotFoundError(- `Trace ${traceId} for project ${projectId} not found. Eval will succeed without trace input. Please ensure the mapped data on the trace exists and consider extending the job delay.`+ `Trace ${traceId} for project ${projectId} not found. Eval will succeed without trace input. Please ensure the mapped data on the trace exists and consider extending the job delay.`,);}@@ -423,7 +425,7 @@ export async function extractVariablesFromTrace(if (!mapping.objectName) {logger.info(- `No object name found for variable ${variable} and object ${mapping.langfuseObject}`+ `No object name found for variable ${variable} and object ${mapping.langfuseObject}`,);mappingResult.push({ var: variable, value: "" });continue;@@ -431,7 +433,7 @@ export async function extractVariablesFromTrace(if (!safeInternalColumn?.id) {logger.warn(- `No column found for variable ${variable} and column ${mapping.selectedColumnId}`+ `No column found for variable ${variable} and column ${mapping.selectedColumnId}`,);mappingResult.push({ var: variable, value: "" });continue;@@ -440,7 +442,9 @@ export async function extractVariablesFromTrace(const observation = await kyselyPrisma.$kysely.selectFrom("observations as o").select(- sql`${sql.raw(safeInternalColumn.internal)}`.as(safeInternalColumn.id)+ sql`${sql.raw(safeInternalColumn.internal)}`.as(+ safeInternalColumn.id,+ ),) // query the internal column name raw.where("trace_id", "=", traceId).where("project_id", "=", projectId)@@ -451,10 +455,10 @@ export async function extractVariablesFromTrace(// user facing errorsif (!observation) {logger.error(- `Observation ${mapping.objectName} for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`+ `Observation ${mapping.objectName} for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`,);throw new LangfuseNotFoundError(- `Observation ${mapping.objectName} for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`+ `Observation ${mapping.objectName} for trace ${traceId} not found. Please ensure the mapped data exists and consider extending the job delay.`,);}diff --git a/worker/src/features/health/index.ts b/worker/src/features/health/index.tsindex 241911ce51..f1480e6b74 100644--- a/worker/src/features/health/index.ts+++ b/worker/src/features/health/index.ts@@ -1,7 +1,6 @@import { prisma } from "@langfuse/shared/src/db";-import { redis } from "@langfuse/shared/src/server";+import { logger, redis } from "@langfuse/shared/src/server";import { Response } from "express";-import logger from "../../logger";/*** Check the health of the container.diff --git a/worker/src/features/tokenisation/usage.ts b/worker/src/features/tokenisation/usage.tsindex 7e3a641be7..12bcae9d1f 100644--- a/worker/src/features/tokenisation/usage.ts+++ b/worker/src/features/tokenisation/usage.ts@@ -10,7 +10,7 @@ import {} from "tiktoken";import { z } from "zod";-import { instrumentSync } from "@langfuse/shared/src/server";+import { instrumentSync, logger } from "@langfuse/shared/src/server";const OpenAiTokenConfig = z.object({tokenizerModel: z.string().refine(isTiktokenModel, {@@ -54,12 +54,12 @@ export function tokenCount(p: {return claudeTokenCount(p.text);} else {if (p.model.tokenizerId) {- console.error(`Unknown tokenizer ${p.model.tokenizerId}`);+ logger.error(`Unknown tokenizer ${p.model.tokenizerId}`);}return undefined;}- }+ },);}@@ -72,10 +72,10 @@ type ChatMessage = {function openAiTokenCount(p: { model: Model; text: unknown }) {const config = OpenAiTokenConfig.safeParse(p.model.tokenizerConfig);if (!config.success) {- console.error(+ logger.error(`Invalid tokenizer config for model ${p.model.id}: ${JSON.stringify(- p.model.tokenizerConfig- )}, ${JSON.stringify(config.error)}`+ p.model.tokenizerConfig,+ )}, ${JSON.stringify(config.error)}`,);return undefined;}@@ -90,13 +90,13 @@ function openAiTokenCount(p: { model: Model; text: unknown }) {) {// check if the tokenizerConfig is a valid chat configconst parsedConfig = OpenAiChatTokenConfig.safeParse(- p.model.tokenizerConfig+ p.model.tokenizerConfig,);if (!parsedConfig.success) {- console.error(+ logger.error(`Invalid tokenizer config for chat model ${p.model.id- }: ${JSON.stringify(p.model.tokenizerConfig)}`+ }: ${JSON.stringify(p.model.tokenizerConfig)}`,);return undefined;}@@ -109,7 +109,7 @@ function openAiTokenCount(p: { model: Model; text: unknown }) {? getTokensByModel(config.data.tokenizerModel, parsedText): getTokensByModel(config.data.tokenizerModel,- JSON.stringify(parsedText)+ JSON.stringify(parsedText),);}return result;@@ -161,7 +161,7 @@ function openAiChatTokenCount(params: {}const getTokensByModel = (model: TiktokenModel, text: string) => {- // encoiding should be kept in memory to avoid re-creating it+ // encoding should be kept in memory to avoid re-creating itlet encoding: Tiktoken | undefined;try {cachedTokenizerByModel[model] =@@ -169,7 +169,7 @@ const getTokensByModel = (model: TiktokenModel, text: string) => {encoding = cachedTokenizerByModel[model];} catch (KeyError) {- console.log("Warning: model not found. Using cl100k_base encoding.");+ logger.warn("Model not found. Using cl100k_base encoding.");encoding = get_encoding("cl100k_base");}@@ -205,7 +205,7 @@ function isChatMessageArray(value: unknown): value is ChatMessage[] {typeof item.role === "string" &&"content" in item &&typeof item.content === "string" &&- (!("name" in item) || typeof item.name === "string")+ (!("name" in item) || typeof item.name === "string"),);}diff --git a/worker/src/index.ts b/worker/src/index.tsindex 676a7aee51..57d208c4bb 100644--- a/worker/src/index.ts+++ b/worker/src/index.ts@@ -1,7 +1,8 @@+import { logger } from "@langfuse/shared/src/server";+import "./instrumentation"; // instrumenting the applicationimport app from "./app";import { env } from "./env";-import logger from "./logger";export const server = app.listen(env.PORT, () => {logger.info(`Listening: http://localhost:${env.PORT}`);diff --git a/worker/src/instrumentation.ts b/worker/src/instrumentation.tsindex 21d9b14d1d..ba54eaa810 100644--- a/worker/src/instrumentation.ts+++ b/worker/src/instrumentation.ts@@ -3,12 +3,12 @@ import { registerInstrumentations } from "@opentelemetry/instrumentation";import { IORedisInstrumentation } from "@opentelemetry/instrumentation-ioredis";import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";-import { PinoInstrumentation } from "@opentelemetry/instrumentation-pino";import { PrismaInstrumentation } from "@prisma/instrumentation";import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";import { AsyncHooksContextManager } from "@opentelemetry/context-async-hooks";import opentelemetry from "@opentelemetry/api";import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici";+import { WinstonInstrumentation } from "@opentelemetry/instrumentation-winston";// import { BullMQInstrumentation } from "@appsignal/opentelemetry-instrumentation-bullmq";const contextManager = new AsyncHooksContextManager().enable();@@ -28,8 +28,8 @@ registerInstrumentations({new HttpInstrumentation(),new ExpressInstrumentation(),new PrismaInstrumentation(),+ new WinstonInstrumentation({ disableLogSending: true }),getNodeAutoInstrumentations(),- new PinoInstrumentation(),new UndiciInstrumentation(),// new BullMQInstrumentation(),],diff --git a/worker/src/logger.ts b/worker/src/logger.tsdeleted file mode 100644index 8e63127321..0000000000--- a/worker/src/logger.ts+++ /dev/null@@ -1,33 +0,0 @@-import pino from "pino";-import { env } from "./env";--const getBetterstackLogginTransport = (minLevel: string) => {- return env.LANGFUSE_WORKER_BETTERSTACK_TOKEN- ? pino.transport({- target: "@logtail/pino",- options: { sourceToken: env.LANGFUSE_WORKER_BETTERSTACK_TOKEN },- level: minLevel,- })- : { level: minLevel };-};--export const getLogger = (- env: "development" | "production" | "test",- minLevel = "info"-) => {- if (env === "production") {- return pino(getBetterstackLogginTransport(minLevel));- }- return pino({- level: minLevel,- transport: {- target: "pino-pretty",- options: {- translateTime: "HH:MM:ss Z",- ignore: "pid,hostname",- },- },- });-};-const logger = getLogger(env.NODE_ENV, env.LANGFUSE_LOG_LEVEL);-export default logger;diff --git a/worker/src/queues/batchExportQueue.ts b/worker/src/queues/batchExportQueue.tsindex 6ea6465271..8e76397ccf 100644--- a/worker/src/queues/batchExportQueue.ts+++ b/worker/src/queues/batchExportQueue.ts@@ -3,8 +3,11 @@ import { Job } from "bullmq";import { BaseError, BatchExportStatus } from "@langfuse/shared";import { kyselyPrisma } from "@langfuse/shared/src/db";-import { traceException, instrumentAsync } from "@langfuse/shared/src/server";-import logger from "../logger";+import {+ traceException,+ instrumentAsync,+ logger,+} from "@langfuse/shared/src/server";import { QueueName, TQueueJobTypes } from "@langfuse/shared/src/server";import { handleBatchExportJob } from "../features/batchExport/handleBatchExportJob";import { SpanKind } from "@opentelemetry/api";@@ -39,8 +42,8 @@ export const batchExportQueueProcessor = async (.execute();logger.error(+ `Failed Batch Export job for id ${job.data.payload.batchExportId}`,e,- `Failed Batch Export job for id ${job.data.payload.batchExportId} ${e}`,);traceException(e);throw e;diff --git a/worker/src/queues/cloudUsageMeteringQueue.ts b/worker/src/queues/cloudUsageMeteringQueue.tsindex dcb5e1b7c4..66be2a9207 100644--- a/worker/src/queues/cloudUsageMeteringQueue.ts+++ b/worker/src/queues/cloudUsageMeteringQueue.ts@@ -1,7 +1,7 @@import { Processor, Queue } from "bullmq";-import logger from "../logger";import {redis,+ logger,QueueName,QueueJobs,instrumentAsync,diff --git a/worker/src/queues/evalQueue.ts b/worker/src/queues/evalQueue.tsindex 1718ac32db..e4665f6216 100644--- a/worker/src/queues/evalQueue.ts+++ b/worker/src/queues/evalQueue.ts@@ -2,12 +2,12 @@ import { Job, Queue } from "bullmq";import { ApiError, BaseError } from "@langfuse/shared";import { evaluate, createEvalJobs } from "../features/evaluation/eval-service";import { kyselyPrisma } from "@langfuse/shared/src/db";-import logger from "../logger";import { sql } from "kysely";import {createNewRedisInstance,QueueName,TQueueJobTypes,+ logger,traceException,instrumentAsync,recordIncrement,@@ -77,8 +77,8 @@ export const evalJobCreatorQueueProcessor = async (return true;} catch (e) {logger.error(+ `Failed job Evaluation for traceId ${job.data.payload.traceId}`,e,- `Failed job Evaluation for traceId ${job.data.payload.traceId} ${e}`,);traceException(e);throw e;@@ -148,8 +148,8 @@ export const evalJobExecutorQueueProcessor = async () {traceException(e);logger.error(+ `Failed Evaluation_Execution job for id ${job.data.payload.jobExecutionId}`,e,- `Failed Evaluation_Execution job for id ${job.data.payload.jobExecutionId} ${e}`,);}diff --git a/worker/src/queues/ingestionFlushQueueExecutor.ts b/worker/src/queues/ingestionFlushQueueExecutor.tsindex 5b020fa478..3b9a3efcd7 100644--- a/worker/src/queues/ingestionFlushQueueExecutor.ts+++ b/worker/src/queues/ingestionFlushQueueExecutor.ts@@ -4,13 +4,13 @@ import { redis, QueueJobs } from "@langfuse/shared/src/server";import { prisma } from "@langfuse/shared/src/db";import {clickhouseClient,+ logger,getIngestionFlushQueue,instrumentAsync,recordIncrement,recordGauge,recordHistogram,} from "@langfuse/shared/src/server";-import logger from "../logger";import { ClickhouseWriter } from "../services/ClickhouseWriter";import { IngestionService } from "../services/IngestionService";import { SpanKind } from "@opentelemetry/api";diff --git a/worker/src/queues/legacyIngestionQueue.ts b/worker/src/queues/legacyIngestionQueue.tsindex ee5181cd5f..a8d0cd7ac0 100644--- a/worker/src/queues/legacyIngestionQueue.ts+++ b/worker/src/queues/legacyIngestionQueue.ts@@ -8,8 +8,8 @@ import {recordGauge,recordHistogram,TQueueJobTypes,+ logger,} from "@langfuse/shared/src/server";-import logger from "../logger";import {handleBatch,@@ -75,8 +75,8 @@ export const legacyIngestionQueueProcessor: Processor = async ();} catch (e) {logger.error(+ `Failed job Evaluation for traceId ${job.data.payload}`,e,- `Failed job Evaluation for traceId ${job.data.payload} ${e}`,);traceException(e);throw e;diff --git a/worker/src/queues/workerManager.ts b/worker/src/queues/workerManager.tsindex 80bd974288..10ab80ce35 100644--- a/worker/src/queues/workerManager.ts+++ b/worker/src/queues/workerManager.ts@@ -1,7 +1,5 @@-import logger from "../logger";-import { Job, Processor, Worker, WorkerOptions } from "bullmq";-import { createNewRedisInstance } from "@langfuse/shared/src/server";+import { logger, createNewRedisInstance } from "@langfuse/shared/src/server";export class WorkerManager {private static workers: { [key: string]: Worker } = {};@@ -52,8 +50,8 @@ export class WorkerManager {// Add error handlingworker.on("failed", (job: Job | undefined, err: Error) => {logger.error(+ `Queue Job ${job?.name} with id ${job?.id} in ${queueName} failed`,err,- `Queue Job ${job?.name} with id ${job?.id} in ${queueName} failed with error ${err}`,);});worker.on("error", (failedReason: Error) => {diff --git a/worker/src/scripts/verifyClickhouseRecords.ts b/worker/src/scripts/verifyClickhouseRecords.tsindex 5e4240905c..ef7e66d1e5 100644--- a/worker/src/scripts/verifyClickhouseRecords.ts+++ b/worker/src/scripts/verifyClickhouseRecords.ts@@ -4,6 +4,7 @@ import { prisma, Prisma } from "@langfuse/shared/src/db";import {clickhouseClient,clickhouseStringDateSchema,+ logger,} from "@langfuse/shared/src/server";// Constants@@ -20,7 +21,7 @@ main({overwriteTraceIds: [],overwriteScoreIds: [],}).then(() => {- console.log("done");+ logger.info("done");process.exit(0);});@@ -53,7 +54,7 @@ async function main(params: MainParams) {let currentIteration = 0;while (currentIteration < ITERATIONS) {- console.log(`Iteration ${currentIteration + 1}/${ITERATIONS}`);+ logger.info(`Iteration ${currentIteration + 1}/${ITERATIONS}`);// Check observationslet observations: unknown[] = [];@@ -67,7 +68,7 @@ async function main(params: MainParams) {observationsWHEREid IN (${Prisma.join(overwriteObservationIds, ", ")})- `+ `,);} else if (!hasOverwrite) {const randomObservations = await prisma.$queryRaw<unknown[]>(@@ -80,13 +81,13 @@ async function main(params: MainParams) {start_time > ${DATE_START}::TIMESTAMP WITH time zone at time zone 'UTC'AND start_time < ${DATE_END}::TIMESTAMP WITH time zone at time zone 'UTC'LIMIT ${LIMIT}- `+ `,);observations = randomObservations;}- console.log(`Verifying ${observations.length} observations...`);+ logger.info(`Verifying ${observations.length} observations...`);try {const results = await Promise.allSettled(@@ -99,7 +100,7 @@ async function main(params: MainParams) {checkedObservationSet.add(id);await verifyClickhouseObservation(obs);- })+ }),);results.forEach((result, i) => {@@ -107,11 +108,11 @@ async function main(params: MainParams) {const message = `[${i}] ` + result.reason;failedObservationList.push(message);- console.error(message);+ logger.error(message);}});} catch (e) {- console.error(e);+ logger.error(e);}// Check traces@@ -123,7 +124,7 @@ async function main(params: MainParams) {FROM tracesWHEREid IN (${Prisma.join(overwriteTraceIds, ", ")})- `+ `,);} else if (!hasOverwrite) {const randomTraces = await prisma.$queryRaw<unknown[]>(@@ -134,13 +135,13 @@ async function main(params: MainParams) {timestamp > ${DATE_START}::TIMESTAMP WITH time zone at time zone 'UTC'AND timestamp < ${DATE_END}::TIMESTAMP WITH time zone at time zone 'UTC'LIMIT ${LIMIT}- `+ `,);traces = randomTraces;}- console.log(`Verifying ${traces.length} traces...`);+ logger.info(`Verifying ${traces.length} traces...`);try {const results = await Promise.allSettled(@@ -153,7 +154,7 @@ async function main(params: MainParams) {checkedTraceSet.add(id);await verifyClickhouseTrace(trace);- })+ }),);results.forEach((result, i) => {@@ -161,11 +162,11 @@ async function main(params: MainParams) {const message = `[${i}] ` + result.reason;failedTraceList.push(message);- console.error(message);+ logger.error(message);}});} catch (e) {- console.error(e);+ logger.error(e);}// Check scores@@ -177,7 +178,7 @@ async function main(params: MainParams) {FROM scoresWHEREid IN (${Prisma.join(overwriteScoreIds, ", ")})- `+ `,);} else if (!hasOverwrite) {const randomScores = await prisma.$queryRaw<unknown[]>(@@ -189,13 +190,13 @@ async function main(params: MainParams) {AND timestamp < ${DATE_END}::TIMESTAMP WITH time zone at time zone 'UTC'AND source = 'API'LIMIT ${LIMIT}- `+ `,);scores = randomScores;}- console.log(`Verifying ${scores.length} scores...`);+ logger.info(`Verifying ${scores.length} scores...`);try {const results = await Promise.allSettled(@@ -209,7 +210,7 @@ async function main(params: MainParams) {checkedScoreSet.add(id);await verifyClickhouseScore(score);- })+ }),);results.forEach((result, i) => {@@ -217,59 +218,59 @@ async function main(params: MainParams) {const message = `[${i}] ` + result.reason;failedScoreList.push(message);- console.error(message);+ logger.error(message);}});} catch (e) {- console.error(e);+ logger.error(e);}currentIteration++;if (hasOverwrite) break;}- console.log(`Total observations verified: ${totalObservationCount}`);- console.log(`Total traces verified: ${totalTraceCount}`);- console.log(`Total scores verified: ${totalScoreCount}`);+ logger.info(`Total observations verified: ${totalObservationCount}`);+ logger.info(`Total traces verified: ${totalTraceCount}`);+ logger.info(`Total scores verified: ${totalScoreCount}`);if (failedObservationList.length > 0) {await writeFile(`src/scripts/output/${new Date().toISOString()}_failedObservations.txt`,- failedObservationList.join("\n")+ failedObservationList.join("\n"),),- console.error(- `Failed to verify ${failedObservationList.length} out of ${totalObservationCount} observations`+ logger.error(+ `Failed to verify ${failedObservationList.length} out of ${totalObservationCount} observations`,);} else {- console.log(- `All ${totalObservationCount} observations verified successfully`+ logger.info(+ `All ${totalObservationCount} observations verified successfully`,);}if (failedTraceList.length > 0) {await writeFile(`src/scripts/output/${new Date().toISOString()}_failedTraces.txt`,- failedTraceList.join("\n")+ failedTraceList.join("\n"),);- console.error(- `Failed to verify ${failedTraceList.length} out of ${totalTraceCount} traces`+ logger.error(+ `Failed to verify ${failedTraceList.length} out of ${totalTraceCount} traces`,);} else {- console.log(`All ${totalTraceCount} traces verified successfully`);+ logger.info(`All ${totalTraceCount} traces verified successfully`);}if (failedScoreList.length > 0) {await writeFile(`src/scripts/output/${new Date().toISOString()}_failedScores.txt`,- failedScoreList.join("\n")+ failedScoreList.join("\n"),);- console.error(- `Failed to verify ${failedScoreList.length} out of ${totalScoreCount} scores`+ logger.error(+ `Failed to verify ${failedScoreList.length} out of ${totalScoreCount} scores`,);} else {- console.log(`All ${totalScoreCount} scores verified successfully`);+ logger.info(`All ${totalScoreCount} scores verified successfully`);}}@@ -283,7 +284,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {const clickhouseRecord = (await clickhouseResult.json())[0];if (!clickhouseRecord) {throw new Error(- `Observation ${observationId} not found in Clickhouse for project ${projectId}`+ `Observation ${observationId} not found in Clickhouse for project ${projectId}`,);}@@ -366,7 +367,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {Object.entries(chValue).map(([k, v]) => [k,JSON.parse(v as any),- ])+ ]),);if (@@ -375,11 +376,11 @@ async function verifyClickhouseObservation(postgresObservation: any) {parsedChMetadata,typeof parsedChMetadata === "string"? undefined- : Object.keys(parsedChMetadata as any).sort()+ : Object.keys(parsedChMetadata as any).sort(),)) {throw new Error(- getErrorMessage({ key, pgValue, chValue: parsedChMetadata })+ getErrorMessage({ key, pgValue, chValue: parsedChMetadata }),);}@@ -403,7 +404,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {JSON.stringify(parsedPgValue, Object.keys(parsedPgValue).sort()) !==JSON.stringify(parsedChValue,- Object.keys(parsedChValue as any).sort()+ Object.keys(parsedChValue as any).sort(),)) {throw new Error(@@ -411,7 +412,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue: JSON.stringify(parsedPgValue),chValue: JSON.stringify(parsedChValue),- })+ }),);}@@ -421,7 +422,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {case "modelParameters": {const parsedPgValue = pgValue;const parsedChValue = JSON.parse(- (clickhouseRecord as any)["model_parameters"]+ (clickhouseRecord as any)["model_parameters"],);if (@@ -430,7 +431,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {JSON.stringify(parsedChValue, Object.keys(parsedChValue).sort())) {throw new Error(- getErrorMessage({ key, pgValue, chValue: parsedChValue })+ getErrorMessage({ key, pgValue, chValue: parsedChValue }),);}@@ -447,7 +448,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["output_usage_units"],- })+ }),);}@@ -464,7 +465,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["input_usage_units"],- })+ }),);}@@ -481,7 +482,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["total_usage_units"],- })+ }),);}@@ -499,7 +500,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["input_cost"],- })+ }),);}@@ -517,7 +518,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["output_cost"],- })+ }),);}@@ -535,7 +536,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["total_cost"],- })+ }),);}@@ -546,7 +547,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {if (pgValue !== null &&Math.abs(- Number(pgValue) - (clickhouseRecord as any)["provided_input_cost"]+ Number(pgValue) - (clickhouseRecord as any)["provided_input_cost"],) > 1e-9) {throw new Error(@@ -554,7 +555,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["provided_input_cost"],- })+ }),);}@@ -565,7 +566,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {if (pgValue !== null &&Math.abs(- Number(pgValue) - (clickhouseRecord as any)["provided_output_cost"]+ Number(pgValue) - (clickhouseRecord as any)["provided_output_cost"],) > 1e-9) {throw new Error(@@ -573,7 +574,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue,chValue: (clickhouseRecord as any)["provided_output_cost"],- })+ }),);}@@ -584,7 +585,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {if (pgValue !== null &&Math.abs(- Number(pgValue) - (clickhouseRecord as any)["provided_total_cost"]+ Number(pgValue) - (clickhouseRecord as any)["provided_total_cost"],) > 1e-9) {throw new Error(@@ -592,7 +593,7 @@ async function verifyClickhouseObservation(postgresObservation: any) {key,pgValue: Number(pgValue),chValue: (clickhouseRecord as any)["provided_total_cost"],- })+ }),);}@@ -616,7 +617,7 @@ async function verifyClickhouseTrace(postgresTrace: any) {const clickhouseTrace = (await clickhouseResult.json())[0];if (!clickhouseTrace) {throw new Error(- `Trace ${traceId} not found in Clickhouse for project ${projectId}`+ `Trace ${traceId} not found in Clickhouse for project ${projectId}`,);}@@ -682,7 +683,7 @@ async function verifyClickhouseTrace(postgresTrace: any) {Object.entries(chValue).map(([k, v]) => [k,JSON.parse(v as any),- ])+ ]),);if (@@ -691,11 +692,11 @@ async function verifyClickhouseTrace(postgresTrace: any) {parsedChMetadata,typeof parsedChMetadata === "string"? undefined- : Object.keys(parsedChMetadata as any).sort()+ : Object.keys(parsedChMetadata as any).sort(),)) {throw new Error(- getErrorMessage({ key, pgValue, chValue: parsedChMetadata })+ getErrorMessage({ key, pgValue, chValue: parsedChMetadata }),);}@@ -721,7 +722,7 @@ async function verifyClickhouseTrace(postgresTrace: any) {parsedChValue,parsedChValue instanceof Object? Object.keys(parsedChValue as any).sort()- : undefined+ : undefined,)) {throw new Error(@@ -729,7 +730,7 @@ async function verifyClickhouseTrace(postgresTrace: any) {key,pgValue: JSON.stringify(parsedPgValue),chValue: JSON.stringify(parsedChValue),- })+ }),);}@@ -753,7 +754,7 @@ async function verifyClickhouseScore(postgresScore: any) {const clickhouseScore = (await clickhouseResult.json())[0];if (!clickhouseScore) {throw new Error(- `Score ${scoreId} not found in Clickhouse for project ${projectId}`+ `Score ${scoreId} not found in Clickhouse for project ${projectId}`,);}diff --git a/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts b/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.tsindex f3b645865b..7a2a9fa235 100644--- a/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts+++ b/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts@@ -3,7 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import * as serverExports from "@langfuse/shared/src/server";import { env } from "../../env";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import { ClickhouseWriter, TableName } from "../ClickhouseWriter";// Mock recordHistogram, recordCount, recordGauge@@ -17,6 +17,11 @@ vi.mock("@langfuse/shared/src/server", async (importOriginal) => {recordHistogram: vi.fn(),recordCount: vi.fn(),recordGauge: vi.fn(),+ logger: {+ info: vi.fn(),+ debug: vi.fn(),+ error: vi.fn(),+ },};});@@ -32,16 +37,6 @@ vi.mock("../../env", async (importOriginal) => {};});-vi.mock("../../logger", () => {- return {- default: {- info: vi.fn(),- debug: vi.fn(),- error: vi.fn(),- },- };-});-describe("ClickhouseWriter", () => {let writer: ClickhouseWriter;@@ -69,13 +64,13 @@ describe("ClickhouseWriter", () => {it("should initialize with correct values", () => {expect(writer.batchSize).toBe(- env.LANGFUSE_INGESTION_CLICKHOUSE_WRITE_BATCH_SIZE+ env.LANGFUSE_INGESTION_CLICKHOUSE_WRITE_BATCH_SIZE,);expect(writer.writeInterval).toBe(- env.LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS+ env.LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS,);expect(writer.maxAttempts).toBe(- env.LANGFUSE_INGESTION_CLICKHOUSE_MAX_ATTEMPTS+ env.LANGFUSE_INGESTION_CLICKHOUSE_MAX_ATTEMPTS,);});@@ -148,7 +143,7 @@ describe("ClickhouseWriter", () => {expect(mockInsert).toHaveBeenCalledTimes(writer.maxAttempts);expect(logger.error).toHaveBeenCalledWith(- expect.stringContaining("Max attempts reached")+ expect.stringContaining("Max attempts reached"),);expect(writer["queue"][TableName.Traces]).toHaveLength(0);});@@ -164,7 +159,7 @@ describe("ClickhouseWriter", () => {expect(mockInsert).toHaveBeenCalledTimes(1);expect(writer["intervalId"]).toBeNull();expect(logger.info).toHaveBeenCalledWith(- "ClickhouseWriter shutdown complete."+ "ClickhouseWriter shutdown complete.",);});@@ -204,7 +199,7 @@ describe("ClickhouseWriter", () => {expect(setIntervalSpy).toHaveBeenCalledWith(expect.any(Function),- writer.writeInterval+ writer.writeInterval,);});@@ -246,17 +241,17 @@ describe("ClickhouseWriter", () => {const concurrentWrites = 1000;const writes = Array.from({ length: concurrentWrites }, (_, i) =>- writer.addToQueue(TableName.Traces, { id: `${i}`, name: `test${i}` })+ writer.addToQueue(TableName.Traces, { id: `${i}`, name: `test${i}` }),);await Promise.all(writes);await vi.advanceTimersByTimeAsync(writer.writeInterval);expect(mockInsert).toHaveBeenCalledTimes(- Math.ceil(concurrentWrites / writer.batchSize)+ Math.ceil(concurrentWrites / writer.batchSize),);expect(writer["queue"][TableName.Traces].length).toBeLessThan(- writer.batchSize+ writer.batchSize,);});@@ -273,13 +268,13 @@ describe("ClickhouseWriter", () => {expect(metricsDistributionSpy).toHaveBeenCalledWith("ingestion_clickhouse_insert_wait_time",expect.any(Number),- { unit: "milliseconds" }+ { unit: "milliseconds" },);expect(metricsDistributionSpy).toHaveBeenCalledWith("ingestion_clickhouse_insert_processing_time",expect.any(Number),- { unit: "milliseconds" }+ { unit: "milliseconds" },);});@@ -294,12 +289,12 @@ describe("ClickhouseWriter", () => {await vi.advanceTimersByTimeAsync(writer.writeInterval);expect(logger.error).toHaveBeenCalledWith(- expect.stringContaining("Network error")+ expect.stringContaining("Network error"),);await vi.advanceTimersByTimeAsync(writer.writeInterval);expect(logger.error).toHaveBeenCalledWith(- expect.stringContaining("Timeout")+ expect.stringContaining("Timeout"),);await vi.advanceTimersByTimeAsync(writer.writeInterval);@@ -322,9 +317,9 @@ describe("ClickhouseWriter", () => {expect(mockInsert).toHaveBeenCalledWith(expect.objectContaining({values: expect.arrayContaining(- new Array(partialQueueSize).fill(expect.any(Object))+ new Array(partialQueueSize).fill(expect.any(Object)),),- })+ }),);expect(writer["queue"][TableName.Traces]).toHaveLength(0);});diff --git a/worker/src/services/ClickhouseWriter/index.ts b/worker/src/services/ClickhouseWriter/index.tsindex fb12879065..06b607faa1 100644--- a/worker/src/services/ClickhouseWriter/index.ts+++ b/worker/src/services/ClickhouseWriter/index.ts@@ -8,7 +8,7 @@ import {} from "@langfuse/shared/src/server";import { env } from "../../env";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import { instrumentAsync } from "@langfuse/shared/src/server";import { SpanKind } from "@opentelemetry/api";@@ -48,7 +48,7 @@ export class ClickhouseWriter {private start() {logger.info(- `Starting ClickhouseWriter. Max interval: ${this.writeInterval} ms, Max batch size: ${this.batchSize}`+ `Starting ClickhouseWriter. Max interval: ${this.writeInterval} ms, Max batch size: ${this.batchSize}`,);this.intervalId = setInterval(() => {@@ -91,7 +91,7 @@ export class ClickhouseWriter {]).catch((err) => {logger.error("ClickhouseWriter.flushAll", err);});- }+ },);}@@ -101,7 +101,7 @@ export class ClickhouseWriter {const queueItems = entityQueue.splice(0,- fullQueue ? entityQueue.length : this.batchSize+ fullQueue ? entityQueue.length : this.batchSize,);// Log wait time@@ -126,11 +126,11 @@ export class ClickhouseWriter {Date.now() - processingStartTime,{unit: "milliseconds",- }+ },);logger.debug(- `Flushed ${queueItems.length} records to Clickhouse ${tableName}. New queue length: ${entityQueue.length}`+ `Flushed ${queueItems.length} records to Clickhouse ${tableName}. New queue length: ${entityQueue.length}`,);recordGauge(@@ -139,7 +139,7 @@ export class ClickhouseWriter {{unit: "records",entityType: tableName,- }+ },);} catch (err) {logger.error(`ClickhouseWriter.flush ${tableName}`, err);@@ -154,7 +154,7 @@ export class ClickhouseWriter {} else {// TODO - Add to a dead letter queue in Redis rather than droppinglogger.error(- `Max attempts reached for ${tableName} record. Dropping record ${item.data}.`+ `Max attempts reached for ${tableName} record. Dropping record ${item.data}.`,);}});@@ -163,7 +163,7 @@ export class ClickhouseWriter {public addToQueue<T extends TableName>(tableName: T,- data: RecordInsertType<T>+ data: RecordInsertType<T>,) {const entityQueue = this.queue[tableName];entityQueue.push({@@ -200,7 +200,7 @@ export class ClickhouseWriter {});logger.debug(- `ClickhouseWriter.writeToClickhouse: ${Date.now() - startTime} ms`+ `ClickhouseWriter.writeToClickhouse: ${Date.now() - startTime} ms`,);recordGauge("ingestion_clickhouse_insert", params.records.length);diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.tsindex afe82595f7..af1d233b95 100644--- a/worker/src/services/IngestionService/index.ts+++ b/worker/src/services/IngestionService/index.ts@@ -32,7 +32,7 @@ import {import { tokenCount } from "../../features/tokenisation/usage";import { instrumentAsync } from "@langfuse/shared/src/server";-import logger from "../../logger";+import { logger } from "@langfuse/shared/src/server";import { ClickhouseWriter, TableName } from "../ClickhouseWriter";import { convertJsonSchemaToRecord, overwriteObject } from "./utils";@@ -70,7 +70,7 @@ export class IngestionService {private redis: Redis,prisma: PrismaClient,private clickHouseWriter: ClickhouseWriter,- private clickhouseClient: ClickhouseClientType+ private clickhouseClient: ClickhouseClientType,) {this.promptService = new PromptService(prisma, redis);}@@ -80,12 +80,12 @@ export class IngestionService {const eventList = (await this.redis.lrange(bufferKey, 0, -1)).map((serializedEventData) => {const parsed = ingestionEventWithProjectId.safeParse(- JSON.parse(serializedEventData)+ JSON.parse(serializedEventData),);if (!parsed.success) {logger.error(- `Failed to parse event ${serializedEventData} : ${parsed.error}`+ `Failed to parse event ${serializedEventData} : ${parsed.error}`,);return null;@@ -97,7 +97,7 @@ export class IngestionService {if (eventList.length === 0) {throw new Error(- `No valid events found in buffer for flushKey ${flushKey}`+ `No valid events found in buffer for flushKey ${flushKey}`,);}@@ -173,7 +173,7 @@ export class IngestionService {if (!clickhouseScoreRecord && !this.hasCreateEvent(scoreEventList)) {throw new Error(- `No create event or existing record found for score with id ${entityId} in project ${projectId}`+ `No create event or existing record found for score with id ${entityId} in project ${projectId}`,);}@@ -211,7 +211,7 @@ export class IngestionService {if (!clickhouseTraceRecord && !this.hasCreateEvent(traceEventList)) {throw new Error(- `No create event or existing record found for trace with id ${entityId} in project ${projectId}`+ `No create event or existing record found for trace with id ${entityId} in project ${projectId}`,);}@@ -253,7 +253,7 @@ export class IngestionService {!this.hasCreateEvent(observationEventList)) {throw new Error(- `No create event or existing record found for observation with id ${entityId} in project ${projectId}`+ `No create event or existing record found for observation with id ${entityId} in project ${projectId}`,);}@@ -284,7 +284,7 @@ export class IngestionService {this.clickHouseWriter.addToQueue(TableName.Observations,- finalObservationRecord+ finalObservationRecord,);}@@ -300,7 +300,7 @@ export class IngestionService {const mergedRecord = this.mergeRecords(recordsToMerge,- immutableEntityKeys[TableName.Scores]+ immutableEntityKeys[TableName.Scores],);return scoreRecordInsertSchema.parse(mergedRecord);@@ -318,7 +318,7 @@ export class IngestionService {const mergedRecord = this.mergeRecords(recordsToMerge,- immutableEntityKeys[TableName.Traces]+ immutableEntityKeys[TableName.Traces],);return traceRecordInsertSchema.parse(mergedRecord);@@ -338,7 +338,7 @@ export class IngestionService {const mergedRecord = this.mergeRecords(recordsToMerge,- immutableEntityKeys[TableName.Observations]+ immutableEntityKeys[TableName.Observations],);const parsedObservationRecord =@@ -362,7 +362,7 @@ export class IngestionService {private mergeRecords<T extends InsertRecord>(records: T[],- immutableEntityKeys: string[]+ immutableEntityKeys: string[],): unknown {if (records.length === 0) {throw new Error("No records to merge");@@ -398,7 +398,7 @@ export class IngestionService {private async getPrompt(projectId: string,- observationEventList: ObservationEvent[]+ observationEventList: ObservationEvent[],): Promise<ObservationPrompt | null> {const lastObservationWithPromptInfo = observationEventList.slice()@@ -419,7 +419,7 @@ export class IngestionService {}private hasPromptInformation(- event: ObservationEvent+ event: ObservationEvent,): event is ObservationEvent & {body: { promptName: string; promptVersion: number };} {@@ -461,7 +461,7 @@ export class IngestionService {const tokenCosts = IngestionService.calculateTokenCosts(internalModel,observationRecord,- tokenCounts+ tokenCounts,);return {@@ -474,7 +474,7 @@ export class IngestionService {private getTokenCounts(observationRecord: ObservationRecordInsertType,- model: Model | null | undefined+ model: Model | null | undefined,): Pick<ObservationRecordInsertType,"input_usage_units" | "output_usage_units" | "total_usage_units"@@ -521,7 +521,7 @@ export class IngestionService {input_usage_units?: number | null;output_usage_units?: number | null;total_usage_units?: number | null;- }+ },): {input_cost: number | null | undefined;output_cost: number | null | undefined;@@ -613,7 +613,7 @@ export class IngestionService {: table === TableName.Scores? convertScoreReadToInsert(recordParser[table].parse(result[0])): convertObservationReadToInsert(- recordParser[table].parse(result[0])+ recordParser[table].parse(result[0]),);});}@@ -631,7 +631,7 @@ export class IngestionService {// in the default implementation, we set timestamps server side if not provided.// we need to insert timestamps here and change the SDKs to send timestamps client side.timestamp: this.getMillisecondTimestamp(- trace.body.timestamp ?? trace.timestamp+ trace.body.timestamp ?? trace.timestamp,),name: trace.body.name,user_id: trace.body.userId,@@ -714,7 +714,7 @@ export class IngestionService {type: observationType,name: obs.body.name,start_time: this.getMillisecondTimestamp(- obs.body.startTime ?? obs.timestamp+ obs.body.startTime ?? obs.timestamp,),end_time:"endTime" in obs.body && obs.body.endTime@@ -763,7 +763,7 @@ export class IngestionService {}private stringify(- obj: string | object | number | boolean | undefined | null+ obj: string | object | number | boolean | undefined | null,): string | undefined {if (obj == null) return; // return undefined on undefined or null@@ -775,10 +775,10 @@ export class IngestionService {}private hasCreateEvent(- eventList: ObservationEvent[] | ScoreEventType[] | TraceEventType[]+ eventList: ObservationEvent[] | ScoreEventType[] | TraceEventType[],): boolean {return eventList.some((event) =>- event.type.toLowerCase().includes("create")+ event.type.toLowerCase().includes("create"),);}}diff --git a/worker/src/utils/shutdown.ts b/worker/src/utils/shutdown.tsindex 3dc8ea1902..7d520b2da7 100644--- a/worker/src/utils/shutdown.ts+++ b/worker/src/utils/shutdown.ts@@ -1,5 +1,4 @@-import logger from "../logger";-+import { logger } from "@langfuse/shared/src/server";import { redis } from "@langfuse/shared/src/server";import { ClickhouseWriter } from "../services/ClickhouseWriter";