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

fix(deps): update dependency sentry-sdk to v1.45.0 - autoclosed #76

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 18, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry-sdk (changelog) 1.25.1 -> 1.45.0 age adoption passing confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v1.45.0

Compare Source

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 the monitor decorator/context manager directly:

    from sentry_sdk.crons import monitor

v1.44.1

Compare Source

Various fixes & improvements
  • Make monitor async friendly (#​2912) by @​sentrivana

    You can now decorate your async functions with the monitor
    decorator and they will correctly report their duration
    and completion status.

  • Fixed Event | None runtime TypeError (#​2928) by @​szokeasaurusrex

v1.44.0

Compare Source

Various fixes & improvements

v1.43.0

Compare Source

Various fixes & improvements
  • Add optional keep_alive (#​2842) by @​sentrivana

    If 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

Compare Source

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

Compare Source

Various fixes & improvements
  • Add recursive scrubbing to EventScrubber (#​2755) by @​Cheapshot003

    By 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),
    ],
)

v1.40.6

Compare Source

Various fixes & improvements

v1.40.5

Compare Source

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 be None (#​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

Compare Source

Various fixes & improvements

v1.40.3

Compare Source

Various fixes & improvements

v1.40.2

Compare Source

Various fixes & improvements

v1.40.1

Compare Source

Various fixes & improvements

v1.40.0

Compare Source

Various fixes & improvements

v1.39.2

Compare Source

Various fixes & improvements

v1.39.1

Compare Source

Various fixes & improvements

v1.39.0

Compare Source

Various fixes & improvements

v1.38.0

Compare Source

Various fixes & improvements

v1.37.1

Compare Source

Various fixes & improvements

v1.37.0

Compare Source

Various fixes & improvements

v1.36.0

Compare Source

Various fixes & improvements

v1.35.0

Compare Source

Various fixes & improvements
  • Updated gRPC integration: Asyncio interceptors and easier setup (#​2369) by @​fdellekart

    Our gRPC integration now instruments incoming unary-unary grpc requests and outgoing unary-unary, unary-stream grpc requests using grpcio channels. Everything works now for sync and async code.

    Before this release you had to add Sentry interceptors by hand to your gRPC code, now the only thing you need to do is adding the GRPCIntegration to you sentry_sdk_init() call. (See documentation for more information):

    import sentry_sdk
    from sentry_sdk.integrations.grpc import GRPCIntegration
    
    sentry_sdk.init(
        dsn="___PUBLIC_DSN___",
        enable_tracing=True,
        integrations=[
            GRPCIntegration(),
        ],
    )

    The old way still works, but we strongly encourage you to update your code to the way described above.

  • Python 3.12: Replace deprecated datetime functions (#​2502) by @​sentrivana

  • Metrics: Unify datetime format (#​2409) by @​mitsuhiko

  • Celery: Set correct data in check_ins (#​2500) by @​antonpirker

  • Celery: Read timezone for Crons monitors from celery_schedule if existing (#​2497) by @​antonpirker

  • Django: Removing redundant code in Django tests (#​2491) by @​vagi8

  • Django: Make reading the request body work in Django ASGI apps. (#​2495) by @​antonpirker

  • FastAPI: Use wraps on fastapi request call wrapper (#​2476) by @​nkaras

  • Fix: Probe for psycopg2 and psycopg3 parameters function. (#​2492) by @​antonpirker

  • Fix: Remove unnecessary TYPE_CHECKING alias (#​2467) by @​rafrafek

v1.34.0

Compare Source

Various fixes & improvements

v1.33.1

Compare Source

Various fixes & improvements

v1.33.0

Compare Source

Various fixes & improvements

v1.32.0

Compare Source

Various fixes & improvements

make sure to set async_execution to False if you're executing

GraphQL queries synchronously

          StrawberryIntegration(async_execution=True),
      ],
      traces_sample_rate=1.0,
  )
```

v1.31.0

Compare Source

Various fixes & improvements
  • New: Add integration for clickhouse-driver (#​2167) by @​mimre25

    For more information, see the documentation for clickhouse-driver for more information.

    Usage:

      import sentry_sdk
      from sentry_sdk.integrations.clickhouse_driver import ClickhouseDriverIntegration
    
      sentry_sdk.init(
          dsn='___PUBLIC_DSN___',
          integrations=[
              ClickhouseDriverIntegration(),
          ],
      )
  • New: Add integration for asyncpg (#​2314) by @​mimre25

    For more information, see the documentation for asyncpg for more information.

    Usage:

      import sentry_sdk
      from sentry_sdk.integrations.asyncpg import AsyncPGIntegration
    
      sentry_sdk.init(
          dsn='___PUBLIC_DSN___',
          integrations=[
              AsyncPGIntegration(),
          ],
      )
  • New: Allow to override propagate_traces in Celery per task (#​2331) by @​jan-auer

    For more information, see the documentation for Celery for more information.

    Usage:

      import sentry_sdk
      from sentry_sdk.integrations.celery import CeleryIntegration

Enable global distributed traces (this is the default, just to be explicit.)

sentry_sdk.init(
    dsn='___PUBLIC_DSN___',
    integrations=[
        CeleryIntegration(propagate_traces=True),
    ],
)

...

This will NOT propagate the trace. (The task will start its own trace):

my_task_b.apply_async(
    args=("some_parameter", ),
    headers={"sentry-propagate-traces": False},
)

- Prevent Falcon integration from breaking ASGI apps (#​2359) by @​szokeasaurusrex
- Backpressure: only downsample a max of 10 times (#​2347) by @​sl0thentr0py
- Made NoOpSpan compatible to Transactions. (#​2364) by @​antonpirker
- Cleanup ASGI integration (#​2335) by @​antonpirker
- Pin anyio in tests (dep of httpx), because new major 4.0.0 breaks tests. (#​2336) by @​antonpirker
- Added link to backpressure section in docs. (#​2354) by @​antonpirker
- Add .vscode to .gitignore (#​2317) by @​shoaib-mohd
- Documenting Spans and Transactions (#​2358) by @​antonpirker
- Fix in profiler: do not call getcwd from module root (#​2329) by @​Zylphrex
- Fix deprecated version attribute (#​2338) by @​vagi8
- Fix transaction name in Starlette and FastAPI (#​2341) by @​antonpirker
- Fix tests using Postgres (#​2362) by @​antonpirker
- build(deps): Updated linting tooling (#​2350) by @​antonpirker
- build(deps): bump sphinx from 7.2.4 to 7.2.5 (#​2344) by @​dependabot
- build(deps): bump actions/checkout from 2 to 4 (#​2352) by @​dependabot
- build(deps): bump checkouts/data-schemas from `ebc77d3` to `68def1e` (#​2351) by @​dependabot

v1.30.0

Compare Source

Various fixes & improvements
  • Officially support Python 3.11 (#​2300) by @​sentrivana

  • Context manager monitor (#​2290) by @​szokeasaurusrex

  • Set response status code in transaction response context. (#​2312) by @​antonpirker

  • Add missing context kwarg to _sentry_task_factory (#​2267) by @​JohnnyDeuss

  • In Postgres take the connection params from the connection (#​2308) by @​antonpirker

  • Experimental: Allow using OTel for performance instrumentation (#​2272) by @​sentrivana

    This release includes experimental support for replacing Sentry's default
    performance monitoring solution with one powered by OpenTelemetry without having
    to do any manual setup.

    Try it out by installing pip install sentry-sdk[opentelemetry-experimental] and
    then initializing the SDK with:

    sentry_sdk.init(

...your usual options...

    _experiments={"otel_powered_performance": True},
)
```

This enables OpenTelemetry performance monitoring support for some of the most
popular frameworks and libraries (Flask, Django, FastAPI, requests...).

We're looking forward to your feedback! Please let us know about your experience
in this discussion: https://github.com/getsentry/sentry/discussions/55023

**Important note:** Please note that this feature is experimental and in a
proof-of-concept stage and is not meant for production use. It may be changed or
removed at any point.
  • Enable backpressure handling by default (#​2298) by @​sl0thentr0py

    The SDK now dynamically downsamples transactions to reduce backpressure in high
    throughput systems. It starts a new Monitor thread to perform some health checks
    which decide to downsample (halved each time) in 10 second intervals till the system
    is healthy again.

    To disable this behavior, use:

    sentry_sdk.init(

...your usual options...

    enable_backpressure_handling=False,
)
```

If your system serves heavy load, please let us know how this feature works for you!

Check out the [documentation](https://docs.sentry.io/platforms/python/configuration/options/#enable-backpressure-handling) for more information.

v1.29.2

Compare Source

Various fixes & improvements

v1.29.1

Compare Source

Various fixes & improvements

v1.29.0

Compare Source

Various fixes & improvements

v1.28.1

Compare Source

Various fixes & improvements

v1.28.0

Compare Source

Various fixes & improvements

v1.27.1

Compare Source

Various fixes & improvements
  • Add Starlette/FastAPI template tag for adding Sentry tracing information (#​2225) by @​antonpirker
    • By adding {{ sentry_trace_meta }} to your Starlette/FastAPI Jinja2 templates we will include Sentry trace information as a meta tag in the rendered HTML to allow your frontend to pick up and continue the trace started in the backend.
  • Fixed generation of baggage when a DSC is already in propagation context (#​2232) by @​antonpirker
  • Handle explicitly passing None for trace_configs in aiohttp (#​2230) by @​Harmon758
  • Support newest Starlette versions (#​2227) by @​antonpirker

v1.27.0

Compare Source

Various fixes & improvements

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 is behind base branch, 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.

@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a2a90c4) to head (e6dd262).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             alpha       #76   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          640       640           
  Branches        57        57           
=========================================
  Hits           640       640           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 73e5dbe to 1b2a18f Compare June 18, 2023 02:47
@Kl0ven Kl0ven closed this Jun 18, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.25.1 fix(deps): update dependency sentry-sdk to v1.25.1 - autoclosed Jun 18, 2023
@renovate renovate bot deleted the renovate/sentry-sdk-1.x-lockfile branch June 18, 2023 03:13
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.25.1 - autoclosed fix(deps): update dependency sentry-sdk to v1.25.1 Jun 22, 2023
@renovate renovate bot reopened this Jun 22, 2023
@renovate renovate bot restored the renovate/sentry-sdk-1.x-lockfile branch June 22, 2023 13:49
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.25.1 fix(deps): update dependency sentry-sdk to v1.26.0 Jun 22, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 1b2a18f to 7b23b69 Compare June 22, 2023 16:39
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 7b23b69 to bdc5a66 Compare July 8, 2023 15:31
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.26.0 fix(deps): update dependency sentry-sdk to v1.27.0 Jul 8, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.27.0 fix(deps): update dependency sentry-sdk to v1.27.1 Jul 10, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.27.1 fix(deps): update dependency sentry-sdk to v1.28.0 Jul 14, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from bdc5a66 to 181d217 Compare July 14, 2023 13:40
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.28.0 fix(deps): update dependency sentry-sdk to v1.28.1 Jul 17, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.28.1 fix(deps): update dependency sentry-sdk to v1.29.0 Aug 4, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 181d217 to 7133af2 Compare August 4, 2023 10:58
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.29.0 fix(deps): update dependency sentry-sdk to v1.29.1 Aug 5, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.29.1 fix(deps): update dependency sentry-sdk to v1.29.2 Aug 5, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.29.2 fix(deps): update dependency sentry-sdk to v1.30.0 Sep 2, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 7133af2 to b2d8537 Compare September 2, 2023 17:31
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from b2d8537 to fbc43cc Compare September 17, 2023 12:06
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.30.0 fix(deps): update dependency sentry-sdk to v1.31.0 Sep 17, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from fbc43cc to f9d1c70 Compare October 15, 2023 09:37
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.31.0 fix(deps): update dependency sentry-sdk to v1.32.0 Oct 15, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from f9d1c70 to 930d462 Compare November 4, 2023 16:22
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.32.0 fix(deps): update dependency sentry-sdk to v1.33.1 Nov 4, 2023
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.33.1 fix(deps): update dependency sentry-sdk to v1.34.0 Nov 6, 2023
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 930d462 to 89ed4f3 Compare November 17, 2023 13:36
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 38c4ee6 to 391f372 Compare January 14, 2024 14:19
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.39.1 fix(deps): update dependency sentry-sdk to v1.39.2 Jan 14, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 391f372 to 6f10e30 Compare February 3, 2024 16:06
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.39.2 fix(deps): update dependency sentry-sdk to v1.40.0 Feb 3, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 6f10e30 to dd42b5a Compare February 10, 2024 13:36
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.0 fix(deps): update dependency sentry-sdk to v1.40.1 Feb 10, 2024
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.1 fix(deps): update dependency sentry-sdk to v1.40.2 Feb 11, 2024
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.2 fix(deps): update dependency sentry-sdk to v1.40.3 Feb 13, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from dd42b5a to 71f8ffa Compare February 17, 2024 12:59
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.3 fix(deps): update dependency sentry-sdk to v1.40.4 Feb 17, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 71f8ffa to 435884e Compare February 23, 2024 13:58
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.4 fix(deps): update dependency sentry-sdk to v1.40.5 Feb 23, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 435884e to 63dc72f Compare March 2, 2024 13:28
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.5 fix(deps): update dependency sentry-sdk to v1.40.6 Mar 2, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 63dc72f to 5b69e22 Compare March 11, 2024 18:02
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.40.6 fix(deps): update dependency sentry-sdk to v1.41.0 Mar 11, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 5b69e22 to 8685c62 Compare March 17, 2024 13:43
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.41.0 fix(deps): update dependency sentry-sdk to v1.42.0 Mar 17, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 8685c62 to e8fa96c Compare March 24, 2024 12:14
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.42.0 fix(deps): update dependency sentry-sdk to v1.43.0 Mar 24, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from e8fa96c to e6dd262 Compare April 1, 2024 15:50
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.43.0 fix(deps): update dependency sentry-sdk to v1.44.0 Apr 1, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from e6dd262 to 0bf97cb Compare April 7, 2024 09:15
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.44.0 fix(deps): update dependency sentry-sdk to v1.44.1 Apr 7, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x-lockfile branch from 0bf97cb to d57c631 Compare April 14, 2024 16:41
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.44.1 fix(deps): update dependency sentry-sdk to v1.45.0 Apr 14, 2024
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v1.45.0 fix(deps): update dependency sentry-sdk to v1.45.0 - autoclosed Jun 11, 2024
@renovate renovate bot closed this Jun 11, 2024
@renovate renovate bot deleted the renovate/sentry-sdk-1.x-lockfile branch June 11, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants