Skip to content

Commit

Permalink
chore: add a comment to not forget about async tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Jan 17, 2021
1 parent d95fd21 commit 61467a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws_lambda_powertools/tracing/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ async def async_tasks():
env=os.getenv(constants.TRACER_CAPTURE_ERROR_ENV, "true"), choice=capture_error
)

# Maintenance: Need a factory/builder here to simplify this now
if inspect.iscoroutinefunction(method):
return self._decorate_async_function(
method=method, capture_response=capture_response, capture_error=capture_error, method_name=method_name
Expand Down

0 comments on commit 61467a2

Please sign in to comment.