Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(deps): bump posthog-node from 3.6.3 to 4.3.1 (#4450)

dependabot[bot]6c62f4b31aea
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 594c46aeed..ae45dbdbe9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -601,8 +601,8 @@ importers:
specifier: ^1.176.0
version: 1.176.0
posthog-node:
- specifier: ^3.6.3
- version: 3.6.3
+ specifier: ^4.3.1
+ version: 4.3.1
prexit:
specifier: ^2.2.0
version: 2.2.0
@@ -9584,8 +9584,8 @@ packages:
resolution: {integrity: sha512-T5XKNtRzp7q6CGb7Vc7wAI76rWap9fiuDUPxPsyPBPDkreKya91x9RIsSapAVFafwD1AEin1QMczCmt9Le9BWw==}
- resolution: {integrity: sha512-JB+ei0LkwE+rKHyW5z79Nd1jUaGxU6TvkfjFqY9vQaHxU5aU8dRl0UUaEmZdZbHwjp3WmXCBQQRNyimwbNQfCw==}
+ resolution: {integrity: sha512-By9SEGZxBLC7GVyVb+HlJlpxM/xI4iLUgwtsBS8f4bZ0wqYKiNHoYcFEwMJnTM9xQcQZztr6dqLmsJ7jCv0vxA==}
engines: {node: '>=15.0.0'}
@@ -22797,7 +22797,7 @@ snapshots:
preact: 10.19.7
web-vitals: 4.2.3
dependencies:
axios: 1.7.7
rusha: 0.8.14
diff --git a/web/package.json b/web/package.json
index d898be7f2c..975475e17b 100644
--- a/web/package.json
+++ b/web/package.json
@@ -121,7 +121,7 @@
"next-query-params": "^5.0.1",
"next-themes": "^0.3.0",
"posthog-js": "^1.176.0",
- "posthog-node": "^3.6.3",
+ "posthog-node": "^4.3.1",
"prexit": "^2.2.0",
"prisma": "^5.22.0",
"rate-limiter-flexible": "^5.0.3",
diff --git a/web/src/ee/features/playground/server/analytics/posthogCallback.ts b/web/src/ee/features/playground/server/analytics/posthogCallback.ts
index f3836a1e6b..b060bb09d3 100644
--- a/web/src/ee/features/playground/server/analytics/posthogCallback.ts
+++ b/web/src/ee/features/playground/server/analytics/posthogCallback.ts
@@ -27,7 +27,7 @@ export class PosthogCallbackHandler extends BaseCallbackHandler {
const properties = this.getEventProperties(outputString);
this.captureEvent(properties);
- await this.posthog.flushAsync();
+ await this.posthog.flush();
}
private getInputLength() {
@@ -55,7 +55,7 @@ export class PosthogCallbackHandler extends BaseCallbackHandler {
}
public async flushAsync() {
- await this.posthog.flushAsync();
+ await this.posthog.flush();
}
}
diff --git a/web/src/features/telemetry/index.ts b/web/src/features/telemetry/index.ts
index 2dbdada16e..683b2a0e87 100644
--- a/web/src/features/telemetry/index.ts
+++ b/web/src/features/telemetry/index.ts
@@ -263,7 +263,7 @@ async function posthogTelemetry({
},
});
- await posthog.shutdownAsync();
+ await posthog.shutdown();
} catch (error) {
logger.error(error);
}
diff --git a/web/src/pages/api/cron/ingestion-metrics.ts b/web/src/pages/api/cron/ingestion-metrics.ts
index 3f851dd5b0..9fd6483d32 100644
--- a/web/src/pages/api/cron/ingestion-metrics.ts
+++ b/web/src/pages/api/cron/ingestion-metrics.ts
@@ -58,7 +58,7 @@ export default async function handler(
},
});
- await posthog.shutdownAsync();
+ await posthog.shutdown();
logger.info(
"Updated ingestion_metrics in PostHog from startTimeframe:",