Commit 7804260
fix(langchain): Make
`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.
Also, remove the `max_span_map_size` class variable, it is always set on
the instance, and so not needed.
Ref #4443
Co-authored-by: Cursor Agent <cursoragent@cursor.com>span_map an instance variable (#4476)1 parent 0a2d858 commit 7804260
File tree
2 files changed
+13
-4
lines changed- sentry_sdk/integrations
- tests/integrations/langchain
2 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 92 | | |
97 | 93 | | |
| 94 | + | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
0 commit comments