You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a1837f6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/content/reference/dev-tools/react-performance-tracks.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ In development builds, when you click on a component render entry, you can inspe
138
138
139
139
#### Server Requests {/*server-requests*/}
140
140
141
-
The Server Requests track visualized all Promises that eventually end up in a React Server Component. This includes any `async` operations like calling `fetch` or async Node.js file operations.
141
+
The Server Requests track visualized all Promises that eventually end up in a React Server Component. This includes any `async` operations like calling `fetch` or async Node.js file operations.
142
142
143
143
React will try to combine Promises that are started from inside third-party code into a single span representing the the duration of the entire operation blocking 1st party code.
144
144
For example, a third party library method called `getUser` that calls `fetch` internally multiple times will be represented as a single span called `getUser`, instead of showing multiple `fetch` spans.
@@ -157,3 +157,17 @@ Different colors are used to indicate the duration of the component render. The
157
157
158
158
The Server Components track group will always contain a "Primary" track. If React is able to render Server Components concurrently, it will display addititional "Parallel" tracks.
159
159
If more than 8 Server Components are rendered concurrently, React will associate them with the last "Parallel" track instead of adding more tracks.
160
+
161
+
##### Reading Server Component timing metadata {/*reading-server-component-timing-metadata*/}
162
+
163
+
Server Component events include structured metadata in `entry.detail.react`. Server Requests and client-side tracks do not include these fields.
164
+
165
+
| Field | Description |
166
+
| --- | --- |
167
+
|`version`| The metadata format version. Currently `1`. |
168
+
|`requestId`| The string passed as `unstable_requestId` when a framework creates the response, or `undefined` if omitted. |
169
+
|`kind`|`'component'` for a Server Component render or `'await'` for a Promise it awaited. |
170
+
|`outcome`|`'completed'`, `'errored'`, or `'aborted'`. |
171
+
|`environment`| The environment name associated with the render or await, falling back to the response's environment name. |
172
+
173
+
Server Component measures require console replay to be enabled. For client entry points where it is disabled by default, pass `replayConsoleLogs: true`.
0 commit comments