From f8ace79af33f8cebba3823a2d9fb7ae3d3383215 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 27 Jun 2024 15:19:19 -0300 Subject: [PATCH] chore: Add metadata parameter to end method in BaseTracer This commit adds a new optional `metadata` parameter to the `end` method in the `BaseTracer` class. The `metadata` parameter allows for passing additional information related to the tracing process. This enhancement provides more flexibility and extensibility to the tracing functionality. --- src/backend/base/langflow/services/tracing/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backend/base/langflow/services/tracing/base.py b/src/backend/base/langflow/services/tracing/base.py index c96388227..4ef640889 100644 --- a/src/backend/base/langflow/services/tracing/base.py +++ b/src/backend/base/langflow/services/tracing/base.py @@ -16,5 +16,10 @@ class BaseTracer(ABC): raise NotImplementedError @abstractmethod - def end(self, outputs: Dict[str, Any], error: str | None = None): + def end( + self, + outputs: Dict[str, Any], + error: str | None = None, + metadata: dict[str, Any] | None = None, + ): raise NotImplementedError