Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 30, 2024

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) ~=1.39.2~=1.45.1 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v1.45.1

Compare Source

This is a security backport release.

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
    
    # All keys except `schedule` are optional
    monitor_config = {
        "schedule": {"type": "crontab", "value": "0 0 * * *"},
        "timezone": "Europe/Vienna",
        "checkin_margin": 10,
        "max_runtime": 10,
        "failure_issue_threshold": 5,
        "recovery_threshold": 5,
    }
    
    @&#8203;monitor(monitor_slug='<monitor-slug>', monitor_config=monitor_config)
    def tell_the_world():
        print('My scheduled task...')

    Check out the cron docs for details.

  • Add Django signals_denylist to filter signals that are attached to by signals_spans (#​2758) by @​lieryan

    If you want to exclude some Django signals from performance tracking, you can use the new signals_denylist Django option:

    import django.db.models.signals
    import sentry_sdk
    
    sentry_sdk.init(
        ...
        integrations=[
            DjangoIntegration(
                ...
                signals_denylist=[
                    django.db.models.signals.pre_init,
                    django.db.models.signals.post_init,
                ],
            ),
        ],
    )
  • increment for metrics (#​2588) by @​mitsuhiko

    increment and inc are equivalent, so you can pick whichever you like more.

  • Add value, unit to before_emit_metric (#​2958) by @​sentrivana

    If you add a custom before_emit_metric, it'll now accept 4 arguments (the key, value, unit and tags) instead of just key and tags.

    def before_emit(key, value, unit, tags):
        if key == "removed-metric":
            return False
        tags["extra"] = "foo"
        del tags["release"]
        return True
    
    sentry_sdk.init(
        ...
        _experiments={
            "before_emit_metric": before_emit,
        }
    )
  • Remove experimental metric summary options (#​2957) by @​sentrivana

    The _experiments options metrics_summary_sample_rate and should_summarize_metric have been removed.

  • New normalization rules for metric keys, names, units, tags (#​2946) by @​sentrivana

  • Change data_category from statsd to metric_bucket (#​2954) by @​cleptric

  • Accessing __mro__ might throw a ValueError (#​2952) by @​sentrivana

  • Suppress prompt spawned by subprocess when using pythonw (#​2936) by @​collinbanko

  • Handle None in GraphQL query #​2715 (#​2762) by @​czyber

  • Do not send "quiet" Sanic exceptions to Sentry (#​2821) by @​hamedsh

  • Implement metric_bucket rate limits (#​2933) by @​cleptric

  • Fix type hints for monitor decorator (#​2944) by @​szokeasaurusrex

  • Remove deprecated typing imports in crons (#​2945) by @​szokeasaurusrex

  • Make monitor_config a TypedDict (#​2931) by @​sentrivana

  • Add devenv-requirements.txt and update env setup instructions (#​2761) by @​arr-ee

  • Bump types-protobuf from 4.24.0.20240311 to 4.24.0.20240408 (#​2941) by @​dependabot

  • Disable Codecov check run annotations (#​2537) by @​eliatcodecov

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

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:

    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 from eb941c2 to ed078ed (#​2781) by @​dependabot

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

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.0 Update dependency sentry-sdk to ~=1.40.1 Feb 6, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 72144f4 to 3bd8d58 Compare February 6, 2024 12:00
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.1 Update dependency sentry-sdk to ~=1.40.2 Feb 7, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 3bd8d58 to e5ed3f0 Compare February 7, 2024 12:01
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.2 Update dependency sentry-sdk to ~=1.40.3 Feb 9, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from e5ed3f0 to 45a73ef Compare February 9, 2024 12:02
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.3 Update dependency sentry-sdk to ~=1.40.4 Feb 13, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 45a73ef to 7c31471 Compare February 13, 2024 13:12
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.4 Update dependency sentry-sdk to ~=1.40.5 Feb 19, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 7c31471 to a1122aa Compare February 19, 2024 15:44
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.5 Update dependency sentry-sdk to ~=1.40.6 Feb 27, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from a1122aa to 7f46a1f Compare February 27, 2024 14:09
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 7f46a1f to 5c853b7 Compare March 7, 2024 16:45
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.40.6 Update dependency sentry-sdk to ~=1.41.0 Mar 7, 2024
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.41.0 Update dependency sentry-sdk to ~=1.42.0 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 5c853b7 to eb74a0b Compare March 13, 2024 14:01
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.42.0 Update dependency sentry-sdk to ~=1.43.0 Mar 20, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from eb74a0b to e262135 Compare March 20, 2024 16:13
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from e262135 to 5ba7210 Compare March 28, 2024 15:58
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.43.0 Update dependency sentry-sdk to ~=1.44.0 Mar 28, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 5ba7210 to 694f648 Compare April 3, 2024 09:01
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.44.0 Update dependency sentry-sdk to ~=1.44.1 Apr 3, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 694f648 to c83b738 Compare April 10, 2024 14:34
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.44.1 Update dependency sentry-sdk to ~=1.45.0 Apr 10, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from c83b738 to 90f2acc Compare July 26, 2024 14:20
@renovate renovate bot changed the title Update dependency sentry-sdk to ~=1.45.0 Update dependency sentry-sdk to ~=1.45.1 Jul 26, 2024
@renovate renovate bot force-pushed the renovate/sentry-sdk-1.x branch from 90f2acc to 0794efa Compare August 10, 2025 13:01
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.

0 participants