Skip to content

Commit f88ccd1

Browse files
KellyWalkerantonpirker
authored andcommitted
feat(integrations): Add litestar and starlite to get_sdk_name (getsentry#3385)
Co-authored-by: Anton Pirker <[email protected]>
1 parent 3944d87 commit f88ccd1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sentry_sdk/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def get_sdk_name(installed_integrations):
145145
"quart",
146146
"sanic",
147147
"starlette",
148+
"litestar",
149+
"starlite",
148150
"chalice",
149151
"serverless",
150152
"pyramid",

tests/test_basics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ def foo(event, hint):
718718
(["quart"], "sentry.python.quart"),
719719
(["sanic"], "sentry.python.sanic"),
720720
(["starlette"], "sentry.python.starlette"),
721+
(["starlite"], "sentry.python.starlite"),
722+
(["litestar"], "sentry.python.litestar"),
721723
(["chalice"], "sentry.python.chalice"),
722724
(["serverless"], "sentry.python.serverless"),
723725
(["pyramid"], "sentry.python.pyramid"),
@@ -756,6 +758,8 @@ def foo(event, hint):
756758
(["sanic", "quart", "sqlalchemy"], "sentry.python.quart"),
757759
(["starlette", "sanic", "rq"], "sentry.python.sanic"),
758760
(["chalice", "starlette", "modules"], "sentry.python.starlette"),
761+
(["chalice", "starlite", "modules"], "sentry.python.starlite"),
762+
(["chalice", "litestar", "modules"], "sentry.python.litestar"),
759763
(["serverless", "chalice", "pure_eval"], "sentry.python.chalice"),
760764
(["pyramid", "serverless", "modules"], "sentry.python.serverless"),
761765
(["tornado", "pyramid", "executing"], "sentry.python.pyramid"),

0 commit comments

Comments
 (0)