Skip to content

Bump sentry-sdk[starlette] from 1.40.0 to 2.6.0

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

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

Release notes

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

2.6.0

2.5.1

This change fixes a regression in our cron monitoring feature, which caused cron checkins not to be sent. The regression appears to have been introduced in version 2.4.0.

We recommend that all users, who use Cron monitoring and are currently running sentry-python ≥2.4.0, upgrade to this release as soon as possible!

Other fixes & improvements

2.5.0

Various fixes & improvements

  • Allow to configure status codes to report to Sentry in Starlette and FastAPI (#3008) by @​sentrivana

    By passing a new option to the FastAPI and Starlette integrations, you're now able to configure what status codes should be sent as events to Sentry. Here's how it works:

    from sentry_sdk.integrations.starlette import StarletteIntegration
    from sentry_sdk.integrations.fastapi import FastApiIntegration
    sentry_sdk.init(
    # ...
    integrations=[
    StarletteIntegration(
    failed_request_status_codes=[403, range(500, 599)],
    ),
    FastApiIntegration(
    failed_request_status_codes=[403, range(500, 599)],
    ),
    ]
    )

... (truncated)

Changelog

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

2.6.0

2.5.1

This change fixes a regression in our cron monitoring feature, which caused cron checkins not to be sent. The regression appears to have been introduced in version 2.4.0.

We recommend that all users, who use Cron monitoring and are currently running sentry-python ≥2.4.0, upgrade to this release as soon as possible!

Other fixes & improvements

2.5.0

Various fixes & improvements

  • Allow to configure status codes to report to Sentry in Starlette and FastAPI (#3008) by @​sentrivana

    By passing a new option to the FastAPI and Starlette integrations, you're now able to configure what status codes should be sent as events to Sentry. Here's how it works:

    from sentry_sdk.integrations.starlette import StarletteIntegration
    from sentry_sdk.integrations.fastapi import FastApiIntegration
    sentry_sdk.init(
    # ...
    integrations=[
    StarletteIntegration(
    failed_request_status_codes=[403, range(500, 599)],
    ),
    FastApiIntegration(
    failed_request_status_codes=[403, range(500, 599)],
    ),

... (truncated)

Commits

Merge request reports