Skip to content

Commit 6b67563

Browse files
authored
Add Litestar integration to Sentry
Signed-off-by: GitHub <[email protected]>
1 parent 57997b9 commit 6b67563

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
SwaggerRenderPlugin,
1515
YamlRenderPlugin,
1616
)
17+
from sentry_sdk.integrations.litestar import LitestarIntegration
1718

1819
from .constants import GIT_SHA, Sentry
1920
from .modules import controllers
@@ -25,6 +26,9 @@
2526
traces_sample_rate=0.25,
2627
profiles_sample_rate=0.25,
2728
release=f"{Sentry.release_prefix}@{GIT_SHA}",
29+
integrations=[
30+
LitestarIntegration(),
31+
],
2832
)
2933

3034

0 commit comments

Comments
 (0)