Skip to content

Commit f1c9701

Browse files
committed
safe nav stability_opt_in
1 parent 3f3ff4e commit f1c9701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instrumentation/http/lib/opentelemetry/instrumentation/http/instrumentation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def determine_semconv
2525
stability_opt_in = ENV.fetch('OTEL_SEMCONV_STABILITY_OPT_IN', nil)
2626
values = stability_opt_in&.split(',')
2727

28-
if values.include?('http/dup')
28+
if values&.include?('http/dup')
2929
'dup'
30-
elsif values.include?('http')
30+
elsif values&.include?('http')
3131
'stable'
3232
else
3333
'old'

0 commit comments

Comments
 (0)