Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Update Litestar integration usage #11364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/platforms/python/integrations/litestar/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ pip install --upgrade 'sentry-sdk[litestar]' uvicorn

## Configure

Add `LitestarIntegration()` to your `integrations` list:
If you have the `litestar` package in your dependencies, the Litestar integration will be enabled automatically when you initialize the Sentry SDK.

In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/).

Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons
options={[
Expand All @@ -28,7 +31,6 @@ Add `LitestarIntegration()` to your `integrations` list:

```python {"onboardingOptions": {"performance": "6-8", "profiling": "9-12"}}
import sentry_sdk
from sentry_sdk.integrations.litestar import LitestarIntegration

sentry_sdk.init(
dsn="___PUBLIC_DSN___",
Expand All @@ -39,9 +41,6 @@ sentry_sdk.init(
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
integrations=[
LitestarIntegration(),
],
)
```

Expand Down
Loading