{
 "flight": {
  "id": 889445,
  "agent": "cursor",
  "state": "merged",
  "title": "fix(langchain): Make `span_map` an instance variable",
  "number": 4476,
  "source": "aidev",
  "commits": 1,
  "debrief": "Cursor's fix in getsentry/sentry-python makes span_map an instance variable, so separate SentryLangchainCallback instances no longer share one object. It also removes the max_span_map_size class variable. The change spans two files in one commit, with 13 additions and 4 deletions. It merges clean, with zero change requests, after 212.31 hours.",
  "outcome": "merged_clean",
  "signals": [
   "aidev:Cursor"
  ],
  "index_ok": true,
  "additions": 13,
  "closed_at": "2025-06-25T09:47:41+00:00",
  "deletions": 4,
  "merged_at": "2025-06-25T09:47:41+00:00",
  "opened_at": "2025-06-16T13:29:06+00:00",
  "task_type": "fix",
  "body_chars": 293,
  "confidence": "dataset",
  "updated_at": "2026-11-04T02:12:49.757709+00:00",
  "enriched_at": null,
  "body_excerpt": "`span_map` should be an instance variable; otherwise, separate instances of the `SentryLangchainCallback` share the same `span_map` object, which is clearly not intended here.\n\nAlso, remove the `max_span_map_size` class variable, it is always set on the instance, and so not needed.\n\nRef #4443",
  "review_count": 2,
  "files_changed": 2,
  "hours_to_merge": 212.31,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 0,
  "og_generated_at": "2026-11-04T02:12:49.757709+00:00",
  "reviewer_excerpt": "Q: Was this an actual problem or is this more of a nice-to-have small refactor? As I understand from the other PR, we're actively avoiding",
  "review_comment_count": 0,
  "reviewer_excerpt_url": "https://github.com/getsentry/sentry-python/pull/4476#pullrequestreview-2956805654"
 },
 "repo": {
  "name": "sentry-python",
  "owner": "getsentry",
  "stars": 2219,
  "license": "MIT",
  "full_name": "getsentry/sentry-python",
  "primary_language": "Python"
 },
 "author": {
  "login": "szokeasaurusrex",
  "name": "Daniel Szoke",
  "github_profile": "https://github.com/szokeasaurusrex",
  "page": "https://agentriders.com/logs/author/szokeasaurusrex/"
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Cursor Agent"
  },
  {
   "at": "2025-06-25T09:47:41+00:00",
   "url": null,
   "kind": "merged",
   "actor_login": "szokeasaurusrex"
  },
  {
   "at": "2025-06-25T09:47:41+00:00",
   "url": null,
   "kind": "closed",
   "actor_login": "szokeasaurusrex"
  }
 ],
 "related": [
  {
   "agent": "cursor",
   "state": "merged",
   "title": "feat(sessions): Add top-level start- and end session methods",
   "number": 4474,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 67,
   "deletions": 0,
   "merged_at": "2025-06-24T15:30:31+00:00",
   "opened_at": "2025-06-16T09:59:32+00:00",
   "task_type": "feat",
   "files_changed": 3,
   "hours_to_merge": 197.52
  },
  {
   "agent": "cursor",
   "state": "merged",
   "title": "fix: Ensure tags values are strings",
   "number": 4459,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 286,
   "deletions": 27,
   "merged_at": "2025-07-01T08:17:34+00:00",
   "opened_at": "2025-06-12T11:47:53+00:00",
   "task_type": "fix",
   "files_changed": 16,
   "hours_to_merge": 452.49
  },
  {
   "agent": "cursor",
   "state": "closed",
   "title": "[vibe in progress] Migrate to inline type annotations",
   "number": 4487,
   "outcome": "abandoned",
   "index_ok": false,
   "additions": 3868,
   "deletions": 3099,
   "merged_at": null,
   "opened_at": "2025-06-17T14:37:23+00:00",
   "task_type": "feat",
   "files_changed": 102,
   "hours_to_merge": null
  }
 ],
 "pr_url": "https://github.com/getsentry/sentry-python/pull/4476",
 "page": "https://agentriders.com/logs/getsentry/sentry-python/4476/"
}