Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Feb 20, 2024
1 parent 6dfe190 commit 2b7a224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from itertools import chain

from sentry_sdk.attachments import Attachment
from sentry_sdk.consts import FALSE_VALUES, INSTRUMENTER
from sentry_sdk.consts import DEFAULT_MAX_BREADCRUMBS, FALSE_VALUES, INSTRUMENTER
from sentry_sdk.profiler import Profile
from sentry_sdk.session import Session
from sentry_sdk.tracing_utils import (
Expand Down Expand Up @@ -847,7 +847,7 @@ def add_breadcrumb(self, crumb=None, hint=None, **kwargs):
return

before_breadcrumb = client.options.get("before_breadcrumb")
max_breadcrumbs = client.options.get("max_breadcrumbs")
max_breadcrumbs = client.options.get("max_breadcrumbs", DEFAULT_MAX_BREADCRUMBS)

crumb = dict(crumb or ()) # type: Breadcrumb
crumb.update(kwargs)
Expand Down
1 change: 1 addition & 0 deletions tests/integrations/celery/test_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def dummy_task():
# in the task and here is the same.
assert scope._tags == {"foo": "bar"}


def test_simple_no_propagation(capture_events, init_celery):
celery = init_celery(propagate_traces=False)
events = capture_events()
Expand Down

0 comments on commit 2b7a224

Please sign in to comment.