Bump sentry-sdk[starlette] from 1.40.0 to 2.2.0
Bumps sentry-sdk[starlette] from 1.40.0 to 2.2.0.
Release notes
Sourced from sentry-sdk[starlette]'s releases.
2.2.0
New features
- Celery integration now sends additional data to Sentry to enable new features to guage the health of your queues
- Added a new integration for Cohere
- Reintroduced the
last_event_id
function, which had been removed in 2.0.0Other fixes & improvements
- Add tags + data passing functionality to
@ai
_track (#3071) by@colin-sentry
- fix(tracing): Only propagate headers from spans within transactions (#3070) by
@szokeasaurusrex
- ref(metrics): Improve type hints for set metrics (#3048) by
@elramen
- ref(scope): Fix
get_client
typing (#3063) by@szokeasaurusrex
- Auto-enable Anthropic integration + gate imports (#3054) by
@colin-sentry
- Made MeasurementValue.unit NotRequired (#3051) by
@antonpirker
2.1.1
- Fix trace propagation in Celery tasks started by Celery Beat. (#3047) by
@antonpirker
2.1.0
fix(quart): Fix Quart integration (#3043) by
@szokeasaurusrex
New integration: Langchain (#2911) by
@colin-sentry
Usage: (Langchain is auto enabling, so you do not need to do anything special)
from langchain_openai import ChatOpenAI import sentry_sdk sentry_sdk.init( dsn="...", enable_tracing=True, traces_sample_rate=1.0, ) llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0)
Check out the LangChain docs for details.
New integration: Anthropic (#2831) by
@czyber
Usage: (add the AnthropicIntegration to your
sentry_sdk.init()
call)from anthropic import Anthropic import sentry_sdk sentry_sdk.init( dsn="...",
... (truncated)
Changelog
Sourced from sentry-sdk[starlette]'s changelog.
2.2.0
New features
- Celery integration now sends additional data to Sentry to enable new features to guage the health of your queues
- Added a new integration for Cohere
- Reintroduced the
last_event_id
function, which had been removed in 2.0.0Other fixes & improvements
- Add tags + data passing functionality to
@ai
_track (#3071) by@colin-sentry
- fix(tracing): Only propagate headers from spans within transactions (#3070) by
@szokeasaurusrex
- ref(metrics): Improve type hints for set metrics (#3048) by
@elramen
- ref(scope): Fix
get_client
typing (#3063) by@szokeasaurusrex
- Auto-enable Anthropic integration + gate imports (#3054) by
@colin-sentry
- Made MeasurementValue.unit NotRequired (#3051) by
@antonpirker
2.1.1
- Fix trace propagation in Celery tasks started by Celery Beat. (#3047) by
@antonpirker
2.1.0
fix(quart): Fix Quart integration (#3043) by
@szokeasaurusrex
New integration: Langchain (#2911) by
@colin-sentry
Usage: (Langchain is auto enabling, so you do not need to do anything special)
from langchain_openai import ChatOpenAI import sentry_sdk sentry_sdk.init( dsn="...", enable_tracing=True, traces_sample_rate=1.0, ) llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0)
Check out the LangChain docs for details.
New integration: Anthropic (#2831) by
@czyber
Usage: (add the AnthropicIntegration to your
sentry_sdk.init()
call)from anthropic import Anthropic import sentry_sdk
... (truncated)
Commits
-
1475b34
meta: Update CHANGELOG.md -
573d321
release: 2.2.0 -
06efff3
Add tags + data passing functionality to@ai
_track (#3071) -
0d7a6f7
feat: Addlast_event_id
to top-level api -
92a3698
feat(scope): Add last_event_id to Scope -
94a6c2a
fix(tracing): Only propagate headers from spans within transactions -
a02eb9c
feat(celery): Set "messaging.system" on span -
68332d8
feat(celery): Set task ID on span -
ff10b77
feat: Send Celery retry count -
72ac630
feat(celery): Send queue name to Sentry - Additional commits viewable in compare view