8000 migrate sentry from 1.x to 2.x · python/docsbuild-scripts@108fd45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 108fd45

Browse files
committed
migrate sentry from 1.x to 2.x
1 parent 2135304 commit 108fd45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,9 @@ def build_docs(args) -> bool:
11241124
)
11251125
)
11261126
if sentry_sdk:
1127-
with sentry_sdk.configure_scope() as scope:
1128-
scope.set_tag("version", version.name)
1129-
scope.set_tag("language", language.tag)
1127+
scope = sentry_sdk.get_isolation_scope()
1128+
scope.set_tag("version", version.name)
1129+
scope.set_tag("language", language.tag)
11301130
builder = DocBuilder(
11311131
version, versions, language, languages, cpython_repo, **vars(args)
11321132
)

0 commit comments

Comments
 (0)
0