File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
opentelemetry-api/src/opentelemetry/trace
opentelemetry-sdk/src/opentelemetry/sdk/trace Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def get_span_context(self) -> "SpanContext":
7979
8080 @abc .abstractmethod
8181 def set_attributes (
82- self , attributes : typing .Dict [str , types .AttributeValue ]
82+ self , attributes : typing .Mapping [str , types .AttributeValue ]
8383 ) -> None :
8484 """Sets Attributes.
8585
@@ -529,7 +529,7 @@ def end(self, end_time: typing.Optional[int] = None) -> None:
529529 pass
530530
531531 def set_attributes (
532- self , attributes : typing .Dict [str , types .AttributeValue ]
532+ self , attributes : typing .Mapping [str , types .AttributeValue ]
533533 ) -> None :
534534 pass
535535
Original file line number Diff line number Diff line change 3030 Dict ,
3131 Iterator ,
3232 List ,
33+ Mapping ,
3334 MutableMapping ,
3435 Optional ,
3536 Sequence ,
@@ -842,7 +843,7 @@ def get_span_context(self):
842843 return self ._context
843844
844845 def set_attributes (
845- self , attributes : Dict [str , types .AttributeValue ]
846+ self , attributes : Mapping [str , types .AttributeValue ]
846847 ) -> None :
847848 with self ._lock :
848849 if self ._end_time is not None :
You can’t perform that action at this time.
0 commit comments