We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52cb04d commit cc9ee12Copy full SHA for cc9ee12
src/workflows/recipe/__init__.py
@@ -102,6 +102,20 @@ def unwrap_recipe(header, message):
102
if dcid:
103
span.set_attribute("dcid", dcid)
104
span.add_event("recipe.dcid_extracted", attributes={"dcid": dcid})
105
+
106
+ # Extract span_id and trace_id for logging
107
+ span_context = span.get_span_context()
108
+ if span_context.is_valid:
109
+ span_id = format(span_context.span_id, '016x')
110
+ trace_id = format(span_context.trace_id, '032x')
111
112
+ logger.info(
113
+ "Processing recipe message",
114
+ extra={
115
+ "span_id": span_id,
116
+ "trace_id": trace_id,
117
+ }
118
+ )
119
120
if log_extender and rw.environment and rw.environment.get("ID"):
121
with log_extender("recipe_ID", rw.environment["ID"]):
0 commit comments