You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the AsyncPGInstrumentor instruments these async methods, including CursorIterator.__anext__.
In conjunction with this, it means that a span is fired for every single row that is iterated over from an async cursor. This causes certain traces to become unsustainably large and contain a massive number of spans like the one below:
Describe the solution you'd like
Allow opting out of instrumentation for CursorIterator.__anext__, or implement instrumentation at the network request level so that every fetch to the database triggers a span rather than every single row that is iterated over.