refactor: Update CustomComponent to use private _tracing_service variable
This commit is contained in:
parent
94df7be2dd
commit
6e7a5fa7bd
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class CustomComponent(BaseComponent):
|
|||
_flows_data: Optional[List[Data]] = None
|
||||
_outputs: List[OutputLog] = []
|
||||
_logs: List[Log] = []
|
||||
tracing_service: Optional["TracingService"] = None
|
||||
_tracing_service: "TracingService"
|
||||
|
||||
def update_state(self, name: str, value: Any):
|
||||
if not self.vertex:
|
||||
|
|
@ -494,4 +494,4 @@ class CustomComponent(BaseComponent):
|
|||
name = self.display_name
|
||||
log = Log(message=message, type=get_artifact_type(message), name=name)
|
||||
self._logs.append(log)
|
||||
self.tracing_service.add_log(trace_name=self.vertex.id, log=log)
|
||||
self._tracing_service.add_log(trace_name=self.vertex.id, log=log)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue