Sha256: 605c738918f28c4de6ab5aa800b87162e34949e042fcf917c9e6040caa38d113

Contents?: true

Size: 791 Bytes

Versions: 7

Compression:

Stored size: 791 Bytes

Contents

#!/usr/bin/env ruby

# Start application process
puts "\n== Starting application process =="

profiling = Datadog::DemoEnv.feature?('profiling') ? 'DD_PROFILING_ENABLED=true ddtracerb exec ' : ''
process = (ARGV[0] || Datadog::DemoEnv.process)
command = case process
          when 'puma'
            "bundle exec #{profiling}puma -C /app/config/puma.rb /app/config.ru"
          when 'unicorn'
            "bundle exec #{profiling}unicorn -c /app/config/unicorn.rb /app/config.ru"
          when 'irb'
            "bundle exec #{profiling}irb"
          when nil, ''
            abort("\n== ERROR: Must specify a application process! ==")
          else
            abort("\n== ERROR: Unknown application process '#{process}' ==")
          end

puts "Run: #{command}"
Kernel.exec(command)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-0.51.1 integration/apps/rack/bin/run
ddtrace-0.51.0 integration/apps/rack/bin/run
ddtrace-0.50.0 integration/apps/rack/bin/run
ddtrace-0.49.0 integration/apps/rack/bin/run
ddtrace-0.48.0 integration/apps/rack/bin/run
ddtrace-0.47.0 integration/apps/rack/bin/run
ddtrace-0.46.0 integration/apps/rack/bin/run