# flytekit.remote.metrics

## Directory

### Classes

| Class | Description |
|-|-|
| [`FlyteExecutionSpan`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.remote.metrics/page.md#flytekitremotemetricsflyteexecutionspan) |  |

### Methods

| Method | Description |
|-|-|
| [`aggregate_reference_span()`](#aggregate_reference_span) |  |
| [`aggregate_spans()`](#aggregate_spans) |  |
| [`print_span()`](#print_span) |  |

## Methods

#### aggregate_reference_span()

```python
def aggregate_reference_span(
    span,
)
```
| Parameter | Type | Description |
|-|-|-|
| `span` |  | |

#### aggregate_spans()

```python
def aggregate_spans(
    spans,
)
```
| Parameter | Type | Description |
|-|-|-|
| `spans` |  | |

#### print_span()

```python
def print_span(
    span,
    indent,
    identifier,
)
```
| Parameter | Type | Description |
|-|-|-|
| `span` |  | |
| `indent` |  | |
| `identifier` |  | |

## flytekit.remote.metrics.FlyteExecutionSpan

### Parameters

```python
class FlyteExecutionSpan(
    span: flyteidl.core.metrics_pb2.Span,
)
```
| Parameter | Type | Description |
|-|-|-|
| `span` | `flyteidl.core.metrics_pb2.Span` | |

### Properties

| Property | Type | Description |
|-|-|-|
| `is_empty` | `None` |  |

### Methods

| Method | Description |
|-|-|
| [`dump()`](#dump) |  |
| [`explain()`](#explain) |  |
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### dump()

```python
def dump()
```
#### explain()

```python
def explain()
```
#### from_flyte_idl()

```python
def from_flyte_idl(
    pb,
)
```
| Parameter | Type | Description |
|-|-|-|
| `pb` |  | |

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.remote.metrics.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.remote.metrics/
