# 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-python/blob/e9d3961c7165d87b6312f379f3a4a477aebb1f97/src/langsmith/run_helpers.py#L147)