Helper for creating and emitting telemetry events.