# get_tracing_context

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/run_helpers/get_tracing_context)

Get the current tracing context.

## Signature

```python
get_tracing_context(
    context: Optional[contextvars.Context] = None,
) -> dict[str, Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/791701a304a72495d108669ef11c194983fd0e95/python/langsmith/run_helpers.py#L116)