docs: fix README example so it compiles - #27
Conversation
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTwo Go code examples in ChangesREADME Go snippet corrections
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The "What do we instrument?" example in the README does not compile: it references an undefined
configpackage, usesclientandrequestbefore they exist, ignores the error returned byNewClient, and callsLogPromptwith the wrong attribute type. This rewrites it to match the working sample-app, and also fixes the getting-started snippet which was missing theosimport and dropping theNewClienterror. Closes #26.Summary by CodeRabbit