# SpanContext

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/SpanContext)

Represents an OpenTelemetry-style span context.

## Signature

```python
SpanContext(
    self,
    trace_id: str,
    span_id: str,
    parent_span_id: Optional[str] = None,
)
```

## Constructors

```python
__init__(
    self,
    trace_id: str,
    span_id: str,
    parent_span_id: Optional[str] = None,
) -> None
```

| Name | Type |
|------|------|
| `trace_id` | `str` |
| `span_id` | `str` |
| `parent_span_id` | `Optional[str]` |


## Properties

- `trace_id`
- `span_id`
- `parent_span_id`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/callbacks/bigquery_callback.py#L362)