Skip to content

Commit c75e0ea

Browse files
committed
scripts: build a README also for instrumentation-genai
1 parent 27d5d93 commit c75e0ea

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/generate_instrumentation_readme.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
| --------------- | ------------------ | --------------- | -------------- |"""
2828

2929

30-
def main():
31-
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
32-
base_instrumentation_path = os.path.join(root_path, "instrumentation")
33-
30+
def main(base_instrumentation_path):
3431
table = [header]
3532
for instrumentation in sorted(os.listdir(base_instrumentation_path)):
3633
instrumentation_path = os.path.join(
@@ -85,4 +82,10 @@ def main():
8582

8683

8784
if __name__ == "__main__":
88-
main()
85+
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
86+
instrumentation_path = os.path.join(root_path, "instrumentation")
87+
main(instrumentation_path)
88+
genai_instrumentation_path = os.path.join(
89+
root_path, "instrumentation-genai"
90+
)
91+
main(genai_instrumentation_path)

0 commit comments

Comments
 (0)