Skip to content

Bump sentry-sdk[starlette] from 1.40.0 to 1.45.0

Ronan Amicel requested to merge dependabot-pip-sentry-sdk-starlette--1.45.0 into main

Bumps sentry-sdk[starlette] from 1.40.0 to 1.45.0.

Release notes

Sourced from sentry-sdk[starlette]'s releases.

1.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 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,
    }
    @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,
    ],
    ),
    ],
    )

... (truncated)

Changelog

Sourced from sentry-sdk[starlette]'s changelog.

1.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 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,
    }
    @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,
    ],
    ),
    ],
    )

... (truncated)

Commits
  • 51a906c Update CHANGELOG.md
  • 7570e39 release: 1.45.0
  • e22abb6 fix(metrics): Change data_category from statsd to metric_bucket (#2954)
  • fab65e6 feat(metrics): New normalization of keys, values, units (#2946)
  • a584653 feat(typing): Make monitor_config a TypedDict (#2931)
  • a1ab339 feat(metrics): Add value, unit to before_emit_metric (#2958)
  • 18ccb8f chore: Remove experimental metric summary options (#2957)
  • a422dd7 fix(profiler): Accessing mro might throw a ValueError (#2952)
  • 11e1f9a feat(integrations): Add django signals_denylist to filter signals that are at...
  • f5ec34c build(deps): bump types-protobuf from 4.24.0.20240311 to 4.24.0.20240408 (#2941)
  • Additional commits viewable in compare view

Merge request reports