2.11.0
OtelObserver
Package: flyteplugins.otel
A flyte._observe.Observer that records spans.
Task spans are roots pinned to the run’s derived trace id. Every attempt of a task therefore starts its own subtree and because the trace id is shared those subtrees all collect into the one trace: a resumed run reads as the attempt that crashed followed by the attempt that finished.
Parameters
class OtelObserver(
tracer: trace_api.Tracer,
)| Parameter | Type | Description |
|---|---|---|
tracer |
trace_api.Tracer |
Methods
| Method | Description |
|---|---|
step_span() |
|
task_span() |
step_span()
def step_span(
info: 'StepInfo',
recorder: 'Recorder',
) -> Generator[None, None, None]| Parameter | Type | Description |
|---|---|---|
info |
'StepInfo' |
|
recorder |
'Recorder' |
task_span()
def task_span(
info: 'TaskInfo',
recorder: 'Recorder',
) -> Generator[None, None, None]| Parameter | Type | Description |
|---|---|---|
info |
'TaskInfo' |
|
recorder |
'Recorder' |