logfire-frontend
Skill72 starsChanged 13 days agoMITView on GitHub
Set up and troubleshoot Pydantic Logfire frontend observability and session replays in JavaScript/TypeScript browser applications. Use for browser errors, RUM, Web Vitals, replay recording, privacy controls, or reducing browser telemetry volume. Supports browser entrypoints, React/Vite, and the client side of Next.js; use logfire-instrumentation for server-side telemetry.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- pydantic/skillsedited, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- pydantic/skills★ 16199% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read repository instructions, the application manifest, browser entrypoint, router, and existing instrumentation.
- Very specific: line 24
Create or select the frontend application under Frontend → Applications and use its generated regional URL and restricted frontend token.
- Distinctive: line 30
If the restricted token is missing, finish the checks that can run without it.
- Distinctive: line 31
Before verifying ingestion, ask the user to open the selected application's
- Distinctive: line 34
If the application already keeps per-environment values in the framework's browser-exposed environment configuration, follow that pattern …
- Distinctive: line 40
Read browser setup, then the applicable section of capture profiles:
- Distinctive: line 66
Use verification and troubleshooting to exercise the real browser application, check the signals retained and omitted, query fresh errors …
- Distinctive: line 73
Run the application's normal typecheck/build and focused tests.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set Up Frontend Observability and Session Replays
The application uses @pydantic/logfire-browser and, when replay is requested,
@pydantic/logfire-session-replay. Configure one browser provider; preserve an
existing OpenTelemetry provider, proxy, and application initialization pattern.
Confirm the browser application
Read repository instructions, the application manifest, browser entrypoint, router, and existing instrumentation. For Next.js, distinguish client code from server instrumentation before changing either. Respect dependency constraints; check the installed SDK's types before using a capture or sampling option.
Preserve the exact origin, organization, and project supplied by the user or setup handoff. Browser-only setup does not require a CLI login, a local SDK credential, or an ordinary project write token. Use existing native MCP access for verification when available; otherwise use the Logfire UI.
Create or select the frontend application under Frontend → Applications and
use its generated regional URL and restricted frontend token. A normal project
write token, server environment variable, or .logfire credential is unsuitable
for browser code. The frontend application owns service identity. If no supported
public API/tool can manage it, use the UI; do not invent a private endpoint.
If the restricted token is missing, finish the checks that can run without it. Before verifying ingestion, ask the user to open the selected application's Browser setup section and click Copy token. The token is public by design, so it can go in tracked configuration like the other frontend options. If the application already keeps per-environment values in the framework's browser-exposed environment configuration, follow that pattern and name the exact variable and the local file or deployment setting where it goes.
Match capture to the request
Read browser setup, then the applicable section of capture profiles:
- Full frontend observability: automatic page/request/interaction spans and Web Vitals. Add replay only when requested.
- Errors and replays with automatic instrumentation: retain traces with Logfire error-level events or OpenTelemetry error status, while keeping replay independently enabled. This also retains other spans in a qualifying trace.
- Minimal errors and replays: disable automatic spans and Web Vitals and explicitly report application errors. Use when the user requires lower browser instrumentation overhead or strictly limits the signals collected.
Preserve existing approved replay rates and masking. Trace sampling, replay
sampling, and metric capture are separate decisions. Do not promise that
minLevel filters automatic spans, that a trace sampler retains an entire browser
session, or that every handled application failure is captured automatically.
Session replay is Early Access; check availability for the target organization and keep an existing application rollout flag. Mask text and inputs, leave console capture off, and block sensitive regions before recording them. Review attributes and URLs separately from visible-text masking. Add normalized route templates and opaque user IDs only when useful; names and emails are optional personal data.
Verify the selected behavior
Use verification and troubleshooting to exercise the real browser application, check the signals retained and omitted, query fresh errors in the exact project, and play the matching recording. For a sampling profile, test successful requests and the failure types the user cares about; inspect actual exported spans rather than assuming how HTTP status maps to error severity.
Run the application's normal typecheck/build and focused tests. Report browser execution, telemetry ingestion, and replay playback separately. A successful build, flush, upload response, or generated link does not prove all three. Return the verified project/application, capture policy, and a clean relevant UI link. If account reads or browser playback are unavailable, mark those parts unverified and state what evidence is missing.
For server-side Node.js or Next.js setup, use application instrumentation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

