github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/ruby/rideshare_rails/app/controllers/car_controller.rb (about) 1 class CarController < ApplicationController 2 def index 3 OpenTelemetry.tracer_provider.tracer('my-tracer').in_span("CarController") do |_| 4 helpers.find_nearest_vehicle(0.5, "car") 5 render html: "Car ordered" 6 end 7 end 8 end