Variable: citationMetrics
constcitationMetrics:object
Defined in: src/observability/prometheus-registry.ts:455
Pre-defined metrics for citation extraction.
Type declaration
citationsExtracted
citationsExtracted:
Counter<"source">
Total citations extracted counter.
Remarks
Labels: source (grobid, semantic-scholar, crossref)
Example
citationMetrics.citationsExtracted.inc({ source: 'grobid' }, refCount);
citationsMatched
citationsMatched:
Counter<"match_method">
Citations matched to Chive eprints counter.
Remarks
Labels: match_method (doi, title)
Example
citationMetrics.citationsMatched.inc({ match_method: 'doi' });
extractionDuration
extractionDuration:
Histogram<"status"|"source">
Citation extraction duration histogram.
Remarks
Labels: source (grobid, semantic-scholar, crossref), status (success/error)
Example
const end = citationMetrics.extractionDuration.startTimer({ source: 'grobid' });
// ... extract ...
end({ status: 'success' });
extractionsTotal
extractionsTotal:
Counter<"status"|"source">
Total citation extractions counter.
Remarks
Labels: source (grobid, semantic-scholar, crossref), status (success/error)
Example
citationMetrics.extractionsTotal.inc({ source: 'grobid', status: 'success' });
Remarks
Tracks GROBID extraction, Semantic Scholar enrichment, and Chive matching operations.