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:
parent
67a34ffcb8
commit
f8ace79af3
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue