You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/04 11:29:02 UTC
[GitHub] [arrow] motybz commented on issue #12974: [Python][flight] How to log the GeneratorStream duration
motybz commented on issue #12974:
URL: https://github.com/apache/arrow/issues/12974#issuecomment-1117201801
It works, thank you...
I made some changes and fixed the "middlware" typo
`class TimingServerMiddleware(flight.ServerMiddleware):
def __init__(self, start):
self.start = start
def call_completed(self, exception):
logging.debug(f"Data consumed in {time.monotonic() - self.start}s")
class TimingServerMiddlewareFactory(flight.ServerMiddlewareFactory):
def start_call(self, info, headers):
return TimingServerMiddleware(time.monotonic())`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org