The determination of the amount of interleukin-34 in a sample. The trait is Experimental Factor Ontology term EFO_0020505 (interleukin-34 measurement).