apache / apache/servicecomb-java-chassis
servicecomb提供的异常拦截器ExceptionToProducerResponseConverter不能拦截 Handler,HttpServerFilter 等抛出的异常
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
#### 背景
当业务定制的filter或者servicecomb自带的filter出现异常时,想要根据对应的异常类型或异常信息来记录日志或告警
#### 分析
查看servicecomb源码,发现ExceptionToProducerResponseConverter只能在业务执行业务逻辑阶段抛出异常才会捕获, Handler,HttpServerFilter 等抛出的异常当前没有通用的拦截机制
#### 诉求
能够针对Handler,HttpServerFilter 等抛出的异常也提供类似异常捕获器的能力
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading ExceptionToProducerResponseConverter and tracing the exception paths from Handler and HttpServerFilter. Determine where a common interception mechanism could observe those exceptions, then define and verify the expected behavior for logging or alerting based on exception type or message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100