Hello. I am looking to integrate sentry with metaf...
# ask-metaflow
u
Hello. I am looking to integrate sentry with metaflow. I see several post in this channel and the answer is always the same: Custom decorator https://outerbounds-community.slack.com/archives/C020U025QJK/p1631684845032200?thread_ts=1631680543.031900&cid=C020U025QJK However I can’t see the code in this message. Any chance the code can be reposted here or turned into a public gist or something?
blob aww 1
1
a
u
amazing, thankyou
u
I created a sentry logging plugin of the back off this. Happy to accept PRs from the community to improve it https://github.com/rsmith013/metaflow-sentry-logger
🙌 1
a
this is super cool! thanks for taking the effort ❤️
s
@User was just having a go with this as I'm trying out my own metaflow extension package.. I couldn't get it to work, and I'm curious how it is working for you - I found that changing the format of
plugins/mfextinit_sentry.py
as described here fixed things. Is there a reason I'm missing you wrote it as-is?
u
@stale-salesmen-66018 what version of metaflow are you using? I am on 2.7.18 and I think the extensions part of the metaflow repo was refactored after that point. I note the change to things like
STEP_DECORATORS_DESC
which wasn’t there in 2.7.18. Looks like it changed in 2.7.20 https://github.com/Netflix/metaflow/releases/tag/2.7.20
🙌 1
s
ah, good catch!