ref(o11y): Add set_attribute calls to sdk#117661
ref(o11y): Add set_attribute calls to sdk#117661alexander-alderman-webb wants to merge 3 commits into
set_attribute calls to sdk#117661Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9d36cef. Configure here.
| "organization", {"multiple possible": org_slugs, "source": source or "unknown"} | ||
| ) | ||
| scope.set_attribute("organization.multiple possible", org_slugs) | ||
| scope.set_attribute("organization.source", source or "unknown") |
There was a problem hiding this comment.
Stale org scope attributes
Medium Severity
bind_ambiguous_org_context now writes organization fields via set_attribute, but existing flows still only manage tags and context. clear_tags_and_context removes organization tags and context without touching scope attributes, and bind_organization_context still sets tags/context without updating matching attributes. Isolation scopes can then carry outdated organization attribute values while tags reflect the current org.
Reviewed by Cursor Bugbot for commit 9d36cef. Configure here.
There was a problem hiding this comment.
will take a look


Supplement existing
set_tag/set_context/set_extracalls withset_attributeso that data gets added to attributes-based telemetry as well. This will make the migration to span streaming easier.Related to getsentry/sentry-python#6537