mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 01:44:31 +00:00
revert back changes to EventCommon
This commit is contained in:
parent
e9da8c558f
commit
6917f376e4
2 changed files with 10 additions and 10 deletions
|
|
@ -75,9 +75,9 @@ class LogSeverity(Enum):
|
|||
|
||||
|
||||
class EventCommon(BaseModel):
|
||||
trace_id: Optional[str] = None
|
||||
span_id: Optional[str] = None
|
||||
timestamp: Optional[datetime] = None
|
||||
trace_id: str
|
||||
span_id: str
|
||||
timestamp: datetime
|
||||
attributes: Optional[Dict[str, Primitive]] = Field(default_factory=dict)
|
||||
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ class MetricEvent(EventCommon):
|
|||
type: Literal[EventType.METRIC.value] = EventType.METRIC.value
|
||||
metric: str # this would be an enum
|
||||
value: Union[int, float]
|
||||
unit: Optional[str] = None
|
||||
unit: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue