---
title: LinkedTraceSpans
seo:
  title: LinkedTraceSpans — Python SDK
---

## Attributes

| Prop | Type | Default | Description |
| - | - | - | - |
| `invocation_span?` | `Span` | - | |
| `linked_root_span?` | `Span` | - | |

***

## \_noop\_linked\_trace\_spans()

```python
def _noop_linked_trace_spans(invocation_span=trace_api.INVALID_SPAN) -> LinkedTraceSpans:
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `invocation_span?` | `Span` | `trace_api.INVALID_SPAN` | |

### Returns

`LinkedTraceSpans`

***

## start\_linked\_trace()

```python
def start_linked_trace(name, source_span, attributes=None, *, span_type='span', end_on_exit=True, end_invocation_on_exit=True) -> Iterator[LinkedTraceSpans]:
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `name` | `str` | - | |
| `source_span` | `Span` | - | |
| `attributes?` | `Attributes` | `None` | |
| `span_type?` | `Optional[str]` | `'span'` | |
| `end_on_exit?` | `bool` | `True` | |
| `end_invocation_on_exit?` | `bool` | `True` | |

### Returns

`Iterator[LinkedTraceSpans]`
