The determination of the amount of granzyme b in a sample. The trait is granzyme b measurement (EFO_0020418, an Experimental Factor Ontology term).