Skip to content

Commit cbd8956

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

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
@@ -581,6 +581,8 @@ def foo(event, hint):
581581
(["quart"], "sentry.python.quart"),
582582
(["sanic"], "sentry.python.sanic"),
583583
(["starlette"], "sentry.python.starlette"),
584+
(["starlite"], "sentry.python.starlite"),
585+
(["litestar"], "sentry.python.litestar"),
584586
(["chalice"], "sentry.python.chalice"),
585587
(["serverless"], "sentry.python.serverless"),
586588
(["pyramid"], "sentry.python.pyramid"),
@@ -619,6 +621,8 @@ def foo(event, hint):
619621
(["sanic", "quart", "sqlalchemy"], "sentry.python.quart"),
620622
(["starlette", "sanic", "rq"], "sentry.python.sanic"),
621623
(["chalice", "starlette", "modules"], "sentry.python.starlette"),
624+
(["chalice", "starlite", "modules"], "sentry.python.starlite"),
625+
(["chalice", "litestar", "modules"], "sentry.python.litestar"),
622626
(["serverless", "chalice", "pure_eval"], "sentry.python.chalice"),
623627
(["pyramid", "serverless", "modules"], "sentry.python.serverless"),
624628
(["tornado", "pyramid", "executing"], "sentry.python.pyramid"),

0 commit comments

Comments
 (0)