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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-27 15:19:19 -03:00
commit f8ace79af3

View file

@ -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