Fetch_git_sha equivalent in the unified python sdk


I’m currently porting a project from python raven to the new unified python sdk. Howevery, with raven the release was set with raven.fetch_git_sha(GIT_REPO_ROOT). I can’t find an equivalent for this method in the unified sdk. What’s the way I should set it?


Hi, you can set the release on init like this:

init(..., release="my git hash")

However, there is no equivalent to fetch_git_sha in the new SDK! We felt that it did something quite unrelated to the SDK’s core function (fetch current HEAD of the git repo) and also a bit specific to how you deploy your code, so we didn’t port it.

You have a bunch of options right now: