Update dependency sentry-sdk to v1.39.1 - autoclosed #63

Closed
renovate wants to merge 1 commits from renovate/sentry-sdk-1.x into master
Collaborator

This PR contains the following updates:

Package Update Change
sentry-sdk (changelog) minor ==1.29.2 -> ==1.39.1

Release Notes

getsentry/sentry-python (sentry-sdk)

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.

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 Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [sentry-sdk](https://github.com/getsentry/sentry-python) ([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)) | minor | `==1.29.2` -> `==1.39.1` | --- ### Release Notes <details> <summary>getsentry/sentry-python (sentry-sdk)</summary> ### [`v1.39.1`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1391) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.39.0...1.39.1) ##### Various fixes & improvements - Fix psycopg2 detection in the Django integration ([#&#8203;2593](https://github.com/getsentry/sentry-python/issues/2593)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Filter out empty string releases ([#&#8203;2591](https://github.com/getsentry/sentry-python/issues/2591)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Fixed local var not present when there is an error in a user's `error_sampler` function ([#&#8203;2511](https://github.com/getsentry/sentry-python/issues/2511)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Fixed typing in `aiohttp` ([#&#8203;2590](https://github.com/getsentry/sentry-python/issues/2590)) by [@&#8203;antonpirker](https://github.com/antonpirker) ### [`v1.39.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1390) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.38.0...1.39.0) ##### Various fixes & improvements - Add support for cluster clients from Redis SDK ([#&#8203;2394](https://github.com/getsentry/sentry-python/issues/2394)) by [@&#8203;md384](https://github.com/md384) - Improve location reporting for timer metrics ([#&#8203;2552](https://github.com/getsentry/sentry-python/issues/2552)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Fix Celery `TypeError` with no-argument `apply_async` ([#&#8203;2575](https://github.com/getsentry/sentry-python/issues/2575)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Fix Lambda integration with EventBridge source ([#&#8203;2546](https://github.com/getsentry/sentry-python/issues/2546)) by [@&#8203;davidcroda](https://github.com/davidcroda) - Add max tries to Spotlight ([#&#8203;2571](https://github.com/getsentry/sentry-python/issues/2571)) by [@&#8203;hazAT](https://github.com/hazAT) - Handle `os.path.devnull` access issues ([#&#8203;2579](https://github.com/getsentry/sentry-python/issues/2579)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Change `code.filepath` frame picking logic ([#&#8203;2568](https://github.com/getsentry/sentry-python/issues/2568)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Trigger AWS Lambda tests on label ([#&#8203;2538](https://github.com/getsentry/sentry-python/issues/2538)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Run permissions step on pull_request_target but not push ([#&#8203;2548](https://github.com/getsentry/sentry-python/issues/2548)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Hash AWS Lambda test functions based on current revision ([#&#8203;2557](https://github.com/getsentry/sentry-python/issues/2557)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Update Django version in tests ([#&#8203;2562](https://github.com/getsentry/sentry-python/issues/2562)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Make metrics tests non-flaky ([#&#8203;2572](https://github.com/getsentry/sentry-python/issues/2572)) by [@&#8203;antonpirker](https://github.com/antonpirker) ### [`v1.38.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1380) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.37.1...1.38.0) ##### Various fixes & improvements - Only add trace context to checkins and do not run `event_processors` for checkins ([#&#8203;2536](https://github.com/getsentry/sentry-python/issues/2536)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Metric span summaries ([#&#8203;2522](https://github.com/getsentry/sentry-python/issues/2522)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Add source context to code locations ([#&#8203;2539](https://github.com/getsentry/sentry-python/issues/2539)) by [@&#8203;jan-auer](https://github.com/jan-auer) - Use in-app filepath instead of absolute path ([#&#8203;2541](https://github.com/getsentry/sentry-python/issues/2541)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Switch to `jinja2` for generating CI yamls ([#&#8203;2534](https://github.com/getsentry/sentry-python/issues/2534)) by [@&#8203;sentrivana](https://github.com/sentrivana) ### [`v1.37.1`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1371) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.37.0...1.37.1) ##### Various fixes & improvements - Fix `NameError` on `parse_version` with eventlet ([#&#8203;2532](https://github.com/getsentry/sentry-python/issues/2532)) by [@&#8203;sentrivana](https://github.com/sentrivana) - build(deps): bump checkouts/data-schemas from `68def1e` to `e9f7d58` ([#&#8203;2501](https://github.com/getsentry/sentry-python/issues/2501)) by [@&#8203;dependabot](https://github.com/dependabot) ### [`v1.37.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1370) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.36.0...1.37.0) ##### Various fixes & improvements - Move installed modules code to utils ([#&#8203;2429](https://github.com/getsentry/sentry-python/issues/2429)) by [@&#8203;sentrivana](https://github.com/sentrivana) Note: We moved the internal function `_get_installed_modules` from `sentry_sdk.integrations.modules` to `sentry_sdk.utils`. So if you use this function you have to update your imports - Add code locations for metrics ([#&#8203;2526](https://github.com/getsentry/sentry-python/issues/2526)) by [@&#8203;jan-auer](https://github.com/jan-auer) - Add query source to DB spans ([#&#8203;2521](https://github.com/getsentry/sentry-python/issues/2521)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Send events to Spotlight sidecar ([#&#8203;2524](https://github.com/getsentry/sentry-python/issues/2524)) by [@&#8203;HazAT](https://github.com/HazAT) - Run integration tests with newest `pytest` ([#&#8203;2518](https://github.com/getsentry/sentry-python/issues/2518)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Bring tests up to date ([#&#8203;2512](https://github.com/getsentry/sentry-python/issues/2512)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Fix: Prevent global var from being discarded at shutdown ([#&#8203;2530](https://github.com/getsentry/sentry-python/issues/2530)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Fix: Scope transaction source not being updated in scope.span setter ([#&#8203;2519](https://github.com/getsentry/sentry-python/issues/2519)) by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) ### [`v1.36.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1360) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.35.0...1.36.0) ##### Various fixes & improvements - Django: Support Django 5.0 ([#&#8203;2490](https://github.com/getsentry/sentry-python/issues/2490)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Django: Handling ASGI body in the right way. ([#&#8203;2513](https://github.com/getsentry/sentry-python/issues/2513)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Flask: Test with Flask 3.0 ([#&#8203;2506](https://github.com/getsentry/sentry-python/issues/2506)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Celery: Do not create a span when task is triggered by Celery Beat ([#&#8203;2510](https://github.com/getsentry/sentry-python/issues/2510)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Redis: Ensure `RedisIntegration` is disabled, unless `redis` is installed ([#&#8203;2504](https://github.com/getsentry/sentry-python/issues/2504)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Quart: Fix Quart integration for Quart 0.19.4 ([#&#8203;2516](https://github.com/getsentry/sentry-python/issues/2516)) by [@&#8203;antonpirker](https://github.com/antonpirker) - gRPC: Make async gRPC less noisy ([#&#8203;2507](https://github.com/getsentry/sentry-python/issues/2507)) by [@&#8203;jyggen](https://github.com/jyggen) ### [`v1.35.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1350) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.34.0...1.35.0) ##### Various fixes & improvements - **Updated gRPC integration:** Asyncio interceptors and easier setup ([#&#8203;2369](https://github.com/getsentry/sentry-python/issues/2369)) by [@&#8203;fdellekart](https://github.com/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](https://docs.sentry.io/platforms/python/integrations/grpc/) for more information): ```python 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 ([#&#8203;2502](https://github.com/getsentry/sentry-python/issues/2502)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Metrics: Unify datetime format ([#&#8203;2409](https://github.com/getsentry/sentry-python/issues/2409)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Celery: Set correct data in `check_in`s ([#&#8203;2500](https://github.com/getsentry/sentry-python/issues/2500)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Celery: Read timezone for Crons monitors from `celery_schedule` if existing ([#&#8203;2497](https://github.com/getsentry/sentry-python/issues/2497)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Django: Removing redundant code in Django tests ([#&#8203;2491](https://github.com/getsentry/sentry-python/issues/2491)) by [@&#8203;vagi8](https://github.com/vagi8) - Django: Make reading the request body work in Django ASGI apps. ([#&#8203;2495](https://github.com/getsentry/sentry-python/issues/2495)) by [@&#8203;antonpirker](https://github.com/antonpirker) - FastAPI: Use wraps on fastapi request call wrapper ([#&#8203;2476](https://github.com/getsentry/sentry-python/issues/2476)) by [@&#8203;nkaras](https://github.com/nkaras) - Fix: Probe for psycopg2 and psycopg3 parameters function. ([#&#8203;2492](https://github.com/getsentry/sentry-python/issues/2492)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Fix: Remove unnecessary TYPE_CHECKING alias ([#&#8203;2467](https://github.com/getsentry/sentry-python/issues/2467)) by [@&#8203;rafrafek](https://github.com/rafrafek) ### [`v1.34.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1340) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.33.1...1.34.0) ##### Various fixes & improvements - Added Python 3.12 support ([#&#8203;2471](https://github.com/getsentry/sentry-python/issues/2471), [#&#8203;2483](https://github.com/getsentry/sentry-python/issues/2483)) - Handle missing `connection_kwargs` in `patch_redis_client` ([#&#8203;2482](https://github.com/getsentry/sentry-python/issues/2482)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Run common test suite on Python 3.12 ([#&#8203;2479](https://github.com/getsentry/sentry-python/issues/2479)) by [@&#8203;sentrivana](https://github.com/sentrivana) ### [`v1.33.1`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1331) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.33.0...1.33.1) ##### Various fixes & improvements - Make parse_version work in utils.py itself. ([#&#8203;2474](https://github.com/getsentry/sentry-python/issues/2474)) by [@&#8203;antonpirker](https://github.com/antonpirker) ### [`v1.33.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1330) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.32.0...1.33.0) ##### Various fixes & improvements - New: Added `error_sampler` option ([#&#8203;2456](https://github.com/getsentry/sentry-python/issues/2456)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Python 3.12: Detect interpreter in shutdown state on thread spawn ([#&#8203;2468](https://github.com/getsentry/sentry-python/issues/2468)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Patch eventlet under Sentry SDK ([#&#8203;2464](https://github.com/getsentry/sentry-python/issues/2464)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Mitigate CPU spikes when sending lots of events with lots of data ([#&#8203;2449](https://github.com/getsentry/sentry-python/issues/2449)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Make `debug` option also configurable via environment ([#&#8203;2450](https://github.com/getsentry/sentry-python/issues/2450)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Make sure `get_dsn_parameters` is an actual function ([#&#8203;2441](https://github.com/getsentry/sentry-python/issues/2441)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Bump pytest-localserver, add compat comment ([#&#8203;2448](https://github.com/getsentry/sentry-python/issues/2448)) by [@&#8203;sentrivana](https://github.com/sentrivana) - AWS Lambda: Update compatible runtimes for AWS Lambda layer ([#&#8203;2453](https://github.com/getsentry/sentry-python/issues/2453)) by [@&#8203;antonpirker](https://github.com/antonpirker) - AWS Lambda: Load AWS Lambda secrets in Github CI ([#&#8203;2153](https://github.com/getsentry/sentry-python/issues/2153)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Redis: Connection attributes in `redis` database spans ([#&#8203;2398](https://github.com/getsentry/sentry-python/issues/2398)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Falcon: Falcon integration checks response status before reporting error ([#&#8203;2465](https://github.com/getsentry/sentry-python/issues/2465)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Quart: Support Quart 0.19 onwards ([#&#8203;2403](https://github.com/getsentry/sentry-python/issues/2403)) by [@&#8203;pgjones](https://github.com/pgjones) - Sanic: Sanic integration initial version ([#&#8203;2419](https://github.com/getsentry/sentry-python/issues/2419)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Django: Fix parsing of Django `path` patterns ([#&#8203;2452](https://github.com/getsentry/sentry-python/issues/2452)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Django: Add Django 4.2 to test suite ([#&#8203;2462](https://github.com/getsentry/sentry-python/issues/2462)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Polish changelog ([#&#8203;2434](https://github.com/getsentry/sentry-python/issues/2434)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Update CONTRIBUTING.md ([#&#8203;2443](https://github.com/getsentry/sentry-python/issues/2443)) by [@&#8203;krishvsoni](https://github.com/krishvsoni) - Update README.md ([#&#8203;2435](https://github.com/getsentry/sentry-python/issues/2435)) by [@&#8203;sentrivana](https://github.com/sentrivana) ### [`v1.32.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1320) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.31.0...1.32.0) ##### Various fixes & improvements - **New:** Error monitoring for some of the most popular Python GraphQL libraries: - Add [GQL GraphQL integration](https://docs.sentry.io/platforms/python/integrations/gql/) ([#&#8203;2368](https://github.com/getsentry/sentry-python/issues/2368)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) Usage: ```python import sentry_sdk from sentry_sdk.integrations.gql import GQLIntegration sentry_sdk.init( dsn='___PUBLIC_DSN___', integrations=[ GQLIntegration(), ], ) ``` - Add [Graphene GraphQL error integration](https://docs.sentry.io/platforms/python/integrations/graphene/) ([#&#8203;2389](https://github.com/getsentry/sentry-python/issues/2389)) by [@&#8203;sentrivana](https://github.com/sentrivana) Usage: ```python import sentry_sdk from sentry_sdk.integrations.graphene import GrapheneIntegration sentry_sdk.init( dsn='___PUBLIC_DSN___', integrations=[ GrapheneIntegration(), ], ) ``` - Add [Strawberry GraphQL error & tracing integration](https://docs.sentry.io/platforms/python/integrations/strawberry/) ([#&#8203;2393](https://github.com/getsentry/sentry-python/issues/2393)) by [@&#8203;sentrivana](https://github.com/sentrivana) Usage: ```python import sentry_sdk from sentry_sdk.integrations.strawberry import StrawberryIntegration sentry_sdk.init( dsn='___PUBLIC_DSN___', integrations=[ ``` ### make sure to set async_execution to False if you're executing ### GraphQL queries synchronously StrawberryIntegration(async_execution=True), ], traces_sample_rate=1.0, ) ``` - Add [Ariadne GraphQL error integration](https://docs.sentry.io/platforms/python/integrations/ariadne/) ([#&#8203;2387](https://github.com/getsentry/sentry-python/issues/2387)) by [@&#8203;sentrivana](https://github.com/sentrivana) Usage: ```python import sentry_sdk from sentry_sdk.integrations.ariadne import AriadneIntegration sentry_sdk.init( dsn='___PUBLIC_DSN___', integrations=[ AriadneIntegration(), ], ) ``` - Capture multiple named groups again ([#&#8203;2432](https://github.com/getsentry/sentry-python/issues/2432)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Don't fail when upstream scheme is unusual ([#&#8203;2371](https://github.com/getsentry/sentry-python/issues/2371)) by [@&#8203;vanschelven](https://github.com/vanschelven) - Support new RQ version ([#&#8203;2405](https://github.com/getsentry/sentry-python/issues/2405)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Remove `utcnow`, `utcfromtimestamp` deprecated in Python 3.12 ([#&#8203;2415](https://github.com/getsentry/sentry-python/issues/2415)) by [@&#8203;rmad17](https://github.com/rmad17) - Add `trace` to `__all__` in top-level `__init__.py` ([#&#8203;2401](https://github.com/getsentry/sentry-python/issues/2401)) by [@&#8203;lobsterkatie](https://github.com/lobsterkatie) - Move minimetrics code to the SDK ([#&#8203;2385](https://github.com/getsentry/sentry-python/issues/2385)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Add configurable compression levels ([#&#8203;2382](https://github.com/getsentry/sentry-python/issues/2382)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Shift flushing by up to a rollup window ([#&#8203;2396](https://github.com/getsentry/sentry-python/issues/2396)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Make a consistent noop flush behavior ([#&#8203;2428](https://github.com/getsentry/sentry-python/issues/2428)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Stronger recursion protection ([#&#8203;2426](https://github.com/getsentry/sentry-python/issues/2426)) by [@&#8203;mitsuhiko](https://github.com/mitsuhiko) - Remove `OpenTelemetryIntegration` from `__init__.py` ([#&#8203;2379](https://github.com/getsentry/sentry-python/issues/2379)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Update API docs ([#&#8203;2397](https://github.com/getsentry/sentry-python/issues/2397)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Pin some test requirements because new majors break our tests ([#&#8203;2404](https://github.com/getsentry/sentry-python/issues/2404)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Run more `requests`, `celery`, `falcon` tests ([#&#8203;2414](https://github.com/getsentry/sentry-python/issues/2414)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Move `importorskip`s in tests to `__init__.py` files ([#&#8203;2412](https://github.com/getsentry/sentry-python/issues/2412)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Fix `mypy` errors ([#&#8203;2433](https://github.com/getsentry/sentry-python/issues/2433)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Fix pre-commit issues ([#&#8203;2424](https://github.com/getsentry/sentry-python/issues/2424)) by [@&#8203;bukzor-sentryio](https://github.com/bukzor-sentryio) - Update [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md) ([#&#8203;2411](https://github.com/getsentry/sentry-python/issues/2411)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Bump `sphinx` from 7.2.5 to 7.2.6 ([#&#8203;2378](https://github.com/getsentry/sentry-python/issues/2378)) by [@&#8203;dependabot](https://github.com/dependabot) - \[Experimental] Add explain plan to DB spans ([#&#8203;2315](https://github.com/getsentry/sentry-python/issues/2315)) by [@&#8203;antonpirker](https://github.com/antonpirker) ### [`v1.31.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1310) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.30.0...1.31.0) ##### Various fixes & improvements - **New:** Add integration for `clickhouse-driver` ([#&#8203;2167](https://github.com/getsentry/sentry-python/issues/2167)) by [@&#8203;mimre25](https://github.com/mimre25) For more information, see the documentation for [clickhouse-driver](https://docs.sentry.io/platforms/python/configuration/integrations/clickhouse-driver) for more information. Usage: ```python import sentry_sdk from sentry_sdk.integrations.clickhouse_driver import ClickhouseDriverIntegration sentry_sdk.init( dsn='___PUBLIC_DSN___', integrations=[ ClickhouseDriverIntegration(), ], ) ``` - **New:** Add integration for `asyncpg` ([#&#8203;2314](https://github.com/getsentry/sentry-python/issues/2314)) by [@&#8203;mimre25](https://github.com/mimre25) For more information, see the documentation for [asyncpg](https://docs.sentry.io/platforms/python/configuration/integrations/asyncpg/) for more information. Usage: ```python 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 ([#&#8203;2331](https://github.com/getsentry/sentry-python/issues/2331)) by [@&#8203;jan-auer](https://github.com/jan-auer) For more information, see the documentation for [Celery](https://docs.sentry.io//platforms/python/guides/celery/#distributed-traces) for more information. Usage: ```python 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 (#&#8203;2359) by @&#8203;szokeasaurusrex - Backpressure: only downsample a max of 10 times (#&#8203;2347) by @&#8203;sl0thentr0py - Made NoOpSpan compatible to Transactions. (#&#8203;2364) by @&#8203;antonpirker - Cleanup ASGI integration (#&#8203;2335) by @&#8203;antonpirker - Pin anyio in tests (dep of httpx), because new major 4.0.0 breaks tests. (#&#8203;2336) by @&#8203;antonpirker - Added link to backpressure section in docs. (#&#8203;2354) by @&#8203;antonpirker - Add .vscode to .gitignore (#&#8203;2317) by @&#8203;shoaib-mohd - Documenting Spans and Transactions (#&#8203;2358) by @&#8203;antonpirker - Fix in profiler: do not call getcwd from module root (#&#8203;2329) by @&#8203;Zylphrex - Fix deprecated version attribute (#&#8203;2338) by @&#8203;vagi8 - Fix transaction name in Starlette and FastAPI (#&#8203;2341) by @&#8203;antonpirker - Fix tests using Postgres (#&#8203;2362) by @&#8203;antonpirker - build(deps): Updated linting tooling (#&#8203;2350) by @&#8203;antonpirker - build(deps): bump sphinx from 7.2.4 to 7.2.5 (#&#8203;2344) by @&#8203;dependabot - build(deps): bump actions/checkout from 2 to 4 (#&#8203;2352) by @&#8203;dependabot - build(deps): bump checkouts/data-schemas from `ebc77d3` to `68def1e` (#&#8203;2351) by @&#8203;dependabot ``` ### [`v1.30.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1300) [Compare Source](https://github.com/getsentry/sentry-python/compare/1.29.2...1.30.0) ##### Various fixes & improvements - Officially support Python 3.11 ([#&#8203;2300](https://github.com/getsentry/sentry-python/issues/2300)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Context manager monitor ([#&#8203;2290](https://github.com/getsentry/sentry-python/issues/2290)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Set response status code in transaction `response` context. ([#&#8203;2312](https://github.com/getsentry/sentry-python/issues/2312)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Add missing context kwarg to `_sentry_task_factory` ([#&#8203;2267](https://github.com/getsentry/sentry-python/issues/2267)) by [@&#8203;JohnnyDeuss](https://github.com/JohnnyDeuss) - In Postgres take the connection params from the connection ([#&#8203;2308](https://github.com/getsentry/sentry-python/issues/2308)) by [@&#8203;antonpirker](https://github.com/antonpirker) - Experimental: Allow using OTel for performance instrumentation ([#&#8203;2272](https://github.com/getsentry/sentry-python/issues/2272)) by [@&#8203;sentrivana](https://github.com/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: ```python 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 ([#&#8203;2298](https://github.com/getsentry/sentry-python/issues/2298)) by [@&#8203;sl0thentr0py](https://github.com/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: ```python 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. - Stop recording spans for internal web requests to Sentry ([#&#8203;2297](https://github.com/getsentry/sentry-python/issues/2297)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Add test for `ThreadPoolExecutor` ([#&#8203;2259](https://github.com/getsentry/sentry-python/issues/2259)) by [@&#8203;gggritso](https://github.com/gggritso) - Add docstrings for `Scope.update_from_*` ([#&#8203;2311](https://github.com/getsentry/sentry-python/issues/2311)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Moved `is_sentry_url` to utils ([#&#8203;2304](https://github.com/getsentry/sentry-python/issues/2304)) by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex) - Fix: arq attribute error on settings, support worker args ([#&#8203;2260](https://github.com/getsentry/sentry-python/issues/2260)) by [@&#8203;rossmacarthur](https://github.com/rossmacarthur) - Fix: Exceptions include detail property for their value ([#&#8203;2193](https://github.com/getsentry/sentry-python/issues/2193)) by [@&#8203;nicolassanmar](https://github.com/nicolassanmar) - build(deps): bump mypy from 1.4.1 to 1.5.1 ([#&#8203;2319](https://github.com/getsentry/sentry-python/issues/2319)) by [@&#8203;dependabot](https://github.com/dependabot) - build(deps): bump sphinx from 7.1.2 to 7.2.4 ([#&#8203;2322](https://github.com/getsentry/sentry-python/issues/2322)) by [@&#8203;dependabot](https://github.com/dependabot) - build(deps): bump sphinx from 7.0.1 to 7.1.2 ([#&#8203;2296](https://github.com/getsentry/sentry-python/issues/2296)) by [@&#8203;dependabot](https://github.com/dependabot) - build(deps): bump checkouts/data-schemas from `1b85152` to `ebc77d3` ([#&#8203;2254](https://github.com/getsentry/sentry-python/issues/2254)) by [@&#8203;dependabot](https://github.com/dependabot) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4wIiwidXBkYXRlZEluVmVyIjoiMzcuODkuNyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
renovate force-pushed renovate/sentry-sdk-1.x from 2e8bb2d182 to 788cca8d0c 2023-09-13 14:00:56 +01:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.30.0 to Update dependency sentry-sdk to v1.31.0 2023-09-13 14:01:02 +01:00
renovate force-pushed renovate/sentry-sdk-1.x from 788cca8d0c to f727485d75 2023-09-21 14:01:06 +01:00 Compare
renovate force-pushed renovate/sentry-sdk-1.x from f727485d75 to 1c052cf204 2023-10-11 14:01:01 +01:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.31.0 to Update dependency sentry-sdk to v1.32.0 2023-10-11 14:01:05 +01:00
renovate force-pushed renovate/sentry-sdk-1.x from 1c052cf204 to 2e670aab9a 2023-10-31 14:00:44 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.32.0 to Update dependency sentry-sdk to v1.33.0 2023-10-31 14:00:46 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from 2e670aab9a to c355cde662 2023-10-31 16:00:59 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.33.0 to Update dependency sentry-sdk to v1.33.1 2023-10-31 16:01:01 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from c355cde662 to 24c478e782 2023-11-02 16:00:48 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.33.1 to Update dependency sentry-sdk to v1.34.0 2023-11-02 16:00:49 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from 24c478e782 to ac7ef68209 2023-11-13 10:00:59 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.34.0 to Update dependency sentry-sdk to v1.35.0 2023-11-13 10:01:03 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from ac7ef68209 to 8af9a4ffd2 2023-11-21 12:00:41 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.35.0 to Update dependency sentry-sdk to v1.36.0 2023-11-21 12:00:43 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from 8af9a4ffd2 to 8f214a9986 2023-11-24 12:00:46 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.36.0 to Update dependency sentry-sdk to v1.37.0 2023-11-24 12:00:48 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from 8f214a9986 to d38461ddfd 2023-11-24 16:00:44 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.37.0 to Update dependency sentry-sdk to v1.37.1 2023-11-24 16:00:46 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from d38461ddfd to cb04f275f1 2023-11-29 14:01:05 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.37.1 to Update dependency sentry-sdk to v1.38.0 2023-11-29 14:01:06 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from cb04f275f1 to c575c8af2d 2023-12-12 16:00:51 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.38.0 to Update dependency sentry-sdk to v1.39.0 2023-12-12 16:00:53 +00:00
renovate force-pushed renovate/sentry-sdk-1.x from c575c8af2d to fb8724fc20 2023-12-14 10:00:41 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to v1.39.0 to Update dependency sentry-sdk to v1.39.1 2023-12-14 10:00:43 +00:00
renovate changed title from Update dependency sentry-sdk to v1.39.1 to Update dependency sentry-sdk to v1.39.1 - autoclosed 2024-01-05 18:01:07 +00:00
renovate closed this pull request 2024-01-05 18:01:07 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: repos/website#63
No description provided.