Skip to content

Commit 3bf8a50

Browse files
Merge branch 'master' into webb/huggingface-hub/span-streaming
2 parents 83c0815 + 053059e commit 3bf8a50

6 files changed

Lines changed: 217 additions & 71 deletions

File tree

‎CHANGELOG.md‎

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

3+
## 2.69.1
4+
5+
### New Features ✨
6+
7+
- (django) Add `http.route` attribute by @alexander-alderman-webb in [#7428](https://github.com/getsentry/sentry-python/pull/7428)
8+
9+
### Bug Fixes 🐛
10+
11+
- (aiohttp) Preserve SigV4-signed propagation headers by @Robinbinu in [#7427](https://github.com/getsentry/sentry-python/pull/7427)
12+
13+
### Internal Changes 🔧
14+
15+
#### Mcp
16+
17+
- Parametrize tests on the streaming trace lifecycle by @alexander-alderman-webb in [#7424](https://github.com/getsentry/sentry-python/pull/7424)
18+
- Remove vacuous tests by @alexander-alderman-webb in [#7420](https://github.com/getsentry/sentry-python/pull/7420)
19+
20+
#### Other
21+
22+
- (cohere) Parametrize tests on the streaming trace lifecycle by @alexander-alderman-webb in [#7419](https://github.com/getsentry/sentry-python/pull/7419)
23+
- (openai-agents) Parametrize tests on `stream_gen_ai_spans` and the streaming trace lifecycle by @alexander-alderman-webb in [#7405](https://github.com/getsentry/sentry-python/pull/7405)
24+
325
## 2.69.0
426

527
### New Features ✨

‎docs/conf.py‎

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

34-
release = "2.69.0"
34+
release = "2.69.1"
3535
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3636

3737

‎sentry_sdk/client.py‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
from sentry_sdk.serializer import serialize
4343
from sentry_sdk.sessions import SessionFlusher
4444
from sentry_sdk.traces import SpanStatus, StreamedSpan
45-
from sentry_sdk.tracing import trace
45+
from sentry_sdk.traces import trace as streaming_trace
46+
from sentry_sdk.tracing import trace as legacy_trace
4647
from sentry_sdk.tracing_utils import has_span_streaming_enabled
4748
from sentry_sdk.transport import (
4849
AsyncHttpTransport,
@@ -533,8 +534,14 @@ def _setup_instrumentation(
533534
self, functions_to_trace: "Sequence[Dict[str, str]]"
534535
) -> None:
535536
"""
536-
Instruments the functions given in the list `functions_to_trace` with the `@sentry_sdk.tracing.trace` decorator.
537+
Instruments the functions given in the list `functions_to_trace` with a trace decorator.
537538
"""
539+
trace = (
540+
streaming_trace
541+
if has_span_streaming_enabled(self.options)
542+
else legacy_trace
543+
)
544+
538545
for function in functions_to_trace:
539546
class_name = None
540547
function_qualname = function["qualified_name"]

‎sentry_sdk/consts.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,4 +1848,4 @@ def _get_default_options() -> "dict[str, Any]":
18481848
del _get_default_options
18491849

18501850

1851-
VERSION = "2.69.0"
1851+
VERSION = "2.69.1"

‎setup.py‎

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

2323
setup(
2424
name="sentry-sdk",
25-
version="2.69.0",
25+
version="2.69.1",
2626
author="Sentry Team and Contributors",
2727
author_email="hello@sentry.io",
2828
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)