Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump sentry-sdk from 1.44.0 to 2.0.1 in /requirements #14521

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 1, 2024

Bumps sentry-sdk from 1.44.0 to 2.0.1.

Release notes

Sourced from sentry-sdk's releases.

2.0.1

Various fixes & improvements

2.0.0

This is the first major update in a long time!

We dropped support for some ancient languages and frameworks (Yes, Python 2.7 is no longer supported). Additionally we refactored a big part of the foundation of the SDK (how data inside the SDK is handled).

We hope you like it!

For a shorter version of what you need to do, to upgrade to Sentry SDK 2.0 see: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x

New Features

  • Additional integrations will now be activated automatically if the SDK detects the respective package is installed: Ariadne, ARQ, asyncpg, Chalice, clickhouse-driver, GQL, Graphene, huey, Loguru, PyMongo, Quart, Starlite, Strawberry.
  • Added new API for custom instrumentation: new_scope, isolation_scope. See the Deprecated section to see how they map to the existing APIs.

Changed

(These changes are all backwards-incompatible. Breaking Change (if you are just skimming for that phrase))

  • The Pyramid integration will not capture errors that might happen in authenticated_userid() in a custom AuthenticationPolicy class.
  • The method need_code_loation of the MetricsAggregator was renamed to need_code_location.
  • The BackgroundWorker thread used to process events was renamed from raven-sentry.BackgroundWorker to sentry-sdk.BackgroundWorker.
  • The reraise function was moved from sentry_sdk._compat to sentry_sdk.utils.
  • The _ScopeManager was moved from sentry_sdk.hub to sentry_sdk.scope.
  • Moved the contents of tracing_utils_py3.py to tracing_utils.py. The start_child_span_decorator is now in sentry_sdk.tracing_utils.
  • The actual implementation of get_current_span was moved to sentry_sdk.tracing_utils. sentry_sdk.get_current_span is still accessible as part of the top-level API.
  • sentry_sdk.tracing_utils.add_query_source(): Removed the hub parameter. It is not necessary anymore.
  • sentry_sdk.tracing_utils.record_sql_queries(): Removed the hub parameter. It is not necessary anymore.
  • sentry_sdk.tracing_utils.get_current_span() does now take a scope instead of a hub as parameter.
  • sentry_sdk.tracing_utils.should_propagate_trace() now takes a Client instead of a Hub as first parameter.
  • sentry_sdk.utils.is_sentry_url() now takes a Client instead of a Hub as first parameter.
  • sentry_sdk.utils._get_contextvars does not return a tuple with three values, but a tuple with two values. The copy_context was removed.
  • If you create a transaction manually and later mutate the transaction in a configure_scope block this does not work anymore. Here is a recipe on how to change your code to make it work: Your existing implementation:
    transaction = sentry_sdk.transaction(...)

... (truncated)

Changelog

Sourced from sentry-sdk's changelog.

2.0.1

Various fixes & improvements

2.0.0

This is the first major update in a long time!

We dropped support for some ancient languages and frameworks (Yes, Python 2.7 is no longer supported). Additionally we refactored a big part of the foundation of the SDK (how data inside the SDK is handled).

We hope you like it!

For a shorter version of what you need to do, to upgrade to Sentry SDK 2.0 see: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x

New Features

  • Additional integrations will now be activated automatically if the SDK detects the respective package is installed: Ariadne, ARQ, asyncpg, Chalice, clickhouse-driver, GQL, Graphene, huey, Loguru, PyMongo, Quart, Starlite, Strawberry.
  • Added new API for custom instrumentation: new_scope, isolation_scope. See the Deprecated section to see how they map to the existing APIs.

Changed

(These changes are all backwards-incompatible. Breaking Change (if you are just skimming for that phrase))

  • The Pyramid integration will not capture errors that might happen in authenticated_userid() in a custom AuthenticationPolicy class.
  • The method need_code_loation of the MetricsAggregator was renamed to need_code_location.
  • The BackgroundWorker thread used to process events was renamed from raven-sentry.BackgroundWorker to sentry-sdk.BackgroundWorker.
  • The reraise function was moved from sentry_sdk._compat to sentry_sdk.utils.
  • The _ScopeManager was moved from sentry_sdk.hub to sentry_sdk.scope.
  • Moved the contents of tracing_utils_py3.py to tracing_utils.py. The start_child_span_decorator is now in sentry_sdk.tracing_utils.
  • The actual implementation of get_current_span was moved to sentry_sdk.tracing_utils. sentry_sdk.get_current_span is still accessible as part of the top-level API.
  • sentry_sdk.tracing_utils.add_query_source(): Removed the hub parameter. It is not necessary anymore.
  • sentry_sdk.tracing_utils.record_sql_queries(): Removed the hub parameter. It is not necessary anymore.
  • sentry_sdk.tracing_utils.get_current_span() does now take a scope instead of a hub as parameter.
  • sentry_sdk.tracing_utils.should_propagate_trace() now takes a Client instead of a Hub as first parameter.
  • sentry_sdk.utils.is_sentry_url() now takes a Client instead of a Hub as first parameter.
  • sentry_sdk.utils._get_contextvars does not return a tuple with three values, but a tuple with two values. The copy_context was removed.
  • If you create a transaction manually and later mutate the transaction in a configure_scope block this does not work anymore. Here is a recipe on how to change your code to make it work: Your existing implementation:

... (truncated)

