I was diagnosed at 32. Extremely high functioning but prone to burnout. I was hesitant as well, but embracing my diagnosis was life changing. You don't have to make ADHD your SINGLE core attribute like some people do. But ignoring what might be a core part of yourself isn't beneficial. Remember that it's just information-- what you do with the data is what's important. Meds can help but learning how to have healthy interactions with work and in my personal life was key.
You're not alone in this. I've found that there seems to be a higher concentration of ADHD in Dev/Security work. The constant newness of things keeps us interested-- but can also be dangerous.
Also, consider therapy. Even if you think you don't need it. Not a psychologist. But an actual factual therapist. I would prioritize this over medication, but honestly pursue them both. Therapy isn't what you think it is. It's a great way to have a sounding board.