Documentation Index
Fetch the complete documentation index at: https://docs.prefect.io/llms.txt
Use this file to discover all available pages before exploring further.
prefect.telemetry.run_telemetry
Classes
OTELSetter
A setter for OpenTelemetry that supports Prefect’s custom labels.
Methods:
set
set(self, carrier: KeyValueLabels, key: str, value: str) -> None
RunTelemetry
A class for managing the telemetry of runs.
Methods:
async_start_span
async_start_span(self, run: FlowOrTaskRun, client: PrefectClient, parameters: dict[str, Any] | None = None) -> Span | None
end_span_on_failure
end_span_on_failure(self, terminal_message: str | None = None) -> None
End a span for a run on failure.
end_span_on_success
end_span_on_success(self) -> None
End a span for a run on success.
record_exception
record_exception(self, exc: BaseException) -> None
Record an exception on a span.
start_span
start_span(self, run: FlowOrTaskRun, client: SyncPrefectClient, parameters: dict[str, Any] | None = None) -> Span | None
traceparent_from_span
traceparent_from_span(span: Span) -> str | None
update_run_name
update_run_name(self, name: str) -> None
Update the name of the run.
update_state
update_state(self, new_state: State) -> None
Update a span with the state of a run.