getsentry/sentry-python
### [`v1.42.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1420)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.41.0...1.42.0)
##### Various fixes & improvements
- **New integration:** [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/) ([#2791](https://togithub.com/getsentry/sentry-python/issues/2791)) by [@colin-sentry](https://togithub.com/colin-sentry)
We added an integration for OpenAI to capture errors and also performance data when using the OpenAI Python SDK.
Useage:
This integrations is auto-enabling, so if you have the `openai` package in your project it will be enabled. Just initialize Sentry before you create your OpenAI client.
```python
from openai import OpenAI
import sentry_sdk
sentry_sdk.init(
dsn="___PUBLIC_DSN___",
enable_tracing=True,
traces_sample_rate=1.0,
)
client = OpenAI()
```
For more information, see the documentation for [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/).
- Discard open OpenTelemetry spans after 10 minutes ([#2801](https://togithub.com/getsentry/sentry-python/issues/2801)) by [@antonpirker](https://togithub.com/antonpirker)
- Propagate sentry-trace and baggage headers to Huey tasks ([#2792](https://togithub.com/getsentry/sentry-python/issues/2792)) by [@cnschn](https://togithub.com/cnschn)
- Added Event type ([#2753](https://togithub.com/getsentry/sentry-python/issues/2753)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- Improve scrub_dict typing ([#2768](https://togithub.com/getsentry/sentry-python/issues/2768)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 ([#2797](https://togithub.com/getsentry/sentry-python/issues/2797)) by [@dependabot](https://togithub.com/dependabot)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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, check this box
This PR contains the following updates:
1.41.0
->1.42.0
Release Notes
getsentry/sentry-python
### [`v1.42.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1420) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.41.0...1.42.0) ##### Various fixes & improvements - **New integration:** [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/) ([#2791](https://togithub.com/getsentry/sentry-python/issues/2791)) by [@colin-sentry](https://togithub.com/colin-sentry) We added an integration for OpenAI to capture errors and also performance data when using the OpenAI Python SDK. Useage: This integrations is auto-enabling, so if you have the `openai` package in your project it will be enabled. Just initialize Sentry before you create your OpenAI client. ```python from openai import OpenAI import sentry_sdk sentry_sdk.init( dsn="___PUBLIC_DSN___", enable_tracing=True, traces_sample_rate=1.0, ) client = OpenAI() ``` For more information, see the documentation for [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/). - Discard open OpenTelemetry spans after 10 minutes ([#2801](https://togithub.com/getsentry/sentry-python/issues/2801)) by [@antonpirker](https://togithub.com/antonpirker) - Propagate sentry-trace and baggage headers to Huey tasks ([#2792](https://togithub.com/getsentry/sentry-python/issues/2792)) by [@cnschn](https://togithub.com/cnschn) - Added Event type ([#2753](https://togithub.com/getsentry/sentry-python/issues/2753)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Improve scrub_dict typing ([#2768](https://togithub.com/getsentry/sentry-python/issues/2768)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 ([#2797](https://togithub.com/getsentry/sentry-python/issues/2797)) by [@dependabot](https://togithub.com/dependabot)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 Renovate Bot.