Skip to content

feat(mcp): Migrate to span first

7c5534e
Select commit
Loading
Failed to load commit list.
Merged

feat(mcp): Migrate to span first #6131

feat(mcp): Migrate to span first
7c5534e
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed Apr 23, 2026 in 9m 48s

1 issue

find-bugs: Found 1 issue (1 medium)

Medium

_set_span_data_attribute is defined twice, causing dead code - `sentry_sdk/ai/utils.py:502-511`

The function _set_span_data_attribute is defined at line 505-511 and again at line 514-520. Both definitions are identical. The first definition becomes dead code since Python's module-level function definitions overwrite previous ones. While this doesn't change runtime behavior due to identical implementations, it indicates a merge conflict or copy-paste error that should be cleaned up.


Duration: 9m 46s · Tokens: 3.7M in / 25.9k out · Cost: $6.37 (+extraction: $0.00, +fix_gate: $0.00)

Annotations

Check warning on line 511 in sentry_sdk/ai/utils.py

See this annotation in the file changed.

@sentry-warden sentry-warden / warden: find-bugs

_set_span_data_attribute is defined twice, causing dead code

The function `_set_span_data_attribute` is defined at line 505-511 and again at line 514-520. Both definitions are identical. The first definition becomes dead code since Python's module-level function definitions overwrite previous ones. While this doesn't change runtime behavior due to identical implementations, it indicates a merge conflict or copy-paste error that should be cleaned up.