WAAS
WAAS copied to clipboard
chore(deps): update dependency sentry-sdk to v1.45.0
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
sentry-sdk (changelog) | ==1.39.1 -> ==1.45.0 |
Release Notes
getsentry/sentry-python (sentry-sdk)
v1.45.0
This is the final 1.x release for the forseeable future. Development will continue on the 2.x release line. The first 2.x version will be available in the next few weeks.
Various fixes & improvements
-
Allow to upsert monitors (#2929) by @sentrivana
It's now possible to provide
monitor_config
to themonitor
decorator/context manager directly:from sentry_sdk.crons import monitor
v1.44.1
Various fixes & improvements
-
Make
monitor
async friendly (#2912) by @sentrivanaYou can now decorate your async functions with the
monitor
decorator and they will correctly report their duration and completion status. -
Fixed
Event | None
runtimeTypeError
(#2928) by @szokeasaurusrex
v1.44.0
Various fixes & improvements
- ref: Define types at runtime (#2914) by @szokeasaurusrex
- Explicit reexport of types (#2866) (#2913) by @szokeasaurusrex
- feat(profiling): Add thread data to spans (#2843) by @Zylphrex
v1.43.0
Various fixes & improvements
-
Add optional
keep_alive
(#2842) by @sentrivanaIf you're experiencing frequent network issues between the SDK and Sentry, you can try turning on TCP keep-alive:
import sentry_sdk sentry_sdk.init(
...your usual settings...
keep_alive=True,
)
- Add support for Celery Redbeat cron tasks (#​2643) by @​kwigley
The SDK now supports the Redbeat scheduler in addition to the default
Celery Beat scheduler for auto instrumenting crons. See
[the docs](https://docs.sentry.io/platforms/python/integrations/celery/crons/)
for more information about how to set this up.
- `aws_event` can be an empty list (#​2849) by @​sentrivana
- Re-export `Event` in `types.py` (#​2829) by @​szokeasaurusrex
- Small API docs improvement (#​2828) by @​antonpirker
- Fixed OpenAI tests (#​2834) by @​antonpirker
- Bump `checkouts/data-schemas` from `ed078ed` to `8232f17` (#​2832) by @​dependabot
v1.42.0
Various fixes & improvements
-
New integration: OpenAI integration (#2791) by @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.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.
-
Discard open OpenTelemetry spans after 10 minutes (#2801) by @antonpirker
-
Propagate sentry-trace and baggage headers to Huey tasks (#2792) by @cnschn
-
Added Event type (#2753) by @szokeasaurusrex
-
Improve scrub_dict typing (#2768) by @szokeasaurusrex
-
Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 (#2797) by @dependabot
v1.41.0
Various fixes & improvements
-
Add recursive scrubbing to
EventScrubber
(#2755) by @Cheapshot003By default, the
EventScrubber
will not search your events for potential PII recursively. With this release, you can enable this behavior with:import sentry_sdk from sentry_sdk.scrubber import EventScrubber sentry_sdk.init(
...your usual settings...
event_scrubber=EventScrubber(recursive=True),
)
- Expose `socket_options` (#​2786) by @​sentrivana
If the SDK is experiencing connection issues (connection resets, server
closing connection without response, etc.) while sending events to Sentry,
tweaking the default `urllib3` socket options to the following can help:
```python
import socket
from urllib3.connection import HTTPConnection
import sentry_sdk
sentry_sdk.init(
### ...your usual settings...
socket_options=HTTPConnection.default_socket_options + [
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
### note: skip the following line if you're on MacOS since TCP_KEEPIDLE doesn't exist there
(socket.SOL_TCP, socket.TCP_KEEPIDLE, 45),
(socket.SOL_TCP, socket.TCP_KEEPINTVL, 10),
(socket.SOL_TCP, socket.TCP_KEEPCNT, 6),
],
)
- Allow to configure merge target for releases (#2777) by @sentrivana
- Allow empty character in metric tags values (#2775) by @viglia
- Replace invalid tag values with an empty string instead of _ (#2773) by @markushi
- Add documentation comment to
scrub_list
(#2769) by @szokeasaurusrex - Fixed regex to parse version in lambda package file (#2767) by @antonpirker
- xfail broken AWS Lambda tests for now (#2794) by @sentrivana
- Removed print statements because it messes with the tests (#2789) by @antonpirker
- Bump
types-protobuf
from 4.24.0.20240129 to 4.24.0.20240302 (#2782) by @dependabot - Bump
checkouts/data-schemas
fromeb941c2
toed078ed
(#2781) by @dependabot
v1.40.6
Various fixes & improvements
- Fix compatibility with
greenlet
/gevent
(#2756) by @sentrivana - Fix query source relative filepath (#2717) by @gggritso
- Support
clickhouse-driver==0.2.7
(#2752) by @sentrivana - Bump
checkouts/data-schemas
from6121fd3
toeb941c2
(#2747) by @dependabot
v1.40.5
Various fixes & improvements
-
Deprecate
last_event_id()
. (#2749) by @antonpirker -
Warn if uWSGI is set up without proper thread support (#2738) by @sentrivana
uWSGI has to be run in threaded mode for the SDK to run properly. If this is not the case, the consequences could range from features not working unexpectedly to uWSGI workers crashing.
Please make sure to run uWSGI with both
--enable-threads
and--py-call-uwsgi-fork-hooks
. -
parsed_url
can beNone
(#2734) by @sentrivana -
Python 3.7 is not supported anymore by Lambda, so removed it and added 3.12 (#2729) by @antonpirker
v1.40.4
Various fixes & improvements
- Only start metrics flusher thread on demand (#2727) by @sentrivana
- Bump checkouts/data-schemas from
aa7058c
to6121fd3
(#2724) by @dependabot
v1.40.3
Various fixes & improvements
- Turn off metrics for uWSGI (#2720) by @sentrivana
- Minor improvements (#2714) by @antonpirker
v1.40.2
Various fixes & improvements
- test: Fix
pytest
error (#2712) by @szokeasaurusrex - build(deps): bump types-protobuf from 4.24.0.4 to 4.24.0.20240129 (#2691) by @dependabot
v1.40.1
Various fixes & improvements
- Fix uWSGI workers hanging (#2694) by @sentrivana
- Make metrics work with
gevent
(#2694) by @sentrivana - Guard against
engine.url
beingNone
(#2708) by @sentrivana - Fix performance regression in
sentry_sdk.utils._generate_installed_modules
(#2703) by @GlenWalker - Guard against Sentry initialization mid SQLAlchemy cursor (#2702) by @apmorton
- Fix yaml generation script (#2695) by @sentrivana
- Fix AWS Lambda workflow (#2710) by @sentrivana
- Bump
codecov/codecov-action
from 3 to 4 (#2706) by @dependabot - Bump
actions/cache
from 3 to 4 (#2661) by @dependabot - Bump
actions/checkout
from 3.1.0 to 4.1.1 (#2561) by @dependabot - Bump
github/codeql-action
from 2 to 3 (#2603) by @dependabot - Bump
actions/setup-python
from 4 to 5 (#2577) by @dependabot
v1.40.0
Various fixes & improvements
- Enable metrics related settings by default (#2685) by @iambriccardo
- Fix
UnicodeDecodeError
on Python 2 (#2657) by @sentrivana - Enable DB query source by default (#2629) by @sentrivana
- Fix query source duration check (#2675) by @sentrivana
- Reformat with
black==24.1.0
(#2680) by @sentrivana - Cleaning up existing code to prepare for new Scopes API (#2611) by @antonpirker
- Moved redis related tests to databases (#2674) by @antonpirker
- Improve
sentry_sdk.trace
type hints (#2633) by @szokeasaurusrex - Bump
checkouts/data-schemas
frome9f7d58
toaa7058c
(#2639) by @dependabot
v1.39.2
Various fixes & improvements
- Fix timestamp in transaction created by OTel (#2627) by @antonpirker
- Fix relative path in DB query source (#2624) by @antonpirker
- Run more CI checks on 2.0 branch (#2625) by @sentrivana
- Fix tracing
TypeError
for static and class methods (#2559) by @szokeasaurusrex - Fix missing
ctx
in Arq integration (#2600) by @ivanovart - Change
data_category
fromcheck_in
tomonitor
(#2598) by @sentrivana
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 has been generated by Mend Renovate. View repository job log here.