mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 13:43:03 +08:00
* Add openai instrumentation to opentelemetry-bootstrap (#2996) * Move changelog entry to Unreleased section * Run `tox -e generate` to fix bootstrap_gen.py --------- Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
@ -21,14 +21,23 @@ import tomli
|
||||
scripts_path = os.path.dirname(os.path.abspath(__file__))
|
||||
root_path = os.path.dirname(scripts_path)
|
||||
instrumentations_path = os.path.join(root_path, "instrumentation")
|
||||
genai_instrumentations_path = os.path.join(root_path, "instrumentation-genai")
|
||||
|
||||
|
||||
def get_instrumentation_packages():
|
||||
for pkg in sorted(os.listdir(instrumentations_path)):
|
||||
pkg_paths = []
|
||||
for pkg in os.listdir(instrumentations_path):
|
||||
pkg_path = os.path.join(instrumentations_path, pkg)
|
||||
if not os.path.isdir(pkg_path):
|
||||
continue
|
||||
pkg_paths.append(pkg_path)
|
||||
for pkg in os.listdir(genai_instrumentations_path):
|
||||
pkg_path = os.path.join(genai_instrumentations_path, pkg)
|
||||
if not os.path.isdir(pkg_path):
|
||||
continue
|
||||
pkg_paths.append(pkg_path)
|
||||
|
||||
for pkg_path in sorted(pkg_paths):
|
||||
try:
|
||||
version = subprocess.check_output(
|
||||
"hatch version",
|
||||
|
Reference in New Issue
Block a user