lib/opentelemetry/instrumentation/action_pack/instrumentation.rb in opentelemetry-instrumentation-action_pack-0.3.0 vs lib/opentelemetry/instrumentation/action_pack/instrumentation.rb in opentelemetry-instrumentation-action_pack-0.3.1
- old
+ new
@@ -24,9 +24,10 @@
compatible do
gem_version >= MINIMUM_VERSION
end
option :enable_recognize_route, default: false, validate: :boolean
+ option :span_naming, default: :rails_route, validate: %i[controller_action rails_route]
private
def gem_version
::ActionPack.version