CrUX field data should include rating if result is good or bad

Aperta
#1,055 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #1190 di @mvanhorn — chiusa senza merge
  • #2288 di @ymxlx — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Inizia individuando dove MCP formatta le metriche sul campo di CrUX e come la UI corrispondente di Chrome DevTools le valuta. Confronta i due percorsi per i risultati good, needs-improvement e bad, quindi verifica che l’output di MCP utilizzi la stessa valutazione della UI per le metriche sul campo riportate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

confirmed feature
Description of the bug

I was doing a performance audit of a page. Field data was used and Gemini CLI with 3.1 was working through the performance insights. So far, so good. Here is the relevant output from the perf insight that gemini then uses to drive its further debugging:

Metrics (lab / observed):                                                                                                                                                  │
│    - LCP: 482 ms, event: (eventKey: r-47321, ts: 508929901115), nodeId: 671                                                                                                │
│    - LCP breakdown:                                                                                                                                                        │
│      - TTFB: 30 ms, bounds: {min: 508929418828, max: 508929448856}                                                                                                         │
│      - Load delay: 228 ms, bounds: {min: 508929448856, max: 508929676926}                                                                                                  │
│      - Load duration: 2 ms, bounds: {min: 508929676926, max: 508929679270}                                                                                                 │
│      - Render delay: 222 ms, bounds: {min: 508929679270, max: 508929901115}                                                                                                │
│    - CLS: 0.17, event: (eventKey: s-89564, ts: 508931182251)                                                                                                               │
│ Metrics (field / real users):                                                                                                                                              │
│    - LCP: 1404 ms (scope: url)                                                                                                                                             │
│    - LCP breakdown:                                                                                                                                                        │
│      - TTFB: 209 ms (scope: url)                                                                                                                                           │
│      - Load delay: 752 ms (scope: url)                                                                                                                                     │
│      - Load duration: 40 ms (scope: url)                                                                                                                                   │
│      - Render delay: 345 ms (scope: url)                                                                                                                                   │
│    - INP: 65 ms (scope: url)                                                                                                                                               │
│    - CLS: 0.02 (scope: url)                                                                                                                                                │
│    - The above data is from CrUX–Chrome User Experience Report. It's how the page performs for real users.                                                                 │
│    - The values shown above are the p75 measure of all real Chrome users                                                                                                   │
│    - The scope indicates if the data came from the entire origin, or a specific url                                                                                        │
│    - Lab metrics describe how this specific page load performed, while field metrics are an aggregation of results from real-world users. Best practice is to prioritize   │
│      metrics that are bad in field data. Lab metrics may be better or worse than fields metrics depending on the developer's machine, network, or the actions performed    │
│      while tracing. 

Notice the difference in local to field metrics, but both are considered "Good". They are also shown as "Good" in DevTools UI.

The AI agent categorized the field metrics as "Needs improvement" though.

===> I think it would be good to add an evaluation to the field metrics, so an agent can focus on the most important things. LEt's make sure DevTools UI and DevTools MCP agree on the evaluation

Reproduction
  • Geminini CLI running on Gemini 3.1 auto mode
  • Prompt analyze the lcp of heise.de. make sure to clear the cache before doing it.
Expectation

No response

MCP configuration

No response

Chrome DevTools MCP version

0.18

Chrome version

No response

Coding agent version

No response

Model version

No response

Chat log

No response

Node version

No response

Operating system

None

Extra checklist
  • I want to provide a PR to fix this bug
Lingua principale
TypeScript
Stelle
59.8k
Fork
4.8k
Merge medio
2g 10h
PR unite (30g)
162

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ChromeDevTools/chrome-devtools-mcp

Tutte le issue di ChromeDevTools/chrome-devtools-mcp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.