Commits
  • 882ed7f Updated changelog
  • ce89048 release: 2.0.1
  • 162773c fix(integrations): Do not use convenience decorator (#3022)
  • a626f01 Add Lambda function that deletes test Lambda functions (#2960)
  • f5db9ce Refactoring propagation context (#2970)
  • d91a510 Use pid for test database name in Django tests (#2998)
  • 534a301 test(tracing): Add tests for discarded transaction debug messages
  • 5aa7c9b fix(tracing): Correct discarded transaction debug message
  • bda9deb docs(tracing): Delete inaccurate comment
  • 6a73368 build(deps): bump checkouts/data-schemas from 1e17eb5 to 4aa14a7 (#2997)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.44.0 to 2.0.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.44.0...2.0.1)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added Backend Server stuff yo dependencies Pull requests that update a dependency file labels May 1, 2024
@stevejalim
Copy link
Collaborator

stevejalim commented May 9, 2024

There's a migration guide linked from the changelog

@stevejalim stevejalim added the Help wanted 👋 Community contributions welcome label May 9, 2024
stevejalim added a commit that referenced this pull request May 9, 2024
Prod:
Resolves #14553 Bump jinja2 from 3.1.3 to 3.1.4
Resolves #14532 Bump newrelic from 9.8.0 to 9.9.0
Resolves #14516 Bump boto3 from 1.34.79 to 1.34.101
Resolves #14526 Bump lxml from 5.2.0 to 5.2.1
Resolves #14528 Bump docutils from 0.20.1 to 0.21.2

Dev:
Resolves #14529 Bump pipdeptree from 2.17.0 to 2.19.1
Resolves #14524 Bump ruff from 0.3.5 to 0.4.2
Resolves #14514 Bump freezegun from 1.4.0 to 1.5.0

Docs:
Resolves #14520 Bump sphinx from 6.2.1 to 7.3.7
Resolves #14527 Bump sphinx-autobuild from 2021.3.14 to 2024.4.16
Resolves #14531 Bump myst-parser from 2.0.0 to 3.0.1

Subdeps, auto upgraded:
Resolves #14533 Bump referencing from 0.34.0 to 0.35.0
Resolves #14530 Bump botocore from 1.34.85 to 1.34.95
Resolves #14517 Bump jsonschema from 4.21.1 to 4.22.0

Closed - not doing these right now:
Resolves #14522 Bump django from 4.2.11 to 5.0.4
Resolves #14515 Bump tinycss2 from 1.2.1 to 1.3.0

Left open:
* #14521 Bump sentry-sdk from 1.44.0 to 2.0.1 - major release, see PR for link to steps

* #14519 Bump translate-toolkit from 3.12.2 to 3.13.0 - needs care/isolation/checking, due to dropped mozilla-related code
* #14525 Bump compare-locales from 9.0.2 to 9.0.3 - as above

* #14523 Bump pytest from 7.4.4 to 8.2.0 - needs upgrading in isolation with selenium in case requires rollback
* #14518 Bump selenium from 4.9.1 to 4.20.0 - see above
@stevejalim stevejalim mentioned this pull request May 9, 2024
stevejalim added a commit that referenced this pull request May 9, 2024
Prod:
Resolves #14553 Bump jinja2 from 3.1.3 to 3.1.4
Resolves #14532 Bump newrelic from 9.8.0 to 9.9.0
Resolves #14516 Bump boto3 from 1.34.79 to 1.34.101
Resolves #14526 Bump lxml from 5.2.0 to 5.2.1
Resolves #14528 Bump docutils from 0.20.1 to 0.21.2

Dev:
Resolves #14529 Bump pipdeptree from 2.17.0 to 2.19.1
Resolves #14524 Bump ruff from 0.3.5 to 0.4.2
Resolves #14514 Bump freezegun from 1.4.0 to 1.5.0

Docs:
Resolves #14520 Bump sphinx from 6.2.1 to 7.3.7
Resolves #14527 Bump sphinx-autobuild from 2021.3.14 to 2024.4.16
Resolves #14531 Bump myst-parser from 2.0.0 to 3.0.1

Subdeps, auto upgraded:
Resolves #14533 Bump referencing from 0.34.0 to 0.35.0
Resolves #14530 Bump botocore from 1.34.85 to 1.34.95
Resolves #14517 Bump jsonschema from 4.21.1 to 4.22.0

Closed - not doing these right now:
Resolves #14522 Bump django from 4.2.11 to 5.0.4
Resolves #14515 Bump tinycss2 from 1.2.1 to 1.3.0

Left open:
* #14521 Bump sentry-sdk from 1.44.0 to 2.0.1 - major release, see PR for link to steps

* #14519 Bump translate-toolkit from 3.12.2 to 3.13.0 - needs care/isolation/checking, due to dropped mozilla-related code
* #14525 Bump compare-locales from 9.0.2 to 9.0.3 - as above

* #14523 Bump pytest from 7.4.4 to 8.2.0 - needs upgrading in isolation with selenium in case requires rollback
* #14518 Bump selenium from 4.9.1 to 4.20.0 - see above
Copy link
Contributor Author

dependabot bot commented on behalf of github May 20, 2024

Superseded by #14584.

@dependabot dependabot bot closed this May 20, 2024
@dependabot dependabot bot deleted the dependabot/pip/requirements/sentry-sdk-2.0.1 branch May 20, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Server stuff yo dependencies Pull requests that update a dependency file Help wanted 👋 Community contributions welcome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant