private function mergeTags($event, $config)
    {
        $configTags = isset($config['tags']) ? $config['tags'] : [];

        if ($event instanceof MonitorableEventInterface) {
            return array_merge($configTags, $event->getTags());
        }

        return $configTags;
    }
private function mergeTags($event, $config)
    {
        $configTags = isset($config['tags']) ? $config['tags'] : [];

        if ($event instanceof MonitorableEventInterface) {
            return array_merge($configTags, $event->getTags());
        }

        return $configTags;
    }
private function mergeTags ( $ event , $ config ) { $ configTags = isset ( $ config [ 'tags' ] ) ? $ config [ 'tags' ] : [ ] ; if ( $ event instanceof MonitorableEventInterface ) { return array_merge ( $ configTags , $ event -> getTags ( ) ) ; } return $ configTags ; }
Merge config tags with tags manually sent with the event

@param mixed $event
@param array $config

@return array of tags
Merge config tags with tags manually sent with the event