Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9165a3e
Choose a base ref
...
head repository: getsentry/sentry-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fe44f09
Choose a head ref
  • 18 commits
  • 28 files changed
  • 12 contributors

Commits on Oct 21, 2022

  1. Merge branch 'release/1.10.1'

    getsentry-bot committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    d0aba15 View commit details
    Browse the repository at this point in the history
  2. perf(profiling): Tune the sample profile generation code for performa…

    …nce (#1694)
    
    We noticed that generating the sample format at the end of a profile can get
    rather slow and this aims to improve what we can here with minimal changes. A
    few things we took advantage of to accomplish this:
    
    - Turning the extracted stack into a tuple so it is hashable so it can be used
      as a dictionary key. This let's us check if the stack is indexed first, and
      skip indexing the frames again. This is especially effective in profiles where
      it's blocking on a network request for example, since there will be many
      identical stacks.
    - Using the hash of the stack as the dictionary key. Hashing the entire stack
      can be an expensive operation since a stack can have up to 128 frames. Using
      it as a dictionary key means it needs to be rehashed each time. To avoid this,
      we pre-hash the stack and use the hash as a dictionary key which is more
      efficient.
    - Convert numbers to strings ahead of time if we know have to. Values like the
      tid and elapsed since start ns needs to be sent as a string. However, many
      samples share the same value for it, and we're doing the conversion each time.
      Instead, we convert them to a string upfront and reuse it as needed in order
      to minimize unnecessary calculations.
    Zylphrex authored Oct 21, 2022
    Configuration menu
    Copy the full SHA
    a8fdcb0 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2022

  1. build(deps): bump checkouts/data-schemas from a214fbc to 20ff3b9 (#…

    …1703)
    
    Bumps [checkouts/data-schemas](https://github.com/getsentry/sentry-data-schemas) from `a214fbc` to `20ff3b9`.
    - [Release notes](https://github.com/getsentry/sentry-data-schemas/releases)
    - [Commits](getsentry/sentry-data-schemas@a214fbc...20ff3b9)
    
    ---
    updated-dependencies:
    - dependency-name: checkouts/data-schemas
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 24, 2022
    Configuration menu
    Copy the full SHA
    fdc8024 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1240743 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. fix(utils): strip_string() checks text length counting bytes not chars (

    #1711)
    
    The truncation and indexes in the AnnotatedValues it's done by number of bytes
    and not number of characters.
    
    Fixes GH-1691
    mgaligniana authored Oct 27, 2022
    Configuration menu
    Copy the full SHA
    e2674d4 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. Move relay to port 5333 to avoid collisions (#1716)

    * Move relay to port 5333 to avoid collisions
    * Ignoring type checking for .last_token because it is present in EnhancedAST...
    
    Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
    sl0thentr0py and antonpirker authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    d196a43 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. feat(pymongo): add PyMongo integration (#1590)

    * feat(pymongo): add PyMongo integration
    
    Adds breadcrumbs and performance traces for PyMongo queries using an
    official monitoring API. Integration is similar to the one available in
    OpenTelemetry, tags set to values recommended for attributes by OT as
    specified in `Span Operations` guidelines.
    
    Personal identifiable information (PII) will be stripped from all PyMongo commands. (This was tested in the PyMongo versions below, but "should" also be future proof)
    
    PyMongo version selection explanation:
    * 3.1 - introduction of monitoring API. Only Python 2.7 and 3.6
    supported.
    * 3.12 - latest 3.x release, support for 2.7, 3.6-3.9 (3.7-3.9 added in
    various minor releases between 3.1 and 3.12).
    * 4.0 - no support for 2.7, added support for 3.10.
    * 4.1 - no support for 3.6.0-3.6.1.
    * 4.2 - no support for any 3.6.
    
    Co-authored-by: Szymon Soloch <ssoloch@opera.com>
    Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
    3 people authored Nov 4, 2022
    Configuration menu
    Copy the full SHA
    fa1b964 View commit details
    Browse the repository at this point in the history
  2. Performance optimizations (#1725)

    * Made function faster
    antonpirker authored Nov 4, 2022
    Configuration menu
    Copy the full SHA
    76b413a View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. Update actions/upload-artifact to v3.1.1 (#1718)

    Update actions/upload-artifact to v3.1.1
    
    Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
    mattgauntseo-sentry and antonpirker authored Nov 7, 2022
    Configuration menu
    Copy the full SHA
    f3f2eb0 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. feat(profiling): Extract more frame info (#1702)

    This extracts a little more information around the frame that we'll use to improve the visualization/groupings including
    - in_app
    - module
    Zylphrex authored Nov 8, 2022
    Configuration menu
    Copy the full SHA
    d8a69fd View commit details
    Browse the repository at this point in the history
  2. ref(profiling): Use sleep scheduler by default (#1729)

    The sleep scheduler is the most reliable of the available schedulers, make it
    the default.
    Zylphrex authored Nov 8, 2022
    1 Configuration menu
    Copy the full SHA
    e6238d8 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. ref(profiling): Do not error if already setup (#1731)

    We currently error if profiling is already setup which can be error prone
    depending on the end user's setup. This change ensures that we only setup
    profiling once and once setup, it's reused.
    Zylphrex authored Nov 9, 2022
    1 Configuration menu
    Copy the full SHA
    0923d03 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Fix reading FastAPI request body twice. (#1724)

    Starlette/FastAPI is internally caching the request body if read via request.json() or request.body() but NOT when using request.form(). This leads to a problem when our Sentry Starlette integration wants to read the body data and also the users code wants to read the same data.
    
    Solution:
    Force caching of request body for .form() calls too, to prevent error when body is read twice.
    
    The tests where mocking .stream() and thus hiding this problem. So the tests have been refactored to mock the underlying ._receive() function instead.
    
    Co-authored-by: hasier <hasier@users.noreply.github.com>
    antonpirker and hasier authored Nov 10, 2022
    1 Configuration menu
    Copy the full SHA
    f222c9d View commit details
    Browse the repository at this point in the history
  2. Fix signals problem on sentry.io (#1732)

    When using the newest version of the Python SDK on the sentry backend we get the following error:
    
    name = "partial(<function " + receiver.func.__name__ + ">)"  # type: ignore
    AttributeError: __name__
    
    This change gets the __name__ attribute in a very defensive way, to not raise any errors what so ever.
    antonpirker authored Nov 10, 2022
    1 Configuration menu
    Copy the full SHA
    a5ee1bd View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. release: 1.11.0

    getsentry-bot committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    2814521 View commit details
    Browse the repository at this point in the history
  2. Fixed test setup.

    antonpirker committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    914aa8f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    954e8f4 View commit details
    Browse the repository at this point in the history
  4. Fixed test requirements

    antonpirker committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    fe44f09 View commit details
    Browse the repository at this point in the history
Loading