Skip to content

Commit b24c1e4

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.1.1'
2 parents 5520bdb + c308cfc commit b24c1e4

File tree

4 files changed

+72
-16
lines changed

4 files changed

+72
-16
lines changed

CHANGELOG.md

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,84 @@
11
# Changelog
22

3-
## 2.1.0
3+
## 2.1.1
44

5-
### Various fixes & improvements
5+
- Fix trace propagation in Celery tasks started by Celery Beat. (#3047) by @antonpirker
6+
7+
## 2.1.0
68

79
- fix(quart): Fix Quart integration (#3043) by @szokeasaurusrex
8-
- Reduce API cross-section for huggingface in test (#3042) by @colin-sentry
9-
- Huggingface Hub integration (#3033) by @colin-sentry
10-
- feat(integrations): Add Anthropic Integration (#2831) by @czyber
11-
- meta(license): Bump copyright year (#3029) by @szokeasaurusrex
12-
- feat(ai): Langchain integration (#2911) by @colin-sentry
13-
- fix(django): fix Django ASGI integration on Python 3.12 (#3027) by @bellini666
14-
- feat(tests): Parallelize tox (#3025) by @sentrivana
15-
- build(deps): bump checkouts/data-schemas from `4aa14a7` to `4381a97` (#3028) by @dependabot
10+
11+
- **New integration:** [Langchain](https://docs.sentry.io/platforms/python/integrations/langchain/) (#2911) by @colin-sentry
12+
13+
Usage: (Langchain is auto enabling, so you do not need to do anything special)
14+
```python
15+
from langchain_openai import ChatOpenAI
16+
import sentry_sdk
17+
18+
sentry_sdk.init(
19+
dsn="...",
20+
enable_tracing=True,
21+
traces_sample_rate=1.0,
22+
)
23+
24+
llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0)
25+
```
26+
27+
Check out [the LangChain docs](https://docs.sentry.io/platforms/python/integrations/langchain/) for details.
28+
29+
- **New integration:** [Anthropic](https://docs.sentry.io/platforms/python/integrations/anthropic/) (#2831) by @czyber
30+
31+
Usage: (add the AnthropicIntegration to your `sentry_sdk.init()` call)
32+
```python
33+
from anthropic import Anthropic
34+
35+
import sentry_sdk
36+
37+
sentry_sdk.init(
38+
dsn="...",
39+
enable_tracing=True,
40+
traces_sample_rate=1.0,
41+
integrations=[AnthropicIntegration()],
42+
)
43+
44+
client = Anthropic()
45+
```
46+
Check out [the Anthropic docs](https://docs.sentry.io/platforms/python/integrations/anthropic/) for details.
47+
48+
- **New integration:** [Huggingface Hub](https://docs.sentry.io/platforms/python/integrations/huggingface/) (#3033) by @colin-sentry
49+
50+
Usage: (Huggingface Hub is auto enabling, so you do not need to do anything special)
51+
52+
```python
53+
import sentry_sdk
54+
from huggingface_hub import InferenceClient
55+
56+
sentry_sdk.init(
57+
dsn="...",
58+
enable_tracing=True,
59+
traces_sample_rate=1.0,
60+
)
61+
62+
client = InferenceClient("some-model")
63+
```
64+
65+
Check out [the Huggingface docs](https://docs.sentry.io/platforms/python/integrations/huggingface/) for details. (comming soon!)
66+
67+
- fix(huggingface): Reduce API cross-section for huggingface in test (#3042) by @colin-sentry
68+
- fix(django): Fix Django ASGI integration on Python 3.12 (#3027) by @bellini666
1669
- feat(perf): Add ability to put measurements directly on spans. (#2967) by @colin-sentry
1770
- fix(tests): Fix trytond tests (#3031) by @sentrivana
1871
- fix(tests): Update `pytest-asyncio` to fix CI (#3030) by @sentrivana
1972
- fix(docs): Link to respective migration guides directly (#3020) by @sentrivana
2073
- docs(scope): Add docstring to `Scope.set_tags` (#2978) by @szokeasaurusrex
2174
- test(scope): Fix typos in assert error message (#2978) by @szokeasaurusrex
22-
- test: Add unit test for top-level API `set_tags` (#2978) by @szokeasaurusrex
23-
- test(scope): Add unit test for `Scope.set_tags` (#2978) by @szokeasaurusrex
24-
- feat: Add `set_tags` to top-level API (#2978) by @szokeasaurusrex
2575
- feat(scope): New `set_tags` function (#2978) by @szokeasaurusrex
76+
- test(scope): Add unit test for `Scope.set_tags` (#2978) by @szokeasaurusrex
77+
- feat(scope): Add `set_tags` to top-level API (#2978) by @szokeasaurusrex
78+
- test(scope): Add unit test for top-level API `set_tags` (#2978) by @szokeasaurusrex
79+
- feat(tests): Parallelize tox (#3025) by @sentrivana
80+
- build(deps): Bump checkouts/data-schemas from `4aa14a7` to `4381a97` (#3028) by @dependabot
81+
- meta(license): Bump copyright year (#3029) by @szokeasaurusrex
2682

2783
## 2.0.1
2884

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.1.0"
31+
release = "2.1.1"
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
@@ -433,4 +433,4 @@ def _get_default_options():
433433
del _get_default_options
434434

435435

436-
VERSION = "2.1.0"
436+
VERSION = "2.1.1"

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.1.0",
24+
version="2.1.1",
2525
author="Sentry Team and Contributors",
2626
author_email="[email protected]",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)