@@ -684,7 +684,7 @@ def start_span(
684
684
context = SpanContextShim (span .get_span_context ())
685
685
return SpanShim (self , context , span )
686
686
687
- def inject (self , span_context , formats : object , carrier : object ):
687
+ def inject (self , span_context , format : object , carrier : object ):
688
688
"""Injects ``span_context`` into ``carrier``.
689
689
690
690
See base class for more details.
@@ -703,7 +703,7 @@ def inject(self, span_context, formats: object, carrier: object):
703
703
# TODO: Support Format.BINARY once it is supported in
704
704
# opentelemetry-python.
705
705
706
- if formats not in self ._supported_formats :
706
+ if format not in self ._supported_formats :
707
707
raise UnsupportedFormatException
708
708
709
709
propagator = get_global_textmap ()
@@ -715,7 +715,7 @@ def inject(self, span_context, formats: object, carrier: object):
715
715
ctx = set_span_in_context (span )
716
716
propagator .inject (carrier , context = ctx )
717
717
718
- def extract (self , formats : object , carrier : object ):
718
+ def extract (self , format : object , carrier : object ):
719
719
"""Returns an ``opentracing.SpanContext`` instance extracted from a
720
720
``carrier``.
721
721
@@ -737,7 +737,7 @@ def extract(self, formats: object, carrier: object):
737
737
# uses the configured propagators in opentelemetry.propagators.
738
738
# TODO: Support Format.BINARY once it is supported in
739
739
# opentelemetry-python.
740
- if formats not in self ._supported_formats :
740
+ if format not in self ._supported_formats :
741
741
raise UnsupportedFormatException
742
742
743
743
propagator = get_global_textmap ()
0 commit comments