Replies: 2 comments 2 replies
-
Hi @mjmare you're very close! You should be using hooks for this, but the right way is to create your own set of custom hooks. We have instructions on how to do this here and also I have an example project that may be helpful The |
Beta Was this translation helpful? Give feedback.
-
@datajoely So you mean move the call to init_rollbar to the before_pipeline_run implementation (and maybe move it to its own Hook class), right? |
Beta Was this translation helpful? Give feedback.
-
I want to enable notifications to Rollbar.io whenever an exception occurs in my pipelines. The RB python integration (https://docs.rollbar.com/docs/python) needs a global initialisation. I'm unsure what the best location is for this initialisation?
My current implementation is in the pipeline hooks. Is that considered good practice?
At initialisation time I need access to the credentials in order to get the auth token for RB.
This is my implementation, which works so far.
I tried to move the call roller_init to the init method of the Hooks class, but when that is called there is no session yet.
Is this the "Kedro way"? Suggestions?
Beta Was this translation helpful? Give feedback.
All reactions