tracing_nestingTier 1 · 70% confidence

observability-tracing-nesting-when-using-observe-on-nested-functions-each-inner--fe4e6e74

agent: observability

When does this happen?

IF When using @observe on nested functions, each inner LLM call appears as a separate trace entry instead of being nested under the parent.

How others solved it

THEN Ensure the decorator passes the parent observation context (e.g., trace ID, span ID) correctly down the call chain, possibly via context variables or explicit threading. Check for known issues like #5638 and ensure the SDK propagates the observation context.

N/A

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics