Looks like it could be these
Leaf Miner Maggots
Prevent: Environmental control indoors and in greenhouses will prevent the leaf miner fly from laying its eggs in your plant.
Identify: Leaf miners are maggots usually 1/8th inch thick when hatching. It is very rare that a grower will notice them before they notice the damage they cause. These maggots burrow through leaves leaving brown and light green trails behind them. The maggot will usually be visible inside the leaf it is burrowing through.
Trails are easily visible in the wake of leaf miners
Eradicate
Repression: Leaf miner maggots live inside tunnels in your plant and are well protected against measures you take against them. Yellow sticky traps are effective for adult leaf miner flies.
Predators: The parasitic wasps Dacnusa sibirica, Diglyphus isaeo, or Opius pallipes are effective predators of maggots.
Manual Removal: Crush the maggots inside leaves with your fingers, doing so is easy given they trap themselves inside the leaves. Cut infested leaves off your plant and burn them or treat in excess of 140F/60C.
Spray: Sprays are ineffective against these maggots as they are entirely protected within their tunnels. Water your plant with a .5% solution of neem, this works very quickly and will stay in your plants tissues for around 4 weeks successfully repelling any further incursions.
Nematodes
There are hundreds of thousands of different species of nematode, some are harmful to marijuana but these are rare. Most often they attack roots but some attack the upper sections of the plant. Nematodes that are harmful to marijuana plants are for the most part microscopic, and the varieties that are visible are so rare you'd have a better chance being struck by lightning. If your plant is growing slowly, turning yellow and dying, or being slowly eaten away with no visible signs you MIGHT have harmful nematodes. Nematode infestation closely resembles nitrogen deficiency. Taking a soil sample is the best method of detecting nematodes. Take a small tube and punch a core sample out of soil, or inspect hydroponic roots carefully. Roots being attacked by nematodes will be soft, mushy, and beginning to fall apart. The best countermeasure to not contracting nematodes is to use clean soil every time. It takes a fair amount of time for a infesting nematode to build up sufficient numbers to attack your plant, re-using soil invites these circumstances. Nematodes can be eradicated with a neem soil drench and neem oil applied as a spray.