[Access the current run (span) within a traced function | 🦜️🛠️ LangSmith](https://docs.smith.langchain.com/observability/how_to_guides/access_current_span): LLM should read this page when trying to access the current run (span) within a traced function, when needing to extract UUIDs or tags from the current run, or when needing to access other information from the current run. This page explains how to access the current run (span) within a traced function using the get_current_run_tree/getCurrentRunTree function in the Python or TypeScript SDK, and provides examples for doing so.

