getsentry/sentry-python
### [`v1.8.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#180)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.7.2...1.8.0)
##### Various fixes & improvements
- feat(starlette): add Starlette integration ([#1441](https://togithub.com/getsentry/sentry-python/issues/1441)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py)
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the Starlette integration.
Usage:
```python
from starlette.applications import Starlette
from sentry_sdk.integrations.starlette import StarletteIntegration
sentry_sdk.init(
dsn="...",
integrations=[StarletteIntegration()],
)
app = Starlette(debug=True, routes=[...])
```
- feat(fastapi): add FastAPI integration ([#829](https://togithub.com/getsentry/sentry-python/issues/829)) by [@antonpirker](https://togithub.com/antonpirker)
**Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the FastAPI integration.
Usage:
```python
from fastapi import FastAPI
from sentry_sdk.integrations.starlette import StarletteIntegration
from sentry_sdk.integrations.fastapi import FastApiIntegration
sentry_sdk.init(
dsn="...",
integrations=[StarletteIntegration(), FastApiIntegration()],
)
app = FastAPI()
```
Yes, you have to add both, the `StarletteIntegration` **AND** the `FastApiIntegration`!
- fix: avoid sending empty Baggage header ([#1507](https://togithub.com/getsentry/sentry-python/issues/1507)) by [@intgr](https://togithub.com/intgr)
- fix: properly freeze Baggage object ([#1508](https://togithub.com/getsentry/sentry-python/issues/1508)) by [@intgr](https://togithub.com/intgr)
- docs: fix simple typo, collecter -> collector ([#1505](https://togithub.com/getsentry/sentry-python/issues/1505)) by [@timgates42](https://togithub.com/timgates42)
Configuration
📅 Schedule: Branch creation - "before 2am" in timezone Asia/Singapore, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
==1.7.2
->==1.8.0
Release Notes
getsentry/sentry-python
### [`v1.8.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#180) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.7.2...1.8.0) ##### Various fixes & improvements - feat(starlette): add Starlette integration ([#1441](https://togithub.com/getsentry/sentry-python/issues/1441)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py) **Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the Starlette integration. Usage: ```python from starlette.applications import Starlette from sentry_sdk.integrations.starlette import StarletteIntegration sentry_sdk.init( dsn="...", integrations=[StarletteIntegration()], ) app = Starlette(debug=True, routes=[...]) ``` - feat(fastapi): add FastAPI integration ([#829](https://togithub.com/getsentry/sentry-python/issues/829)) by [@antonpirker](https://togithub.com/antonpirker) **Important:** Remove manual usage of `SentryAsgiMiddleware`! This is now done by the FastAPI integration. Usage: ```python from fastapi import FastAPI from sentry_sdk.integrations.starlette import StarletteIntegration from sentry_sdk.integrations.fastapi import FastApiIntegration sentry_sdk.init( dsn="...", integrations=[StarletteIntegration(), FastApiIntegration()], ) app = FastAPI() ``` Yes, you have to add both, the `StarletteIntegration` **AND** the `FastApiIntegration`! - fix: avoid sending empty Baggage header ([#1507](https://togithub.com/getsentry/sentry-python/issues/1507)) by [@intgr](https://togithub.com/intgr) - fix: properly freeze Baggage object ([#1508](https://togithub.com/getsentry/sentry-python/issues/1508)) by [@intgr](https://togithub.com/intgr) - docs: fix simple typo, collecter -> collector ([#1505](https://togithub.com/getsentry/sentry-python/issues/1505)) by [@timgates42](https://togithub.com/timgates42)Configuration
📅 Schedule: Branch creation - "before 2am" in timezone Asia/Singapore, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.