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: instrumentation.rb
    path of file: ./repos/dd-trace-rb/lib/datadog/tracing/contrib/rake
    
    the code of the file until where you have to start completion: require_relative '../../metadata/ext'
require_relative '../analytics'
require_relative 'ext'
requir
    
            def execute(args = nil)
              return super if !enabled? || !instrumented_task?

              Tracing.trace(Ext::SPAN_EXECUTE, **span_options) do |span|
                annotate_execute!(span, args)
                super
              end
            ensure
              shutdown_tracer!
            end