Capturing discussion from googleapis/gapic-generator-python#2340.
Streaming responses are logged in google-api-core as of googleapis/python-api-core#794. We should determine if we want to move the streaming iterator to gapic-generator-python so we can inspect the next item and log it.
See the discussion in googleapis/gapic-generator-python#2340 (comment).
This discussion will be captured in code so that if/when we decide to refactor the streaming logic, we can determine if we want to consolidate the logging logic.
Depending how we want to log (a) receiving a streaming response vs (b) exposing the next streamed item to the user, we could possibly want to log something here
(a) should always happen in api-core
(b) could happen in api-core, or it could happen here when we iterate to the next streamed item that was previously received.
Capturing discussion from googleapis/gapic-generator-python#2340.
Streaming responses are logged in
google-api-coreas of googleapis/python-api-core#794. We should determine if we want to move the streaming iterator togapic-generator-pythonso we can inspect thenextitem and log it.See the discussion in googleapis/gapic-generator-python#2340 (comment).
This discussion will be captured in code so that if/when we decide to refactor the streaming logic, we can determine if we want to consolidate the logging logic.