Skip to content

Commit cbd75f9

Browse files
committed
fix static checking error
1 parent 5eab094 commit cbd75f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws_lambda_powertools/tracing/provider/xray_provider.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
import logging
12
from contextlib import contextmanager
23
from typing import Generator, Optional
34

45
from ...shared import constants
56
from ...shared.lazy_import import LazyLoader
67
from .base import BaseProvider, BaseSegment
78

9+
logger = logging.getLogger(__name__)
810
aws_xray_sdk = LazyLoader(constants.XRAY_SDK_MODULE, globals(), constants.XRAY_SDK_MODULE)
911

1012

1113
class Xray_provider(BaseProvider):
1214
def __init__(self):
13-
from aws_xray_sdk.core import xray_recorder
15+
from aws_xray_sdk.core import xray_recorder # type: ignore
1416

1517
self.recorder = xray_recorder
1618
self.patch = aws_xray_sdk.core.patch
@@ -63,7 +65,7 @@ def put_exception(
6365
error: Exception,
6466
subsegment: BaseSegment,
6567
capture_error: Optional[bool] = None,
66-
namespace: str = None,
68+
namespace: str = "default",
6769
):
6870
if not capture_error:
6971
return

0 commit comments

Comments
 (0)