File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ def trace_propagation_meta(self, span=None):
814
814
Return meta tags which should be injected into HTML templates
815
815
to allow propagation of trace information.
816
816
"""
817
- if span is None :
817
+ if span is not None :
818
818
logger .warning (
819
819
"The parameter `span` in trace_propagation_meta() is deprecated and will be removed in the future."
820
820
)
Original file line number Diff line number Diff line change @@ -254,10 +254,13 @@ def get_baggage(self):
254
254
if self ._propagation_context is None :
255
255
return None
256
256
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 :
258
261
return Baggage .from_options (self )
259
-
260
- return None
262
+ else :
263
+ return Baggage ( dynamic_sampling_context )
261
264
262
265
def get_trace_context (self ):
263
266
# type: () -> Any
You can’t perform that action at this time.
0 commit comments