Metric for Producer Creation Failure
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
Having metric at the server side can help identify if there is any issue from the server side due to producer creation is failing at the client side.
Recently we faced this issue where producer object creation was failing due to unavailability of the ledger belongs to the internal topic(__change_events) and consequently it was not able to read the topic policies. But there was no exceptions observed or metric available at the server side related to this to figure this out proactively.
### Solution
We can have few metrics available at the server side for failures at the client side due to server side issues.
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor guide
Research direction
No files, tests, or entry points are named. Start by tracing server-side producer creation and the failure path involving the internal topic and ledger policy reads; done means server-side metrics consistently identify producer-creation failures caused by server issues.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100