Skip to content

Commit

Permalink
Update lambda/otel/layer/otel_wrapper.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Lin Lin <[email protected]>
  • Loading branch information
xuan-cao-swi and cheempz authored Aug 26, 2024
1 parent 5d23630 commit c1bbbcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lambda/otel/layer/otel_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
require 'opentelemetry-metrics-api'
require 'opentelemetry-metrics-sdk'
require 'opentelemetry-exporter-otlp'

# We need to load the function code's dependencies, and _before_ any dependencies might
# be initialized outside of the function handler, bootstrap instrumentation. This allows
# instrumentation targets to be present, and accommodates instrumentations like AWS SDK
# that add plugins on client initialization (vs. prepending methods).

Check notice

Code scanning / Rubocop

Avoid trailing whitespace. Note

Layout/TrailingWhitespace: Trailing whitespace detected.
def preload_libraries
default_task_location = '/var/task'

Expand Down

0 comments on commit c1bbbcd

Please sign in to comment.