File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
instrumentation/action_pack/lib/opentelemetry/instrumentation/action_pack Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,17 @@ class Railtie < ::Rails::Railtie
1515 stability_opt_in = ENV . fetch ( 'OTEL_SEMCONV_STABILITY_OPT_IN' , '' )
1616 values = stability_opt_in . split ( ',' ) . map ( &:strip )
1717
18- middleware_args = if values . include? ( 'http/dup' )
19- OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args_dup
20- elsif values . include? ( 'http' )
21- OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args_stable
22- else
23- OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args_old
24- end
18+ rack_middleware_args = if values . include? ( 'http/dup' )
19+ OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args_dup
20+ elsif values . include? ( 'http' )
21+ OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args_stable
22+ else
23+ OpenTelemetry ::Instrumentation ::Rack ::Instrumentation . instance . middleware_args
24+ end
2525
2626 app . middleware . insert_before (
2727 0 ,
28- *middleware_args
28+ *rack_middleware_args
2929 )
3030 end
3131 end
You can’t perform that action at this time.
0 commit comments