Skip to content

Commit 5a122b5

Browse files
zen-xuantonpirker
andauthored
chore: Reexport module profiler (#4535)
<!-- Describe your PR here --> The example provided by sentry causes pylance to report `"profiler" is not a known attribute of module "sentry_sdk"` <img width="1472" alt="image" src="https://github.com/user-attachments/assets/2aa683f4-9221-4eae-abdf-ead3e4d741dc" /> --------- Co-authored-by: Anton Pirker <[email protected]> Co-authored-by: Anton Pirker <[email protected]>
1 parent 398b7c4 commit 5a122b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentry_sdk/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
from sentry_sdk import profiler
12
from sentry_sdk.scope import Scope
23
from sentry_sdk.transport import Transport, HttpTransport
34
from sentry_sdk.client import Client
45

56
from sentry_sdk.api import * # noqa
6-
7-
from sentry_sdk.consts import VERSION # noqa
7+
from sentry_sdk.consts import VERSION
88

99
__all__ = [ # noqa
1010
"Hub",
1111
"Scope",
1212
"Client",
1313
"Transport",
1414
"HttpTransport",
15+
"VERSION",
1516
"integrations",
1617
# From sentry_sdk.api
1718
"init",
@@ -47,6 +48,7 @@
4748
"trace",
4849
"monitor",
4950
"logger",
51+
"profiler",
5052
"start_session",
5153
"end_session",
5254
"set_transaction_name",

0 commit comments

Comments
 (0)