potiuk edited a comment on issue #12611:
URL: https://github.com/apache/airflow/issues/12611#issuecomment-988751990


   +1 on everything @ashb wrote with some update. I thought about using some 
existing APIs (a'la open-telemetry) but it add 0 value in our case and I agree 
with @ashb that simple interface where we simply notify with context is enough 
- with one caveat -we also need to pass "what" we are notifying about, so 
likely something like that:
   ```
   class Notifier(Protocol):
       def __call__(self, type: NotificationType, message: str, **context): -> 
None
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to