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: auto_instrument.rb
    path of file: ./repos/dd-trace-rb/lib/datadog/appsec/contrib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Datadog
  module AppSec
    module Contrib
      # Auto-instrumentation for security integrations
      # TODO: this implementation is trivial, check for shareable 
    
        def self.patch_all
          integrations = []

          Datadog::AppSec::Contrib::Integration.registry.each do |_name, integration|
            next unless integration.klass.auto_instrument?

            integrations << integration.name
          end

          integrations.each do |integration_name|
            Datadog.configuration.appsec.instrument integration_name
          end
        end