mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-27 04:03:09 +08:00
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:

committed by
GitHub

parent
78373353f5
commit
ff18e7c18b
@ -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)
|
||||
|
Reference in New Issue
Block a user