dym sdk: add on destory event hook#43673
Conversation
Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
… dev-add-on-destory-to-filter
| * after onStreamComplete and access logs are flushed. This is a good place to release | ||
| * any per-stream resources. | ||
| */ | ||
| virtual void onDestroy() = 0; |
There was a problem hiding this comment.
I'm sure this is not necessary to be idiomatic Rust for Rust SDK where we can use Drop trait already but isn't it the same for C++ here? This is essentially the same as Deconstructor ?
There was a problem hiding this comment.
This is designed initially for golang where users doesn't want to use the finalizer, and then I think keep cpp and golang be same make no side effect anyway, esp they are almost same in all other positions. So, I also added it for cpp. I have no strong point if you want to remove it.
There was a problem hiding this comment.
yeah not strong as long as Rust doesn't have it
|
This PR seems to be breaking CI (https://github.com/envoyproxy/envoy/actions/runs/22502826468/job/65194038428#step:19:498). I'm not sure how it passed CI in the first place. Should this be reverted? |
Follow up on #43673 Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Commit Message: dym skd: add on destory event hook Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com> Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
Follow up on envoyproxy#43673 Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com> Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
Commit Message: dym skd: add on destory event hook Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
Follow up on envoyproxy#43673 Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Commit Message: dym skd: add on destory event hook Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
Follow up on envoyproxy#43673 Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Commit Message: dym skd: add on destory event hook Additional Description: Risk Level: Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
Follow up on envoyproxy#43673 Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Commit Message: dym skd: add on destory event hook
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]