-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build instrumentation-genai/README.md #3400
Changes from all commits
c75e0ea
563f41d
cc885d0
8ef0994
2c0cc67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
| Instrumentation | Supported Packages | Metrics support | Semconv status | | ||
| --------------- | ------------------ | --------------- | -------------- | | ||
| [opentelemetry-instrumentation-google-genai](./opentelemetry-instrumentation-google-genai) | google-genai >= 1.0.0 | No | development | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, care to update package.py like I did for openai ? It would be faster to have me approve and merge :) |
||
| [opentelemetry-instrumentation-openai-v2](./opentelemetry-instrumentation-openai-v2) | openai >= 1.26.0 | Yes | development | ||
| [opentelemetry-instrumentation-vertexai](./opentelemetry-instrumentation-vertexai) | google-cloud-aiplatform >= 1.64 | No | development |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||
# Copyright The OpenTelemetry Authors | ||||||
# | ||||||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
# you may not use this file except in compliance with the License. | ||||||
# You may obtain a copy of the License at | ||||||
# | ||||||
# http://www.apache.org/licenses/LICENSE-2.0 | ||||||
# | ||||||
# Unless required by applicable law or agreed to in writing, software | ||||||
# distributed under the License is distributed on an "AS IS" BASIS, | ||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
# See the License for the specific language governing permissions and | ||||||
# limitations under the License. | ||||||
|
||||||
_instruments = ("google-genai >= 1.0.0",) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There now appear to be multiple places where this information exists: Line 35 in 6bde73c
Line 46 in 6bde73c
Is there a way to have a single source of truth for this information? For example, can There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is probably a way in hatch so use a dynamic value, maybe https://hatch.pypa.io/1.13/how-to/config/dynamic-metadata/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,7 @@ | |
| --------------- | ------------------ | --------------- | -------------- |""" | ||
|
||
|
||
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): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do the If so, I'm wondering if it might sense to use some other data format (e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's used by most of the Instrumentor classes to implement There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michaelsafyan also used by instrumentors. |
||
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why only one signal type "Metrics" is listed there. Would it make sense to list all of the signal types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same format as the other instrumentations, no idea what the original intent but here we are just running the same thing on another dir.