File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
aws_lambda_powertools/tracing/provider Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ import logging
1
2
from contextlib import contextmanager
2
3
from typing import Generator , Optional
3
4
4
5
from ...shared import constants
5
6
from ...shared .lazy_import import LazyLoader
6
7
from .base import BaseProvider , BaseSegment
7
8
9
+ logger = logging .getLogger (__name__ )
8
10
aws_xray_sdk = LazyLoader (constants .XRAY_SDK_MODULE , globals (), constants .XRAY_SDK_MODULE )
9
11
10
12
11
13
class Xray_provider (BaseProvider ):
12
14
def __init__ (self ):
13
- from aws_xray_sdk .core import xray_recorder
15
+ from aws_xray_sdk .core import xray_recorder # type: ignore
14
16
15
17
self .recorder = xray_recorder
16
18
self .patch = aws_xray_sdk .core .patch
@@ -63,7 +65,7 @@ def put_exception(
63
65
error : Exception ,
64
66
subsegment : BaseSegment ,
65
67
capture_error : Optional [bool ] = None ,
66
- namespace : str = None ,
68
+ namespace : str = "default" ,
67
69
):
68
70
if not capture_error :
69
71
return
You can’t perform that action at this time.
0 commit comments