fix: remove opentelemetry-instrumentation-test package from bootstrap_gen (#2969)

This commit is contained in:
Emídio Neto
2024-11-07 16:18:51 -03:00
committed by Leighton Chen
parent a4dfeacf76
commit d4c390015d
14 changed files with 19 additions and 345 deletions

View File

@ -58,7 +58,9 @@ gen_path = os.path.join(
# 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"]
packages_to_exclude = [
"opentelemetry-instrumentation-aws-lambda",
]
def main():

View File

@ -29,9 +29,13 @@ _prefix = "opentelemetry-instrumentation-"
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
base_instrumentation_path = os.path.join(root_path, "instrumentation")
packages_to_exclude = []
def get_instrumentation_packages():
for instrumentation in sorted(os.listdir(base_instrumentation_path)):
if instrumentation in packages_to_exclude:
continue
instrumentation_path = os.path.join(
base_instrumentation_path, instrumentation
)