Commit 648ad26
authored
feat: disable client-side LD metric forwarding (#286)
## Summary
After launchdarkly/observability#320 is shipped,
we can
switch to server-emitted metrics for the Web SDK.
## How did you test this change?
CI
## Are there any deployment considerations?
need to make sure server metrics are flowing
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Stops forwarding metrics and errors from the LaunchDarkly client;
metrics now handled on ingest while init and track events remain.
>
> - **Integrations –
`sdk/highlight-run/src/integrations/launchdarkly/index.ts`**
> - Disable client-side forwarding:
> - `recordGauge` and `error` now no-ops (metrics handled on ingest).
> - Remove metric/error events and filtering logic (`LD_METRIC_EVENT`,
`LD_ERROR_EVENT`, `MetricCategory`).
> - Retain session init and custom tracking:
> - Still emits `LD_INITIALIZE_EVENT` and `LD_TRACK_EVENT` via
`track()`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2febce0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent c4185a6 commit 648ad26
1 file changed
+3
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 212 | + | |
237 | 213 | | |
238 | 214 | | |
239 | 215 | | |
| |||
246 | 222 | | |
247 | 223 | | |
248 | 224 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 225 | + | |
261 | 226 | | |
262 | 227 | | |
263 | 228 | | |
| |||
0 commit comments