Skip to content

Commit

Permalink
add comment explaining why removing aws-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto committed Aug 12, 2024
1 parent f0b9493 commit cab212f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/generate_instrumentation_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,20 @@
"bootstrap_gen.py",
)

packages_to_ignore = ["opentelemetry-instrumentation-aws-lambda"]
# AWS Lambda instrumentation is excluded from the default list because it often
# requires specific configurations and dependencies that may not be set up
# in all environments. Instead, users who need AWS Lambda support can opt-in
# by manually adding it to their environment.
# See https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2787
packages_to_exclude = ["opentelemetry-instrumentation-aws-lambda"]


def main():
# pylint: disable=no-member
default_instrumentations = ast.List(elts=[])
libraries = ast.List(elts=[])
for pkg in get_instrumentation_packages():
if pkg.get("name") in packages_to_ignore:
if pkg.get("name") in packages_to_exclude:
continue
if not pkg["instruments"]:
default_instrumentations.elts.append(ast.Str(pkg["requirement"]))
Expand Down

0 comments on commit cab212f

Please sign in to comment.