From e94d8254fb56a56222cbb293c5404a81a4ef0d7d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 27 Jun 2024 15:20:09 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(base.py):=20add=20abstract=20me?= =?UTF-8?q?thod=20=5F=5Finit=5F=5F=20to=20BaseTracer=20class=20with=20requ?= =?UTF-8?q?ired=20parameters=20to=20enforce=20implementation=20in=20subcla?= =?UTF-8?q?sses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/services/tracing/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/base/langflow/services/tracing/base.py b/src/backend/base/langflow/services/tracing/base.py index 4ef640889..3d855436d 100644 --- a/src/backend/base/langflow/services/tracing/base.py +++ b/src/backend/base/langflow/services/tracing/base.py @@ -3,6 +3,10 @@ from typing import Any, Dict class BaseTracer(ABC): + @abstractmethod + def __init__(self, trace_name: str, trace_type: str, project_name: str, trace_id: UUID): + raise NotImplementedError + @abstractmethod def ready(self): raise NotImplementedError