Skip to content

Commit

Permalink
chore(deps): update dependency sentry-sdk to v2.10.0 (#1994)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sentry-sdk](https://github.com/getsentry/sentry-python)
([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md))
| `==2.9.0` -> `==2.10.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/sentry-sdk/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/sentry-sdk/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/sentry-sdk/2.9.0/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/sentry-sdk/2.9.0/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>getsentry/sentry-python (sentry-sdk)</summary>

###
[`v2.10.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2100)

[Compare
Source](https://github.com/getsentry/sentry-python/compare/2.9.0...2.10.0)

##### Various fixes & improvements

- Add client cert and key support to `HttpTransport`
([#&#8203;3258](https://github.com/getsentry/sentry-python/issues/3258))
by [@&#8203;grammy-jiang](https://github.com/grammy-jiang)

Add `cert_file` and `key_file` to your `sentry_sdk.init` to use a custom
client cert and key. Alternatively, the environment variables
`CLIENT_CERT_FILE` and `CLIENT_KEY_FILE` can be used as well.

- OpenAI: Lazy initialize tiktoken to avoid http at import time
([#&#8203;3287](https://github.com/getsentry/sentry-python/issues/3287))
by [@&#8203;colin-sentry](https://github.com/colin-sentry)

- OpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken
usage opt-in
([#&#8203;3289](https://github.com/getsentry/sentry-python/issues/3289))
by [@&#8203;colin-sentry](https://github.com/colin-sentry)

Fixed a bug where having certain packages installed along the Sentry SDK
caused an HTTP request to be made to OpenAI infrastructure when the
Sentry SDK was initialized. The request was made when the `tiktoken`
package and at least one of the `openai` or `langchain` packages were
installed.

The request was fetching a `tiktoken` encoding in order to correctly
measure token usage in some OpenAI and Langchain calls. This behavior is
now opt-in. The choice of encoding to use was made configurable as well.
To opt in, set the `tiktoken_encoding_name` parameter in the OpenAPI or
Langchain integration.

    ```python
    sentry_sdk.init(
        integrations=[
            OpenAIIntegration(tiktoken_encoding_name="cl100k_base"),
            LangchainIntegration(tiktoken_encoding_name="cl100k_base"),
        ],
    )
    ```

- PyMongo: Send query description as valid JSON
([#&#8203;3291](https://github.com/getsentry/sentry-python/issues/3291))
by [@&#8203;0Calories](https://github.com/0Calories)

- Remove Python 2 compatibility code
([#&#8203;3284](https://github.com/getsentry/sentry-python/issues/3284))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Fix `sentry_sdk.init` type hint
([#&#8203;3283](https://github.com/getsentry/sentry-python/issues/3283))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Deprecate `hub` in `Profile`
([#&#8203;3270](https://github.com/getsentry/sentry-python/issues/3270))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Stop using `Hub` in `init`
([#&#8203;3275](https://github.com/getsentry/sentry-python/issues/3275))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Delete `_should_send_default_pii`
([#&#8203;3274](https://github.com/getsentry/sentry-python/issues/3274))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Remove `Hub` usage in `conftest`
([#&#8203;3273](https://github.com/getsentry/sentry-python/issues/3273))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Rename debug logging filter
([#&#8203;3260](https://github.com/getsentry/sentry-python/issues/3260))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Update `NoOpSpan.finish` signature
([#&#8203;3267](https://github.com/getsentry/sentry-python/issues/3267))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Remove `Hub` in `Transaction.finish`
([#&#8203;3267](https://github.com/getsentry/sentry-python/issues/3267))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Remove Hub from `capture_internal_exception` logic
([#&#8203;3264](https://github.com/getsentry/sentry-python/issues/3264))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Improve `Scope._capture_internal_exception` type hint
([#&#8203;3264](https://github.com/getsentry/sentry-python/issues/3264))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Correct `ExcInfo` type
([#&#8203;3266](https://github.com/getsentry/sentry-python/issues/3266))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

- Stop using `Hub` in `tracing_utils`
([#&#8203;3269](https://github.com/getsentry/sentry-python/issues/3269))
by [@&#8203;szokeasaurusrex](https://github.com/szokeasaurusrex)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/rustymotors/server).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
  • Loading branch information
renovate[bot] authored Jul 15, 2024
2 parents 056d137 + db56e28 commit 39fbc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pycodestyle==2.12.0
pyflakes==3.2.0
pytest==8.2.2
pyyaml==6.0.1
sentry-sdk==2.9.0
sentry-sdk==2.10.0
-e file:///home/drazisil/mcos/libs/serializable#egg=serializable
-e file:///home/drazisil/mcos/projects/server#egg=server
tcl==0.2
Expand Down

0 comments on commit 39fbc91

Please sign in to comment.