Fuse shaped filament lamps used to be common.
The main application was lighting the scales of meters on amplifiers or test equipment.
Making the lamp the same size and shape as a fuse made low profile mounting easy, usually in a fuseholder mounted on a printed circuit board.
Such lamps normally had flat ends, just like a fuse, but UNLIKE the picture above.
The lamp illustrated, with pointed ends, would appear to be a small festoon lamp, widely used on vehicles.
These come in a wide range of sizes, and the smallest will fit in a fuse holder, but they are intended for use in a dedicated holder in which the points of the lamp rest in small dimples or holes.