Skip to content

Commit 00c0842

Browse files
author
Michael Brewer
committed
chore: Remove _get_correlation_id_path
1 parent 2e4e521 commit 00c0842

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

aws_lambda_powertools/logging/logger.py

+1-22
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import random
66
import sys
7-
from typing import Any, Callable, Dict, Optional, Union
7+
from typing import Any, Callable, Dict, Union
88

99
from ..shared import constants
1010
from ..shared.functions import resolve_env_var_choice, resolve_truthy_env_var_choice
@@ -36,27 +36,6 @@ def _is_cold_start() -> bool:
3636
return cold_start
3737

3838

39-
def _get_correlation_id_path(path: Union[str, int]) -> Optional[str]:
40-
"""
41-
42-
Parameters
43-
----------
44-
path :
45-
JMESPath expression to find the correlation_id
46-
Returns
47-
-------
48-
str, optional
49-
Returns the JMESPath
50-
"""
51-
if path is None:
52-
return None
53-
54-
# NOTE: We could have a enum of standard event types
55-
# like "requestContext.requestId" or API Gateway Proxy Events
56-
57-
return path
58-
59-
6039
# PyCharm does not support autocomplete via getattr
6140
# so we need to return to subclassing removed in #97
6241
# All methods/properties continue to be proxied to inner logger

0 commit comments

Comments
 (0)