Skip to content

fix(deps): update dependency sentry-sdk to ~1.15 - autoclosed

Renovate Bot requested to merge renovate/sentry-sdk-1.x into main

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry-sdk (changelog) ~1.5 -> ~1.15 age adoption passing confidence

Release Notes

getsentry/sentry-python

v1.15.0

Compare Source

Various fixes & improvements
  • New: Add Huey Integration (#​1555) by @​Zhenay

    This integration will create performance spans when Huey tasks will be enqueued and when they will be executed.

    Usage:

    Task definition in demo.py:

    import time
    
    from huey import SqliteHuey, crontab
    
    import sentry_sdk
    from sentry_sdk.integrations.huey import HueyIntegration
    
    sentry_sdk.init(
        dsn="...",
        integrations=[
            HueyIntegration(),
        ],
        traces_sample_rate=1.0,
    )
    
    huey = SqliteHuey(filename='/tmp/demo.db')
    
    @​huey.task()
    def add_numbers(a, b):
        return a + b

    Running the tasks in run.py:

    from demo import add_numbers, flaky_task, nightly_backup
    
    import sentry_sdk
    from sentry_sdk.integrations.huey import HueyIntegration
    from sentry_sdk.tracing import TRANSACTION_SOURCE_COMPONENT, Transaction
    
    def main():
        sentry_sdk.init(
            dsn="...",
            integrations=[
                HueyIntegration(),
            ],
            traces_sample_rate=1.0,
        )
    
        with sentry_sdk.start_transaction(name="testing_huey_tasks", source=TRANSACTION_SOURCE_COMPONENT):
            r = add_numbers(1, 2)
    
    if __name__ == "__main__":
        main()
  • Profiling: Do not send single sample profiles (#​1879) by @​Zylphrex

  • Profiling: Add additional test coverage for profiler (#​1877) by @​Zylphrex

  • Profiling: Always use builtin time.sleep (#​1869) by @​Zylphrex

  • Profiling: Defaul in_app decision to None (#​1855) by @​Zylphrex

  • Profiling: Remove use of threading.Event (#​1864) by @​Zylphrex

  • Profiling: Enable profiling on all transactions (#​1797) by @​Zylphrex

  • FastAPI: Fix check for Starlette in FastAPI integration (#​1868) by @​antonpirker

  • Flask: Do not overwrite default for username with email address in FlaskIntegration (#​1873) by @​homeworkprod

  • Tests: Add py3.11 to test-common (#​1871) by @​Zylphrex

  • Fix: Don't log whole event in before_send / event_processor drops (#​1863) by @​sl0thentr0py

v1.14.0

Compare Source

Various fixes & improvements
  • Add before_send_transaction (#​1840) by @​antonpirker

    Adds a hook (similar to before_send) that is called for all transaction events (performance releated data).

    Usage:

      import sentry_sdk
    
      def strip_sensitive_data(event, hint):

modify event here (or return None if you want to drop the event entirely)

    return event

sentry_sdk.init(

...

    before_send_transaction=strip_sensitive_data,
)

See also: https://docs.sentry.io/platforms/python/configuration/filtering/#using-platformidentifier-namebefore-send-transaction-

- Django: Always remove values of Django session related cookies. (#​1842) by @​antonpirker
- Profiling: Enable profiling for ASGI frameworks (#​1824) by @​Zylphrex
- Profiling: Better gevent support (#​1822) by @​Zylphrex
- Profiling: Add profile context to transaction (#​1860) by @​Zylphrex
- Profiling: Use co_qualname in python 3.11 (#​1831) by @​Zylphrex
- OpenTelemetry: fix Use dict for sentry-trace context instead of tuple (#​1847) by @​AbhiPrasad
- OpenTelemetry: fix extra dependency (#​1825) by @​bernardotorres
- OpenTelemetry: fix NoOpSpan updates scope (#​1834) by @​Zylphrex
- OpenTelemetry: Make sure to noop when there is no DSN (#​1852) by @​antonpirker
- FastAPI: Fix middleware being patched multiple times (#​1841) by @​JohnnyDeuss
- Starlette: Avoid import of pkg_resource with Starlette integration (#​1836) by @​mgu
- Removed code coverage target (#​1862) by @​antonpirker

v1.13.0

Compare Source

Various fixes & improvements

v1.12.1

Compare Source

Various fixes & improvements

v1.12.0

Compare Source

Basic OTel support

This adds support to automatically integrate OpenTelemetry performance tracing with Sentry.

See the documentation on how to set it up: https://docs.sentry.io/platforms/python/performance/instrumentation/opentelemetry/

Give it a try and let us know if you have any feedback or problems with using it.

By: @​antonpirker (#​1772, #​1766, #​1765)

Various fixes & improvements

v1.11.1

Compare Source

Various fixes & improvements

v1.11.0

Compare Source

Various fixes & improvements

v1.10.1

Compare Source

Various fixes & improvements

v1.10.0

Compare Source

Various fixes & improvements

v1.9.10

Compare Source

Various fixes & improvements

v1.9.9

Compare Source

Django update (ongoing)
  • Instrument Django Signals so they show up in "Performance" view (#​1526) by @​BeryJu
  • include other Django enhancements brought up by the community
Various fixes & improvements

v1.9.8

Compare Source

Various fixes & improvements
  • Baggage creation for head of trace (#​1589) by @​sl0thentr0py
    • The SDK now also generates new baggage entries for dynamic sampling when it is the first (head) SDK in the pipeline.

v1.9.7

Compare Source

Various fixes & improvements

Note: The last version 1.9.6 introduced a breaking change where projects that used Starlette or FastAPI and had manually setup SentryAsgiMiddleware could not start. This versions fixes this behaviour. With this version if you have a manual SentryAsgiMiddleware setup and are using Starlette or FastAPI everything just works out of the box.

Sorry for any inconveniences the last version might have brought to you.

We can do better and in the future we will do our best to not break your code again.

v1.9.6

Compare Source

Various fixes & improvements

v1.9.5

Compare Source

Various fixes & improvements

v1.9.4

Compare Source

Various fixes & improvements

v1.9.3

Compare Source

Various fixes & improvements

v1.9.2

Compare Source

Various fixes & improvements

v1.9.1

Compare Source

Various fixes & improvements

v1.9.0

Compare Source

Various fixes & improvements

v1.8.0

Compare Source

Various fixes & improvements
  • feat(starlette): add Starlette integration (#​1441) by @​sl0thentr0py Important: Remove manual usage of SentryAsgiMiddleware! This is now done by the Starlette integration. Usage:

    from starlette.applications import Starlette
    
    from sentry_sdk.integrations.starlette import StarletteIntegration
    
    sentry_sdk.init(
        dsn="...",
        integrations=[StarletteIntegration()],
    )
    
    app = Starlette(debug=True, routes=[...])
  • feat(fastapi): add FastAPI integration (#​829) by @​antonpirker

    Important: Remove manual usage of SentryAsgiMiddleware! This is now done by the FastAPI integration.

    Usage:

    from fastapi import FastAPI
    
    from sentry_sdk.integrations.starlette import StarletteIntegration
    from sentry_sdk.integrations.fastapi import FastApiIntegration
    
    sentry_sdk.init(
        dsn="...",
        integrations=[StarletteIntegration(), FastApiIntegration()],
    )
    
    app = FastAPI()

    Yes, you have to add both, the StarletteIntegration AND the FastApiIntegration!

  • fix: avoid sending empty Baggage header (#​1507) by @​intgr

  • fix: properly freeze Baggage object (#​1508) by @​intgr

  • docs: fix simple typo, collecter | collector (#​1505) by @​timgates42

v1.7.2

Compare Source

Various fixes & improvements

v1.7.1

Compare Source

Various fixes & improvements

v1.7.0

Compare Source

Various fixes & improvements
  • feat(tracing): Dynamic Sampling Context / Baggage continuation (#​1485) by @​sl0thentr0py

    The SDK now propagates the W3C Baggage Header from incoming transactions to outgoing requests. It also extracts Sentry specific sampling information and adds it to the transaction headers to enable Dynamic Sampling in the product.

v1.6.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: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports