def METHOD_NAME(
    self,
    event_type: CBEventType,
    payload: Optional[Dict[str, Any]] = None,
    event_id: str = "",
    **kwargs: Any,
) -> str:
    if payload is not None:
        if event_type is CBEventType.QUERY:
            query_text = payload[EventPayload.QUERY_STR]
            self._trace_data.query_data.query_text = query_text
    return event_id