Skip to content

Commit c1c5a95

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.10.0'
2 parents 5bad5c6 + b026dbd commit c1c5a95

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Changelog
22

3+
## 2.10.0
4+
5+
### Various fixes & improvements
6+
7+
- Add client cert and key support to `HttpTransport` (#3258) by @grammy-jiang
8+
9+
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.
10+
11+
- OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287) by @colin-sentry
12+
- OpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken usage opt-in (#3289) by @colin-sentry
13+
14+
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.
15+
16+
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.
17+
18+
```python
19+
sentry_sdk.init(
20+
integrations=[
21+
OpenAIIntegration(tiktoken_encoding_name="cl100k_base"),
22+
LangchainIntegration(tiktoken_encoding_name="cl100k_base"),
23+
],
24+
)
25+
```
26+
27+
- PyMongo: Send query description as valid JSON (#3291) by @0Calories
28+
- Remove Python 2 compatibility code (#3284) by @szokeasaurusrex
29+
- Fix `sentry_sdk.init` type hint (#3283) by @szokeasaurusrex
30+
- Deprecate `hub` in `Profile` (#3270) by @szokeasaurusrex
31+
- Stop using `Hub` in `init` (#3275) by @szokeasaurusrex
32+
- Delete `_should_send_default_pii` (#3274) by @szokeasaurusrex
33+
- Remove `Hub` usage in `conftest` (#3273) by @szokeasaurusrex
34+
- Rename debug logging filter (#3260) by @szokeasaurusrex
35+
- Update `NoOpSpan.finish` signature (#3267) by @szokeasaurusrex
36+
- Remove `Hub` in `Transaction.finish` (#3267) by @szokeasaurusrex
37+
- Remove Hub from `capture_internal_exception` logic (#3264) by @szokeasaurusrex
38+
- Improve `Scope._capture_internal_exception` type hint (#3264) by @szokeasaurusrex
39+
- Correct `ExcInfo` type (#3266) by @szokeasaurusrex
40+
- Stop using `Hub` in `tracing_utils` (#3269) by @szokeasaurusrex
41+
342
## 2.9.0
443

544
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
2929
author = "Sentry Team and Contributors"
3030

31-
release = "2.9.0"
31+
release = "2.10.0"
3232
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3333

3434

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,4 +562,4 @@ def _get_default_options():
562562
del _get_default_options
563563

564564

565-
VERSION = "2.9.0"
565+
VERSION = "2.10.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_file_text(file_name):
2121

2222
setup(
2323
name="sentry-sdk",
24-
version="2.9.0",
24+
version="2.10.0",
2525
author="Sentry Team and Contributors",
2626
author_email="[email protected]",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)