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

     1  class Scooter::ScooterController < ActionController::Base
     2    def show
     3      OpenTelemetry.tracer_provider.tracer('my-tracer').in_span("ScooterController") do |_|
     4        ApplicationHelper::find_nearest_vehicle(2, "scooter")
     5      end
     6    end
     7  end