mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-10 21:39:33 +00:00
feat(core): Support opentelemetry exporter (#1690)
This commit is contained in:
@@ -33,6 +33,10 @@ class ModelInstance:
|
||||
prompt_template: Optional[str] = None
|
||||
last_heartbeat: Optional[datetime] = None
|
||||
|
||||
def to_dict(self) -> Dict:
|
||||
"""Convert to dict"""
|
||||
return asdict(self)
|
||||
|
||||
|
||||
class WorkerApplyType(str, Enum):
|
||||
START = "start"
|
||||
|
Reference in New Issue
Block a user