Change event firing in wordpress

Using transistion_post_status I’m able to retrieve post meta.

add_action( 'transition_post_status', 'post_published', 10, 3 );

function post_published( $new_status, $old_status, $post ) {
    if ( $old_status != 'publish' && $new_status == 'publish' ) {

    $meta = get_post_meta($post->ID);

    echo '<pre>';
    var_dump($meta);
    echo '</pre>';

    die();

    }
}