# add_sandbox_metadata

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_tracing/add_sandbox_metadata)

Associate the active run with a known sandbox ID without creating a run.

## Signature

```python
add_sandbox_metadata(
    sandbox_id: Optional[str],
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/sandbox/_tracing.py#L6)