Sha256: 410cc85f3a125d5ab470aeb075b8b3e8e6bf0264c5baae5323f181e8268d31f5
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module AwsLambda # Instrumentation class that detects and installs the AwsLambda instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_config| require_dependencies end # determine if current environment is lambda by checking _HANLDER or ORIG_HANDLER present do ENV.key?('_HANDLER') || ENV.key?('ORIG_HANDLER') end private def require_dependencies require_relative 'handler' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opentelemetry-instrumentation-aws_lambda-0.1.1 | lib/opentelemetry/instrumentation/aws_lambda/instrumentation.rb |