Skip to content

Commit 70a6018

Browse files
authored
fix bugs in observability plugins (#61)
## Summary * fix plugins not exporting types * export plugin options correctly * fix session replay and observability plugin reporting to different sessions * fix span duplication happening due to an unnecessary export retry ## How did you test this change? https://www.loom.com/share/f2ed9cfe8acb44e496a85570d54ade3b testing with `offline` network throttling in chrome devtools before <img width="1313" alt="Screenshot 2025-05-22 at 14 39 21" src="https://github.com/user-attachments/assets/db287a12-66fc-4008-a85b-a1a301b3a87f" /> after <img width="1309" alt="Screenshot 2025-05-22 at 14 47 23" src="https://github.com/user-attachments/assets/9e413572-4d9a-46d8-9337-8b9e97465d25" /> confirming no span duplication is happening <img width="850" alt="Screenshot 2025-05-22 at 17 05 52" src="https://github.com/user-attachments/assets/dbb5f939-de80-4fa7-b511-f7f5faffe6e4" /> ## Are there any deployment considerations? changesets ## Does this work require review from our design team? no
1 parent e4fb1c1 commit 70a6018

File tree

38 files changed

+211
-82
lines changed

38 files changed

+211
-82
lines changed

e2e/react-router/src/routes/root.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ export default function Root() {
9393
>
9494
LDRecord.snapshot
9595
</button>
96+
<button
97+
onClick={() => {
98+
LDRecord.start({ forceNew: true })
99+
}}
100+
>
101+
LDRecord.start(forceNew)
102+
</button>
96103
<button
97104
onClick={async () => {
98105
setFlags(

sdk/@launchdarkly/observability/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @launchdarkly/observability
22

3+
## 0.1.14
4+
5+
### Patch Changes
6+
7+
- b22881f: fix plugins not exporting types
8+
- bcbb6f7: export plugin options correctly
9+
- 188357c: fix session replay and observability plugin reporting to different sessions
10+
- 18ff47a: fix span duplication happening due to an unnecessary export retry
11+
- Updated dependencies [b22881f]
12+
- Updated dependencies [bcbb6f7]
13+
- Updated dependencies [188357c]
14+
- Updated dependencies [18ff47a]
15+
16+
317
## 0.1.13
418

519
### Patch Changes

sdk/@launchdarkly/observability/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@launchdarkly/observability",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"description": "Browser observability for your web app. Capture frontend metrics, errors, logs and traces.",
55
"keywords": [
66
"launchdarkly",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { Observe as default, LDObserve } from 'highlight.run'
2+
export type { ObserveOptions } from 'highlight.run'

sdk/@launchdarkly/session-replay/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @launchdarkly/session-replay
22

3+
## 0.1.14
4+
5+
### Patch Changes
6+
7+
- b22881f: fix plugins not exporting types
8+
- bcbb6f7: export plugin options correctly
9+
- 188357c: fix session replay and observability plugin reporting to different sessions
10+
- 18ff47a: fix span duplication happening due to an unnecessary export retry
11+
- Updated dependencies [b22881f]
12+
- Updated dependencies [bcbb6f7]
13+
- Updated dependencies [188357c]
14+
- Updated dependencies [18ff47a]
15+
16+
317
## 0.1.13
418

519
### Patch Changes

sdk/@launchdarkly/session-replay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@launchdarkly/session-replay",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"description": "Browser observability for your web app. Record session replays to visualize usage patterns.",
55
"keywords": [
66
"launchdarkly",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { Record as default, LDRecord } from 'highlight.run'
2+
export type { RecordOptions } from 'highlight.run'

sdk/highlight-apollo/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @highlight-run/apollo
22

3+
## 3.4.33
4+
5+
### Patch Changes
6+
7+
- @highlight-run/node@3.12.6
8+
39
## 3.4.32
410

511
### Patch Changes

sdk/highlight-apollo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@highlight-run/apollo",
3-
"version": "3.4.32",
3+
"version": "3.4.33",
44
"license": "Apache-2.0",
55
"repository": {
66
"type": "git",

sdk/highlight-hono/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @highlight-run/hono
22

3+
## 1.0.9
4+
5+
### Patch Changes
6+
7+
- @highlight-run/node@3.12.6
8+
39
## 1.0.8
410

511
### Patch Changes

0 commit comments

Comments
 (0)