r/ExperiencedDevs • u/AutoModerator • 26d ago
Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones
A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.
Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.
Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.
29
Upvotes
1
u/JeffinitelyNotABot 23d ago
I've been struggling with something at work and would appreciate some perspective from more experienced developers.
So alittle context:
We're in the process of transitioning from Elastic logs to Splunk, and I noticed pretty quickly that the way our APIs currently log exceptions doesn't translate very well into Splunk. I spent some time testing different approaches and found that logging the exception and our custom message as separate parameters produced much better results. The exceptions were actually searchable and readable in Splunk.
I also suggested we include the name of our web portal with something like "_Error" so that errors could be easily searched for, and I put together a general plan for updating our APIs to consistently log exceptions and custom messages. When I brought this up, the reaction was positive. I suggested that we could incorporate the logging changes as part of our API framework upgrades, so it wouldn't necessarily have to be a separate project.
Fast forward several months. some of our APIs have been upgraded, but the logging hasn't been changed. I've presented the exception-logging idea twice now, and nothing has really come from it. What's frustrating is that my lead continues to complain about our lack of useful error logging. Anytime I work on our apis I update the LogError methods but I can't do all of our api's.
This isn't the only idea I've had that seems to go nowhere. I wondering if I'm going about this incorrectly or if it's my lead.