Build instrumentation-genai/README.md (#3400)

* scripts: build a README also for instrumentation-genai

* opentelemetry-instrumentation-openai-v2: add supports_metrics to package

* opentelemetry-instrumentation-google-genai: add missing package.py

* Build instrumentation-genai/README.md
This commit is contained in:
Riccardo Magliocchetti
2025-04-02 11:45:56 +02:00
committed by GitHub
parent 78373353f5
commit ff18e7c18b
4 changed files with 31 additions and 5 deletions

View File

@ -27,10 +27,7 @@ header = """
| --------------- | ------------------ | --------------- | -------------- |"""
def main():
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
base_instrumentation_path = os.path.join(root_path, "instrumentation")
def main(base_instrumentation_path):
table = [header]
for instrumentation in sorted(os.listdir(base_instrumentation_path)):
instrumentation_path = os.path.join(
@ -85,4 +82,10 @@ def main():
if __name__ == "__main__":
main()
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
instrumentation_path = os.path.join(root_path, "instrumentation")
main(instrumentation_path)
genai_instrumentation_path = os.path.join(
root_path, "instrumentation-genai"
)
main(genai_instrumentation_path)