Context
To be able to track any improvements to the PDF handling in the Citoid service, and test assumptions we will need further instrumentation in VE.
Scope
It's hard to tell if an URL really leads to a PDF. The only way to be sure is sending a request to the source and e.g. check the content type in the header. In a lot of cases this is not practical though, because bot protection mechanisms can block these requests leading to useless results. See T433824: Detect early on if an URL would lead to a PDF for logging.
The implication of that, that we can only work with "best guesses" what's a PDF source. In the scraper we're using "links that end with .pdf" as best guess. See T428578: Scraper: count refs which include PDF URLs
So "PDF URL" refers to "an URL ending with .pdf in the following definition of the metrics.
Metrics
- Count how often a lookup of a PDF source fails
- Count how often a lookup of a PDF source succeeds
Outcome
| action | feature | description |
|---|---|---|
| automatic-generate-pdfsource-fail | citoid | Automatic citation generation with "PDF source" failed |
| automatic-generate-pdfsource-build-success | citoid | Automatic citation generation with "PDF source" succeeded and we show results to choose from |
| automatic-pdfsource-insert | citoid | Automatic citation generation with "PDF source" succeeded and a Citation was inserted |