Skip to content

Commit 179eb12

Browse files
committed
Also keep LLM/* spans
1 parent 36683dc commit 179eb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newrelic/core/node_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def span_event(self, settings, base_attrs=None, parent_guid=None, attr_class=dic
9090
ct_processing_time[0] += (time.time() - start_time)
9191
return [i_attrs, u_attrs, {}] if settings.distributed_tracing.minimize_attributes.enabled else [i_attrs, u_attrs, a_attrs]
9292
# If this is the an LLM node, always return it.
93-
if a_attrs.get("llm"):
93+
if a_attrs.get("llm") or i_attrs["name"].startswith("Llm/"):
9494
ct_processing_time[0] += (time.time() - start_time)
9595
return [i_attrs, u_attrs, {"llm": True}] if settings.distributed_tracing.minimize_attributes.enabled else [i_attrs, u_attrs, a_attrs]
9696
# If the span is not an exit span, skip it by returning None.

0 commit comments

Comments
 (0)