|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 2.2.0 |
| 4 | + |
| 5 | +### New features |
| 6 | + |
| 7 | +- Celery integration now sends additional data to Sentry to enable new features to guage the health of your queues |
| 8 | +- Added a new integration for Cohere |
| 9 | +- Reintroduced the `last_event_id` function, which had been removed in 2.0.0 |
| 10 | + |
| 11 | +### Other fixes & improvements |
| 12 | + |
| 13 | +- Add tags + data passing functionality to @ai_track (#3071) by @colin-sentry |
| 14 | +- fix(tracing): Only propagate headers from spans within transactions (#3070) by @szokeasaurusrex |
| 15 | +- ref(metrics): Improve type hints for set metrics (#3048) by @elramen |
| 16 | +- ref(scope): Fix `get_client` typing (#3063) by @szokeasaurusrex |
| 17 | +- Auto-enable Anthropic integration + gate imports (#3054) by @colin-sentry |
| 18 | +- Made MeasurementValue.unit NotRequired (#3051) by @antonpirker |
| 19 | + |
| 20 | +## 2.1.1 |
| 21 | + |
| 22 | +- Fix trace propagation in Celery tasks started by Celery Beat. (#3047) by @antonpirker |
| 23 | + |
| 24 | +## 2.1.0 |
| 25 | + |
| 26 | +- fix(quart): Fix Quart integration (#3043) by @szokeasaurusrex |
| 27 | + |
| 28 | +- **New integration:** [Langchain](https://docs.sentry.io/platforms/python/integrations/langchain/) (#2911) by @colin-sentry |
| 29 | + |
| 30 | + Usage: (Langchain is auto enabling, so you do not need to do anything special) |
| 31 | + ```python |
| 32 | + from langchain_openai import ChatOpenAI |
| 33 | + import sentry_sdk |
| 34 | + |
| 35 | + sentry_sdk.init( |
| 36 | + dsn="...", |
| 37 | + enable_tracing=True, |
| 38 | + traces_sample_rate=1.0, |
| 39 | + ) |
| 40 | + |
| 41 | + llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0) |
| 42 | + ``` |
| 43 | + |
| 44 | + Check out [the LangChain docs](https://docs.sentry.io/platforms/python/integrations/langchain/) for details. |
| 45 | + |
| 46 | +- **New integration:** [Anthropic](https://docs.sentry.io/platforms/python/integrations/anthropic/) (#2831) by @czyber |
| 47 | + |
| 48 | + Usage: (add the AnthropicIntegration to your `sentry_sdk.init()` call) |
| 49 | + ```python |
| 50 | + from anthropic import Anthropic |
| 51 | + |
| 52 | + import sentry_sdk |
| 53 | + |
| 54 | + sentry_sdk.init( |
| 55 | + dsn="...", |
| 56 | + enable_tracing=True, |
| 57 | + traces_sample_rate=1.0, |
| 58 | + integrations=[AnthropicIntegration()], |
| 59 | + ) |
| 60 | + |
| 61 | + client = Anthropic() |
| 62 | + ``` |
| 63 | + Check out [the Anthropic docs](https://docs.sentry.io/platforms/python/integrations/anthropic/) for details. |
| 64 | + |
| 65 | +- **New integration:** [Huggingface Hub](https://docs.sentry.io/platforms/python/integrations/huggingface/) (#3033) by @colin-sentry |
| 66 | + |
| 67 | + Usage: (Huggingface Hub is auto enabling, so you do not need to do anything special) |
| 68 | + |
| 69 | + ```python |
| 70 | + import sentry_sdk |
| 71 | + from huggingface_hub import InferenceClient |
| 72 | + |
| 73 | + sentry_sdk.init( |
| 74 | + dsn="...", |
| 75 | + enable_tracing=True, |
| 76 | + traces_sample_rate=1.0, |
| 77 | + ) |
| 78 | + |
| 79 | + client = InferenceClient("some-model") |
| 80 | + ``` |
| 81 | + |
| 82 | + Check out [the Huggingface docs](https://docs.sentry.io/platforms/python/integrations/huggingface/) for details. (comming soon!) |
| 83 | + |
| 84 | +- fix(huggingface): Reduce API cross-section for huggingface in test (#3042) by @colin-sentry |
| 85 | +- fix(django): Fix Django ASGI integration on Python 3.12 (#3027) by @bellini666 |
| 86 | +- feat(perf): Add ability to put measurements directly on spans. (#2967) by @colin-sentry |
| 87 | +- fix(tests): Fix trytond tests (#3031) by @sentrivana |
| 88 | +- fix(tests): Update `pytest-asyncio` to fix CI (#3030) by @sentrivana |
| 89 | +- fix(docs): Link to respective migration guides directly (#3020) by @sentrivana |
| 90 | +- docs(scope): Add docstring to `Scope.set_tags` (#2978) by @szokeasaurusrex |
| 91 | +- test(scope): Fix typos in assert error message (#2978) by @szokeasaurusrex |
| 92 | +- feat(scope): New `set_tags` function (#2978) by @szokeasaurusrex |
| 93 | +- test(scope): Add unit test for `Scope.set_tags` (#2978) by @szokeasaurusrex |
| 94 | +- feat(scope): Add `set_tags` to top-level API (#2978) by @szokeasaurusrex |
| 95 | +- test(scope): Add unit test for top-level API `set_tags` (#2978) by @szokeasaurusrex |
| 96 | +- feat(tests): Parallelize tox (#3025) by @sentrivana |
| 97 | +- build(deps): Bump checkouts/data-schemas from `4aa14a7` to `4381a97` (#3028) by @dependabot |
| 98 | +- meta(license): Bump copyright year (#3029) by @szokeasaurusrex |
| 99 | + |
3 | 100 | ## 2.0.1 |
4 | 101 |
|
5 | 102 | ### Various fixes & improvements |
|
0 commit comments