modernize event_traces example