GenAI Utils Structure#3672
Conversation
|
@pmcollins - Mind taking a look? |
|
LGTM. @aabmass could you review it? |
aabmass
left a comment
There was a problem hiding this comment.
The http util that lives in this same directory is a little different
- named
opentelemetry-util-http - python package is
opentelemetry.util.http
WDYT of copying that pattern here? Asking because we can't easily change the package name on PyPI once published
|
Can you also add this package to the Pyright config like we did in #3646? I noticed we didn't add the tox boilerplate either, but we missed it for the other boilerplate PRs too. Please make sure it gets added in the future PRs, since that makes the tests run |
I think that's fine, the name has been updated |
Tox Boilerplate has been added with a basic test for version check to make tox pass. |
|
@aabmass The failing checks refer to a module "asyncclick". These checks showed up after merging main back into this branch. Is this something I should investigate in this PR? |
Seems like an issue in main sorry |
|
Thanks for your patience. I reserved the package name on PyPI as well |
* GenAI SDK Structure * generate bootstrap entry * Rename GenAI SDK to GenAI Utils * remove duplicate dependency * update uv lock * generate tox doc * remove sdk dependency, remove bootstrap entry * ran tox generate and uv sync * move package out of instrumentation folder * remove package file * rename package to align with other util package * add tox boilerplate * tox boilerplate * Fix pytest version * Corrected RST Link
Description
This PR creates the Structure for the GenAI Utils package. The GenAI Utils package will include boilerplate and helpers to standardize instrumentation for Generative AI. Once implementation is complete, this package will provide APIs and decorators to minimize the work needed to instrument genai libraries, while providing standardization for generating both types of otel, "spans and metrics" and "spans, metrics and events"
Here's a link to the design document for the upcoming implementation: https://docs.google.com/document/d/1w9TbtKjuRX_wymS8DRSwPA03_VhrGlyx65hHAdNik1E/edit?tab=t.qneb4vabc1wc#heading=h.kh4j6stirken
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
N/A - No tests in this structure PR
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.