SIGN IN SIGN UP

fix(sdk): add max_spans limit to InMemorySpanExporter (#5296)

* fix(sdk): add max_spans limit to InMemorySpanExporter

* test(sdk): improve test coverage and modernize type hints in InMemorySpanExporter

- Update InMemorySpanExporter type hint from typing.Optional[int] to int | None.
- Refactor test_max_spans_limit to test distinct spans and assert order.

* Apply suggestion from @xrmx

* Create 5296.added

* Rename 5296.added to .changelog/5296.added

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
S
shayanna committed
08322fdea6ed9d3f020b0889d3b71aa906f70495
Parent: c02b423
Committed by GitHub <noreply@github.com> on 7/10/2026, 7:59:27 AM