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 7667127 commit 86186cbCopy full SHA for 86186cb
veadk/tracing/telemetry/telemetry.py
@@ -180,7 +180,12 @@ def set_common_attributes_on_tool_span(current_span: _Span) -> None:
180
if span.context.span_id == parent_span_id:
181
common_attributes = ATTRIBUTES.get("common", {})
182
for attr_name in common_attributes.keys():
183
- current_span.set_attribute(attr_name, span.attributes[attr_name])
+ if hasattr(span.attributes, attr_name):
184
+ current_span.set_attribute(attr_name, span.attributes[attr_name])
185
+ else:
186
+ logger.error(
187
+ f"Parent span {span.name} does not have attribute {attr_name}"
188
+ )
189
190
191
def trace_send_data(): ...
0 commit comments