diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml new file mode 100644 index 00000000..bb466166 --- /dev/null +++ b/.github/workflows/docs-build.yml @@ -0,0 +1,19 @@ +name: docs-build + +on: + push: + branches: + - main + pull_request_target: ~ + merge_group: ~ + +jobs: + docs-preview: + uses: elastic/docs-builder/.github/workflows/preview-build.yml@main + with: + path-pattern: docs/** + permissions: + deployments: write + id-token: write + contents: read + pull-requests: read diff --git a/.github/workflows/docs-cleanup.yml b/.github/workflows/docs-cleanup.yml new file mode 100644 index 00000000..f83e017b --- /dev/null +++ b/.github/workflows/docs-cleanup.yml @@ -0,0 +1,14 @@ +name: docs-cleanup + +on: + pull_request_target: + types: + - closed + +jobs: + docs-preview: + uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main + permissions: + contents: none + id-token: write + deployments: write diff --git a/handlers/aws/utils.py b/handlers/aws/utils.py index eb9a2105..46027056 100644 --- a/handlers/aws/utils.py +++ b/handlers/aws/utils.py @@ -69,7 +69,7 @@ def get_ec2_client() -> BotoBaseClient: def capture_serverless( - func: Callable[[dict[str, Any], context_.Context], str] + func: Callable[[dict[str, Any], context_.Context], str], ) -> Callable[[dict[str, Any], context_.Context], str]: """ Decorator with logic regarding when to inject apm_capture_serverless @@ -89,7 +89,7 @@ def wrapper(lambda_event: dict[str, Any], lambda_context: context_.Context) -> s def wrap_try_except( - func: Callable[[dict[str, Any], context_.Context], str] + func: Callable[[dict[str, Any], context_.Context], str], ) -> Callable[[dict[str, Any], context_.Context], str]: """ Decorator to catch every exception and capture them by apm client if set