Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

opentelemetry check

Louis Beaumont49381440335c
diff --git a/screenpipe-app-tauri/lib/opentelemetry.ts b/screenpipe-app-tauri/lib/opentelemetry.ts
index f19eaa551..91e3ecb56 100644
--- a/screenpipe-app-tauri/lib/opentelemetry.ts
+++ b/screenpipe-app-tauri/lib/opentelemetry.ts
@@ -4,6 +4,9 @@ import { WebTracerProvider } from "@opentelemetry/sdk-trace-web";
import { SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
export function initOpenTelemetry(projectId: string, sessionId: string) {
+ const isDebug = process.env.TAURI_ENV_DEBUG === "true";
+ if (isDebug || window.origin.includes("localhost")) return;
+
const provider = new WebTracerProvider({
resource: new Resource({
"highlight.project_id": projectId,