Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Taskbroker python client and worker runtime"
readme = "README.md"
dependencies = [
"sentry-arroyo>=2.41.1",
"sentry-sdk[http2]>=2.73.0",
"sentry-sdk[http2]>=3.0.0",
"sentry-protos>=0.106.0",
"confluent_kafka>=2.3.0",
"cronsim>=2.6",
Expand All @@ -29,6 +29,7 @@ dev = [
"flake8>=7.3.0",
"isort>=5.13.2",
"mypy>=1.17.1",
"setuptools>=80.0", # redis<4 imports distutils, removed in Python 3.12
"time-machine>=2.16.0",
"types-protobuf>=5.27.0.20240626,<6.0.0",
"datadog>=0.49",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def _log_task_failed(
) -> None:
"""
Emit a structured failure log via logger.exception. When the embedding
application has the Sentry SDK's LoggingIntegration enabled (default),
application adds the Sentry SDK's LoggingIntegration with
event_level=logging.ERROR (sentry-sdk 3.x doesn't enable it by default),
this also produces the Sentry event, so the same call covers both the
structured stdout log and the Sentry capture. Call this from inside an
existing isolation_scope block so fingerprints/tags are preserved.
Expand Down
4 changes: 2 additions & 2 deletions clients/python/tests/worker/test_worker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import contextlib
import ctypes
import gc
import logging
import os
import queue
import random
Expand Down Expand Up @@ -2842,11 +2843,10 @@ def test_child_process_error_event_uses_task_transaction(
sentry_sdk.Client(
dsn="https://public@example.com/1",
default_integrations=False,
integrations=[LoggingIntegration()],
integrations=[LoggingIntegration(level=None, event_level=logging.ERROR)],
transport=mock.Mock(spec=Transport),
before_send=capture_event,
traces_sample_rate=0,
trace_lifecycle="stream",
) as client,
sentry_sdk.isolation_scope() as scope,
):
Expand Down
19 changes: 9 additions & 10 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading