Skip to content

Commit

Permalink
Add aws_lambda_handler legacy function delegator
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Apr 2, 2024
1 parent 8861192 commit 0a0b743
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bugsnag/legacy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Any, Tuple, Type, Optional, Union, List
from typing import Dict, Any, Tuple, Type, Optional, Union, List, Callable
import types
import sys

Expand Down Expand Up @@ -176,3 +176,10 @@ def clear_feature_flag(name: Union[str, bytes]) -> None:

def clear_feature_flags() -> None:
default_client.clear_feature_flags()


def aws_lambda_handler(
real_handler: Optional[Callable] = None,
flush_timeout_ms: int = 2000,
) -> Callable:
return default_client.aws_lambda_handler(real_handler, flush_timeout_ms)

0 comments on commit 0a0b743

Please sign in to comment.