To determine if we are correctly and effectively providing context for SelSer, we should collect statistics for the different, mutually exclusive cases laid out in the parent task (T318393):
- Page creation. SelSer does not apply since there is no previous content.
- The page exists, but no base revision ID provided. Selser is not possible.
- No render ID (etag) provided by the client, falling back to the latest rendering for context.
- Render ID (etag) provided by the client, found in stash.
- Render ID (etag) provided by the client, found in parser cache.
- Render ID (etag) provided by the client, but not found (edit fails with a 412).
Keys:
htmlinputtransformhelper.no-original.* htmlinputtransformhelper.no-original.page-exists htmlinputtransformhelper.no-original.page-not-exists htmlinputtransformhelper.get-original.* htmlinputtransformhelper.get-original.in-body htmlinputtransformhelper.get-original.with-renderid.* htmlinputtransformhelper.get-original.with-renderid.not-found htmlinputtransformhelper.get-original.with-renderid.found htmlinputtransformhelper.get-original.with-revid (may be a cache hit or we parse on demand, we can't tell)
Later, we want to break up the with-renderid.not-found and with-renderid.found keys:
htmlinputtransformhelper.get-original.with-renderid.* (number of requests with a render id) htmlinputtransformhelper.get-original.with-renderid.*.not-found.* (original data could not be found based on render id) htmlinputtransformhelper.get-original.with-renderid.*.found.* (original data found based on render id) htmlinputtransformhelper.get-original.with-renderid.stash-hit.found.hit (found in stash) htmlinputtransformhelper.get-original.with-renderid.stash-miss-pc-fallback.found.hit (found in PC and render id matches) htmlinputtransformhelper.get-original.with-renderid.stash-miss-pc-fallback.not-found.miss (not found in PC) htmlinputtransformhelper.get-original.with-renderid.stash-miss-pc-fallback.not-found.mismatch (found, but the render id doesn't match)