cuddly-jelly-27016
07/30/2025, 7:25 PMTypedInterface in trace actions. It updates several files to enable the recording, transformation, and serialization of typed interfaces, ensuring better traceability of task specifications.
### Enhancements to Tracing Functionality:
• Added TypedInterface to TraceInfo: Introduced a new optional field typed_interface in the TraceInfo class to store the typed interface for trace actions. (src/flyte/_internal/controllers/_trace.py, src/flyte/_internal/controllers/_trace.pyR24)
• Support for TypedInterface in Action.from_trace: Updated the from_trace method to accept a typed_interface parameter and include it in the TaskSpec of the trace action. (src/flyte/_internal/controllers/remote/_action.py, [1] [2] [3]
### Integration with Runtime Controller:
• Transformation of Native Interface: Added a utility to transform a native interface into a TypedInterface using transform_native_to_typed_interface. This is utilized in the record_trace method to attach the transformed interface to trace actions. (src/flyte/_internal/controllers/remote/_controller.py, [1] [2] [3]
### Protobuf Updates:
• Extended TraceAction with TaskSpec: Modified the TraceAction protobuf definition to include a spec field for storing the TaskSpec, enabling better representation of trace actions in the system. (src/flyte/_protos/workflow/queue_service_pb2.py, [1] [2] [3]
• Updated Protobuf Type Hints: Adjusted the type hints in the .pyi file for TraceAction to include the new spec field. (src/flyte/_protos/workflow/queue_service_pb2.pyi, src/flyte/_protos/workflow/queue_service_pb2.pyiL60-R73)
flyteorg/flyte-sdkcuddly-jelly-27016
07/30/2025, 9:24 PM