Commit 7b2c5ee
committed
fix(Sky): Configure OTEL endpoint for Tauri and further reduce PostHog network overhead
Three telemetry and security configurations for the editor bootstrap:
1. OTELBridge.ts: Detect Tauri environment using `__TAURI_INTERNALS__` to route OTLP traces directly to localhost:4318 in desktop builds, while continuing to use the Vite-proxied `/v1/traces` endpoint in development. This fixes trace collection in production builds.
2. PostHogBridge.ts: Add `disable_external_dependency_loading: true` to further minimize PostHog's network footprint during startup. This follows the recent per-component buffering and survey/disable_decide optimizations.
3. index.astro: Add `vscode-file:` and `vscode-file://vscode-app` to the CSP font-src directive to enable proper VS Code file URL handling in the editor.
These changes ensure telemetry works correctly in both dev and production while minimizing unnecessary network requests during editor boot.1 parent 2a5780f commit 7b2c5ee
3 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments