Skip to content

[Feature] 中间件中开放读取 retryOption 权限 #475

@shuqingzai

Description

@shuqingzai

目前 req.RequestRetryAttempt 可以被外部读取(如:中间件中读取),但是 retryOption 不支持从中间件中读取,是否可以开放读取权限?

场景:我希望在中间件中设置异常上报通知,同一个请求只有在 RetryAttempt >= retryOption.MaxRetries 且最终失败进行异常通知上报,避免重试过程成功,重复上报异常信息

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions