-
Notifications
You must be signed in to change notification settings - Fork 589
Comparing changes
Open a pull request
base repository: getsentry/sentry-python
base: 9165a3e
head repository: getsentry/sentry-python
compare: fe44f09
- 18 commits
- 28 files changed
- 12 contributors
Commits on Oct 21, 2022
-
getsentry-bot committed
Oct 21, 2022 Configuration menu - View commit details
-
Copy full SHA for d0aba15 - Browse repository at this point
Copy the full SHA d0aba15View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a8fdcb0 - Browse repository at this point
Copy the full SHA a8fdcb0View commit details
Commits on Oct 24, 2022
-
build(deps): bump checkouts/data-schemas from
a214fbcto20ff3b9(#……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>
Configuration menu - View commit details
-
Copy full SHA for fdc8024 - Browse repository at this point
Copy the full SHA fdc8024View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1240743 - Browse repository at this point
Copy the full SHA 1240743View commit details
Commits on Oct 27, 2022
-
fix(utils): strip_string() checks text length counting bytes not chars (
Configuration menu - View commit details
-
Copy full SHA for e2674d4 - Browse repository at this point
Copy the full SHA e2674d4View commit details
Commits on Nov 2, 2022
-
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>
Configuration menu - View commit details
-
Copy full SHA for d196a43 - Browse repository at this point
Copy the full SHA d196a43View commit details
Commits on Nov 4, 2022
-
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>
Configuration menu - View commit details
-
Copy full SHA for fa1b964 - Browse repository at this point
Copy the full SHA fa1b964View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76b413a - Browse repository at this point
Copy the full SHA 76b413aView commit details
Commits on Nov 7, 2022
-
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>
Configuration menu - View commit details
-
Copy full SHA for f3f2eb0 - Browse repository at this point
Copy the full SHA f3f2eb0View commit details
Commits on Nov 8, 2022
-
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
Configuration menu - View commit details
-
Copy full SHA for d8a69fd - Browse repository at this point
Copy the full SHA d8a69fdView commit details -
ref(profiling): Use sleep scheduler by default (#1729)
The sleep scheduler is the most reliable of the available schedulers, make it the default.
1Configuration menu - View commit details
-
Copy full SHA for e6238d8 - Browse repository at this point
Copy the full SHA e6238d8View commit details
Commits on Nov 9, 2022
-
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.
1Configuration menu - View commit details
-
Copy full SHA for 0923d03 - Browse repository at this point
Copy the full SHA 0923d03View commit details
Commits on Nov 10, 2022
-
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>
1Configuration menu - View commit details
-
Copy full SHA for f222c9d - Browse repository at this point
Copy the full SHA f222c9dView commit details -
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.
1Configuration menu - View commit details
-
Copy full SHA for a5ee1bd - Browse repository at this point
Copy the full SHA a5ee1bdView commit details
Commits on Nov 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2814521 - Browse repository at this point
Copy the full SHA 2814521View commit details -
Configuration menu - View commit details
-
Copy full SHA for 914aa8f - Browse repository at this point
Copy the full SHA 914aa8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 954e8f4 - Browse repository at this point
Copy the full SHA 954e8f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe44f09 - Browse repository at this point
Copy the full SHA fe44f09View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 9165a3e...fe44f09