Standardizing Errors in Go: A Practical Guide with Dapr
summary
Dapr’s errors package (dapr/kit/errors) implements the gRPC Richer Error Model and Google API Errors Model using a builder pattern that creates immutable, enriched errors; it requires ErrorInfo and commonly emits ResourceInfo so callers get app ID, resource type and metadata. Dapr is the 10th largest CNCF project, 53% of users report debugging is hard, and the package is already used in a pubsub example (fake Kafka) to return actionable, one-click friendly error details that improve troubleshooting.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 0:39Dapr
- 1:42Standardizing Errors
- 2:31Richer Air Model
- 3:27PubSub API
- 4:10Enriching the API
- 6:38Conclusion
related talks
13mLightning Talk: Standardizing Errors: A Practical Guide with Dapr
36mA Guide to Dapr: Open Source APIs & SDKs for Developers
29mError Handling and Pitfalls in Distributed Go Apps
46mDistributed Application Runtime
49mDapr in Practice
46mDapr in Practice
21mShaping next generations of architectures with Dapr
31mDapr case study: Legentic
