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":
79
79
80
80
@abc .abstractmethod
81
81
def set_attributes (
82
- self , attributes : typing .Dict [str , types .AttributeValue ]
82
+ self , attributes : typing .Mapping [str , types .AttributeValue ]
83
83
) -> None :
84
84
"""Sets Attributes.
85
85
@@ -529,7 +529,7 @@ def end(self, end_time: typing.Optional[int] = None) -> None:
529
529
pass
530
530
531
531
def set_attributes (
532
- self , attributes : typing .Dict [str , types .AttributeValue ]
532
+ self , attributes : typing .Mapping [str , types .AttributeValue ]
533
533
) -> None :
534
534
pass
535
535
Original file line number Diff line number Diff line change 30
30
Dict ,
31
31
Iterator ,
32
32
List ,
33
+ Mapping ,
33
34
MutableMapping ,
34
35
Optional ,
35
36
Sequence ,
@@ -842,7 +843,7 @@ def get_span_context(self):
842
843
return self ._context
843
844
844
845
def set_attributes (
845
- self , attributes : Dict [str , types .AttributeValue ]
846
+ self , attributes : Mapping [str , types .AttributeValue ]
846
847
) -> None :
847
848
with self ._lock :
848
849
if self ._end_time is not None :
You can’t perform that action at this time.
0 commit comments