File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
zero-code-instrumentation/lib Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,9 @@ def require_otel
122122unload_libraries = ENV [ 'UNLOAD_LIBRARY' ] . to_s . split ( ';' )
123123loaded_library_file_path = Array . new
124124
125- Dir . glob ( "#{ additional_gem_path } /gems/*" ) . each do |file_path |
125+ loaded_library_file_path = Dir . glob ( "#{ additional_gem_path } /gems/*" ) . select do |file_path |
126126 gem_name = file_path . match ( /\/ gems\/ ([^\/ ]+)-\d / ) [ 1 ]
127- include_file = ( file_path . include? ( 'opentelemetry' ) || file_path . include? ( 'google' ) ) && !unload_libraries . include? gem_name
128- loaded_library_file_path << file_path if include_file
127+ ( file_path . include? ( 'opentelemetry' ) || file_path . include? ( 'google' ) ) && !unload_libraries . include? gem_name
129128end
130129
131130puts "Loaded Library File Paths " + loaded_library_file_path . join ( "," ) if ENV [ 'ZERO_CODE_DEBUG' ] == 'true'
You can’t perform that action at this time.
0 commit comments