dogs/cats with NSAIDS and the vet is more likely pick up on potential serious side effects with the drug than the lay person.
https://www.fda.gov/animal-veterinary/animal-health-literacy/controlling-pain-and-inflammation-your-dog-nonsteroidal-anti-inflammatory-drugs
Veterinarians often prescribe NSAIDs for dogs with osteoarthritis, a condition where cartilage—the protective material that cushions a joint between two bones—breaks down over time, causing the bones to rub against each other. This rubbing can permanently damage the joint and cause pain, inflammation, and lameness. Veterinarians also often use NSAIDs to manage pain after surgery in dogs.
All approved NSAIDs for dogs are only available by prescription. A veterinarian’s expertise is required to determine if an NSAID is appropriate for your dog and to monitor his or her health while taking the drug.
In the United States, currently marketed NSAIDs approved for dogs include:
Active Ingredient Brand and Generic Names Route of Administration
Carprofen RIMADYL and multiple generic names Oral, Injection
Deracoxib DERAMAXX, DOXIDYL*, DERACOXIB CHEWABLE TABLETS* Oral
Firocoxib PREVICOX and multiple generic names Oral
Grapiprant GALLIPRANT Oral
Meloxicam METACAM and multiple generic names Oral, Injection
Robenacoxib ONSIOR (for a maximum of 3 days) Oral, Injection
*Indicates an FDA-approved generic animal drug.