You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: metrics.rb
    path of file: ./repos/gitlabhq/lib/gitlab/ci/pipeline/chain
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Ci
    module Pipeline
      module Chain
        class Metrics < Chain::Base
          def perform!
            increment_pipel
    
          def create_snowplow_event_for_pipeline_name
            return unless @pipeline.pipeline_metadata&.name

            Gitlab::Tracking.event(
              self.class.name,
              'create_pipeline_with_name',
              project: @pipeline.project,
              user: @pipeline.user,
              namespace: @pipeline.project.namespace)
          end