github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/ruby/rideshare_rails/app/controllers/scooter_controller.rb (about)

     1  class ScooterController < ApplicationController
     2    def index
     3      OpenTelemetry.tracer_provider.tracer('my-tracer').in_span("ScooterController") do |_|
     4        helpers.find_nearest_vehicle( 0.6, "scooter")
     5        render html: "Scooter ordered"
     6      end
     7    end
     8  end