🪢 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
chore(clickhouse): add langfuse user-agent header to all ClickHouse requests (#12962)
Mark Salpeter93e4a5184c86
diff --git a/package.json b/package.jsonindex e23d80d71f..f56ba0471c 100644--- a/package.json+++ b/package.json@@ -64,6 +64,10 @@"plugins": {"@release-it/bumper": {"out": [+ {+ "file": "./packages/shared/src/constants/VERSION.ts",+ "type": "application/typescript"+ },{"file": "./web/src/constants/VERSION.ts","type": "application/typescript"diff --git a/packages/shared/src/constants/VERSION.ts b/packages/shared/src/constants/VERSION.tsnew file mode 100644index 0000000000..002c0b9745--- /dev/null+++ b/packages/shared/src/constants/VERSION.ts@@ -0,0 +1 @@+export const VERSION = "v3.163.0";diff --git a/packages/shared/src/server/clickhouse/client.ts b/packages/shared/src/server/clickhouse/client.tsindex 5321385b90..8608a4e653 100644--- a/packages/shared/src/server/clickhouse/client.ts+++ b/packages/shared/src/server/clickhouse/client.ts@@ -1,5 +1,6 @@import { createClient } from "@clickhouse/client";import { env } from "../../env";+import { VERSION } from "../../constants/VERSION";import { NodeClickHouseClientConfigOptions } from "@clickhouse/client/dist/config";import { getCurrentSpan } from "../instrumentation";import { propagation, context } from "@opentelemetry/api";@@ -117,6 +118,7 @@ export class ClickHouseClientManager {const client = createClient({...opts,...settings,+ application: `langfuse/${VERSION.replace("v", "")}`,keep_alive: {idle_socket_ttl: env.CLICKHOUSE_KEEP_ALIVE_IDLE_SOCKET_TTL,},