Skip to content

Commit b9fce31

Browse files
committed
fix: do not deep copy monitoring properties
1 parent 6257ae0 commit b9fce31

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎aws_advanced_python_wrapper/utils/properties.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import copy
1615
from typing import Any, Dict, Optional, Type, TypeVar
1716
from urllib.parse import unquote
1817

@@ -939,7 +938,7 @@ def mask_properties(props: Properties) -> Properties:
939938

940939
@staticmethod
941940
def create_filtered_properties(props: Properties, prefix: str) -> Properties:
942-
monitoring_properties = copy.deepcopy(props)
941+
monitoring_properties = Properties(props)
943942
for property_key in list(monitoring_properties.keys()):
944943
if property_key.startswith(prefix):
945944
monitoring_properties[

0 commit comments

Comments
 (0)