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

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