Skip to content

Commit ff18e7c

Browse files
authored
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
1 parent 7837335 commit ff18e7c

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

Diff for: instrumentation-genai/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
| Instrumentation | Supported Packages | Metrics support | Semconv status |
3+
| --------------- | ------------------ | --------------- | -------------- |
4+
| [opentelemetry-instrumentation-google-genai](./opentelemetry-instrumentation-google-genai) | google-genai >= 1.0.0 | No | development
5+
| [opentelemetry-instrumentation-openai-v2](./opentelemetry-instrumentation-openai-v2) | openai >= 1.26.0 | Yes | development
6+
| [opentelemetry-instrumentation-vertexai](./opentelemetry-instrumentation-vertexai) | google-cloud-aiplatform >= 1.64 | No | development
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
_instruments = ("google-genai >= 1.0.0",)

Diff for: instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/package.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414

1515

1616
_instruments = ("openai >= 1.26.0",)
17+
18+
_supports_metrics = True

Diff for: scripts/generate_instrumentation_readme.py

+8-5
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)