All tagged diffraction grating