add WriteEvents.Metadata