-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MTChannelBroker: Enhance failed events with extra metadata #6541
Comments
/assign |
We may want to go further by standardizing these attributes and adding them to the knative spec. @gab-satchi @gabo1208 WDYT? |
Hi, I am working on adding
So in the entire data flow, the path of event message is Based on this situation, there are two methods that we could get trigger's URI: Method 1: In broker-filter, we could add a pair of key value in response body to store trigger's URI. After getting response Channel could unmarshal this URI when the destination is broker-filter. Method 2: We could add processing logic about deadlettersink in broker-filter when sending error is not nil , do the same like Channel. Which one is better? is there any other methods and what do you think? @pierDipi @matzew |
Fixes #6541 Signed-off-by: Teresaliu [changyan.liu@intel.com](https://github.com/knative/eventing/pull/changyan.liu@intel.com) <!-- Please include the 'why' behind your changes if no issue exists --> ## Proposed Changes <!-- Please categorize your changes: - 🎁 Add new feature - 🐛 Fix bug - 🧹 Update or clean up current behavior - 🗑️ Remove feature or internal logic --> - Add Reconciler Test of Channel to test failer extensions metadata - Add failed events extensions `knativeerrordest, knativeerrordata,knativeerrorcode` to MTChannelBroker and corresponding Reconciler Test to Broker ### Pre-review Checklist <!-- If these boxes are not checked, you will be asked to complete these requirements or explain why they do not apply to your PR. --> - [ ] **At least 80% unit test coverage** - [ ] **E2E tests** for any new behavior - [ ] **Docs PR** for any user-facing impact - [ ] **Spec PR** for any new API feature - [ ] **Conformance test** for any change to the spec **Release Note** <!-- 📄 If this change has user-visible impact, write a release note in the block below. Include the string "action required" if additional action is required of users switching to the new release, for example in case of a breaking change. Write as if you are speaking to users, not other Knative contributors. If this change has no user-visible impact, no release note is needed. --> ```release-note Add contextual information on why the message landed in deadletter sink of the MTChannel-based Broker or its Triggers. ``` **Docs** <!-- 📖 If this change has user-visible impact, link to an issue or PR in https://github.com/knative/docs. -->
If a message is routed to the deadletter sink of the
MTChannelBroker
or itsTrigger
s, there is no contextual information on why the message landed there.In a few Knative components, we have some metadata for this:
Would be nice if the reference implementation of the
MTChannelBroker
would have this feature tooThe text was updated successfully, but these errors were encountered: