MCPcopy
hub / github.com/PrefectHQ/prefect / _traced

Function _traced

src/prefect/states.py:732–739  ·  view source on GitHub ↗
(cls: Type["State[R]"], **kwargs: Any)

Source from the content-addressed store, hash-verified

730
731
732def _traced(cls: Type["State[R]"], **kwargs: Any) -> "State[R]":
733 state_details = StateDetails.model_validate(kwargs.pop("state_details", {}))
734
735 carrier = {}
736 propagate.inject(carrier)
737 state_details.traceparent = carrier.get("traceparent")
738
739 return cls(**kwargs, state_details=state_details)
740
741
742def Scheduled(

Callers 10

ScheduledFunction · 0.85
CompletedFunction · 0.85
RunningFunction · 0.85
FailedFunction · 0.85
CrashedFunction · 0.85
CancellingFunction · 0.85
CancelledFunction · 0.85
PendingFunction · 0.85
PausedFunction · 0.85
RetryingFunction · 0.85

Calls 3

model_validateMethod · 0.45
popMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…