Skip to content

Commit d664465

Browse files
authored
feat: Add K_REVISION to environment variable release check (#5222)
Add `K_REVISION` to the end of candidate environment variables to populate the release attribute. Google cloud run exposes `K_REVISION`.
1 parent 983aad3 commit d664465

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def get_default_release():
154154
"CODEBUILD_RESOLVED_SOURCE_VERSION",
155155
"CIRCLE_SHA1",
156156
"GAE_DEPLOYMENT_ID",
157+
"K_REVISION",
157158
):
158159
release = os.environ.get(var)
159160
if release:

0 commit comments

Comments
 (0)