File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ def trace_propagation_meta(self, span=None):
814814 Return meta tags which should be injected into HTML templates
815815 to allow propagation of trace information.
816816 """
817- if span is None :
817+ if span is not None :
818818 logger .warning (
819819 "The parameter `span` in trace_propagation_meta() is deprecated and will be removed in the future."
820820 )
Original file line number Diff line number Diff line change @@ -254,10 +254,13 @@ def get_baggage(self):
254254 if self ._propagation_context is None :
255255 return None
256256
257- if self ._propagation_context .get ("dynamic_sampling_context" ) is None :
257+ dynamic_sampling_context = self ._propagation_context .get (
258+ "dynamic_sampling_context"
259+ )
260+ if dynamic_sampling_context is None :
258261 return Baggage .from_options (self )
259-
260- return None
262+ else :
263+ return Baggage ( dynamic_sampling_context )
261264
262265 def get_trace_context (self ):
263266 # type: () -> Any
You can’t perform that action at this time.
0 commit comments