itholic commented on a change in pull request #35861:
URL: https://github.com/apache/spark/pull/35861#discussion_r827539466
##########
File path: python/pyspark/instrumentation_utils.py
##########
@@ -44,6 +63,17 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
start = time.perf_counter()
try:
res = func(*args, **kwargs)
+ if isinstance(res, AbstractContextManager):
+ # Wrap AbstractContextManager's subclasses returned by
@contexmanager decorator
Review comment:
nit: @contexmanager -> @contextmanager
maybe typo ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]