1515from __future__ import annotations
1616
1717import logging
18- from typing import Any , Optional , Tuple
18+ from typing import Any , Dict , Optional , Tuple
1919
2020from opentelemetry ._events import EventLogger
2121from opentelemetry .metrics import Instrument , Meter
2626_logger = logging .getLogger (__name__ )
2727
2828_BotoClientT = "botocore.client.BaseClient"
29- _BotoResultT = dict [str , Any ]
29+ _BotoResultT = Dict [str , Any ]
3030_BotoClientErrorT = "botocore.exceptions.ClientError"
3131
32- _OperationParamsT = dict [str , Any ]
33- _AttributeMapT = dict [str , AttributeValue ]
32+ _OperationParamsT = Dict [str , Any ]
33+ _AttributeMapT = Dict [str , AttributeValue ]
3434
3535
3636class _AwsSdkCallContext :
@@ -50,7 +50,7 @@ class _AwsSdkCallContext:
5050 span_kind: the kind used to create the span.
5151 """
5252
53- def __init__ (self , client : _BotoClientT , args : Tuple [str , dict [str , Any ]]):
53+ def __init__ (self , client : _BotoClientT , args : Tuple [str , Dict [str , Any ]]):
5454 operation = args [0 ]
5555 try :
5656 params = args [1 ]
@@ -97,7 +97,7 @@ class _BotocoreInstrumentorContext:
9797 def __init__ (
9898 self ,
9999 event_logger : EventLogger ,
100- metrics : dict [str , Instrument ] | None = None ,
100+ metrics : Dict [str , Instrument ] | None = None ,
101101 ):
102102 self .event_logger = event_logger
103103 self .metrics = metrics or {}
@@ -138,7 +138,7 @@ def should_end_span_on_exit(self) -> bool: # pylint:disable=no-self-use
138138 """
139139 return True
140140
141- def setup_metrics (self , meter : Meter , metrics : dict [str , Instrument ]):
141+ def setup_metrics (self , meter : Meter , metrics : Dict [str , Instrument ]):
142142 """Callback which gets invoked to setup metrics.
143143
144144 Extensions might override this function to add to the metrics dictionary all the metrics
0 commit comments