revert back changes to EventCommon

This commit is contained in:
Dinesh Yeduguru 2025-03-12 14:52:34 -07:00
parent e9da8c558f
commit 6917f376e4
2 changed files with 10 additions and 10 deletions

View file

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