Skip to content

Commit 6760a47

Browse files
authored
Release browser RUM and session replay (#161)
1 parent 920d917 commit 6760a47

150 files changed

Lines changed: 27451 additions & 180 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@pydantic/logfire-browser': patch
3+
'@pydantic/logfire-session-replay': patch
4+
---
5+
6+
Preserve callable browser cleanup while exposing generation-scoped session replay lifecycle controls, keep Web Vitals spans available when metrics startup fails, and mark Web Vitals point events as Logfire logs.
7+
8+
Remove unused pre-stable replay transport, recorder snapshot, and navigation `load` surfaces that were never used or emitted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': patch
3+
---
4+
5+
Make same-page browser reconfiguration deterministic and ownership-safe. Cached tracers and manual Logfire APIs now follow each sequential provider generation, inactive intervals are non-recording, overlapping configurations fail explicitly, and cleanup preserves application-owned OpenTelemetry globals.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': patch
3+
---
4+
5+
Document safer development proxy examples and clarify that the Python telemetry helpers do not forward browser replay uploads.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@pydantic/logfire-browser': patch
3+
'@pydantic/logfire-session-replay': patch
4+
---
5+
6+
Use privacy-safe browser defaults: omit query strings and fragments from page
7+
attributes and replay URLs, mask rendered replay text, and disable replay
8+
console capture unless explicitly enabled.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': minor
3+
---
4+
5+
Stabilize browser RUM lifecycle setup with deferred instrumentation factories, opt-in lazy `autoInstrumentations`, provider-owned Web Vitals spans, explicit page URL attributes, and clarified session replay correlation semantics.

.changeset/browser-rum-session.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': minor
3+
---
4+
5+
Add opt-in browser RUM session identity and custom span processor configuration.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': minor
3+
---
4+
5+
Add opt-in native OpenTelemetry histogram metrics for browser Web Vitals. Configure top-level `metrics.metricUrl` and `rum.webVitals.metrics` to emit LCP, INP, CLS, FCP, and TTFB metrics in parallel with existing Web Vital spans.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pydantic/logfire-browser': minor
3+
---
4+
5+
Add opt-in browser RUM Web Vitals reporting with `rum.webVitals`, emitting LCP, INP, CLS, FCP, and TTFB as Logfire spans with attribution fields.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@pydantic/logfire-browser': minor
3+
'@pydantic/logfire-session-replay': minor
4+
---
5+
6+
Add opt-in browser `sessionReplay` integration with SDK-owned session correlation, replay state span attributes, optional peer loading, telemetry endpoint suppression, and live replay mode reporting.

.changeset/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
11+
"onlyUpdatePeerDependentsWhenOutOfRange": true
12+
},
1013
"ignore": []
1114
}

0 commit comments

Comments
 (0)