Update dependency sentry-sdk to v2#347
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
9b6071e to
4a45efa
Compare
c08d902 to
4c62aa6
Compare
4a97cfe to
e2c8fa8
Compare
061d7ba to
910fa3e
Compare
910fa3e to
47bd7fd
Compare
47bd7fd to
58235f9
Compare
393a50d to
6e7b886
Compare
89f3923 to
cc2dba4
Compare
87dddcc to
fbca4d6
Compare
feac5f1 to
8e3b261
Compare
163b50e to
c765111
Compare
c765111 to
dcffea4
Compare
dcffea4 to
56611aa
Compare
094900b to
bb8b8c3
Compare
bb8b8c3 to
96bcb0f
Compare
1352b8a to
717341c
Compare
717341c to
6e4eaa6
Compare
6e4eaa6 to
444b087
Compare
444b087 to
f4c333f
Compare
f4c333f to
b83e772
Compare
b83e772 to
358eb7c
Compare
8e04fe8 to
0a5d068
Compare
0a5d068 to
0d12d00
Compare
e7ee340 to
4bc0ec3
Compare
cd814b6 to
9bc4af8
Compare
950df07 to
abefe42
Compare
abefe42 to
0e85e34
Compare
5b1e28d to
d96e56c
Compare
d96e56c to
29f7ab0
Compare
864a6bc to
26b1915
Compare
26b1915 to
d97c6f2
Compare
d97c6f2 to
8dedd6b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~1→~2.61.0Release Notes
getsentry/sentry-python (sentry-sdk)
v2.61.0Compare Source
New Features ✨
Add
server.addressto transformed spans whenstream_gen_ai_spans=Trueby @alexander-alderman-webb in #6307Allow integrations to define control flow exceptions by @sentrivana in #6425
Disable string truncation for events by default by @alexander-alderman-webb in #6290
Following a previous significant increase of the string truncation limit, we've now completely removed the limit by default.
In case you have large strings in your events, you should now be able to see them.
In rare cases, if you have really long strings (or a lot of them), you might see envelopes being dropped because of their size.
If that happens, you can set the
max_value_lengthinitoption to the previous value of100_000:Bug Fixes 🐛
Langchain
TypeErroronlangchain.agentsimport by @alexander-alderman-webb in #6268Openai Agents
starting_agentkeyword argument in runner patches by @ericapisani in #6428name, notdescriptioninstart_spanby @sentrivana in #6323Pydantic AI
Agent.run_stream_events()patch by @alexander-alderman-webb in #6281Strawberry
AttributeErrorongraphql_spaninresolveby @sentrivana in #6289Other
(anthropic) Do not set
gen_ai.response.modeltoNoneby @alexander-alderman-webb in #6312(asyncpg) Use Sentry span attribute name conventions by @ericapisani in #6306
(boto3) Guard setting method by @sentrivana in #6288
(cohere) Stop setting transaction status when child span fails by @alexander-alderman-webb in #6300
(google-genai) Guard against
Noneresponse ID and response model by @alexander-alderman-webb in #6314(huey) Fix group and chord handling in enqueue by @ericapisani in #6392
(integrations) Auto-wrap root gen_ai spans for openai, cohere, langgraph, huggingface_hub by @constantinius in #6285
(serializer) Don't call
__iter__on arbitrary sequences by @sentrivana in #6304Previously, we'd attempt to serialize any
Sequenceby walking through it by calling its__iter__function.We've now changed the serializer to only serialize built-in sequences (like lists, tuples, and sets) to avoid
triggering side-effects from custom
__iter__implementations.This might mean some objects might be serialized differently. If you want to continue serializing a specific
custom sequence class the old way, you can register it via
sentry_sdk.serializer.add_repr_sequence_type(seehere).
Memory leak in SentrySpanProcessor by @volodkindv in #6271
Documentation 📚
beat.pydocstring by @quyentonndbs in #6266Internal Changes 🔧
Langchain
node.callspec.idmatching by @alexander-alderman-webb in #6426WatchedSpanclass by @alexander-alderman-webb in #6407Openai Agents
node.callspec.idmatching by @alexander-alderman-webb in #6424Pydantic Ai
Agent.run_stream_events()returning a context manager by @alexander-alderman-webb in #6322Other
node.callspec.idmatching by @alexander-alderman-webb in #6427fake_record_sql_queriesby @alexander-alderman-webb in #6295v2.60.0Compare Source
Adds a new
stream_gen_ai_spansoption that controls howgen_aispans aresent to Sentry. When set, the SDK extracts all
gen_aispans out of atransaction and sends them as v2 envelope items.
Enable this option if
gen_aispans are being dropped because the transaction payload exceeds size limits.New Features ✨
responsescalls by @constantinius in #6199stream_gen_ai_spansis enabled by @alexander-alderman-webb in #6260Bug Fixes 🐛
Openai
choices=Noneby @cla7aye15I4nd in #6216Other
@sentry_sdk.traces.traceoverloads to fix typing by @sentrivana in #6236http.serverspans are segments by @sentrivana in #6230Internal Changes 🔧
Django
Openai
Other
capture_items()by @alexander-alderman-webb in #6214envelopes_to_xhelpers withcapture_itemsby @sentrivana in #6233set_custom_sampling_context()a classmethod by @alexander-alderman-webb in #6238_timestampto_end_timestampby @sentrivana in #6235botocore-stubsby @alexander-alderman-webb in #6203v2.59.0Compare Source
New Features ✨
Langchain
run_nameasgen_ai.function_idon Invoke Agent Spans by @alexander-alderman-webb in #5926run_nameinon_tool_startby @alexander-alderman-webb in #5925run_nameinon_chat_model_startby @alexander-alderman-webb in #5924Other
db.driver.namespans to database integrations by @ericapisani in #6082Bug Fixes 🐛
We've put additional data that might contain sensitive information, like GraphQL documents, behind the
send_default_piioption.Httpx
code.namespaceandcode.functioninstead ofcode.function.namein span streaming by @alexander-alderman-webb in #6150Langchain
run_nameasgen_ai.function_idfor text completions by @alexander-alderman-webb in #6073gen_ai.agent.namefor chat and tool spans by @alexander-alderman-webb in #5877Other
inspect.iscoroutinefunctionon Python 3.14+ by @alexander-alderman-webb in #6135span_idif no active span by @sentrivana in #6162Monitor._thread_lockafter fork (#6148) by @vokracko in #6159bindingsfor openai-agents >= 0.14 by @ericapisani in #6102inspect.iscoroutinefunctionwhen Quart does by @alexander-alderman-webb in #6133inspect.iscoroutinefunctionwhen Starlette does by @alexander-alderman-webb in #6134_get_current_streamed_span()to keep types backwards compatible by @alexander-alderman-webb in #6177Internal Changes 🔧
Stdlib
add_http_request_source()patch by @alexander-alderman-webb in #6160HTTPSConnection.sendin trace header tests by @alexander-alderman-webb in #6156Other
NoOpMgrfrom utils by @sentrivana in #6078Model.requestpatch by @alexander-alderman-webb in #5956enable_tracingwithtraces_sample_rateby @sentrivana in #6077update-toxaction to master branch by @alexander-alderman-webb in #6172v2.58.0Compare Source
New Features ✨
Bug Fixes 🐛
Anthropic
stream()calls by @alexander-alderman-webb in #5950Pydantic Ai
Other
Internal Changes 🔧
Litellm
httpxtypes in rate-limit test by @alexander-alderman-webb in #5975httpxtypes in embedding tests by @alexander-alderman-webb in #5970httpxtypes in nonstreamingcompletion()tests by @alexander-alderman-webb in #5937Other
gen_ai.tool.typespan attribute by @ericapisani in #5964Other
Nonespan context in the span processor and pin tokenizers version for anthropic tests on Python 3.8 by @alexander-alderman-webb in #5967v2.57.0Compare Source
New Features ✨
Langchain
gen_ai.operation.nameandgen_ai.pipeline.nameon LLM spans by @ericapisani in #5849gen_ai.generate_textby @ericapisani in #5796Other
Add experimental async transport by @BYK in #5646
See https://redirect.github.com/getsentry/sentry-python/discussions/5919 for details.
Bug Fixes 🐛
Openai
_iteratorfor streamed responses by @alexander-alderman-webb in #5917gen_ai.response.streamingfor Responses by @alexander-alderman-webb in #5697max_output_tokensfor Responses API by @alexander-alderman-webb in #5693gen_ai.response.streamingfor Completions by @alexander-alderman-webb in #5692Other
Internal Changes 🔧
Ai
Langchain
httpxtypes by @alexander-alderman-webb in #5724Openai
Other
v2.56.0Compare Source
New Features ✨
Bug Fixes 🐛
Anthropic
AsyncStream.close()andAsyncMessageStream.close()to finish spans by @alexander-alderman-webb in #5675Stream.close()andMessageStream.close()to finish spans by @alexander-alderman-webb in #5674Other
Documentation 📚
Internal Changes 🔧
-latestalias for each integration test suite by @sentrivana in #5706Other
v2.55.0Compare Source
New Features ✨
Anthropic
gen_ai.chatspans for asynchronousmessages.stream()by @alexander-alderman-webb in #5572messages.stream()by @alexander-alderman-webb in #5565gen_ai.systemattribute to spans by @ericapisani in #5661Pydantic Ai
Other
Bug Fixes 🐛
GeneratorExitby @alexander-alderman-webb in #5643Documentation 📚
set_attributeexample to changelog by @sentrivana in #5578Internal Changes 🔧
Anthropic
stream()by @alexander-alderman-webb in #5665Openai Agents
with_streaming_response()by @alexander-alderman-webb in #5583httpxfor streamed responses by @alexander-alderman-webb in #5580httpxin non-MCP tool tests by @alexander-alderman-webb in #5602httpxin MCP tool tests by @alexander-alderman-webb in #5605httpxin handoff tests by @alexander-alderman-webb in #5604httpxin API error test by @alexander-alderman-webb in #5601httpxin non-error single-response tests by @alexander-alderman-webb in #5600namespacetool field for newopenaiversions by @alexander-alderman-webb in #5599Other
httpxto linting requirements by @alexander-alderman-webb in #5644populate_tox.pyby @alexander-alderman-webb in #5574potel-baseby @sentrivana in #5614v2.54.0Compare Source
New Features ✨
Add
set_attribute,remove_attributeto global API by @sentrivana in #5555You can now set and unset attributes on logs and metrics via top-level API. Think of it as
sentry_sdk.set_tag()for attribute-based telemetry. Other event types (transactions, spans, errors) will be unaffected.Bug Fixes 🐛
Openai
Other
ToolManager._call_toolby @sentrivana in #5522Documentation 📚
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.