## The problem
Issue traceloop/openllmetry#3203 (closed, 9 comments): ### Which component is this bug for? Langchain Instrumentation ### 📜 Description Trace graph is incorrect, the span created inside the nodes are not listed under the node spans, they list under parent/root span. ### 👟 Reproduction steps Run the project, with opentelmetry-instrumentation, below is the command which i'm using to run the code opentelemetry-instrument \ --traces_exporter otlp \ --metrics_exporter none \ --service_name test_service \ --exporter_otlp_endpoint YOUR_HOST:4317 \ --exporter_otlp_insecure true \ poetry run python test_agent.
## The fix
If your LangGraph agent traces show node spans listed under the root span instead of their node spans, upgrade the traceloop LangChain instrumentation to a version containing the fix. The maintainers fixed it via LANGGRAPH_GRAPH_SPAN_KEY context propagation and closed the issue after landing it in main.
## Notes
Thread: https://github.com/traceloop/openllmetry/issues/3203. Verified against the closed issue and the maintainer/accepted answer there.