Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def on_start(self, span: Span, parent_context: Optional[Context] = None) -> None
if is_local_root(span):
if not _is_server_kind(span):
propagation_data = self._propagation_data_extractor(span)
elif _is_server_kind(parent_span):
elif parent_span and _is_server_kind(parent_span):
propagation_data = self._propagation_data_extractor(parent_span)
else:
elif parent_span:
propagation_data = parent_span.attributes.get(self._propagation_data_key)

if propagation_data is not None:
Expand Down
Loading