mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-29 21:23:55 +08:00
fix: remove opentelemetry-instrumentation-test package from bootstrap_gen (#2969)
This commit is contained in:

committed by
Leighton Chen

parent
a4dfeacf76
commit
d4c390015d
@ -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():
|
||||
|
@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user