page.server_rendering.type
stringScrub: ManualVisibility: PublicOTel: FalseSet on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both.
Examples
staticpartially_staticdynamicWell-defined Values
staticThe server rendered the whole page to reuse it for other requests, for example a page from the build, a Next.js ISR page, or a Nuxtswrroute.partially_staticThe server reuses a static part of the page, and renders the other parts for this request in the same response (Next.js Partial Prerendering).dynamicThe server rendered the whole page only for this request. Set only when the SDK knows that the server reused no part of the page. If the SDK cannot telldynamicfrompartially_static, it leaves the attribute unset.
Additional Context
- Set only by an SDK that controls the server render, and only when the SDK knows the value.
- More values can be added later.
- Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.
- With
staticandpartially_static, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace. - Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own prerendering, see
browser.navigation.type.
Changelog
Raw JSON
{
"key": "page.server_rendering.type",
"brief": "Set on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"visibility": "public",
"examples": [
"static",
"partially_static",
"dynamic"
],
"enum_values": [
{
"value": "static",
"brief": "The server rendered the whole page to reuse it for other requests, for example a page from the build, a Next.js ISR page, or a Nuxt `swr` route."
},
{
"value": "partially_static",
"brief": "The server reuses a static part of the page, and renders the other parts for this request in the same response (Next.js Partial Prerendering)."
},
{
"value": "dynamic",
"brief": "The server rendered the whole page only for this request. Set only when the SDK knows that the server reused no part of the page. If the SDK cannot tell `dynamic` from `partially_static`, it leaves the attribute unset."
}
],
"additional_context": [
"Set only by an SDK that controls the server render, and only when the SDK knows the value.",
"More values can be added later.",
"Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.",
"With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace.",
"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`."
],
"changelog": [
{
"version": "next",
"prs": [
740
],
"description": "Added page.server_rendering.type attribute"
}
]
}