We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c4532 commit daf5746Copy full SHA for daf5746
src/workflows/transport/middleware/tracer.py
@@ -51,9 +51,9 @@ def _extract_trace_context(self, message):
51
logger.warning(f"no context found for {self.service_name}, could not extract")
52
return {}
53
54
- def _inject_trace_context(self, message):
+ def _inject_trace_context(self, message) -> None:
55
"""Inserts serialized trace context into message."""
56
- if type(message) == str:
+ if isinstance(message, str):
57
logger.warning(
58
f"received string message in {self.service_name}, could not extract trace context"
59
)
0 commit comments