File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed
instrumentation-genai/opentelemetry-instrumentation-openai-v2
opentelemetry-instrumentation/src/opentelemetry/instrumentation Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
1414### Added
1515
16+ - Add ` opentelemetry-instrumentation-openai-v2 ` to ` opentelemetry-bootstrap `
17+ ([ #2996 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2996 ) )
18+
1619### Fixed
1720
1821- ` opentelemetry-instrumentation-httpx ` : instrument_client is a static method again
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies = [
3232
3333[project .optional-dependencies ]
3434instruments = [
35- " openai >= 1.0 .0" ,
35+ " openai >= 1.26 .0" ,
3636]
3737
3838[project .entry-points .opentelemetry_instrumentor ]
Original file line number Diff line number Diff line change 1616# RUN `python scripts/generate_instrumentation_bootstrap.py` TO REGENERATE.
1717
1818libraries = [
19+ {
20+ "library" : "openai >= 1.26.0" ,
21+ "instrumentation" : "opentelemetry-instrumentation-openai-v2==2.0.0.dev" ,
22+ },
1923 {
2024 "library" : "aio_pika >= 7.2.0, < 10.0.0" ,
2125 "instrumentation" : "opentelemetry-instrumentation-aio-pika==0.49b1" ,
Original file line number Diff line number Diff line change 2121scripts_path = os .path .dirname (os .path .abspath (__file__ ))
2222root_path = os .path .dirname (scripts_path )
2323instrumentations_path = os .path .join (root_path , "instrumentation" )
24+ genai_instrumentations_path = os .path .join (root_path , "instrumentation-genai" )
2425
2526
2627def get_instrumentation_packages ():
27- for pkg in sorted (os .listdir (instrumentations_path )):
28+ pkg_paths = []
29+ for pkg in os .listdir (instrumentations_path ):
2830 pkg_path = os .path .join (instrumentations_path , pkg )
2931 if not os .path .isdir (pkg_path ):
3032 continue
33+ pkg_paths .append (pkg_path )
34+ for pkg in os .listdir (genai_instrumentations_path ):
35+ pkg_path = os .path .join (genai_instrumentations_path , pkg )
36+ if not os .path .isdir (pkg_path ):
37+ continue
38+ pkg_paths .append (pkg_path )
3139
40+ for pkg_path in sorted (pkg_paths ):
3241 try :
3342 version = subprocess .check_output (
3443 "hatch version" ,
You can’t perform that action at this time.
0 commit comments